diff --git a/assets/css/acui.css b/assets/css/acui.css index 2a1f324c5..bab774722 100644 --- a/assets/css/acui.css +++ b/assets/css/acui.css @@ -1 +1 @@ -.acui-dropdown{--acui-dropdown-text-color: var(--ac-text-color);--acui-dropdown-hover-background: var(--ac-primary-color);--acui-dropdown-hover-color: #fff;position:relative;display:inline-block}.acui-dropdown-menu{position:absolute;top:100%;background:#fff;box-shadow:0 9px 24px 0 rgba(15,15,15,.2),0 3px 6px 0 rgba(15,15,15,.1),0 0 0 1px rgba(15,15,15,.05);border-radius:2px;min-width:200px;padding:8px 0;z-index:var(--menu-z-index, 20)}.acui-dropdown-menu.-bottom-left{right:0}.acui-dropdown-item{margin:0 2px;padding:6px 10px;cursor:pointer;display:block;white-space:nowrap;text-decoration:none;color:var(--acui-dropdown-text-color)}.acui-dropdown-item:hover,.acui-dropdown-item:focus{background:var(--acui-dropdown-hover-background);color:var(--acui-dropdown-hover-color);border-radius:5px}.acui-progress{--containerWidth: 100%;--baseBackground: #ddd;--defaultBarBackground: #0073aa;--warningBarBackground: #FFB900;--errorBarBackground: var(--ac-notification-red);--finishedBarBackground: #7ED321;display:block;width:var(--containerWidth)}.acui-progress__bar{background:var(--baseBackground);width:100%;height:10px;border-radius:2px;position:relative;overflow:hidden;margin:15px 0}.acui-progress__progress{height:100%;background:var(--defaultBarBackground)}.acui-progress__progress.-finished{background-color:var(--finishedBarBackground, #7ED321)}.acui-progress__progress.-warning{background-color:var(--warningBarBackground, #FFB900)}.acui-progress__progress.-error{background-color:var(--errorBarBackground, #FFB900)}.acui-toggle-buttons .button{border-radius:0}.acui-toggle-buttons .button .dashicons{transform:translateY(4px)}.acui-toggle-buttons .button:active,.acui-toggle-buttons .button:focus{box-shadow:none !important}.acui-toggle-buttons .button:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.acui-toggle-buttons .button:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.acui-toggle-buttons .button.button-primary{padding-left:3px}.acui-button{background:#f6f7f7;border-color:var(--ac-primary-color)}.acui-tooltip{display:inline-flex;position:relative}.acui-tooltip .acui-tooltip-content.is-top{bottom:calc(100% + 4px);left:50%;transform:translateX(-50%)}.acui-tooltip .acui-tooltip-content.is-bottom{top:calc(100% + 4px);left:50%;transform:translateX(-50%)}.acui-tooltip .acui-tooltip-content.is-left{top:50%;right:calc(100% + 5px);transform:translateY(-50%)}.acui-tooltip .acui-tooltip-content.is-right{top:50%;left:calc(100% + 5px);transform:translateY(-50%)}.acui-tooltip-content{background:#000;border-radius:3px;padding:7px 14px;color:#fff;position:absolute;display:block;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000;white-space:nowrap}.acui-tooltip-content:before{content:"";display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,.8);border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);position:absolute}.acui-tooltip-content.is-top{margin-top:-5px}.acui-tooltip-content.is-top:before{left:50%;bottom:-4px;transform:translateX(-4px) rotate(180deg)}.acui-tooltip-content.is-bottom{margin-top:5px}.acui-tooltip-content.is-bottom:before{left:50%;top:-4px;transform:translateX(-4px)}.acui-tooltip-content.is-left{transform:translateY(-50%) translateX(-2px)}.acui-tooltip-content.is-left:before{left:100%;top:50%;transform:translateX(-4px) translateY(-50%) rotate(90deg)}.acui-tooltip-content.is-right{transform:translateY(-50%) translateX(5px)}.acui-tooltip-content.is-right:before{right:100%;top:50%;transform:translateX(4px) translateY(-50%) rotate(270deg)}.acui-tooltip-content.is-multiline{text-align:center;white-space:normal;width:var(--acui-tooltip-width, 200px)}.acui-tooltip-content.is-multiline.is-large{width:300px}.acui-tooltip-content.hover{opacity:1} +.acui-dropdown{--acui-dropdown-text-color: var(--ac-text-color);--acui-dropdown-hover-background: var(--ac-select-hover-bg);--acui-dropdown-hover-color: #fff;position:relative;display:inline-block}.acui-dropdown-menu{position:absolute;top:100%;background:#fff;box-shadow:0 9px 24px 0 rgba(15,15,15,.2),0 3px 6px 0 rgba(15,15,15,.1),0 0 0 1px rgba(15,15,15,.05);border-radius:2px;min-width:200px;z-index:var(--menu-z-index, 20);overflow:auto}.acui-dropdown-menu.-bottom-left{right:0}.acui-dropdown-item{margin:0;padding:6px 10px;cursor:pointer;display:block;white-space:nowrap;text-decoration:none;color:var(--acui-dropdown-text-color)}.acui-dropdown-item:hover,.acui-dropdown-item:focus{background:var(--acui-dropdown-hover-background);color:var(--acui-dropdown-hover-color)}.acui-datepicker-header{display:flex;align-items:center;margin:0 4px;padding:2px 0;border-bottom:1px solid #eee}.acui-datepicker-header__controls{flex-grow:1;display:flex;justify-content:center}.acui-datepicker-header__controls select{width:100%}.acui-datepicker-header button.acui-datepicker-button{background:none;border:none}.acui-datepicker-header button.acui-datepicker-button:hover{color:var(--ac-primary-color)}.acui-datepicker-positioning{position:relative;display:block;overflow:hidden;width:260px}.acui-datepicker-month-container.-prev,.acui-datepicker-month-container.-next{position:absolute;top:0;bottom:0}.acui-datepicker-month-container.-prev{right:120%}.acui-datepicker-month-container.-next{left:120%}.acui-datepicker-months{display:flex;flex-wrap:wrap}.acui-datepicker-months button{flex:33%;background:none;border:1px solid rgba(0,0,0,0);height:40px;cursor:pointer}.acui-datepicker-months button:hover{background:var(--ac-button-bg)}.acui-datepicker-months button.-active{background:var(--ac-primary-color);color:#fff;border-radius:3px}.acui-progress{--containerWidth: 100%;--baseBackground: #ddd;--defaultBarBackground: #0073aa;--warningBarBackground: #FFB900;--errorBarBackground: var(--ac-notification-red);--finishedBarBackground: #7ED321;display:block;width:var(--containerWidth)}.acui-progress__bar{background:var(--baseBackground);width:100%;height:10px;border-radius:2px;position:relative;overflow:hidden;margin:15px 0}.acui-progress__progress{height:100%;background:var(--defaultBarBackground)}.acui-progress__progress.-finished{background-color:var(--finishedBarBackground, #7ED321)}.acui-progress__progress.-warning{background-color:var(--warningBarBackground, #FFB900)}.acui-progress__progress.-error{background-color:var(--errorBarBackground, #FFB900)}.acui-toggle-buttons .button{border-radius:0}.acui-toggle-buttons .button .dashicons{transform:translateY(4px)}.acui-toggle-buttons .button:active,.acui-toggle-buttons .button:focus{box-shadow:none !important}.acui-toggle-buttons .button:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.acui-toggle-buttons .button:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.acui-toggle-buttons .button.button-primary{padding-left:3px}.acui-button{background:#f6f7f7;border-color:var(--ac-primary-color)}.acui-tooltip{display:inline-flex;position:relative}.acui-tooltip .acui-tooltip-content.is-top{bottom:calc(100% + 4px);left:50%;transform:translateX(-50%)}.acui-tooltip .acui-tooltip-content.is-bottom{top:calc(100% + 4px);left:50%;transform:translateX(-50%)}.acui-tooltip .acui-tooltip-content.is-left{top:50%;right:calc(100% + 5px);transform:translateY(-50%)}.acui-tooltip .acui-tooltip-content.is-right{top:50%;left:calc(100% + 5px);transform:translateY(-50%)}.acui-tooltip-content{background:#000;border-radius:3px;padding:7px 14px;color:#fff;position:absolute;display:block;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000;white-space:nowrap}.acui-tooltip-content:before{content:"";display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,.8);border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);position:absolute}.acui-tooltip-content.is-top{margin-top:-5px}.acui-tooltip-content.is-top:before{left:50%;bottom:-4px;transform:translateX(-4px) rotate(180deg)}.acui-tooltip-content.is-bottom{margin-top:5px}.acui-tooltip-content.is-bottom:before{left:50%;top:-4px;transform:translateX(-4px)}.acui-tooltip-content.is-left{transform:translateY(-50%) translateX(-2px)}.acui-tooltip-content.is-left:before{left:100%;top:50%;transform:translateX(-4px) translateY(-50%) rotate(90deg)}.acui-tooltip-content.is-right{transform:translateY(-50%) translateX(5px)}.acui-tooltip-content.is-right:before{right:100%;top:50%;transform:translateX(4px) translateY(-50%) rotate(270deg)}.acui-tooltip-content.is-multiline{text-align:center;white-space:normal;width:var(--acui-tooltip-width, 200px)}.acui-tooltip-content.is-multiline.is-large{width:300px}.acui-tooltip-content.hover{opacity:1} diff --git a/assets/css/admin-general.css b/assets/css/admin-general.css index 4262c4011..100125065 100644 --- a/assets/css/admin-general.css +++ b/assets/css/admin-general.css @@ -1 +1 @@ -:root{--ac-text-color: #23282d;--ac-link: #0073aa;--ac-link-hover: #0096dd;--ac-button-bg: #f6f7f7;--ac-button-color: #2271b1;--ac-button-border: var(--ac-button-color);--ac-button-hover: #0a4b78;--ac-primary-color: #2271b1;--ac-primary-color-hover: #135e96;--ac-notification-red: #d63638;--ac-notification-blue: #72aee6;--ac-notification-yellow: #dba617;--ac-notification-orange: #d54e21;--ac-notification-green: #00a32a;--ac-border-grey: #ddd;--ac-pink-color: #e9426e;--ac-form-input-border: #757575;--ac-table-border: #c3c4c7}:root body.admin-color-coffee{--ac-button-color: #32373c;--ac-button-border: #8c8f94;--ac-primary-color: #c7a589;--ac-primary-color-hover: #ccad93}:root body.admin-color-light{--ac-button-color: #04a4cc;--ac-button-border: #04a4cc;--ac-button-hover: #04b0db;--ac-primary-color: #04a4cc;--ac-primary-color-hover: #04b0db}:root body.admin-color-modern{--ac-link: #3858e9;--ac-link-hover: #183ad6;--ac-button-color: #3858e9;--ac-button-border: #3858e9;--ac-primary-color: #3858e9;--ac-primary-color-hover: #04b0db}:root body.admin-color-blue{--ac-button-color: #096484;--ac-primary-color: #e1a948;--ac-primary-color-hover: #e3af55}:root body.admin-color-ectoplasm{--ac-button-color: #a3b745;--ac-primary-color: #a3b745;--ac-primary-color-hover: #a9bd4f}:root body.admin-color-ocean{--ac-button-color: #7e8993;--ac-primary-color: #9ebaa0;--ac-primary-color-hover: #a7c0a9}:root body.admin-color-sunrise{--ac-button-color: #dd823b;--ac-button-hover: #db7728;--ac-primary-color: #dd823b;--ac-primary-color-hover: #df8a48}.ac-article{padding:45px;margin-bottom:65px;background:#fff;border:1px solid #e1e1e1;box-shadow:0 1px 5px 0 rgba(0,0,0,.12),0 2px 2px -1px rgba(0,0,0,.14);border-radius:3px}.ac-article__title{margin:0;font-size:22px;margin-bottom:20px}@font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=955237") format("woff2"),url("../fonts/cpac_icons.woff?v=928084") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^=cpacicon-],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-delete::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-duplicate::before{content:""}.cpacicon-filter::before{content:""}.cpacicon-more::before{content:""}.cpacicon-move::before{content:""}.cpacicon-rename::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}body .ac-modal{position:fixed;overflow:auto;z-index:100000;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:none}body .ac-modal.-active{display:flex;align-items:center;justify-content:center}body .ac-modal__dialog{border:1px solid #c8c8c8;background:#fff;position:fixed;width:650px;max-width:90%}body .ac-modal__dialog__header{font-size:16px;line-height:16px;color:#555;padding:17px 20px}body .ac-modal__dialog__close{display:inline-block;padding:0;margin:0;border:none;background:none;position:absolute;right:0;top:0;width:52px;height:52px;text-align:center;color:#555;cursor:pointer}body .ac-modal__dialog__close:hover{background-color:#f2f2f2}body .ac-modal__dialog__close span.dashicons{font-size:22px}body .ac-modal__dialog__close span.dashicons:hover{color:var(--ac-primary-color-hover)}body .ac-modal__dialog__content{padding:20px;max-height:calc(100vh - 200px);overflow:auto}body .ac-modal__dialog__content__lead{font-weight:bold;font-size:15px;margin-top:5px;margin-bottom:25px;color:#6d6d6d}body .ac-modal__dialog__content.-p0{padding:0}body .ac-modal__dialog__content.-accent{border-top:1px solid #dbdbdb;background:#f9f9f9}body .ac-modal__dialog__content.-hide{display:none}body .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:.5px;margin-bottom:10px}body .ac-modal__dialog__list li:before{content:"";font-family:Dashicons;position:absolute;left:0;top:0;color:#3d4350}body .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}body .ac-modal__dialog__footer{padding:12px 20px;border-top:1px solid #dbdbdb;background:#f9f9f9;font-size:13px}body .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}body .ac-modal.-blocking{background:#e3e7eb}@media only screen and (max-width: 720px){body .ac-modal__dialog__footer__content{display:block}body .ac-modal__dialog__footer .button{margin-left:0;margin-top:10px}}body .ac-modal .ac-modal-footer-actions{display:flex}body .ac-modal .ac-modal-footer-actions__info{flex-grow:1;display:flex;align-items:center}body.rtl .button.loading{padding-left:25px;padding-right:0}body.rtl .button.loading span{left:6px;right:auto}body.rtl .ac-admin__main .ac-columns .ac-column .ac-setting-input .checkbox-labels>label,body.rtl .ac-admin__main .ac-columns .ac-column .ac-setting-input .radio-labels>label{padding-right:0;padding-left:10px;display:inline-block}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta img{margin-left:3px;margin-right:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label .inner>a.remove-button{margin-right:12px;margin-left:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label .inner .meta{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label span.vers{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_type{text-align:left;padding-left:0;padding-right:auto}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta span.vers .comment-grey-bubble{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr.column_image_size td.input label input{margin-left:3px;margin-right:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr td.label p.description{right:0;left:auto}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr td.label a.more-info{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-form div.description{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-form div.input-width-range{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-form a.help{float:left}body.rtl .ac-admin__main .column-footer .order-message{float:right;padding-right:22px;padding-left:0;margin-right:8px}body.rtl .ac-admin__main .column-footer .order-message .order-message__icon{left:inherit;right:0;transform:scaleX(-1)}body.rtl .ac-admin__main .column-footer .button-container{float:left}body.rtl .ac-admin__main .column-footer .submit{display:none}body.rtl .cpac-placeholder{padding:5px 0 7px 4px}body.rtl .cpac_export .ms-container .ms-selection{float:left}body.rtl .ac-column-setting td.col-label .ac-pointer{right:inherit;left:4px}body.rtl .ac-setting-input-width div.description{direction:ltr}body.rtl .ac-setting-input-width div.unit-select{left:0;right:inherit}body.rtl .ac-setting-input-width div.unit-select .radio-labels label{margin-right:0;padding-left:0 !important}body.rtl .ac-section-group.-tools .ac-section.-export{margin-right:0;margin-left:27px}body.rtl .ac-setbox__row a.ac-pointer.instructions{right:inherit;left:10px}body.rtl .ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon{right:2px;padding-left:4px}body.rtl .ac-setbox .radio-labels label{display:inline-block}.ac-confirmation{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000000;cursor:not-allowed}.ac-confirmation__modal{cursor:pointer;padding:20px;min-width:300px;max-width:400px;margin:20px;height:auto;transform:translateX(-50%);background:#fff;border-radius:3px;box-shadow:0 0 5px rgba(0,0,0,.2);border:1px solid #d8d8d8;position:absolute;top:30%;left:50%}.ac-confirmation__modal__content{margin-bottom:20px}.ac-confirmation__modal__footer{display:block;text-align:right}.ac-confirmation__modal__footer button{margin-left:6px !important;min-width:80px}.ac-tooltip-wrapper{position:relative}.ac-tooltip-wrapper:focus .ac-tooltip,.ac-tooltip-wrapper:hover .ac-tooltip{opacity:1}.ac-tooltip{background:#000;border-radius:3px;padding:5px 10px;color:#fff;position:absolute;transform:translateX(-50%);min-width:30px;margin-top:5px;display:block;opacity:0;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000;max-width:200px}.ac-tooltip:before{content:"";display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,.8);border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);position:absolute;left:50%;top:-4px;transform:translateX(-4px)}.ac-tooltip.hover{opacity:1}html.wp-toolbar .ac-tooltip{margin-top:36px}.ac-pointer-modal-container{position:absolute;z-index:100000;width:500px}.ac-pointer-modal{background:#fff;border:1px solid var(--ac-border-grey);box-shadow:0 1px 3px rgba(0,0,0,.1)}.ac-pointer-modal__content{padding-bottom:20px}.ac-pointer-modal__content img{max-width:calc(100% - 30px);margin:0 15px;margin-bottom:5px;height:auto}.ac-pointer-modal__content h3{background:var(--ac-primary-color);color:#fff;padding:10px 15px;font-weight:400;font-size:14px;margin:0;margin-bottom:10px}.ac-pointer-modal__content h4{padding:0 15px;margin-bottom:10px}.ac-pointer-modal__content p{padding:0 15px;margin-bottom:10px}.ac-pointer-modal__arrow{display:block;width:10px;height:10px;border-left:1px solid var(--ac-border-grey);border-bottom:1px solid var(--ac-border-grey);position:absolute;background:#fff;top:50%;transform:translateY(-5px) rotate(45deg);left:-5px}.ac-pointer-modal__arrow[data-pos=left]{left:inherit;right:-5px;transform:translateY(-5px) rotate(-135deg)}.ac-pointer-modal__arrow[data-pos=right_bottom]{display:none}.ac-toggle-container{display:inline-flex}.ac-toggle-container .ac-toggle-label{margin-left:7px;transform:translateY(-1px)}.ac-toggle{display:inline-block;white-space:nowrap}.ac-toggle input{position:absolute;left:-3000em}.rtl .ac-toggle input{left:inherit;right:-3000em}.ac-toggle__switch{display:inline-block;background:#ccc;border-radius:8px;width:30px;height:16px;position:relative;transition:background-color .3s}.ac-toggle__switch__on,.ac-toggle__switch__off{font-size:11px;font-weight:bold;color:#fff;position:absolute;top:5px;line-height:11px}.ac-toggle__switch__off{right:6px;color:#555}.ac-toggle__switch__on{left:8px}.ac-toggle__switch__track{border-radius:50%;display:inline-block;background:#fff;position:absolute;left:3px;top:3px;height:10px;width:10px;transition:all .1s}.ac-toggle input:checked+.ac-toggle__switch{background:var(--ac-primary-color)}.ac-toggle input:checked+.ac-toggle__switch .ac-toggle__switch__track{left:calc(100% - 13px)}.ac-toggle-v2{position:relative}.ac-toggle-v2.-disabled{cursor:not-allowed}.ac-toggle-v2.-disabled *{cursor:not-allowed}.ac-toggle-v2__toggle{position:relative;display:inline-block;margin-right:5px}.ac-toggle-v2__toggle input[type=checkbox]{position:absolute;left:0;top:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:2;border:none;margin:0 !important}.ac-toggle-v2__toggle input[type=checkbox]:focus:not(:disabled)~.ac-toggle-v2__toggle__track,.ac-toggle-v2__toggle input[type=checkbox]:active:not(:disabled)~.ac-toggle-v2__toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ac-primary-color)}.ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__thumb{transform:translateX(14px)}.ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__track{background:var(--ac-primary-color)}.ac-toggle-v2__toggle input[type=checkbox]:disabled{cursor:not-allowed}.ac-toggle-v2__toggle input[type=checkbox]:disabled~.ac-toggle-v2__toggle__track{background:#ddd !important;cursor:not-allowed}.ac-toggle-v2__toggle input[type=checkbox]:disabled~.ac-toggle-v2__toggle__thumb{cursor:not-allowed}.ac-toggle-v2__toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#d8d8d8;width:36px;height:22px;border-radius:11px;transition:background .2s ease}.ac-toggle-v2__toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;left:3px;width:16px;height:16px;border-radius:50%;transition:transform .1s ease;background-color:#fff;border:5px solid #fff}.ac-toggle-v2.-small{margin-bottom:10px}.ac-toggle-v2.-small .ac-toggle-v2__toggle{transform:translateY(2px)}.ac-toggle-v2.-small .ac-toggle-v2__toggle__track{width:30px;height:18px}.ac-toggle-v2.-small .ac-toggle-v2__toggle__thumb{top:2px;left:2px;width:14px;height:14px}.ac-toggle-v2.-small .ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__thumb{transform:translateX(12px)}.ac-input-group{display:flex;margin-bottom:20px}.ac-input{padding:10px;font-size:15px;border:1px solid #979797;border-radius:3px;margin-right:3px}.ac-btn,.ac-btn-link,.ac-btn-primary{padding:10px 40px;font-size:15px;border-radius:3px;display:inline-block;cursor:pointer;text-decoration:none}.ac-btn-primary{background:#e9426e;border:1px solid #e9426e;color:#fff}.ac-btn-primary:hover,.ac-btn-primary:focus,.ac-btn-primary:active{background:#ea1951;text-decoration:none;color:#fff}.ac-btn-primary:disabled{cursor:not-allowed;opacity:.5}.ac-btn-link{border:none;background:none;padding-left:10px;padding-right:10px;color:var(--ac-link);text-decoration:underline;font-size:13px}.ac-btn-link:hover{color:var(--ac-link-hover)}input:disabled,textarea:disabled,button:disabled{cursor:not-allowed !important}.ac-ajax-loading{display:none;white-space:nowrap;position:absolute;transform:translateX(10px)}.ac-ajax-loading .spinner{visibility:visible;margin:0}.ac-ajax-loading__icon{color:var(--ac-notification-green)}.ac-ajax-loading__status{font-weight:bold;margin-left:5px}.ac-ajax-loading__icon,.ac-ajax-loading__status{display:none}.ac-ajax-loading.-active{display:inline-flex}.ac-ajax-loading.-finished .spinner{display:none}.ac-ajax-loading.-finished .ac-ajax-loading__icon,.ac-ajax-loading.-finished .ac-ajax-loading__status{display:block}.ac-settings-box{margin-bottom:60px;max-width:800px}.ac-settings-box-pro-cta p.description{font-weight:bold}.ac-pro-list{margin-bottom:20px;display:flex;flex-wrap:wrap}.ac-pro-list__item{margin-bottom:14px;position:relative;z-index:1;flex:33%}.ac-pro-list__item__label{color:#1d2327;margin-left:8px;text-decoration:dotted;border-bottom:1px dotted #000;text-decoration:none;cursor:pointer}.ac-pro-list__item__tooltip{display:none;background:#666;color:#fff;padding:15px;font-size:13px;line-height:150%}.ac-pro-list__item:hover{z-index:2}.ac-pro-list__item:hover .ac-pro-list__item__tooltip{display:block;position:absolute;left:0;top:calc(100% + 5px)}.ac-pro-list__item.-feature:before{color:var(--ac-pink-color);content:"";font:normal 16px/.5 "dashicons";speak:none;display:inline-block;padding:0;top:5px;left:0;position:relative;vertical-align:top;text-decoration:none !important}h2.ac-lined-header,h3.ac-lined-header{display:flex;font-weight:normal;font-size:20px;width:100%;align-items:center;margin-bottom:30px}h2.ac-lined-header:after,h3.ac-lined-header:after{content:"";flex:100;height:1px;background:#d8d8d8;margin-left:23px}#cpac a:focus,#cpac a:active{outline:none}.cpac-step-nav{display:flex}.cpac-step-nav__item{padding:15px 45px 15px 0;margin:0;margin-right:30px;position:relative;background:no-repeat right center url("data:image/svg+xml,%0A%3Csvg width='12px' height='50px' viewBox='0 0 12 50' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='UI-2.0' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' stroke-linecap='square'%3E%3Cg id='Welkom' transform='translate(-175.000000, -101.000000)' stroke='%231D2327'%3E%3Cg id='Menu' transform='translate(0.000000, 93.000000)'%3E%3Cg id='Group-2' transform='translate(71.000000, 8.676440)'%3E%3Cpolyline id='Line-2' points='105.170704 -1.27167289e-16 115.170704 24.0763026 105.170704 49'%3E%3C/polyline%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");font-weight:bold;color:#1d2327;font-size:13px;text-transform:uppercase;opacity:.2}.cpac-step-nav__item a{text-decoration:none;color:#1d2327}.cpac-step-nav__item.-active{opacity:1}.cpac-step-nav__item:last-child{background:none}body.settings_page_codepress-admin-columns #wpbody,body.toplevel_page_codepress-admin-columns #wpbody{padding-top:0}body.settings_page_codepress-admin-columns .notice,body.toplevel_page_codepress-admin-columns .notice{display:none}body.settings_page_codepress-admin-columns #cpac .notice:not(.hidden),body.toplevel_page_codepress-admin-columns #cpac .notice:not(.hidden){display:block}body.settings_page_codepress-admin-columns #wpcontent,body.toplevel_page_codepress-admin-columns #wpcontent{padding-left:0}body.settings_page_codepress-admin-columns .wrap,body.toplevel_page_codepress-admin-columns .wrap{padding:30px 10px 0 30px}body.settings_page_codepress-admin-columns .wrap .nav-tab-wrapper,body.toplevel_page_codepress-admin-columns .wrap .nav-tab-wrapper{margin-bottom:24px}body.settings_page_codepress-admin-columns .wrap .notice,body.toplevel_page_codepress-admin-columns .wrap .notice{margin-top:16px;margin-bottom:16px}@media only screen and (min-width: 1050px){body.settings_page_codepress-admin-columns .wrap,body.toplevel_page_codepress-admin-columns .wrap{padding:30px 40px 0}body.settings_page_codepress-admin-columns #screen-meta-links,body.toplevel_page_codepress-admin-columns #screen-meta-links{margin-right:20px}body.settings_page_codepress-admin-columns #screen-meta,body.toplevel_page_codepress-admin-columns #screen-meta{margin-left:20px;margin-right:20px}}@media only screen and (min-width: 1450px){body.settings_page_codepress-admin-columns .wrap,body.toplevel_page_codepress-admin-columns .wrap{padding:30px 70px 0}body.settings_page_codepress-admin-columns #screen-meta-links,body.toplevel_page_codepress-admin-columns #screen-meta-links{margin-right:50px}body.settings_page_codepress-admin-columns #screen-meta,body.toplevel_page_codepress-admin-columns #screen-meta{margin-left:50px;margin-right:50px}}header.cpac-header{padding:37px 32px;background:#3d4350;display:flex}@media only screen and (min-width: 1050px){header.cpac-header{padding:37px 42px}}@media only screen and (min-width: 1450px){header.cpac-header{padding:37px 72px}}.cpac-admin-nav{background:#fff;display:flex;padding:0 30px;border-bottom:1px solid #ddd}.cpac-admin-nav .cpac-nav{display:flex;margin:0;padding:0}.cpac-admin-nav .cpac-nav__item{flex:0 0 auto;padding:0;margin:0;margin-right:40px}.cpac-admin-nav .cpac-nav__item.-active a{border-bottom:4px solid #333;font-weight:bold}.cpac-admin-nav .cpac-nav__item.-active a:hover,.cpac-admin-nav .cpac-nav__item.-active a:focus{color:#333}.cpac-admin-nav .cpac-nav__item.-pro a{color:var(--ac-pink-color)}.cpac-admin-nav .cpac-nav__item.-pro a:hover,.cpac-admin-nav .cpac-nav__item.-pro a:focus{color:var(--ac-pink-color)}.cpac-admin-nav .cpac-nav__item.-pro a img{margin-left:4px}.cpac-admin-nav .cpac-nav__item a{display:inline-block;padding:30px 0 10px 0;text-transform:uppercase;text-decoration:none;border-bottom:4px solid #fff;color:#333}.cpac-admin-nav .cpac-nav__item a:hover,.cpac-admin-nav .cpac-nav__item a:focus{box-shadow:none;outline:none !important;color:var(--ac-primary-color)}@media only screen and (min-width: 1050px){.cpac-admin-nav{padding:0 40px}}@media only screen and (min-width: 1450px){.cpac-admin-nav{padding:0 70px}}.ac-message{background:#fff;padding:1px 12px;border:1px solid #ccd0d4;border-left-width:4px;margin-bottom:15px}.ac-message p{margin:.7em 0}.ac-message.notice-warning{border-left-color:var(--ac-notification-yellow)}.ac-message.notice-error{border-left-color:var(--ac-notification-red)}.ac-message.notice-info{border-left:4px solid var(--ac-notification-blue)}.ac-message .dashicons{color:#8d8d8d;margin-right:5px;transform:translateY(-2px)}.ac-badge{display:inline-block;background:var(--ac-notification-orange);border-radius:10px;font-size:9px;line-height:17px;padding:0 6px;margin:-2px 0 0 4px;vertical-align:middle;color:#fff;font-weight:600}a.external:after{content:"";display:inline-block;margin-left:4px;font-size:17px;color:#797979;line-height:1;font-family:dashicons,serif;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;text-align:center}span.dashicons.flip:before{transform:scale(-1, 1);display:inline-block}span.dashicons.yellow{color:var(--ac-notification-yellow)}span.dashicons.orange{color:var(--ac-notification-orange)}span.dashicons.red{color:#dc3232}span.dashicons.green{color:#46b450}span.dashicons.light-gray{color:#bbb}span.dashicons.gray{color:#8a8a8a}span.dashicons.blue{color:#0073aa}span.dashicons.light-blue{color:#00a0d2}.button.loading{padding-right:25px;position:relative}.wp-core-ui .button-primary.-pink{background:#e9426e;border-color:#e73463}div.menu{position:relative;padding:0;margin-top:16px;margin-bottom:16px}div.menu select{display:inline-block;margin:0}div.menu .spinner{display:none;float:none;visibility:visible;margin:0 0 0 14px}div.menu .view-link,div.menu .view-link:active{display:inline-block;margin:0 0 0 12px;top:2px}table.ac-form-table{max-width:1100px;margin-top:20px}table.ac-form-table>tbody>tr>td,table.ac-form-table>tbody>tr>th{vertical-align:top}table.ac-form-table.settings tr th{font-weight:normal}table.ac-form-table.settings tr th h2{margin:0}table.ac-form-table.settings tr td{padding-top:58px}table.ac-form-table .general form div.checkbox-labels{margin-bottom:6px}table.ac-form-table .general form p.save-button{margin-top:10px}.ac-section-group.-start{max-width:600px}.ac-section{background:#f5f5f5;margin-bottom:28px;box-shadow:0 1px 3px rgba(0,0,0,.1)}.ac-section__header{background:#fff;padding:13px 14px;border-bottom:1px solid var(--ac-border-grey);position:relative}.ac-section__header__title{font-size:15px;margin:0;font-weight:bold}.ac-section__body{padding:16px 16px}.ac-section p{margin:0 0 1em 0;max-width:800px}.ac-section.-closable .ac-section__header{padding-right:30px;cursor:pointer}.ac-section.-closable .ac-section__header:after{content:"";position:absolute;right:20px;top:50%;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:6px solid #000;transition:all .2s;margin-top:-4px}.ac-section.-closable.-closed .ac-section__header:after{transform:rotate(180deg)}.ac-section.-closable.-closed .ac-section__body{display:none}.ac-general-setting-row{margin-bottom:30px}.ac-general-setting-row .ac-ajax-loading{position:relative}.ac-general-setting-row .ac-toggle-v2 .ac-ajax-loading{position:absolute}.ac-general-setting-row p{margin-top:5px}.ac-general-setting-row__layout{display:flex;align-items:center} +:root{--ac-text-color: #23282d;--ac-link: #0073aa;--ac-link-hover: #0096dd;--ac-button-bg: #f6f7f7;--ac-button-color: #2271b1;--ac-button-border: var(--ac-button-color);--ac-button-hover: #0a4b78;--ac-primary-color: #2271b1;--ac-primary-color-hover: #135e96;--ac-notification-red: #d63638;--ac-notification-blue: #72aee6;--ac-notification-yellow: #dba617;--ac-notification-orange: #d54e21;--ac-notification-green: #00a32a;--ac-border-grey: #ddd;--ac-pink-color: #e9426e;--ac-form-input-border: #757575;--ac-select-hover-bg: #5897fb;--ac-table-border: #c3c4c7;--ac-table-color: #50575e}:root body.admin-color-coffee{--ac-button-color: #32373c;--ac-button-border: #8c8f94;--ac-primary-color: #c7a589;--ac-primary-color-hover: #ccad93}:root body.admin-color-light{--ac-button-color: #04a4cc;--ac-button-border: #04a4cc;--ac-button-hover: #04b0db;--ac-primary-color: #04a4cc;--ac-primary-color-hover: #04b0db}:root body.admin-color-modern{--ac-link: #3858e9;--ac-link-hover: #183ad6;--ac-button-color: #3858e9;--ac-button-border: #3858e9;--ac-primary-color: #3858e9;--ac-primary-color-hover: #04b0db}:root body.admin-color-blue{--ac-button-color: #096484;--ac-primary-color: #e1a948;--ac-primary-color-hover: #e3af55}:root body.admin-color-ectoplasm{--ac-button-color: #a3b745;--ac-primary-color: #a3b745;--ac-primary-color-hover: #a9bd4f}:root body.admin-color-ocean{--ac-button-color: #7e8993;--ac-primary-color: #9ebaa0;--ac-primary-color-hover: #a7c0a9}:root body.admin-color-sunrise{--ac-button-color: #dd823b;--ac-button-hover: #db7728;--ac-primary-color: #dd823b;--ac-primary-color-hover: #df8a48}.ac-article{padding:45px;margin-bottom:65px;background:#fff;border:1px solid #e1e1e1;box-shadow:0 1px 5px 0 rgba(0,0,0,.12),0 2px 2px -1px rgba(0,0,0,.14);border-radius:3px}.ac-article__title{margin:0;font-size:22px;margin-bottom:20px}@font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=569879") format("woff2"),url("../fonts/cpac_icons.woff?v=134916") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^=cpacicon-],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-delete::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-duplicate::before{content:""}.cpacicon-filter::before{content:""}.cpacicon-more::before{content:""}.cpacicon-move::before{content:""}.cpacicon-rename::before{content:""}.cpacicon-reset-password::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}.cpacicon-text-clip::before{content:""}.cpacicon-text-wrap::before{content:""}.cpacicon-user-switch::before{content:""}body .ac-modal{position:fixed;overflow:auto;z-index:100000;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:none}body .ac-modal.-active{display:flex;align-items:center;justify-content:center}body .ac-modal__dialog{border:1px solid #c8c8c8;background:#fff;position:fixed;width:650px;max-width:90%}body .ac-modal__dialog__header{font-size:16px;line-height:16px;color:#555;padding:17px 20px}body .ac-modal__dialog__close{display:inline-block;padding:0;margin:0;border:none;background:none;position:absolute;right:0;top:0;width:52px;height:52px;text-align:center;color:#555;cursor:pointer}body .ac-modal__dialog__close:hover{background-color:#f2f2f2}body .ac-modal__dialog__close span.dashicons{font-size:22px}body .ac-modal__dialog__close span.dashicons:hover{color:var(--ac-primary-color-hover)}body .ac-modal__dialog__content{padding:20px;max-height:calc(100vh - 200px);overflow:auto}body .ac-modal__dialog__content__lead{font-weight:bold;font-size:15px;margin-top:5px;margin-bottom:25px;color:#6d6d6d}body .ac-modal__dialog__content.-p0{padding:0}body .ac-modal__dialog__content.-accent{border-top:1px solid #dbdbdb;background:#f9f9f9}body .ac-modal__dialog__content.-hide{display:none}body .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:.5px;margin-bottom:10px}body .ac-modal__dialog__list li:before{content:"";font-family:Dashicons;position:absolute;left:0;top:0;color:#3d4350}body .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}body .ac-modal__dialog__footer{padding:12px 20px;border-top:1px solid #dbdbdb;background:#f9f9f9;font-size:13px}body .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}body .ac-modal.-blocking{background:#e3e7eb}@media only screen and (max-width: 720px){body .ac-modal__dialog__footer__content{display:block}body .ac-modal__dialog__footer .button{margin-left:0;margin-top:10px}}body .ac-modal .ac-modal-footer-actions{display:flex}body .ac-modal .ac-modal-footer-actions__info{flex-grow:1;display:flex;align-items:center}body.rtl .button.loading{padding-left:25px;padding-right:0}body.rtl .button.loading span{left:6px;right:auto}body.rtl .ac-admin__main .ac-columns .ac-column .ac-setting-input .checkbox-labels>label,body.rtl .ac-admin__main .ac-columns .ac-column .ac-setting-input .radio-labels>label{padding-right:0;padding-left:10px;display:inline-block}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta img{margin-left:3px;margin-right:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label .inner>a.remove-button{margin-right:12px;margin-left:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label .inner .meta{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label span.vers{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_type{text-align:left;padding-left:0;padding-right:auto}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta span.vers .comment-grey-bubble{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr.column_image_size td.input label input{margin-left:3px;margin-right:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr td.label p.description{right:0;left:auto}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr td.label a.more-info{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-form div.description{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-form div.input-width-range{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-form a.help{float:left}body.rtl .ac-admin__main .column-footer .order-message{float:right;padding-right:22px;padding-left:0;margin-right:8px}body.rtl .ac-admin__main .column-footer .order-message .order-message__icon{left:inherit;right:0;transform:scaleX(-1)}body.rtl .ac-admin__main .column-footer .button-container{float:left}body.rtl .ac-admin__main .column-footer .submit{display:none}body.rtl .cpac-placeholder{padding:5px 0 7px 4px}body.rtl .cpac_export .ms-container .ms-selection{float:left}body.rtl .ac-column-setting td.col-label .ac-pointer{right:inherit;left:4px}body.rtl .ac-setting-input-width div.description{direction:ltr}body.rtl .ac-setting-input-width div.unit-select{left:0;right:inherit}body.rtl .ac-setting-input-width div.unit-select .radio-labels label{margin-right:0;padding-left:0 !important}body.rtl .ac-section-group.-tools .ac-section.-export{margin-right:0;margin-left:27px}body.rtl .ac-setbox__row a.ac-pointer.instructions{right:inherit;left:10px}body.rtl .ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon{right:2px;padding-left:4px}body.rtl .ac-setbox .radio-labels label{display:inline-block}.ac-confirmation{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000000;cursor:not-allowed}.ac-confirmation__modal{cursor:pointer;padding:20px;min-width:300px;max-width:400px;margin:20px;height:auto;transform:translateX(-50%);background:#fff;border-radius:3px;box-shadow:0 0 5px rgba(0,0,0,.2);border:1px solid #d8d8d8;position:absolute;top:30%;left:50%}.ac-confirmation__modal__content{margin-bottom:20px}.ac-confirmation__modal__footer{display:block;text-align:right}.ac-confirmation__modal__footer button{margin-left:6px !important;min-width:80px}.ac-tooltip-wrapper{position:relative}.ac-tooltip-wrapper:focus .ac-tooltip,.ac-tooltip-wrapper:hover .ac-tooltip{opacity:1}.ac-tooltip{background:#000;border-radius:3px;padding:5px 10px;color:#fff;position:absolute;transform:translateX(-50%);min-width:30px;margin-top:5px;display:block;opacity:0;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000;max-width:200px}.ac-tooltip:before{content:"";display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,.8);border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);position:absolute;left:50%;top:-4px;transform:translateX(-4px)}.ac-tooltip.hover{opacity:1}html.wp-toolbar .ac-tooltip{margin-top:36px}.ac-pointer-modal-container{position:absolute;z-index:100000;width:500px}.ac-pointer-modal{background:#fff;border:1px solid var(--ac-border-grey);box-shadow:0 1px 3px rgba(0,0,0,.1)}.ac-pointer-modal__content{padding-bottom:20px}.ac-pointer-modal__content img{max-width:calc(100% - 30px);margin:0 15px;margin-bottom:5px;height:auto}.ac-pointer-modal__content h3{background:var(--ac-primary-color);color:#fff;padding:10px 15px;font-weight:400;font-size:14px;margin:0;margin-bottom:10px}.ac-pointer-modal__content h4{padding:0 15px;margin-bottom:10px}.ac-pointer-modal__content p{padding:0 15px;margin-bottom:10px}.ac-pointer-modal__arrow{display:block;width:10px;height:10px;border-left:1px solid var(--ac-border-grey);border-bottom:1px solid var(--ac-border-grey);position:absolute;background:#fff;top:50%;transform:translateY(-5px) rotate(45deg);left:-5px}.ac-pointer-modal__arrow[data-pos=left]{left:inherit;right:-5px;transform:translateY(-5px) rotate(-135deg)}.ac-pointer-modal__arrow[data-pos=right_bottom]{display:none}.ac-toggle-container{display:inline-flex}.ac-toggle-container .ac-toggle-label{margin-left:7px;transform:translateY(-1px)}.ac-toggle{display:inline-block;white-space:nowrap}.ac-toggle input{position:absolute;left:-3000em}.rtl .ac-toggle input{left:inherit;right:-3000em}.ac-toggle__switch{display:inline-block;background:#ccc;border-radius:8px;width:30px;height:16px;position:relative;transition:background-color .3s}.ac-toggle__switch__on,.ac-toggle__switch__off{font-size:11px;font-weight:bold;color:#fff;position:absolute;top:5px;line-height:11px}.ac-toggle__switch__off{right:6px;color:#555}.ac-toggle__switch__on{left:8px}.ac-toggle__switch__track{border-radius:50%;display:inline-block;background:#fff;position:absolute;left:3px;top:3px;height:10px;width:10px;transition:all .1s}.ac-toggle input:checked+.ac-toggle__switch{background:var(--ac-primary-color)}.ac-toggle input:checked+.ac-toggle__switch .ac-toggle__switch__track{left:calc(100% - 13px)}.ac-toggle-v2{position:relative}.ac-toggle-v2.-disabled{cursor:not-allowed}.ac-toggle-v2.-disabled *{cursor:not-allowed}.ac-toggle-v2__toggle{position:relative;display:inline-block;margin-right:5px}.ac-toggle-v2__toggle input[type=checkbox]{position:absolute;left:0;top:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:2;border:none;margin:0 !important}.ac-toggle-v2__toggle input[type=checkbox]:focus:not(:disabled)~.ac-toggle-v2__toggle__track,.ac-toggle-v2__toggle input[type=checkbox]:active:not(:disabled)~.ac-toggle-v2__toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ac-primary-color)}.ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__thumb{transform:translateX(14px)}.ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__track{background:var(--ac-primary-color)}.ac-toggle-v2__toggle input[type=checkbox]:disabled{cursor:not-allowed}.ac-toggle-v2__toggle input[type=checkbox]:disabled~.ac-toggle-v2__toggle__track{background:#ddd !important;cursor:not-allowed}.ac-toggle-v2__toggle input[type=checkbox]:disabled~.ac-toggle-v2__toggle__thumb{cursor:not-allowed}.ac-toggle-v2__toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#d8d8d8;width:36px;height:22px;border-radius:11px;transition:background .2s ease}.ac-toggle-v2__toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;left:3px;width:16px;height:16px;border-radius:50%;transition:transform .1s ease;background-color:#fff;border:5px solid #fff}.ac-toggle-v2.-small{margin-bottom:10px}.ac-toggle-v2.-small .ac-toggle-v2__toggle{transform:translateY(2px)}.ac-toggle-v2.-small .ac-toggle-v2__toggle__track{width:30px;height:18px}.ac-toggle-v2.-small .ac-toggle-v2__toggle__thumb{top:2px;left:2px;width:14px;height:14px}.ac-toggle-v2.-small .ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__thumb{transform:translateX(12px)}.ac-input-group{display:flex;margin-bottom:20px}.ac-input{padding:10px;font-size:15px;border:1px solid #979797;border-radius:3px;margin-right:3px}.ac-btn,.ac-btn-link,.ac-btn-primary{padding:10px 40px;font-size:15px;border-radius:3px;display:inline-block;cursor:pointer;text-decoration:none}.ac-btn-primary{background:#e9426e;border:1px solid #e9426e;color:#fff}.ac-btn-primary:hover,.ac-btn-primary:focus,.ac-btn-primary:active{background:#ea1951;text-decoration:none;color:#fff}.ac-btn-primary:disabled{cursor:not-allowed;opacity:.5}.ac-btn-link{border:none;background:none;padding-left:10px;padding-right:10px;color:var(--ac-link);text-decoration:underline;font-size:13px}.ac-btn-link:hover{color:var(--ac-link-hover)}input:disabled,textarea:disabled,button:disabled{cursor:not-allowed !important}.ac-ajax-loading{display:none;white-space:nowrap;position:absolute;transform:translateX(10px)}.ac-ajax-loading .spinner{visibility:visible;margin:0}.ac-ajax-loading__icon{color:var(--ac-notification-green)}.ac-ajax-loading__status{font-weight:bold;margin-left:5px}.ac-ajax-loading__icon,.ac-ajax-loading__status{display:none}.ac-ajax-loading.-active{display:inline-flex}.ac-ajax-loading.-finished .spinner{display:none}.ac-ajax-loading.-finished .ac-ajax-loading__icon,.ac-ajax-loading.-finished .ac-ajax-loading__status{display:block}.ac-settings-box{margin-bottom:60px;max-width:800px}.ac-settings-box-pro-cta p.description{font-weight:bold}.ac-pro-list{margin-bottom:20px;display:flex;flex-wrap:wrap}.ac-pro-list__item{margin-bottom:14px;position:relative;z-index:1;flex:33%}.ac-pro-list__item__label{color:#1d2327;margin-left:8px;text-decoration:dotted;border-bottom:1px dotted #000;text-decoration:none;cursor:pointer}.ac-pro-list__item__tooltip{display:none;background:#666;color:#fff;padding:15px;font-size:13px;line-height:150%}.ac-pro-list__item:hover{z-index:2}.ac-pro-list__item:hover .ac-pro-list__item__tooltip{display:block;position:absolute;left:0;top:calc(100% + 5px)}.ac-pro-list__item.-feature:before{color:var(--ac-pink-color);content:"";font:normal 16px/.5 "dashicons";speak:none;display:inline-block;padding:0;top:5px;left:0;position:relative;vertical-align:top;text-decoration:none !important}h2.ac-lined-header,h3.ac-lined-header{display:flex;font-weight:normal;font-size:20px;width:100%;align-items:center;margin-bottom:30px}h2.ac-lined-header:after,h3.ac-lined-header:after{content:"";flex:100;height:1px;background:#d8d8d8;margin-left:23px}#cpac a:focus,#cpac a:active{outline:none}.cpac-step-nav{display:flex}.cpac-step-nav__item{padding:15px 45px 15px 0;margin:0;margin-right:30px;position:relative;background:no-repeat right center url("data:image/svg+xml,%0A%3Csvg width='12px' height='50px' viewBox='0 0 12 50' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='UI-2.0' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' stroke-linecap='square'%3E%3Cg id='Welkom' transform='translate(-175.000000, -101.000000)' stroke='%231D2327'%3E%3Cg id='Menu' transform='translate(0.000000, 93.000000)'%3E%3Cg id='Group-2' transform='translate(71.000000, 8.676440)'%3E%3Cpolyline id='Line-2' points='105.170704 -1.27167289e-16 115.170704 24.0763026 105.170704 49'%3E%3C/polyline%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");font-weight:bold;color:#1d2327;font-size:13px;text-transform:uppercase;opacity:.2}.cpac-step-nav__item a{text-decoration:none;color:#1d2327}.cpac-step-nav__item.-active{opacity:1}.cpac-step-nav__item:last-child{background:none}body.settings_page_codepress-admin-columns #wpbody,body.toplevel_page_codepress-admin-columns #wpbody{padding-top:0}body.settings_page_codepress-admin-columns .notice,body.toplevel_page_codepress-admin-columns .notice{display:none}body.settings_page_codepress-admin-columns #cpac .notice:not(.hidden),body.toplevel_page_codepress-admin-columns #cpac .notice:not(.hidden){display:block}body.settings_page_codepress-admin-columns #wpcontent,body.toplevel_page_codepress-admin-columns #wpcontent{padding-left:0}body.settings_page_codepress-admin-columns .wrap,body.toplevel_page_codepress-admin-columns .wrap{padding:30px 10px 0 30px}body.settings_page_codepress-admin-columns .wrap .nav-tab-wrapper,body.toplevel_page_codepress-admin-columns .wrap .nav-tab-wrapper{margin-bottom:24px}body.settings_page_codepress-admin-columns .wrap .notice,body.toplevel_page_codepress-admin-columns .wrap .notice{margin-top:16px;margin-bottom:16px}@media only screen and (min-width: 1050px){body.settings_page_codepress-admin-columns .wrap,body.toplevel_page_codepress-admin-columns .wrap{padding:30px 40px 0}body.settings_page_codepress-admin-columns #screen-meta-links,body.toplevel_page_codepress-admin-columns #screen-meta-links{margin-right:20px}body.settings_page_codepress-admin-columns #screen-meta,body.toplevel_page_codepress-admin-columns #screen-meta{margin-left:20px;margin-right:20px}}@media only screen and (min-width: 1450px){body.settings_page_codepress-admin-columns .wrap,body.toplevel_page_codepress-admin-columns .wrap{padding:30px 70px 0}body.settings_page_codepress-admin-columns #screen-meta-links,body.toplevel_page_codepress-admin-columns #screen-meta-links{margin-right:50px}body.settings_page_codepress-admin-columns #screen-meta,body.toplevel_page_codepress-admin-columns #screen-meta{margin-left:50px;margin-right:50px}}header.cpac-header{padding:37px 32px;background:#3d4350;display:flex}@media only screen and (min-width: 1050px){header.cpac-header{padding:37px 42px}}@media only screen and (min-width: 1450px){header.cpac-header{padding:37px 72px}}.cpac-admin-nav{background:#fff;display:flex;padding:0 30px;border-bottom:1px solid #ddd}.cpac-admin-nav .cpac-nav{display:flex;margin:0;padding:0}.cpac-admin-nav .cpac-nav__item{flex:0 0 auto;padding:0;margin:0;margin-right:40px}.cpac-admin-nav .cpac-nav__item.-active a{border-bottom:4px solid #333;font-weight:bold}.cpac-admin-nav .cpac-nav__item.-active a:hover,.cpac-admin-nav .cpac-nav__item.-active a:focus{color:#333}.cpac-admin-nav .cpac-nav__item.-pro a{color:var(--ac-pink-color)}.cpac-admin-nav .cpac-nav__item.-pro a:hover,.cpac-admin-nav .cpac-nav__item.-pro a:focus{color:var(--ac-pink-color)}.cpac-admin-nav .cpac-nav__item.-pro a img{margin-left:4px}.cpac-admin-nav .cpac-nav__item a{display:inline-block;padding:30px 0 10px 0;text-transform:uppercase;text-decoration:none;border-bottom:4px solid #fff;color:#333}.cpac-admin-nav .cpac-nav__item a:hover,.cpac-admin-nav .cpac-nav__item a:focus{box-shadow:none;outline:none !important;color:var(--ac-primary-color)}@media only screen and (min-width: 1050px){.cpac-admin-nav{padding:0 40px}}@media only screen and (min-width: 1450px){.cpac-admin-nav{padding:0 70px}}.ac-message{background:#fff;padding:1px 12px;border:1px solid #ccd0d4;border-left-width:4px;margin-bottom:15px}.ac-message p{margin:.7em 0}.ac-message.notice-warning{border-left-color:var(--ac-notification-yellow)}.ac-message.notice-error{border-left-color:var(--ac-notification-red)}.ac-message.notice-info{border-left:4px solid var(--ac-notification-blue)}.ac-message .dashicons{color:#8d8d8d;margin-right:5px;transform:translateY(-2px)}.ac-badge{display:inline-block;background:var(--ac-notification-orange);border-radius:10px;font-size:9px;line-height:17px;padding:0 6px;margin:-2px 0 0 4px;vertical-align:middle;color:#fff;font-weight:600}a.external:after{content:"";display:inline-block;margin-left:4px;font-size:17px;color:#797979;line-height:1;font-family:dashicons,serif;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;text-align:center}span.dashicons.flip:before{transform:scale(-1, 1);display:inline-block}span.dashicons.yellow{color:var(--ac-notification-yellow)}span.dashicons.orange{color:var(--ac-notification-orange)}span.dashicons.red{color:#dc3232}span.dashicons.green{color:#46b450}span.dashicons.light-gray{color:#bbb}span.dashicons.gray{color:#8a8a8a}span.dashicons.blue{color:#0073aa}span.dashicons.light-blue{color:#00a0d2}.button.loading{padding-right:25px;position:relative}.wp-core-ui .button-primary.-pink{background:#e9426e;border-color:#e73463}div.menu{position:relative;padding:0;margin-top:16px;margin-bottom:16px}div.menu select{display:inline-block;margin:0}div.menu .spinner{display:none;float:none;visibility:visible;margin:0 0 0 14px}div.menu .view-link,div.menu .view-link:active{display:inline-block;margin:0 0 0 12px;top:2px}table.ac-form-table{max-width:1100px;margin-top:20px}table.ac-form-table>tbody>tr>td,table.ac-form-table>tbody>tr>th{vertical-align:top}table.ac-form-table.settings tr th{font-weight:normal}table.ac-form-table.settings tr th h2{margin:0}table.ac-form-table.settings tr td{padding-top:58px}table.ac-form-table .general form div.checkbox-labels{margin-bottom:6px}table.ac-form-table .general form p.save-button{margin-top:10px}.ac-section-group.-start{max-width:600px}.ac-section{background:#f5f5f5;margin-bottom:28px;box-shadow:0 1px 3px rgba(0,0,0,.1)}.ac-section__header{background:#fff;padding:13px 14px;border-bottom:1px solid var(--ac-border-grey);position:relative}.ac-section__header__title{font-size:15px;margin:0;font-weight:bold}.ac-section__body{padding:16px 16px}.ac-section p{margin:0 0 1em 0;max-width:800px}.ac-section.-closable .ac-section__header{padding-right:30px;cursor:pointer}.ac-section.-closable .ac-section__header:after{content:"";position:absolute;right:20px;top:50%;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:6px solid #000;transition:all .2s;margin-top:-4px}.ac-section.-closable.-closed .ac-section__header:after{transform:rotate(180deg)}.ac-section.-closable.-closed .ac-section__body{display:none}.ac-general-setting-row{margin-bottom:30px}.ac-general-setting-row .ac-ajax-loading{position:relative}.ac-general-setting-row .ac-toggle-v2 .ac-ajax-loading{position:absolute}.ac-general-setting-row p{margin-top:5px}.ac-general-setting-row__layout{display:flex;align-items:center} diff --git a/assets/css/admin-page-columns.css b/assets/css/admin-page-columns.css index d8ee439d0..9b01ee46e 100644 --- a/assets/css/admin-page-columns.css +++ b/assets/css/admin-page-columns.css @@ -1 +1 @@ -@font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=955237") format("woff2"),url("../fonts/cpac_icons.woff?v=928084") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^=cpacicon-],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-delete::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-duplicate::before{content:""}.cpacicon-filter::before{content:""}.cpacicon-more::before{content:""}.cpacicon-move::before{content:""}.cpacicon-rename::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}.ac-setbox{-webkit-font-smoothing:antialiased;margin-top:30px}.ac-setbox__descriptive{color:#636669;font-size:13px;line-height:17px}.ac-setbox__header{padding:10px;position:relative;cursor:pointer}.ac-setbox__header__title{font-size:15px;font-weight:bold}.ac-setbox__header__title small{font-size:14px;font-weight:300;color:#72777c}.ac-setbox__header:after{content:"";position:absolute;right:20px;top:50%;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:6px solid #000;transition:all .2s;margin-top:-4px}.ac-setbox__row{background:#fff}.ac-setbox__row__th,.ac-setbox__row__fields{border-bottom:1px solid var(--ac-border-grey)}.ac-setbox__row__th{background:#f5f5f5;position:relative;padding:12px 13px;padding-top:15px;border-right:1px solid var(--ac-border-grey)}.ac-setbox__row__th label{display:block;font-weight:bold;margin-bottom:5px}.ac-setbox__row__th small{color:#636669;font-size:13px;line-height:17px}.ac-setbox__row__fields{flex:auto}.ac-setbox__row__fields.-has-subsettings{display:flex;flex-direction:column}.ac-setbox__row__fields__inner{padding:15px}.ac-setbox__row__fields__inner>*:last-child{margin-bottom:0}.ac-setbox__row__fields select{width:100%;margin-bottom:10px}.ac-setbox__row a.ac-pointer.instructions{position:absolute;top:14px;right:10px;display:inline-block;cursor:pointer}@media screen and (min-width: 900px){.ac-setbox__row{display:flex}.ac-setbox__row__th{flex:0 0 230px}.ac-setbox__row__fields{flex:auto}.ac-setbox__row.-sub{display:block}.ac-setbox__row.-sub .ac-setbox__row__th,.ac-setbox__row.-sub .ac-setbox__row__fields{flex:100%}}@media screen and (min-width: 1150px){.ac-setbox__row.-sub{display:flex}.ac-setbox__row.-sub .ac-setbox__row__th,.ac-setbox__row.-sub .ac-setbox__row__fields{flex:100%}}.ac-setbox .checkbox-labels>label,.ac-setbox .radio-labels>label{padding-right:10px;vertical-align:top}.ac-setbox .checkbox-labels.vertical input[type=radio],.ac-setbox .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-setbox .checkbox-labels.vertical>label,.ac-setbox .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-setbox.-closed .ac-setbox__header:after{transform:rotate(180deg)}.ac-setbox.-closed .ac-setbox__row{display:none}.ac-setbox .select2-search__field{width:100% !important}.ac-ls-settings .select2{margin-bottom:10px}.ac-ls-settings .select2 input{min-height:0}.ac-ls-settings .select2 li{margin-bottom:0}.ac-ls-settings .row.users .select2{margin-bottom:0}.ac-ls-settings select.sorting_order{margin-bottom:0}.ac-ls-settings-mockup{position:relative}.ac-ls-settings-mockup .ac-setbox__row__fields{filter:blur(1.5px)}.ac-unlock-modal{background:#fff;border:1px solid #d0cece;box-shadow:0 0 19px 0 rgba(0,0,0,.44);position:absolute;right:calc(30% - 100px);top:50%;margin-top:-20px;border-radius:4px;padding:12px;z-index:2}.ac-unlock-modal span{margin-right:5px;color:var(--ac-pink-color);transform:translateY(4px)}.ac-unlock-modal .-pink{margin-left:10px;padding-left:20px;padding-right:20px}@keyframes deal_blur{0%,60%{filter:grayscale(0)}30%{filter:grayscale(0.2)}}.ui-sortable-helper{-webkit-box-shadow:1px 3px 6px 0 rgba(1,1,1,.4);box-shadow:1px 3px 6px 0 rgba(1,1,1,.4)}.ui-sortable-helper .column-meta{border-width:1px}.ac-column span.select2-container{z-index:1}.ac-column .comment-grey-bubble{height:16px;width:16px}.ac-column .comment-grey-bubble:before{content:"";font:normal 20px/.5 "dashicons";speak:none;display:inline-block;padding:0;top:5px;left:0;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none !important}.rtl .ac-column .comment-grey-bubble:before{right:0;left:auto}#add-new-column-template{display:none}.ac-admin{max-width:1400px}.ac-admin__wrap{display:flex;flex-direction:column-reverse}@media only screen and (min-width: 1200px){.ac-admin__wrap{flex-direction:row-reverse}.ac-admin__wrap .ac-admin__main{flex:1 1 auto}.ac-admin__wrap .ac-admin__sidebar{flex:0 0 280px;margin-left:20px}.rtl .ac-admin__wrap .ac-admin__sidebar{flex:0 0 280px;margin-left:0;margin-right:20px}}@media only screen and (min-width: 1500px){.ac-admin__wrap .ac-admin__sidebar{flex:0 0 340px}}.ac-admin__main .column-footer a.add_column{padding-left:16px;padding-right:16px;text-align:center}.ac-admin__main .column-footer a.submit.save,.ac-admin__main .column-footer a.submit.update{padding-left:20px;padding-right:20px;text-align:center}.ac-admin__main .column-footer .submit.save{display:inline-block}.ac-admin__main .column-footer .submit.update{display:none}.ac-admin__main .column-footer .spinner{display:none}.ac-admin.saving .spinner{visibility:visible}.ac-admin.saving .column-footer .spinner{margin:4px 0 0;background-position:center center;float:none;display:inline-block;visibility:visible}.ac-admin.stored .ac-admin__sidebar .form-actions .submit.save{display:none}.ac-admin.stored .ac-admin__sidebar .form-actions .submit.update{display:block}.ac-admin.stored .ac-admin__sidebar .form-actions .form-reset{display:block}.ac-admin.stored .column-footer .submit.save{display:none}.ac-admin.stored .column-footer .submit.update{display:inline-block}.ac-admin.show-list-screen-type .ac-admin__sidebar .sidebox.form-actions small.list-screen-type,.ac-admin.show-list-screen-id .ac-admin__sidebar .sidebox.form-actions small.list-screen-id{display:block}.ac-admin.show-list-screen-id .layouts__item__title small.layouts__item__id{display:inline}.ac-admin__main .ac-notice{background:#fff;border-left:4px solid var(--ac-notification-yellow);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin-bottom:15px;padding:1px 12px}.ac-admin__main .ajax-message{display:none}.ac-admin__main .ac-message{margin-top:0 !important}.ac-admin__main .ac-message p{min-height:1px;overflow:hidden}.ac-admin__main .ac-message>.dashicons{float:left;margin-top:6px;color:#b7b7b7;margin-right:5px}.ac-admin__main .ac-message.notice-info{border-left:4px solid var(--ac-notification-blue)}.ac-admin__main .ac-boxes{box-shadow:0 1px 3px rgba(0,0,0,.1)}.ac-admin__main .ac-boxes.show-column-id div.ac-column-header table tr td.column_label .inner small.column-id{display:inline}.ac-admin__main .ac-boxes.show-column-type div.ac-column-header table tr td.column_label .inner small.column-type{display:inline}.ac-column a{cursor:pointer}.ac-column a:focus,.ac-column a:active{box-shadow:none}.ac-column.loading .ac-column-body>.spinner{position:absolute;left:50%;top:50%;z-index:200;margin-left:-10px;margin-top:-10px;display:block}.ac-column.loading .ac-column-body:before{content:"";position:absolute;width:100%;height:100%;background:#fff;z-index:100;opacity:.5}.ac-column.opened{margin-bottom:-1px}.ac-column.opened .ac-column-header{background-color:#eaeaea;border-color:#ccc}.ac-column.opened .ac-column-header:hover .column_label .inner>a.close-button{display:inline-block}.ac-column.opened .ac-column-header .column_edit:after{content:""}.ac-column.opened .ac-column-header table td{border-color:var(--ac-border-grey);color:#333;text-shadow:0 1px 0 #fff}.ac-column.opened .ac-column-header table td a{color:#333;text-shadow:0 1px 0 #fff}.ac-column.opened .ac-column-header table td.column_sort span{color:#9b9b9b}.ac-column.opened .ac-column-header table td.column_label .meta span{color:#8d8d8d;text-shadow:none}.ac-column.opened .ac-column-header table td.column_label a.edit-button{display:none}.ac-column.opened .ac-column-header table td.column_type{color:#5c5c5c}.ac-column.opened .ac-column-header table td.column_edit:after{color:#9b9b9b}.ac-column.opened .ac-column-body{border:1px solid #ccc;border-top:1px solid #d4d4d4}.ac-column.disabled,.boxes.disabled .ac-column{opacity:.7}.ac-column.disabled a.remove-button,.ac-column.disabled a.clone-button,.ac-column.disabled .column_action,.boxes.disabled .ac-column a.remove-button,.boxes.disabled .ac-column a.clone-button,.boxes.disabled .ac-column .column_action{display:none !important}.ac-column.disabled .column-meta td.column_sort,.boxes.disabled .ac-column .column-meta td.column_sort{display:none}.ac-column.disabled .column-meta td.column_label,.boxes.disabled .ac-column .column-meta td.column_label{padding-left:10px}.ac-column.disabled .meta span,.boxes.disabled .ac-column .meta span{cursor:default !important;opacity:.45}.ac-column.disabled .meta span:before,.boxes.disabled .ac-column .meta span:before{color:gray !important}.ac-column.disabled .meta span.on,.boxes.disabled .ac-column .meta span.on{opacity:1}.ac-column.disabled .column-footer,.boxes.disabled .ac-column .column-footer{display:none}.ac-column.disabled .ac-column__header__features,.boxes.disabled .ac-column .ac-column__header__features{cursor:not-allowed}.ac-column.disabled .ac-column__header__features span.ac-column-heading-setting,.boxes.disabled .ac-column .ac-column__header__features span.ac-column-heading-setting{pointer-events:none}.ac-column.disabled .ac-column-body:before,.boxes.disabled .ac-column .ac-column-body:before{content:"";position:absolute;width:100%;height:100%;background:#fff;z-index:100;opacity:.3;cursor:not-allowed}.ac-column-setting{width:100%;clear:both;border-spacing:0;margin:0;border-top:1px solid var(--ac-border-grey)}.ac-column-setting:first-child{border-top:0}.ac-column-setting tr.hide{display:none}.ac-column-setting tr td{vertical-align:top;border:none;padding:0;background:#fff}.ac-column-setting td.col-label{position:relative;line-height:24px;overflow:visible;background:#f5f5f5;border-right:1px solid var(--ac-border-grey);width:30%;padding:10px;padding-left:12px}.ac-column-setting td.col-label .ac-pointer{position:absolute;right:4px;top:10px;padding:4px;height:17px}.ac-column-setting td.col-label a.more-link{text-decoration:none;color:#d2d2d2;position:absolute;right:8px;top:17px}.ac-column-setting td.col-label a.more-link span.dashicons{font-size:17px}.ac-column-setting td.col-label a.more-link:hover{color:#acacac}.ac-column-setting td.col-label span.label{font-weight:bold;display:inline-block;color:#333;font-style:normal}.ac-column-setting td.col-label div.tooltip{font-size:12px;font-style:normal;line-height:16px;margin:0 !important;display:none;position:absolute;max-width:200px;z-index:99;top:40px;left:0;font-weight:normal;color:#fff;background-color:#333;box-shadow:0 1px 3px rgba(0,0,0,.2);padding:.618em 1em;border-radius:3px}.ac-column-setting td.col-label div.tooltip em{margin-top:3px;display:block;color:#999}.ac-column-setting td.col-input div.msg{margin-top:5px;display:none;color:#333;padding:6px 10px;background-color:#ffebe8;border:1px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.ac-column-setting td.col-input div.msg p{margin:.5em 0 1em 0}.ac-column-setting td.col-input div.msg a.button{margin-bottom:1em}.ac-column-setting td.col-input .help-msg{margin:10px 0 0;color:#666;font-size:13px}.ac-column-setting .ac-column-setting td.col_label{background-color:#fcfcfc}.ac-column-setting .ac-column-setting td.col_label .label{font-size:12px;color:#595959}.ac-column-setting span.ac-setting-error{display:block;margin:0;background-color:#ffebe8;padding:7px 10px}.ac-column-setting-actions .col-settings p{padding-left:10px}.ac-column-setting-actions .col-settings a{text-decoration:none}.ac-column-setting-actions .col-settings a.close-button,.ac-column-setting-actions .col-settings a.clone-button{margin-right:10px}.ac-column-setting-actions .col-settings a.remove-button{color:#a00;text-decoration:none;text-shadow:none;margin-right:5px}.ac-column-setting-actions .col-settings a.remove-button:hover{color:red}.ac-column .ac-setting-input{padding:10px;line-height:24px}.ac-column .ac-setting-input .ac-toggle-v2{margin-bottom:0}.ac-column .ac-setting-input .ac-toggle-v2 .ac-toggle-v2__label{display:inline-block;transform:translateY(-3px)}.ac-column .ac-setting-input input[type=text],.ac-column .ac-setting-input select{width:99.95%;max-width:none}.ac-column .ac-setting-input input[type=checkbox],.ac-column .ac-setting-input input[type=radio]{margin-right:4px}.ac-column .ac-setting-input__info{margin-left:5px;transform:translateY(2px)}.ac-column .ac-setting-input .checkbox-labels>label,.ac-column .ac-setting-input .radio-labels>label{padding-right:10px;vertical-align:top}.ac-column .ac-setting-input .checkbox-labels.vertical input[type=radio],.ac-column .ac-setting-input .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-column .ac-setting-input .checkbox-labels.vertical>label,.ac-column .ac-setting-input .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-column .ac-setting-input .ac-pointer{color:#8d8d8d;display:inline-block;transform:translateY(2px)}.ac-column .ac-setting-input__icon{display:inline-block;margin-right:10px}.ac-column .ac-setting-input__icon.-warning{transform:translateY(3px)}.ac-column .ac-setting-input__icon+*{display:inline-block}.ac-setting-input-date .ac-setting-input-date__custom{display:inline-block;width:71px !important;margin-right:5px}.ac-setting-input-date .ac-setting-input-date__value{display:inline-block;width:165px}.ac-setting-input-date .ac-setting-input-date__example{margin-left:8px}.ac-setting-input-date .ac-setting-input-date__example .spinner{float:none;vertical-align:top}.ac-setting-input-date code{display:inline-block;min-width:60px;padding-top:0;padding-bottom:0;text-align:center}.ac-setting-input-width{position:relative}.ac-setting-input-width div.description{font-size:12px;width:72px;position:absolute;display:table}.ac-setting-input-width div.description input{margin:0;text-align:right;vertical-align:middle;display:table-cell;padding-left:4px;padding-right:4px;border-color:#7e8993;border-top-right-radius:0;border-bottom-right-radius:0}.ac-setting-input-width div.description input::-webkit-input-placeholder{font-size:13px}.ac-setting-input-width div.description input:-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input::-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input:-ms-input-placeholder{font-size:13px}.ac-setting-input-width div.description span{background:#efefef;display:table-cell;width:26px;line-height:23px;text-align:center;vertical-align:middle;border:1px solid #7e8993;border-left:none;color:#505050;border-top-right-radius:4px;border-bottom-right-radius:4px}.ac-setting-input-width div.width-slider{margin-left:82px;margin-right:88px;position:relative;top:8px}.ac-setting-input-width div.width-slider .ui-slider-handle{cursor:ew-resize;z-index:1}.ac-setting-input-width div.unit-select{position:absolute;top:11px;right:6px;width:82px;text-align:right}.ac-setting-input-width div.unit-select .radio-labels{padding:0}.ac-setting-input-width div.unit-select .radio-labels label{padding:0;margin-right:6px}.ac-setting-input-width div.unit-select .radio-labels label input{margin-right:2px}.ac-column-setting--pro .col-label .dashicons{color:#a99d9f;transform:scale(0.9, 0.9);margin-top:2px;display:inline-block;margin-right:3px;cursor:pointer}.ac-column-setting--pro td.col-input{background:#f5f5f5}.ac-column-setting--pro .radio-labels{display:inline-block}.ac-column-setting--pro .radio-labels input{background-color:#f0f0f0}.ac-column-setting--pro .radio-labels input:checked:before{background-color:gray}.ac-column-setting--pro .ac-setting-input{background:#f5f5f5}.ac-column-setting--pro .acp-button{background:#e9426e;color:#fff;border:none;border-radius:3px;padding:3px 10px;letter-spacing:2px;cursor:pointer;font-size:13px;vertical-align:middle;margin-top:-1px;margin-left:5px}div.ac-column-header{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}div.ac-column-header:nth-child(2n) .column-meta{background:#f9f9f9}div.ac-column-header img{margin-right:3px}div.ac-column-header table.widefat{border:none}div.ac-column-header table{border:none;background:rgba(0,0,0,0);border-radius:0}div.ac-column-header table tr td{vertical-align:top;height:18px;padding:12px 8px;border-width:1px 0 0;border-style:solid;border-color:rgba(0,0,0,0)}div.ac-column-header table tr:hover td.column_sort span{color:#9b9b9b}div.ac-column-header:hover .column_label .inner>a.remove-button,div.ac-column-header:hover .column_label .inner>a.edit-button,div.ac-column-header:hover .column_label .inner>a.clone-button{display:inline-block}div.ac-column-header span.vers{padding-top:2px}.ac-column-body{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.column-footer{background:#eaf2fa;border:1px solid #c7d7e2;min-height:26px;padding:8px;overflow:hidden}.column-footer .order-message{color:#7a9bbe;float:left;font-family:Comic Sans MS,sans-serif;font-size:11px;height:13px;position:relative;line-height:1em;margin-left:4px;padding:7px 0 0 22px;text-shadow:0 1px 0 #fff;display:inline-block}.column-footer .order-message__icon{display:inline-block;position:absolute;left:0;top:0}.column-footer .button-container{float:right;display:inline-block;min-height:29px}.column-footer .button-container a{display:inline-block;margin-left:5px;vertical-align:top}.column-footer .button-container a.clear-columns{color:var(--ac-notification-red);text-decoration:none;margin-right:8px;margin-top:5px}.column-footer .button-container a.clear-columns:hover{opacity:.9}.ac-admin__sidebar .sidebox{background:none repeat scroll 0 0 #fff;border:1px solid var(--ac-border-grey);border-radius:0 0 0 0;box-shadow:0 1px 3px rgba(0,0,0,.1);position:relative;margin-bottom:14px}.ac-admin__sidebar .sidebox h3{padding:10px;margin:0;position:relative}.ac-admin__sidebar .sidebox h3.title{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:15px;font-weight:normal;line-height:1;margin:0;padding:7px 10px;background:#f1f1f1;background-image:linear-gradient(to top, #ececec, #f9f9f9);border-bottom-color:var(--ac-border-grey);text-shadow:#fff 0 1px 0;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.ac-admin__sidebar .sidebox h3 span.left{position:relative;background:#fff;z-index:2;padding-right:8px;float:none}.ac-admin__sidebar .sidebox h3 span.contenttype{display:block;line-height:20px;font-size:12px;text-transform:uppercase;color:gray;margin-top:4px;max-width:250px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ac-admin__sidebar .sidebox h3 span.contenttype.right{position:absolute;display:inline-block;z-index:1;right:10px;text-align:right;margin-top:0}.ac-admin__sidebar .sidebox .inside{padding:10px}.ac-admin__sidebar .sidebox .inside p{margin-top:0}.ac-admin__sidebar .sidebox.form-actions small.list-screen-id,.ac-admin__sidebar .sidebox.form-actions small.list-screen-type{display:none;line-height:25px}.ac-admin__sidebar .sidebox.form-actions .form-reset{display:none;border-bottom:1px solid var(--ac-border-grey);padding:8px}.ac-admin__sidebar .sidebox.form-actions .reset-column-type{text-decoration:none;color:var(--ac-notification-red);line-height:25px;display:inline-block;background:none;border:none;padding:0;font-size:13px;cursor:pointer;margin:0}.ac-admin__sidebar .sidebox.form-actions .reset-column-type:hover{opacity:.9}.ac-admin__sidebar .sidebox.form-actions .form-update{padding:8px;overflow:hidden}.ac-admin__sidebar .sidebox.form-actions .submit{display:none;width:100%;height:28px;line-height:28px;text-align:center}.ac-admin__sidebar .sidebox.form-actions .submit.save{display:block}.ac-admin__sidebar .sidebox#direct-feedback #feedback-support,.ac-admin__sidebar .sidebox#direct-feedback #feedback-rate{display:none}.ac-admin__sidebar .sidebox#direct-feedback .inside>a{border-radius:4px;border:1px solid var(--ac-border-grey);width:48%;height:64px;text-align:center;line-height:64px;font-weight:bold;color:#222;display:inline-block;text-decoration:none}.ac-admin__sidebar .sidebox#direct-feedback .inside>a:hover{background:#fafafa}.ac-admin__sidebar .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.ac-admin__sidebar .sidebox#direct-feedback .inside form input[type=submit]{display:inline-block;float:right;border-radius:4px;border:1px solid var(--ac-border-grey);height:32px;text-align:center;line-height:32px;font-weight:bold;font-size:12px;padding:0 32px;color:#ccc;background:none;text-decoration:none;cursor:pointer}.ac-admin__sidebar .sidebox#direct-feedback .inside form input[type=submit]:hover{background:#fafafa}.ac-admin__sidebar .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.ac-admin__sidebar .sidebox#direct-feedback .inside ul{margin:0}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li{margin:0;display:block;float:left;margin-left:9px;width:30%}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li a{text-decoration:none;vertical-align:middle;line-height:20px;padding:16px 0;width:100%;text-align:center;border:1px solid var(--ac-border-grey);border-radius:4px;display:block}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li a:hover{background:#fafafa}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.ac-admin__sidebar .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}#ac-pro-version{background:none}#ac-pro-version .padding-box{padding:20px 10px 10px;background:#3d4350;color:#fff}#ac-pro-version .nopadding{margin:0;padding:0}#ac-pro-version h2{color:#fff}#ac-pro-version h3{font-size:34px;line-height:40px}#ac-pro-version h3 a{text-decoration:none;color:#fff}#ac-pro-version h3 a span{color:#e9426e}#ac-pro-version sup{text-decoration:line-through;font-size:13px;color:#ccc}#ac-pro-version .ac-pro-prices{margin:8px 0 0;font-style:italic}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px;cursor:pointer}#ac-pro-version .more{color:#ffee85;text-decoration:none}#ac-pro-version .more:hover{text-decoration:underline}#ac-pro-version p.center{text-align:center}#ac-pro-version p.nomargin{margin-bottom:0}#ac-pro-version ul.features a:hover{text-decoration:underline}#ac-pro-version ul li{padding-bottom:3px}#ac-pro-version ul li a{color:#fff;text-decoration:none;padding-left:25px;position:relative;display:block}#ac-pro-version ul li a:before{content:"✓";font-weight:bold;font-size:16px;position:absolute;left:0;top:0}#ac-pro-version ul li.acp-integration{padding:0;min-height:23px;line-height:23px}#ac-pro-version ul li.acp-integration img{height:23px;display:inline-block;vertical-align:middle;margin-right:3px}#ac-pro-version ul li.acp-integration img.ac-addon-pods{margin-top:-4px}#ac-pro-version ul li.acp-integration img.ac-addon-types{height:18px}#ac-pro-version ul li.acp-integration img.cac-addon-acf{margin-top:-4px;height:15px}#ac-pro-version ul li.acp-integration a{color:#ffee85}#ac-pro-version ul li.acp-integration a:before{content:"+"}#ac-pro-version .padding-box.ac-pro-deal{backface-visibility:hidden;transform:translateZ(0);color:#3d4350;padding-bottom:20px;text-align:center;background:#ffef8f;animation:deal_blur 2s ease 0s infinite}#ac-pro-version .padding-box.ac-pro-deal h3{font-size:20px;line-height:26px;padding-top:0;padding-bottom:0;margin-bottom:18px}#ac-pro-version .padding-box.ac-pro-deal a.acp-button{font-size:16px}#ac-pro-version .padding-box.ac-pro-newsletter{background:#fff;color:#3d4350}#ac-pro-version .padding-box.ac-pro-newsletter h3{font-size:20px;padding-bottom:0}#ac-pro-version .padding-box.ac-pro-newsletter input{width:100%;margin-bottom:8px}#ac-pro-version .padding-box.ac-pro-newsletter .acp-button{margin-top:12px;margin-bottom:0;padding:7px 20px}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px}.ac-column-setting--label .ac-setting-input__container{position:relative}.ac-column-setting--label .ac-setting-input__container input{height:28px;line-height:28px;padding-right:34px}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon{background:#fff;position:absolute;top:4px;height:22px;color:#ccc;right:0;border:none;cursor:pointer;outline:none !important;transition:color .1s}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:hover,.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:focus{color:#999}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:active{color:var(--ac-primary-color)}.ac-ipicker__modal{background:#fff;max-width:90%;width:770px;height:450px;display:flex;padding:20px}.ac-ipicker.fixed{position:fixed;z-index:99999;background:rgba(0,0,0,.8);display:flex;top:0;right:0;bottom:0;left:0;height:auto;align-items:center;justify-content:center}.ac-ipicker__icons{flex:1 1 auto}.ac-ipicker__icons__group__title{display:block;clear:both;padding-top:15px;margin-top:20px;margin-bottom:10px;font-size:16px;font-weight:normal}.ac-ipicker__icons__group__title:first-child{border-top:none;padding-top:0;margin-top:0}.ac-ipicker__icon{display:inline-block;width:49px;height:49px;text-align:center;white-space:nowrap;cursor:pointer}.ac-ipicker__icon .dashicons{width:49px;height:49px;line-height:49px;font-size:28px}.ac-ipicker__icon:hover,.ac-ipicker__icon:focus{color:var(--ac-primary-color)}.ac-ipicker__icon.active{background:var(--ac-primary-color);color:#fff}.ac-ipicker__handles{flex:0 0 100px;text-align:center;padding-top:20px}.ac-modal.-pro .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:.5px;margin-bottom:10px}.ac-modal.-pro .ac-modal__dialog__list li:before{content:"";font-family:Dashicons,sans-serif;position:absolute;left:0;top:0;color:#3d4350}.ac-modal.-pro .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}.ac-modal.-pro .ac-modal__dialog__mascot{position:absolute;right:20px;bottom:20px;width:150px;height:225px;z-index:4}.ac-modal.-pro .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}.ac-modal.-pro .ac-modal__dialog__footer span{display:inline-block;margin-top:4px;margin-left:10px;font-size:14px}.ac-modal.-setting .ac-modal__dialog{width:970px}.ac-modal.-setting .ac-modal__dialog__content{max-height:400px}.ac-modal.-setting .ac-modal__dialog__footer{text-align:right;padding:0 15px}.ac-modal.-setting .ac-modal__dialog__footer input[type=search]{float:left;margin-top:18px;width:200px}.ac-modal.-setting .ac-modal__dialog__footer .button{display:inline-block;vertical-align:middle;padding-left:30px;padding-right:30px}.ac-modal.-setting .ac-modal__dialog__footer .ac-ipicker__selection{display:inline-block;vertical-align:middle;text-align:center;width:68px;height:68px;line-height:58px;background:#e5e5e5;margin-right:15px;color:#404040}.ac-modal.-setting .ac-modal__dialog__footer .ac-ipicker__selection .dashicons{width:68px;height:68px;line-height:68px;font-size:30px}.ac-modal.-iconpicker .ac-modal__dialog__content{overflow:hidden;overflow-y:scroll}.select2-container--acs2{z-index:2}.select2-container--acs2 .select2-dropdown.-customfields .select2-results>.select2-results__options{max-height:600px}@keyframes loading_text{0%{background-position:-100%}100%{background-position:100%}}.ac-loading-msg-wrapper{position:fixed;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center}.ac-loading-msg{display:inline-block;text-align:center;max-width:300px}.ac-loading-msg__logo{width:228px;text-align:center;margin-bottom:15px}.ac-loading-msg__content{position:relative;font-family:sans-serif;text-transform:uppercase;font-size:1.3em;letter-spacing:4px;overflow:hidden;color:#999;font-weight:300;background-repeat:no-repeat;background-size:60%}.ac-notice.visit-ls{display:none}.ac-setbox .select2-container .select2-search--inline .select2-search__field{margin-top:0 !important}.ac-column__header{background:#fafafa;display:flex;border:1px solid var(--ac-border-grey);border-bottom:0}.ac-column__header__move{font-size:13px;padding:10px 13px;cursor:move;display:flex;align-items:center}.ac-column__header__move span{visibility:hidden}.ac-column__header:hover .ac-column__header__move span{visibility:visible}.ac-column__header__label{display:flex;align-items:center;flex-grow:1}.ac-column__header__label__link{color:#5a5a5a;font-weight:bold;margin-right:15px}.ac-column__header__label__link:hover{color:#333}.ac-column__header__actions{opacity:0}.ac-column__header__actions a{font-size:12px;margin-left:5px}.ac-column__header__actions a.remove-button{color:var(--ac-notification-red)}.ac-column__header__actions a.remove-button:hover{opacity:.9}.ac-column__header__actions a.close-button{display:none}.ac-column-opened .ac-column__header__actions a.close-button{display:block}.ac-column-opened .ac-column__header__actions a.edit-button{display:none}.ac-column__header__info small{display:none;margin-right:3px}.show-column-id .ac-column__header__info .column-id{display:inline}.show-column-type .ac-column__header__info .column-type{display:inline}.ac-column__header:hover .ac-column__header__actions{opacity:1}.ac-column__header__features{display:flex;align-items:center;width:180px;position:relative}@media screen and (max-width: 700px){.ac-column__header__features{display:none}}.ac-column__header__features .ac-column-heading-setting{color:#b2b2b2;font-size:14px}.ac-column__header__features .ac-column-heading-setting.-width{color:#737373;font-size:12px;position:absolute;right:150px}.ac-column__header__features .ac-column-indicator{width:25px;font-size:22px;text-align:center;position:absolute;cursor:pointer}.ac-column__header__features .ac-column-indicator.on{color:var(--ac-primary-color)}.ac-column__header__features .ac-column-indicator.-export{font-size:14px;transform:translateY(3px)}.ac-column__header__features .ac-column-indicator.-edit{transform:translateY(-2px)}.ac-column__header__features .ac-column-indicator.-search{font-size:17px}.ac-column__header__features .ac-column-indicator.-filter{right:0px}.ac-column__header__features .ac-column-indicator.-search{right:25px}.ac-column__header__features .ac-column-indicator.-bulk_edit{right:50px}.ac-column__header__features .ac-column-indicator.-edit{right:75px}.ac-column__header__features .ac-column-indicator.-sort{right:100px}.ac-column__header__features .ac-column-indicator.-export{right:125px}.ac-column__header__type{display:flex;align-items:center;justify-content:right;color:#999}.ac-column__header__type span{text-align:right;width:150px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}@media screen and (max-width: 700px){.ac-column__header__type span{width:200px}}.ac-column__header__arrow{color:#bdbdbd;padding:15px;margin-left:auto;flex:0 0 20px;transform-origin:center}.ac-column.opened .ac-column__header{background:#eaeaea;border-color:#ccc}.ac-column.opened .ac-column__header .ac-column__header__actions .edit-button{display:none}.ac-column.opened .ac-column__header .ac-column__header__actions .close-button{display:inline}.ac-column.opened .ac-column__header .ac-column__header__features .ac-column-indicator:not(.on){color:#8d8d8d}.ac-column.opened .ac-column__header .ac-column__header__type{color:#5c5c5c}.ac-column.opened .ac-column__header .ac-column__header__arrow{transform:rotate(180deg);color:#5c5c5c}.ac-column.loading .ac-column__header{position:relative;background:#eee;filter:grayscale(80);cursor:not-allowed}.ac-column.loading .ac-column__header:after{content:"";position:absolute;left:0;top:0;right:0;bottom:0;background:#eee;opacity:.2}.ac-column-type-icon{margin-top:-1px;float:left;width:20px;height:20px;margin-right:5px}#listscreen_settings.-disabled .ac-column__header__move{cursor:default !important}#listscreen_settings.-disabled .ac-column__header__move span{visibility:hidden !important} +@font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=569879") format("woff2"),url("../fonts/cpac_icons.woff?v=134916") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^=cpacicon-],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-delete::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-duplicate::before{content:""}.cpacicon-filter::before{content:""}.cpacicon-more::before{content:""}.cpacicon-move::before{content:""}.cpacicon-rename::before{content:""}.cpacicon-reset-password::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}.cpacicon-text-clip::before{content:""}.cpacicon-text-wrap::before{content:""}.cpacicon-user-switch::before{content:""}.ac-setbox{-webkit-font-smoothing:antialiased;margin-top:30px}.ac-setbox__descriptive{color:#636669;font-size:13px;line-height:17px}.ac-setbox__header{padding:10px;position:relative;cursor:pointer}.ac-setbox__header__title{font-size:15px;font-weight:bold}.ac-setbox__header__title small{font-size:14px;font-weight:300;color:#72777c}.ac-setbox__header:after{content:"";position:absolute;right:20px;top:50%;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:6px solid #000;transition:all .2s;margin-top:-4px}.ac-setbox__row{background:#fff}.ac-setbox__row__th,.ac-setbox__row__fields{border-bottom:1px solid var(--ac-border-grey)}.ac-setbox__row__th{background:#f5f5f5;position:relative;padding:12px 13px;padding-top:15px;border-right:1px solid var(--ac-border-grey)}.ac-setbox__row__th label{display:block;font-weight:bold;margin-bottom:5px}.ac-setbox__row__th small{color:#636669;font-size:13px;line-height:17px}.ac-setbox__row__fields{flex:auto}.ac-setbox__row__fields.-has-subsettings{display:flex;flex-direction:column}.ac-setbox__row__fields__inner{padding:15px}.ac-setbox__row__fields__inner>*:last-child{margin-bottom:0}.ac-setbox__row__fields select{width:100%;margin-bottom:10px}.ac-setbox__row a.ac-pointer.instructions{position:absolute;top:14px;right:10px;display:inline-block;cursor:pointer}@media screen and (min-width: 900px){.ac-setbox__row{display:flex}.ac-setbox__row__th{flex:0 0 230px}.ac-setbox__row__fields{flex:auto}.ac-setbox__row.-sub{display:block}.ac-setbox__row.-sub .ac-setbox__row__th,.ac-setbox__row.-sub .ac-setbox__row__fields{flex:100%}}@media screen and (min-width: 1150px){.ac-setbox__row.-sub{display:flex}.ac-setbox__row.-sub .ac-setbox__row__th,.ac-setbox__row.-sub .ac-setbox__row__fields{flex:100%}}.ac-setbox .checkbox-labels>label,.ac-setbox .radio-labels>label{padding-right:10px;vertical-align:top}.ac-setbox .checkbox-labels.vertical input[type=radio],.ac-setbox .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-setbox .checkbox-labels.vertical>label,.ac-setbox .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-setbox.-closed .ac-setbox__header:after{transform:rotate(180deg)}.ac-setbox.-closed .ac-setbox__row{display:none}.ac-setbox .select2-search__field{width:100% !important}.ac-ls-settings .select2{margin-bottom:10px}.ac-ls-settings .select2 input{min-height:0}.ac-ls-settings .select2 li{margin-bottom:0}.ac-ls-settings .row.users .select2{margin-bottom:0}.ac-ls-settings select.sorting_order{margin-bottom:0}.ac-ls-settings-mockup{position:relative}.ac-ls-settings-mockup .ac-setbox__row__fields{filter:blur(1.5px)}.ac-unlock-modal{background:#fff;border:1px solid #d0cece;box-shadow:0 0 19px 0 rgba(0,0,0,.44);position:absolute;right:calc(30% - 100px);top:50%;margin-top:-20px;border-radius:4px;padding:12px;z-index:2}.ac-unlock-modal span{margin-right:5px;color:var(--ac-pink-color);transform:translateY(4px)}.ac-unlock-modal .-pink{margin-left:10px;padding-left:20px;padding-right:20px}@keyframes deal_blur{0%,60%{filter:grayscale(0)}30%{filter:grayscale(0.2)}}.select2-container--acs2 .-listkeys .select2-results>.select2-results__options{max-height:50vh}.ui-sortable-helper{-webkit-box-shadow:1px 3px 6px 0 rgba(1,1,1,.4);box-shadow:1px 3px 6px 0 rgba(1,1,1,.4)}.ui-sortable-helper .column-meta{border-width:1px}.ac-column span.select2-container{z-index:1}.ac-column .comment-grey-bubble{height:16px;width:16px}.ac-column .comment-grey-bubble:before{content:"";font:normal 20px/.5 "dashicons";speak:none;display:inline-block;padding:0;top:5px;left:0;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none !important}.rtl .ac-column .comment-grey-bubble:before{right:0;left:auto}#add-new-column-template{display:none}.ac-admin{max-width:1400px}.ac-admin__wrap{display:flex;flex-direction:column-reverse}@media only screen and (min-width: 1200px){.ac-admin__wrap{flex-direction:row-reverse}.ac-admin__wrap .ac-admin__main{flex:1 1 auto}.ac-admin__wrap .ac-admin__sidebar{flex:0 0 280px;margin-left:20px}.rtl .ac-admin__wrap .ac-admin__sidebar{flex:0 0 280px;margin-left:0;margin-right:20px}}@media only screen and (min-width: 1500px){.ac-admin__wrap .ac-admin__sidebar{flex:0 0 340px}}.ac-admin__main .column-footer a.add_column{padding-left:16px;padding-right:16px;text-align:center}.ac-admin__main .column-footer a.submit.save,.ac-admin__main .column-footer a.submit.update{padding-left:20px;padding-right:20px;text-align:center}.ac-admin__main .column-footer .submit.save{display:inline-block}.ac-admin__main .column-footer .submit.update{display:none}.ac-admin__main .column-footer .spinner{display:none}.ac-admin.saving .spinner{visibility:visible}.ac-admin.saving .column-footer .spinner{margin:4px 0 0;background-position:center center;float:none;display:inline-block;visibility:visible}.ac-admin.stored .ac-admin__sidebar .form-actions .submit.save{display:none}.ac-admin.stored .ac-admin__sidebar .form-actions .submit.update{display:block}.ac-admin.stored .ac-admin__sidebar .form-actions .form-reset{display:block}.ac-admin.stored .column-footer .submit.save{display:none}.ac-admin.stored .column-footer .submit.update{display:inline-block}.ac-admin.show-list-screen-type .ac-admin__sidebar .sidebox.form-actions small.list-screen-type,.ac-admin.show-list-screen-id .ac-admin__sidebar .sidebox.form-actions small.list-screen-id{display:block}.ac-admin.show-list-screen-id .layouts__item__title small.layouts__item__id{display:block;line-height:14px;padding:0;margin:0 0 10px 0}.ac-admin__main .ac-notice{background:#fff;border-left:4px solid var(--ac-notification-yellow);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin-bottom:15px;padding:1px 12px}.ac-admin__main .ajax-message{display:none}.ac-admin__main .ac-message{margin-top:0 !important}.ac-admin__main .ac-message p{min-height:1px;overflow:hidden}.ac-admin__main .ac-message>.dashicons{float:left;margin-top:6px;color:#b7b7b7;margin-right:5px}.ac-admin__main .ac-message.notice-info{border-left:4px solid var(--ac-notification-blue)}.ac-admin__main .ac-boxes{box-shadow:0 1px 3px rgba(0,0,0,.1)}.ac-admin__main .ac-boxes.show-column-id div.ac-column-header table tr td.column_label .inner small.column-id{display:inline}.ac-admin__main .ac-boxes.show-column-type div.ac-column-header table tr td.column_label .inner small.column-type{display:inline}.ac-column a{cursor:pointer}.ac-column a:focus,.ac-column a:active{box-shadow:none}.ac-column.loading .ac-column-body>.spinner{position:absolute;left:50%;top:50%;z-index:200;margin-left:-10px;margin-top:-10px;display:block}.ac-column.loading .ac-column-body:before{content:"";position:absolute;width:100%;height:100%;background:#fff;z-index:100;opacity:.5}.ac-column.opened{margin-bottom:-1px}.ac-column.opened .ac-column-header{background-color:#eaeaea;border-color:#ccc}.ac-column.opened .ac-column-header:hover .column_label .inner>a.close-button{display:inline-block}.ac-column.opened .ac-column-header .column_edit:after{content:""}.ac-column.opened .ac-column-header table td{border-color:var(--ac-border-grey);color:#333;text-shadow:0 1px 0 #fff}.ac-column.opened .ac-column-header table td a{color:#333;text-shadow:0 1px 0 #fff}.ac-column.opened .ac-column-header table td.column_sort span{color:#9b9b9b}.ac-column.opened .ac-column-header table td.column_label .meta span{color:#8d8d8d;text-shadow:none}.ac-column.opened .ac-column-header table td.column_label a.edit-button{display:none}.ac-column.opened .ac-column-header table td.column_type{color:#5c5c5c}.ac-column.opened .ac-column-header table td.column_edit:after{color:#9b9b9b}.ac-column.opened .ac-column-body{border:1px solid #ccc;border-top:1px solid #d4d4d4}.ac-column.disabled,.boxes.disabled .ac-column{opacity:.7}.ac-column.disabled a.remove-button,.ac-column.disabled a.clone-button,.ac-column.disabled .column_action,.boxes.disabled .ac-column a.remove-button,.boxes.disabled .ac-column a.clone-button,.boxes.disabled .ac-column .column_action{display:none !important}.ac-column.disabled .column-meta td.column_sort,.boxes.disabled .ac-column .column-meta td.column_sort{display:none}.ac-column.disabled .column-meta td.column_label,.boxes.disabled .ac-column .column-meta td.column_label{padding-left:10px}.ac-column.disabled .meta span,.boxes.disabled .ac-column .meta span{cursor:default !important;opacity:.45}.ac-column.disabled .meta span:before,.boxes.disabled .ac-column .meta span:before{color:gray !important}.ac-column.disabled .meta span.on,.boxes.disabled .ac-column .meta span.on{opacity:1}.ac-column.disabled .column-footer,.boxes.disabled .ac-column .column-footer{display:none}.ac-column.disabled .ac-column__header__features,.boxes.disabled .ac-column .ac-column__header__features{cursor:not-allowed}.ac-column.disabled .ac-column__header__features span.ac-column-heading-setting,.boxes.disabled .ac-column .ac-column__header__features span.ac-column-heading-setting{pointer-events:none}.ac-column.disabled .ac-column-body:before,.boxes.disabled .ac-column .ac-column-body:before{content:"";position:absolute;width:100%;height:100%;background:#fff;z-index:100;opacity:.3;cursor:not-allowed}.ac-column-setting{width:100%;clear:both;border-spacing:0;margin:0;border-top:1px solid var(--ac-border-grey)}.ac-column-setting:first-child{border-top:0}.ac-column-setting tr.hide{display:none}.ac-column-setting tr td{vertical-align:top;border:none;padding:0;background:#fff}.ac-column-setting td.col-label{position:relative;line-height:24px;overflow:visible;background:#f5f5f5;border-right:1px solid var(--ac-border-grey);width:30%;padding:10px;padding-left:12px}.ac-column-setting td.col-label .ac-pointer{position:absolute;right:4px;top:10px;padding:4px;height:17px}.ac-column-setting td.col-label a.more-link{text-decoration:none;color:#d2d2d2;position:absolute;right:8px;top:17px}.ac-column-setting td.col-label a.more-link span.dashicons{font-size:17px}.ac-column-setting td.col-label a.more-link:hover{color:#acacac}.ac-column-setting td.col-label span.label{font-weight:bold;display:inline-block;color:#333;font-style:normal}.ac-column-setting td.col-label div.tooltip{font-size:12px;font-style:normal;line-height:16px;margin:0 !important;display:none;position:absolute;max-width:200px;z-index:99;top:40px;left:0;font-weight:normal;color:#fff;background-color:#333;box-shadow:0 1px 3px rgba(0,0,0,.2);padding:.618em 1em;border-radius:3px}.ac-column-setting td.col-label div.tooltip em{margin-top:3px;display:block;color:#999}.ac-column-setting td.col-input div.msg{margin-top:5px;display:none;color:#333;padding:6px 10px;background-color:#ffebe8;border:1px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.ac-column-setting td.col-input div.msg p{margin:.5em 0 1em 0}.ac-column-setting td.col-input div.msg a.button{margin-bottom:1em}.ac-column-setting td.col-input .help-msg{margin:10px 0 0;color:#666;font-size:13px}.ac-column-setting .ac-column-setting td.col_label{background-color:#fcfcfc}.ac-column-setting .ac-column-setting td.col_label .label{font-size:12px;color:#595959}.ac-column-setting span.ac-setting-error{display:block;margin:0;background-color:#ffebe8;padding:7px 10px}.ac-column-setting-actions .col-settings p{padding-left:10px}.ac-column-setting-actions .col-settings a{text-decoration:none}.ac-column-setting-actions .col-settings a.close-button,.ac-column-setting-actions .col-settings a.clone-button{margin-right:10px}.ac-column-setting-actions .col-settings a.remove-button{color:#a00;text-decoration:none;text-shadow:none;margin-right:5px}.ac-column-setting-actions .col-settings a.remove-button:hover{color:red}.ac-column .ac-setting-input{padding:10px;line-height:24px}.ac-column .ac-setting-input .ac-toggle-v2{margin-bottom:0}.ac-column .ac-setting-input .ac-toggle-v2 .ac-toggle-v2__label{display:inline-block;transform:translateY(-3px)}.ac-column .ac-setting-input input[type=text],.ac-column .ac-setting-input select{width:99.95%;max-width:none}.ac-column .ac-setting-input input[type=checkbox],.ac-column .ac-setting-input input[type=radio]{margin-right:4px}.ac-column .ac-setting-input__info{margin-left:5px;transform:translateY(2px)}.ac-column .ac-setting-input .checkbox-labels>label,.ac-column .ac-setting-input .radio-labels>label{padding-right:10px;vertical-align:top}.ac-column .ac-setting-input .checkbox-labels.vertical input[type=radio],.ac-column .ac-setting-input .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-column .ac-setting-input .checkbox-labels.vertical>label,.ac-column .ac-setting-input .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-column .ac-setting-input .ac-pointer{color:#8d8d8d;display:inline-block;transform:translateY(2px)}.ac-column .ac-setting-input__icon{display:inline-block;margin-right:10px}.ac-column .ac-setting-input__icon.-warning{transform:translateY(3px)}.ac-column .ac-setting-input__icon+*{display:inline-block}.ac-setting-input-date .ac-setting-input-date__custom{display:inline-block;width:110px !important;margin-right:5px}.ac-setting-input-date .ac-setting-input-date__value{display:inline-block;width:165px}.ac-setting-input-date .ac-setting-input-date__example{margin-left:8px}.ac-setting-input-date .ac-setting-input-date__example .spinner{float:none;vertical-align:top}.ac-setting-input-date code{display:inline-block;min-width:60px;padding-top:0;padding-bottom:0;text-align:center}.ac-setting-input-width{position:relative}.ac-setting-input-width div.description{font-size:12px;width:72px;position:absolute;display:table}.ac-setting-input-width div.description input{margin:0;text-align:right;vertical-align:middle;display:table-cell;padding-left:4px;padding-right:4px;border-color:#7e8993;border-top-right-radius:0;border-bottom-right-radius:0}.ac-setting-input-width div.description input::-webkit-input-placeholder{font-size:13px}.ac-setting-input-width div.description input:-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input::-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input:-ms-input-placeholder{font-size:13px}.ac-setting-input-width div.description span{background:#efefef;display:table-cell;width:26px;line-height:23px;text-align:center;vertical-align:middle;border:1px solid #7e8993;border-left:none;color:#505050;border-top-right-radius:4px;border-bottom-right-radius:4px}.ac-setting-input-width div.width-slider{margin-left:82px;margin-right:88px;position:relative;top:8px}.ac-setting-input-width div.width-slider .ui-slider-handle{cursor:ew-resize;z-index:1}.ac-setting-input-width div.unit-select{position:absolute;top:11px;right:6px;width:82px;text-align:right}.ac-setting-input-width div.unit-select .radio-labels{padding:0}.ac-setting-input-width div.unit-select .radio-labels label{padding:0;margin-right:6px}.ac-setting-input-width div.unit-select .radio-labels label input{margin-right:2px}.ac-column-setting--pro .col-label .dashicons{color:#a99d9f;transform:scale(0.9, 0.9);margin-top:2px;display:inline-block;margin-right:3px;cursor:pointer}.ac-column-setting--pro td.col-input{background:#f5f5f5}.ac-column-setting--pro .radio-labels{display:inline-block}.ac-column-setting--pro .radio-labels input{background-color:#f0f0f0}.ac-column-setting--pro .radio-labels input:checked:before{background-color:gray}.ac-column-setting--pro .ac-setting-input{background:#f5f5f5}.ac-column-setting--pro .acp-button{background:#e9426e;color:#fff;border:none;border-radius:3px;padding:3px 10px;letter-spacing:2px;cursor:pointer;font-size:13px;vertical-align:middle;margin-top:-1px;margin-left:5px}div.ac-column-header{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}div.ac-column-header:nth-child(2n) .column-meta{background:#f9f9f9}div.ac-column-header img{margin-right:3px}div.ac-column-header table.widefat{border:none}div.ac-column-header table{border:none;background:rgba(0,0,0,0);border-radius:0}div.ac-column-header table tr td{vertical-align:top;height:18px;padding:12px 8px;border-width:1px 0 0;border-style:solid;border-color:rgba(0,0,0,0)}div.ac-column-header table tr:hover td.column_sort span{color:#9b9b9b}div.ac-column-header:hover .column_label .inner>a.remove-button,div.ac-column-header:hover .column_label .inner>a.edit-button,div.ac-column-header:hover .column_label .inner>a.clone-button{display:inline-block}div.ac-column-header span.vers{padding-top:2px}.ac-column-body{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.column-footer{background:#eaf2fa;border:1px solid #c7d7e2;min-height:26px;padding:8px;overflow:hidden}.column-footer .order-message{color:#7a9bbe;float:left;font-family:Comic Sans MS,sans-serif;font-size:11px;height:13px;position:relative;line-height:1em;margin-left:4px;padding:7px 0 0 22px;text-shadow:0 1px 0 #fff;display:inline-block}.column-footer .order-message__icon{display:inline-block;position:absolute;left:0;top:0}.column-footer .button-container{float:right;display:inline-block;min-height:29px}.column-footer .button-container a{display:inline-block;margin-left:5px;vertical-align:top}.column-footer .button-container a.clear-columns{color:var(--ac-notification-red);text-decoration:none;margin-right:8px;margin-top:5px}.column-footer .button-container a.clear-columns:hover{opacity:.9}.ac-admin__sidebar .sidebox{background:none repeat scroll 0 0 #fff;border:1px solid var(--ac-border-grey);border-radius:0 0 0 0;box-shadow:0 1px 3px rgba(0,0,0,.1);position:relative;margin-bottom:14px}.ac-admin__sidebar .sidebox h3{padding:10px;margin:0;position:relative}.ac-admin__sidebar .sidebox h3.title{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:15px;font-weight:normal;line-height:1;margin:0;padding:7px 10px;background:#f1f1f1;background-image:linear-gradient(to top, #ececec, #f9f9f9);border-bottom-color:var(--ac-border-grey);text-shadow:#fff 0 1px 0;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.ac-admin__sidebar .sidebox h3 span.left{position:relative;background:#fff;z-index:2;padding-right:8px;float:none}.ac-admin__sidebar .sidebox h3 span.contenttype{display:block;line-height:20px;font-size:12px;text-transform:uppercase;color:gray;margin-top:4px;max-width:250px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ac-admin__sidebar .sidebox h3 span.contenttype.right{position:absolute;display:inline-block;z-index:1;right:10px;text-align:right;margin-top:0}.ac-admin__sidebar .sidebox .inside{padding:10px}.ac-admin__sidebar .sidebox .inside p{margin-top:0}.ac-admin__sidebar .sidebox.form-actions small.list-screen-id,.ac-admin__sidebar .sidebox.form-actions small.list-screen-type{display:none;line-height:25px}.ac-admin__sidebar .sidebox.form-actions .form-reset{display:none;border-bottom:1px solid var(--ac-border-grey);padding:8px}.ac-admin__sidebar .sidebox.form-actions .reset-column-type{text-decoration:none;color:var(--ac-notification-red);line-height:25px;display:inline-block;background:none;border:none;padding:0;font-size:13px;cursor:pointer;margin:0}.ac-admin__sidebar .sidebox.form-actions .reset-column-type:hover{opacity:.9}.ac-admin__sidebar .sidebox.form-actions .form-update{padding:8px;overflow:hidden}.ac-admin__sidebar .sidebox.form-actions .submit{display:none;width:100%;height:28px;line-height:28px;text-align:center}.ac-admin__sidebar .sidebox.form-actions .submit.save{display:block}.ac-admin__sidebar .sidebox#direct-feedback #feedback-support,.ac-admin__sidebar .sidebox#direct-feedback #feedback-rate{display:none}.ac-admin__sidebar .sidebox#direct-feedback .inside>a{border-radius:4px;border:1px solid var(--ac-border-grey);width:48%;height:64px;text-align:center;line-height:64px;font-weight:bold;color:#222;display:inline-block;text-decoration:none}.ac-admin__sidebar .sidebox#direct-feedback .inside>a:hover{background:#fafafa}.ac-admin__sidebar .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.ac-admin__sidebar .sidebox#direct-feedback .inside form input[type=submit]{display:inline-block;float:right;border-radius:4px;border:1px solid var(--ac-border-grey);height:32px;text-align:center;line-height:32px;font-weight:bold;font-size:12px;padding:0 32px;color:#ccc;background:none;text-decoration:none;cursor:pointer}.ac-admin__sidebar .sidebox#direct-feedback .inside form input[type=submit]:hover{background:#fafafa}.ac-admin__sidebar .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.ac-admin__sidebar .sidebox#direct-feedback .inside ul{margin:0}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li{margin:0;display:block;float:left;margin-left:9px;width:30%}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li a{text-decoration:none;vertical-align:middle;line-height:20px;padding:16px 0;width:100%;text-align:center;border:1px solid var(--ac-border-grey);border-radius:4px;display:block}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li a:hover{background:#fafafa}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.ac-admin__sidebar .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}#ac-pro-version{background:none}#ac-pro-version .padding-box{padding:20px 10px 10px;background:#3d4350;color:#fff}#ac-pro-version .nopadding{margin:0;padding:0}#ac-pro-version h2{color:#fff}#ac-pro-version h3{font-size:34px;line-height:40px}#ac-pro-version h3 a{text-decoration:none;color:#fff}#ac-pro-version h3 a span{color:#e9426e}#ac-pro-version sup{text-decoration:line-through;font-size:13px;color:#ccc}#ac-pro-version .ac-pro-prices{margin:8px 0 0;font-style:italic}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px;cursor:pointer}#ac-pro-version .more{color:#ffee85;text-decoration:none}#ac-pro-version .more:hover{text-decoration:underline}#ac-pro-version p.center{text-align:center}#ac-pro-version p.nomargin{margin-bottom:0}#ac-pro-version ul.features a:hover{text-decoration:underline}#ac-pro-version ul li{padding-bottom:3px}#ac-pro-version ul li a{color:#fff;text-decoration:none;padding-left:25px;position:relative;display:block}#ac-pro-version ul li a:before{content:"✓";font-weight:bold;font-size:16px;position:absolute;left:0;top:0}#ac-pro-version ul li.acp-integration{padding:0;min-height:23px;line-height:23px}#ac-pro-version ul li.acp-integration img{height:23px;display:inline-block;vertical-align:middle;margin-right:3px}#ac-pro-version ul li.acp-integration img.ac-addon-pods{margin-top:-4px}#ac-pro-version ul li.acp-integration img.ac-addon-types{height:18px}#ac-pro-version ul li.acp-integration img.cac-addon-acf{margin-top:-4px;height:15px}#ac-pro-version ul li.acp-integration a{color:#ffee85}#ac-pro-version ul li.acp-integration a:before{content:"+"}#ac-pro-version .padding-box.ac-pro-deal{backface-visibility:hidden;transform:translateZ(0);color:#3d4350;padding-bottom:20px;text-align:center;background:#ffef8f;animation:deal_blur 2s ease 0s infinite}#ac-pro-version .padding-box.ac-pro-deal h3{font-size:20px;line-height:26px;padding-top:0;padding-bottom:0;margin-bottom:18px}#ac-pro-version .padding-box.ac-pro-deal a.acp-button{font-size:16px}#ac-pro-version .padding-box.ac-pro-newsletter{background:#fff;color:#3d4350}#ac-pro-version .padding-box.ac-pro-newsletter h3{font-size:20px;padding-bottom:0}#ac-pro-version .padding-box.ac-pro-newsletter input{width:100%;margin-bottom:8px}#ac-pro-version .padding-box.ac-pro-newsletter .acp-button{margin-top:12px;margin-bottom:0;padding:7px 20px}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px}.ac-column-setting--label .ac-setting-input__container{position:relative}.ac-column-setting--label .ac-setting-input__container input{height:28px;line-height:28px;padding-right:34px}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon{background:#fff;position:absolute;top:4px;height:22px;color:#ccc;right:0;border:none;cursor:pointer;outline:none !important;transition:color .1s}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:hover,.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:focus{color:#999}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:active{color:var(--ac-primary-color)}.ac-ipicker__modal{background:#fff;max-width:90%;width:770px;height:450px;display:flex;padding:20px}.ac-ipicker.fixed{position:fixed;z-index:99999;background:rgba(0,0,0,.8);display:flex;top:0;right:0;bottom:0;left:0;height:auto;align-items:center;justify-content:center}.ac-ipicker__icons{flex:1 1 auto}.ac-ipicker__icons__group__title{display:block;clear:both;padding-top:15px;margin-top:20px;margin-bottom:10px;font-size:16px;font-weight:normal}.ac-ipicker__icons__group__title:first-child{border-top:none;padding-top:0;margin-top:0}.ac-ipicker__icon{display:inline-block;width:49px;height:49px;text-align:center;white-space:nowrap;cursor:pointer}.ac-ipicker__icon .dashicons{width:49px;height:49px;line-height:49px;font-size:28px}.ac-ipicker__icon:hover,.ac-ipicker__icon:focus{color:var(--ac-primary-color)}.ac-ipicker__icon.active{background:var(--ac-primary-color);color:#fff}.ac-ipicker__handles{flex:0 0 100px;text-align:center;padding-top:20px}.ac-modal.-pro .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:.5px;margin-bottom:10px}.ac-modal.-pro .ac-modal__dialog__list li:before{content:"";font-family:Dashicons,sans-serif;position:absolute;left:0;top:0;color:#3d4350}.ac-modal.-pro .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}.ac-modal.-pro .ac-modal__dialog__mascot{position:absolute;right:20px;bottom:20px;width:150px;height:225px;z-index:4}.ac-modal.-pro .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}.ac-modal.-pro .ac-modal__dialog__footer span{display:inline-block;margin-top:4px;margin-left:10px;font-size:14px}.ac-modal.-setting .ac-modal__dialog{width:970px}.ac-modal.-setting .ac-modal__dialog__content{max-height:400px}.ac-modal.-setting .ac-modal__dialog__footer{text-align:right;padding:0 15px}.ac-modal.-setting .ac-modal__dialog__footer input[type=search]{float:left;margin-top:18px;width:200px}.ac-modal.-setting .ac-modal__dialog__footer .button{display:inline-block;vertical-align:middle;padding-left:30px;padding-right:30px}.ac-modal.-setting .ac-modal__dialog__footer .ac-ipicker__selection{display:inline-block;vertical-align:middle;text-align:center;width:68px;height:68px;line-height:58px;background:#e5e5e5;margin-right:15px;color:#404040}.ac-modal.-setting .ac-modal__dialog__footer .ac-ipicker__selection .dashicons{width:68px;height:68px;line-height:68px;font-size:30px}.ac-modal.-iconpicker .ac-modal__dialog__content{overflow:hidden;overflow-y:scroll}.select2-container--acs2{z-index:2}.select2-container--acs2 .select2-dropdown.-customfields .select2-results>.select2-results__options{max-height:600px}@keyframes loading_text{0%{background-position:-100%}100%{background-position:100%}}.ac-loading-msg-wrapper{position:fixed;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center}.ac-loading-msg{display:inline-block;text-align:center;max-width:300px}.ac-loading-msg__logo{width:228px;text-align:center;margin-bottom:15px}.ac-loading-msg__content{position:relative;font-family:sans-serif;text-transform:uppercase;font-size:1.3em;letter-spacing:4px;overflow:hidden;color:#999;font-weight:300;background-repeat:no-repeat;background-size:60%}.ac-notice.visit-ls{display:none}.ac-setbox .select2-container .select2-search--inline .select2-search__field{margin-top:0 !important}.ac-column__header{background:#fafafa;display:flex;border:1px solid var(--ac-border-grey);border-bottom:0}.ac-column__header__move{font-size:13px;padding:10px 13px;cursor:move;display:flex;align-items:center}.ac-column__header__move span{visibility:hidden}.ac-column__header:hover .ac-column__header__move span{visibility:visible}.ac-column__header__label{display:flex;align-items:center;flex-grow:1}.ac-column__header__label__link{color:#5a5a5a;font-weight:bold;margin-right:15px}.ac-column__header__label__link:hover{color:#333}.ac-column__header__actions{opacity:0}.ac-column__header__actions a{font-size:12px;margin-left:5px}.ac-column__header__actions a.remove-button{color:var(--ac-notification-red)}.ac-column__header__actions a.remove-button:hover{opacity:.9}.ac-column__header__actions a.close-button{display:none}.ac-column-opened .ac-column__header__actions a.close-button{display:block}.ac-column-opened .ac-column__header__actions a.edit-button{display:none}.ac-column__header__info small{display:none;margin-right:3px}.show-column-id .ac-column__header__info .column-id{display:inline}.show-column-type .ac-column__header__info .column-type{display:inline}.ac-column__header:hover .ac-column__header__actions{opacity:1}.ac-column__header__features{display:flex;align-items:center;width:180px;position:relative}@media screen and (max-width: 700px){.ac-column__header__features{display:none}}.ac-column__header__features .ac-column-heading-setting{color:#b2b2b2;font-size:14px}.ac-column__header__features .ac-column-heading-setting.-width{color:#737373;font-size:12px;position:absolute;right:150px}.ac-column__header__features .ac-column-indicator{width:25px;font-size:22px;text-align:center;position:absolute;cursor:pointer}.ac-column__header__features .ac-column-indicator.on{color:var(--ac-primary-color)}.ac-column__header__features .ac-column-indicator.-export{font-size:14px;transform:translateY(3px)}.ac-column__header__features .ac-column-indicator.-edit{transform:translateY(-2px)}.ac-column__header__features .ac-column-indicator.-search{font-size:17px}.ac-column__header__features .ac-column-indicator.-filter{right:0px}.ac-column__header__features .ac-column-indicator.-search{right:25px}.ac-column__header__features .ac-column-indicator.-bulk_edit{right:50px}.ac-column__header__features .ac-column-indicator.-edit{right:75px}.ac-column__header__features .ac-column-indicator.-sort{right:100px}.ac-column__header__features .ac-column-indicator.-export{right:125px}.ac-column__header__type{display:flex;align-items:center;justify-content:right;color:#999}.ac-column__header__type span{text-align:right;width:150px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}@media screen and (max-width: 700px){.ac-column__header__type span{width:200px}}.ac-column__header__arrow{color:#bdbdbd;padding:15px;margin-left:auto;flex:0 0 20px;transform-origin:center}.ac-column.opened .ac-column__header{background:#eaeaea;border-color:#ccc}.ac-column.opened .ac-column__header .ac-column__header__actions .edit-button{display:none}.ac-column.opened .ac-column__header .ac-column__header__actions .close-button{display:inline}.ac-column.opened .ac-column__header .ac-column__header__features .ac-column-indicator:not(.on){color:#8d8d8d}.ac-column.opened .ac-column__header .ac-column__header__type{color:#5c5c5c}.ac-column.opened .ac-column__header .ac-column__header__arrow{transform:rotate(180deg);color:#5c5c5c}.ac-column.loading .ac-column__header{position:relative;background:#eee;filter:grayscale(80);cursor:not-allowed}.ac-column.loading .ac-column__header:after{content:"";position:absolute;left:0;top:0;right:0;bottom:0;background:#eee;opacity:.2}.ac-column-type-icon{margin-top:-1px;float:left;width:20px;height:20px;margin-right:5px}#listscreen_settings.-disabled .ac-column__header__move{cursor:default !important}#listscreen_settings.-disabled .ac-column__header__move span{visibility:hidden !important} diff --git a/assets/css/components/value-modal.css b/assets/css/components/value-modal.css index 60f0f8406..9be851907 100644 --- a/assets/css/components/value-modal.css +++ b/assets/css/components/value-modal.css @@ -1 +1,161 @@ -.ac-value-modal .ac-value-modal-background{position:fixed;left:0;top:0;right:0;bottom:0;z-index:10000000000;background:rgba(0,0,0,.6)}.ac-value-modal .ac-value-modal-container{display:flex;position:fixed;top:0;left:0;bottom:0;right:0;align-items:center;justify-content:center;z-index:10000000001}.ac-value-modal .ac-value-modal-panel{background:#fff;width:600px}.ac-value-modal .ac-value-modal-panel__header{background:#fafafa;border-bottom:1px solid #ccc;text-align:right;display:flex}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-title{flex-grow:1;text-align:left;display:flex;align-items:center}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-title h2{margin:0;font-size:15px;padding:10px 20px}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions{width:70px;display:flex;align-items:center;justify-content:flex-end}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions button{border:none;background-color:rgba(0,0,0,0);cursor:pointer;border-left:1px solid #ccc;display:block;width:50px;height:50px}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions button:hover{background:#efefef}.ac-value-modal .ac-value-modal-panel__body{padding:20px;max-height:calc(100vh - 150px);overflow:auto}.ac-value-modal .ac-value-modal-panel__body video{display:block}.ac-value-modal .ac-value-modal-panel__body img{width:100%;height:auto}.ac-value-modal .ac-value-modal-panel__body span.loading{display:block;margin:20px;text-align:center}.ac-value-modal .ac-value-modal-panel__footer{display:flex;border-top:1px solid #ccc;background:#fafafa}.ac-value-modal .ac-value-modal-panel__footer button{width:40px;height:40px;border:none;border-left:1px solid #ccc;justify-content:center;cursor:pointer;background:none;align-items:center}.ac-value-modal .ac-value-modal-panel__footer button .dashicons{transform:translateY(2px);font-size:16px}.ac-value-modal .ac-value-modal-panel__footer button:hover{background:#efefef}.ac-value-modal__edit{flex-grow:1;padding-left:10px;display:flex;align-items:center}.ac-value-modal__edit a.button{margin-right:5px}.ac-value-modal__navigation{flex-grow:0;width:100px;display:flex;justify-content:flex-end}.ac-value-modal .ac-badge{background:#eee;border-radius:3px;color:#464646;font-size:13px;padding:2px 10px}.ac-value-modal.-nopadding .ac-value-modal-panel__body{padding:0}.ac-value-modal.-nopadding .ac-value-modal-panel__body .loading{padding:20px}.ac-value-modal.-preview .ac-value-modal-panel{width:auto;max-width:80vw;min-width:400px;top:0;left:0;transform:none}.ac-value-modal.-preview .ac-value-modal-panel .ac-value-modal-panel__header h2{text-overflow:ellipsis;max-width:500px;overflow:hidden;white-space:nowrap}.ac-value-modal.-preview .ac-value-modal-panel .ac-value-modal-panel__body img{width:auto;min-width:300px;max-width:100%;max-height:calc(100vh - 150px);display:block;margin:auto} +.ac-value-modal .ac-value-modal-background { + position: fixed; + left: 0; + top: 0; + right: 0; + bottom: 0; + z-index: 10000000000; + background: rgba(0, 0, 0, 0.6); +} +.ac-value-modal .ac-value-modal-container { + display: flex; + position: fixed; + top: 0; + left: 0; + bottom: 0; + right: 0; + align-items: center; + justify-content: center; + z-index: 10000000001; +} +.ac-value-modal table td { + vertical-align: top; +} +.ac-value-modal.-w-large .ac-value-modal-panel { + width: 800px; +} +.ac-value-modal .ac-value-modal-panel { + background: #fff; + width: 600px; +} +.ac-value-modal .ac-value-modal-panel__header { + background: #fafafa; + border-bottom: 1px solid #ccc; + text-align: right; + display: flex; +} +.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-title { + text-align: left; + display: flex; + align-items: center; + flex: 1; + overflow: hidden; +} +.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-title h2 { + margin: 0; + font-size: 15px; + padding: 10px 20px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions { + width: 70px; + display: flex; + align-items: center; + justify-content: flex-end; +} +.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions button { + border: none; + background-color: transparent; + cursor: pointer; + border-left: 1px solid #ccc; + display: block; + width: 50px; + height: 50px; +} +.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions button:hover { + background: #efefef; +} +.ac-value-modal .ac-value-modal-panel__body { + padding: 20px; + max-height: calc(100vh - 150px); + overflow: auto; +} +.ac-value-modal .ac-value-modal-panel__body video { + display: block; +} +.ac-value-modal .ac-value-modal-panel__body img { + width: 100%; + height: auto; +} +.ac-value-modal .ac-value-modal-panel__body span.loading { + display: block; + margin: 20px; + text-align: center; +} +.ac-value-modal .ac-value-modal-panel__footer { + display: flex; + border-top: 1px solid #ccc; + background: #fafafa; +} +.ac-value-modal .ac-value-modal-panel__footer button { + width: 40px; + height: 40px; + border: none; + border-left: 1px solid #ccc; + justify-content: center; + cursor: pointer; + background: none; + align-items: center; +} +.ac-value-modal .ac-value-modal-panel__footer button .dashicons { + transform: translateY(2px); + font-size: 16px; +} +.ac-value-modal .ac-value-modal-panel__footer button:hover { + background: #efefef; +} +.ac-value-modal__edit { + flex-grow: 1; + padding-left: 10px; + display: flex; + align-items: center; +} +.ac-value-modal__edit a.button { + margin-right: 5px; +} +.ac-value-modal__navigation { + flex-grow: 0; + width: 100px; + display: flex; + justify-content: flex-end; +} +.ac-value-modal .ac-badge { + background: #eee; + border-radius: 3px; + color: #464646; + font-size: 13px; + padding: 2px 10px; +} +.ac-value-modal.-nopadding .ac-value-modal-panel__body { + padding: 0; +} +.ac-value-modal.-nopadding .ac-value-modal-panel__body .loading { + padding: 20px; +} + +.ac-value-modal.-preview .ac-value-modal-panel { + width: auto; + max-width: 80vw; + min-width: 400px; + top: 0; + left: 0; + transform: none; +} +.ac-value-modal.-preview .ac-value-modal-panel .ac-value-modal-panel__header h2 { + text-overflow: ellipsis; + max-width: 500px; + overflow: hidden; + white-space: nowrap; +} +.ac-value-modal.-preview .ac-value-modal-panel .ac-value-modal-panel__body img { + width: auto; + min-width: 300px; + max-width: 100%; + max-height: calc(100vh - 150px); + display: block; + margin: auto; +} + +/*# sourceMappingURL=value-modal.css.map */ diff --git a/assets/css/table.css b/assets/css/table.css index 31c3df86f..9617d5d4f 100644 --- a/assets/css/table.css +++ b/assets/css/table.css @@ -1 +1 @@ -:root{--ac-text-color: #23282d;--ac-link: #0073aa;--ac-link-hover: #0096dd;--ac-button-bg: #f6f7f7;--ac-button-color: #2271b1;--ac-button-border: var(--ac-button-color);--ac-button-hover: #0a4b78;--ac-primary-color: #2271b1;--ac-primary-color-hover: #135e96;--ac-notification-red: #d63638;--ac-notification-blue: #72aee6;--ac-notification-yellow: #dba617;--ac-notification-orange: #d54e21;--ac-notification-green: #00a32a;--ac-border-grey: #ddd;--ac-pink-color: #e9426e;--ac-form-input-border: #757575;--ac-table-border: #c3c4c7}:root body.admin-color-coffee{--ac-button-color: #32373c;--ac-button-border: #8c8f94;--ac-primary-color: #c7a589;--ac-primary-color-hover: #ccad93}:root body.admin-color-light{--ac-button-color: #04a4cc;--ac-button-border: #04a4cc;--ac-button-hover: #04b0db;--ac-primary-color: #04a4cc;--ac-primary-color-hover: #04b0db}:root body.admin-color-modern{--ac-link: #3858e9;--ac-link-hover: #183ad6;--ac-button-color: #3858e9;--ac-button-border: #3858e9;--ac-primary-color: #3858e9;--ac-primary-color-hover: #04b0db}:root body.admin-color-blue{--ac-button-color: #096484;--ac-primary-color: #e1a948;--ac-primary-color-hover: #e3af55}:root body.admin-color-ectoplasm{--ac-button-color: #a3b745;--ac-primary-color: #a3b745;--ac-primary-color-hover: #a9bd4f}:root body.admin-color-ocean{--ac-button-color: #7e8993;--ac-primary-color: #9ebaa0;--ac-primary-color-hover: #a7c0a9}:root body.admin-color-sunrise{--ac-button-color: #dd823b;--ac-button-hover: #db7728;--ac-primary-color: #dd823b;--ac-primary-color-hover: #df8a48}@font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=955237") format("woff2"),url("../fonts/cpac_icons.woff?v=928084") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^=cpacicon-],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-delete::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-duplicate::before{content:""}.cpacicon-filter::before{content:""}.cpacicon-more::before{content:""}.cpacicon-move::before{content:""}.cpacicon-rename::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}body .ac-modal{position:fixed;overflow:auto;z-index:100000;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:none}body .ac-modal.-active{display:flex;align-items:center;justify-content:center}body .ac-modal__dialog{border:1px solid #c8c8c8;background:#fff;position:fixed;width:650px;max-width:90%}body .ac-modal__dialog__header{font-size:16px;line-height:16px;color:#555;padding:17px 20px}body .ac-modal__dialog__close{display:inline-block;padding:0;margin:0;border:none;background:none;position:absolute;right:0;top:0;width:52px;height:52px;text-align:center;color:#555;cursor:pointer}body .ac-modal__dialog__close:hover{background-color:#f2f2f2}body .ac-modal__dialog__close span.dashicons{font-size:22px}body .ac-modal__dialog__close span.dashicons:hover{color:var(--ac-primary-color-hover)}body .ac-modal__dialog__content{padding:20px;max-height:calc(100vh - 200px);overflow:auto}body .ac-modal__dialog__content__lead{font-weight:bold;font-size:15px;margin-top:5px;margin-bottom:25px;color:#6d6d6d}body .ac-modal__dialog__content.-p0{padding:0}body .ac-modal__dialog__content.-accent{border-top:1px solid #dbdbdb;background:#f9f9f9}body .ac-modal__dialog__content.-hide{display:none}body .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:.5px;margin-bottom:10px}body .ac-modal__dialog__list li:before{content:"";font-family:Dashicons;position:absolute;left:0;top:0;color:#3d4350}body .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}body .ac-modal__dialog__footer{padding:12px 20px;border-top:1px solid #dbdbdb;background:#f9f9f9;font-size:13px}body .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}body .ac-modal.-blocking{background:#e3e7eb}@media only screen and (max-width: 720px){body .ac-modal__dialog__footer__content{display:block}body .ac-modal__dialog__footer .button{margin-left:0;margin-top:10px}}body .ac-modal .ac-modal-footer-actions{display:flex}body .ac-modal .ac-modal-footer-actions__info{flex-grow:1;display:flex;align-items:center}@keyframes ac-striped-animation{from{transform:translateX(0)}to{transform:translateX(46px)}}.ac-striped-loading{overflow:hidden;position:relative}.ac-striped-loading:before{animation:ac-striped-animation 2s linear infinite;content:"";display:block;position:absolute;left:-46px;top:0;bottom:0;right:0;background:repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.1) 1px, transparent 2px, transparent 11px, rgba(255, 255, 255, 0.1) 12px, rgba(255, 255, 255, 0.1) 20px)}.ac-confirmation{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000000;cursor:not-allowed}.ac-confirmation__modal{cursor:pointer;padding:20px;min-width:300px;max-width:400px;margin:20px;height:auto;transform:translateX(-50%);background:#fff;border-radius:3px;box-shadow:0 0 5px rgba(0,0,0,.2);border:1px solid #d8d8d8;position:absolute;top:30%;left:50%}.ac-confirmation__modal__content{margin-bottom:20px}.ac-confirmation__modal__footer{display:block;text-align:right}.ac-confirmation__modal__footer button{margin-left:6px !important;min-width:80px}.ac-tooltip-wrapper{position:relative}.ac-tooltip-wrapper:focus .ac-tooltip,.ac-tooltip-wrapper:hover .ac-tooltip{opacity:1}.ac-tooltip{background:#000;border-radius:3px;padding:5px 10px;color:#fff;position:absolute;transform:translateX(-50%);min-width:30px;margin-top:5px;display:block;opacity:0;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000;max-width:200px}.ac-tooltip:before{content:"";display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,.8);border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);position:absolute;left:50%;top:-4px;transform:translateX(-4px)}.ac-tooltip.hover{opacity:1}html.wp-toolbar .ac-tooltip{margin-top:36px}.ac-toggle-container{display:inline-flex}.ac-toggle-container .ac-toggle-label{margin-left:7px;transform:translateY(-1px)}.ac-toggle{display:inline-block;white-space:nowrap}.ac-toggle input{position:absolute;left:-3000em}.rtl .ac-toggle input{left:inherit;right:-3000em}.ac-toggle__switch{display:inline-block;background:#ccc;border-radius:8px;width:30px;height:16px;position:relative;transition:background-color .3s}.ac-toggle__switch__on,.ac-toggle__switch__off{font-size:11px;font-weight:bold;color:#fff;position:absolute;top:5px;line-height:11px}.ac-toggle__switch__off{right:6px;color:#555}.ac-toggle__switch__on{left:8px}.ac-toggle__switch__track{border-radius:50%;display:inline-block;background:#fff;position:absolute;left:3px;top:3px;height:10px;width:10px;transition:all .1s}.ac-toggle input:checked+.ac-toggle__switch{background:var(--ac-primary-color)}.ac-toggle input:checked+.ac-toggle__switch .ac-toggle__switch__track{left:calc(100% - 13px)}.ac-toggle-v2{position:relative}.ac-toggle-v2.-disabled{cursor:not-allowed}.ac-toggle-v2.-disabled *{cursor:not-allowed}.ac-toggle-v2__toggle{position:relative;display:inline-block;margin-right:5px}.ac-toggle-v2__toggle input[type=checkbox]{position:absolute;left:0;top:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:2;border:none;margin:0 !important}.ac-toggle-v2__toggle input[type=checkbox]:focus:not(:disabled)~.ac-toggle-v2__toggle__track,.ac-toggle-v2__toggle input[type=checkbox]:active:not(:disabled)~.ac-toggle-v2__toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ac-primary-color)}.ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__thumb{transform:translateX(14px)}.ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__track{background:var(--ac-primary-color)}.ac-toggle-v2__toggle input[type=checkbox]:disabled{cursor:not-allowed}.ac-toggle-v2__toggle input[type=checkbox]:disabled~.ac-toggle-v2__toggle__track{background:#ddd !important;cursor:not-allowed}.ac-toggle-v2__toggle input[type=checkbox]:disabled~.ac-toggle-v2__toggle__thumb{cursor:not-allowed}.ac-toggle-v2__toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#d8d8d8;width:36px;height:22px;border-radius:11px;transition:background .2s ease}.ac-toggle-v2__toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;left:3px;width:16px;height:16px;border-radius:50%;transition:transform .1s ease;background-color:#fff;border:5px solid #fff}.ac-toggle-v2.-small{margin-bottom:10px}.ac-toggle-v2.-small .ac-toggle-v2__toggle{transform:translateY(2px)}.ac-toggle-v2.-small .ac-toggle-v2__toggle__track{width:30px;height:18px}.ac-toggle-v2.-small .ac-toggle-v2__toggle__thumb{top:2px;left:2px;width:14px;height:14px}.ac-toggle-v2.-small .ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__thumb{transform:translateX(12px)}.ac-pointer-modal-container{position:absolute;z-index:100000;width:500px}.ac-pointer-modal{background:#fff;border:1px solid var(--ac-border-grey);box-shadow:0 1px 3px rgba(0,0,0,.1)}.ac-pointer-modal__content{padding-bottom:20px}.ac-pointer-modal__content img{max-width:calc(100% - 30px);margin:0 15px;margin-bottom:5px;height:auto}.ac-pointer-modal__content h3{background:var(--ac-primary-color);color:#fff;padding:10px 15px;font-weight:400;font-size:14px;margin:0;margin-bottom:10px}.ac-pointer-modal__content h4{padding:0 15px;margin-bottom:10px}.ac-pointer-modal__content p{padding:0 15px;margin-bottom:10px}.ac-pointer-modal__arrow{display:block;width:10px;height:10px;border-left:1px solid var(--ac-border-grey);border-bottom:1px solid var(--ac-border-grey);position:absolute;background:#fff;top:50%;transform:translateY(-5px) rotate(45deg);left:-5px}.ac-pointer-modal__arrow[data-pos=left]{left:inherit;right:-5px;transform:translateY(-5px) rotate(-135deg)}.ac-pointer-modal__arrow[data-pos=right_bottom]{display:none}.ac-value-modal .ac-value-modal-background{position:fixed;left:0;top:0;right:0;bottom:0;z-index:10000000000;background:rgba(0,0,0,.6)}.ac-value-modal .ac-value-modal-container{display:flex;position:fixed;top:0;left:0;bottom:0;right:0;align-items:center;justify-content:center;z-index:10000000001}.ac-value-modal .ac-value-modal-panel{background:#fff;width:600px}.ac-value-modal .ac-value-modal-panel__header{background:#fafafa;border-bottom:1px solid #ccc;text-align:right;display:flex}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-title{flex-grow:1;text-align:left;display:flex;align-items:center}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-title h2{margin:0;font-size:15px;padding:10px 20px}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions{width:70px;display:flex;align-items:center;justify-content:flex-end}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions button{border:none;background-color:rgba(0,0,0,0);cursor:pointer;border-left:1px solid #ccc;display:block;width:50px;height:50px}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions button:hover{background:#efefef}.ac-value-modal .ac-value-modal-panel__body{padding:20px;max-height:calc(100vh - 150px);overflow:auto}.ac-value-modal .ac-value-modal-panel__body video{display:block}.ac-value-modal .ac-value-modal-panel__body img{width:100%;height:auto}.ac-value-modal .ac-value-modal-panel__body span.loading{display:block;margin:20px;text-align:center}.ac-value-modal .ac-value-modal-panel__footer{display:flex;border-top:1px solid #ccc;background:#fafafa}.ac-value-modal .ac-value-modal-panel__footer button{width:40px;height:40px;border:none;border-left:1px solid #ccc;justify-content:center;cursor:pointer;background:none;align-items:center}.ac-value-modal .ac-value-modal-panel__footer button .dashicons{transform:translateY(2px);font-size:16px}.ac-value-modal .ac-value-modal-panel__footer button:hover{background:#efefef}.ac-value-modal__edit{flex-grow:1;padding-left:10px;display:flex;align-items:center}.ac-value-modal__edit a.button{margin-right:5px}.ac-value-modal__navigation{flex-grow:0;width:100px;display:flex;justify-content:flex-end}.ac-value-modal .ac-badge{background:#eee;border-radius:3px;color:#464646;font-size:13px;padding:2px 10px}.ac-value-modal.-nopadding .ac-value-modal-panel__body{padding:0}.ac-value-modal.-nopadding .ac-value-modal-panel__body .loading{padding:20px}.ac-value-modal.-preview .ac-value-modal-panel{width:auto;max-width:80vw;min-width:400px;top:0;left:0;transform:none}.ac-value-modal.-preview .ac-value-modal-panel .ac-value-modal-panel__header h2{text-overflow:ellipsis;max-width:500px;overflow:hidden;white-space:nowrap}.ac-value-modal.-preview .ac-value-modal-panel .ac-value-modal-panel__body img{width:auto;min-width:300px;max-width:100%;max-height:calc(100vh - 150px);display:block;margin:auto}[data-component=ac-json]{overflow-x:scroll;width:100%;font-size:12px !important}[data-component=ac-json] ul{font-size:13px !important}[data-component=ac-json]>div>div>ul{margin-left:0}[data-component=ac-json]>div>div>ul>ul>li.indent{margin-left:0;padding-left:0}[data-component=ac-json]::-webkit-scrollbar{display:none}[data-component=ac-json] .arrow{width:auto;height:auto;left:inherit;bottom:inherit}[data-component=ac-json] .root{max-width:100px;white-space:nowrap;margin-bottom:5px}[data-component=ac-json] .root>.container{padding-left:10px}[data-component=ac-json] .root>.container .arrow{margin-left:-6px}[data-component=ac-json] ul .root{display:none}[data-component=ac-json] ul li.indent{white-space:nowrap;margin-bottom:0}[data-component=ac-json] ul li.indent ul{margin-top:4px;margin-bottom:4px}[data-component=ac-json] ul li span.container{display:none}[data-component=ac-json] ul li span.container+span.property{color:var(--ac-primary-color);cursor:pointer !important;font-style:italic}[data-component=ac-json] ul li span.container+span.property:hover{color:var(--ac-primary-color-hover)}[data-component=ac-json] ul li span.container~span.operator{display:none}[data-modal-value]{cursor:pointer}.column-status .dashicons{font-size:22px}.column-status .dashicons.large{width:25px;height:28px;font-size:28px}.column-status .dashicons.dashicons-lock{font-size:15px;margin-left:-2px}.ac-image-sizes .ac-missing-size{color:#929292}table .column-audio_player{min-width:310px !important}.ac-comment-bubble .post-com-count{display:inline-block;vertical-align:top}.ac-comment-bubble .post-com-count-no-comments,.ac-comment-bubble .post-com-count-approved{margin-top:5px}.ac-comment-bubble .comment-count-no-comments,.ac-comment-bubble .comment-count-approved{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;-webkit-border-radius:5px;border-radius:5px;background-color:#72777c;color:#fff;font-size:11px;line-height:21px;text-align:center}.ac-comment-bubble .post-com-count-no-comments:after,.ac-comment-bubble .post-com-count-approved:after{content:"";display:block;margin-left:8px;width:0;height:0;border-top:5px solid #72777c;border-right:5px solid rgba(0,0,0,0)}.ac-comment-bubble .post-com-count-approved:hover .comment-count-approved,.ac-comment-bubble .post-com-count-approved:focus .comment-count-approved{background:#0073aa}.ac-comment-bubble .post-com-count-approved:hover:after,.ac-comment-bubble .post-com-count-approved:focus:after{border-top-color:#0073aa}.ac-comment-bubble .post-com-count-pending{position:relative;left:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;-webkit-border-radius:11px;border-radius:11px;background:#ca4a1f;color:#fff;font-size:9px;line-height:17px;text-align:center}.ac-comment-bubble .post-com-count-no-pending{display:none}.ac-divider{display:inline-block;width:14px;height:12px;position:relative}.ac-divider:before{content:"";display:block;width:2px;height:2px;background:#000;position:absolute;left:50%;margin-left:-1px;top:60%}span.status-closed{color:red}.ac-value-stars{white-space:nowrap;word-wrap:normal;display:block}.ac-value-stars .ac-value-star{font-size:16px;width:auto;margin-right:-3px}.actions #post-query-submit{float:left;vertical-align:middle}body:not(.post-type-attachment) .actions #post-query-submit{margin-bottom:4px}.tablenav.top .ac-button{top:2px;display:inline-block;vertical-align:middle;float:left;margin-bottom:4px}body.edit-tags-php .tablenav.top .ac-button{float:none}span.dashicons.flip:before{transform:scale(-1, 1);display:inline-block}span.dashicons.yellow{color:#ffb900}span.dashicons.orange{color:#d54e21}span.dashicons.red{color:#dc3232}span.dashicons.green{color:#46b450}span.dashicons.light-gray{color:#bbb}span.dashicons.gray{color:#8a8a8a}span.dashicons.blue{color:#0073aa}span.dashicons.light-blue{color:#00a0d2}body.edit-php #delete_all{float:left;margin-right:3px}body.users-php .tablenav .actions a.add-new-h2{float:none;vertical-align:middle !important;top:2px !important}@media screen and (max-width: 782px){.tablenav.top .actions{display:block !important;margin-bottom:4px}.tablenav.top .actions *{display:none}.tablenav.top .actions .ac-button{display:inline-block}}body.upload-php .tablenav.top .ac-button{float:none}.ac-toggle-box-link:focus{outline:none;box-shadow:none}.ac-toggle-box-link .spinner{float:none;margin-top:-2px}.ac-toggle-box-link .spinner{display:none}.ac-toggle-box-link.loading .spinner{display:inline-block;visibility:visible}.ac-toggle-box-contents-ajax{padding:5px 0 0}.ac-toggle-box-contents{display:none;padding:5px 0 0}.ac-toggle-box-contents.-open{display:block}table.ac-table-items{border-spacing:0}table.ac-table-items tr td{border:0;margin:0;padding:0 0 3px}table.ac-table-items tr td.ac-table-item-qty{color:#999;padding-right:6px;text-align:left}.ac-post-state-format:before{color:#a7a7a7}.ac-image-details .ac-image-info{display:inline-block;border-radius:7px;padding:0 9px;min-height:20px;background-color:#e9e9e9;text-align:left;font-size:11px;font-weight:bold;margin:0 6px 5px 0;white-space:nowrap}.ac-image-details .ac-image-info>span{margin-right:6px}.ac-image-details .ac-image-info>span:last-child{margin-right:0}.ac-image-details .ac-image-info span{vertical-align:middle;line-height:20px}.ac-image-details .ac-image-info span.image-id{font-size:11px;color:#757575}.ac-image-details .ac-image-info span.image-file-size{font-size:12px}.ac-image-details .ac-image-info span.image-extension{text-transform:uppercase;font-size:11px;color:#757575}.ac-image-details .ac-image-info span.suffix{display:inline-block;text-transform:uppercase;font-size:10px;color:#757575;padding-left:3px;margin-top:-2px}.ac-image-details .ac-image-info span.dashicons{margin-top:-2px;color:#757575;font-size:14px;width:16px}.ac-image-details a.ac-image-info:hover{color:var(--ac-link)}.ac-image-details a.ac-image-info:hover span.dashicons{color:#3d4350}.ac-upload-space .ac-upload-space-labels{display:table;width:100%}.ac-upload-space .ac-upload-space-labels .inner{display:table-row}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-icon{display:table-cell}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-icon:before{color:#82878c;content:"";display:inline-block;font-family:"dashicons",serif;width:20px;height:20px;font-size:18px;line-height:1;text-decoration:inherit;font-weight:normal;font-style:normal;vertical-align:top;text-align:center;margin-right:4px}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-left{display:table-cell;white-space:nowrap}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-right{width:100%;text-align:right;padding-left:6px;display:table-cell;white-space:nowrap}.ac-upload-space .ac-upload-space-progress{margin-top:6px;height:3px;background:#fff;border:1px solid #dfdfdf;position:relative}.ac-upload-space .ac-upload-space-progress .ac-upload-space-progress-bar{background-color:var(--ac-notification-green);height:100%;display:block}.ac-upload-space.warning .ac-upload-space-icon:before{color:var(--ac-notification-yellow);content:"";margin-top:1px}.ac-upload-space.warning .ac-upload-space-progress-bar{background-color:var(--ac-notification-yellow)}.ac-upload-space.full .ac-upload-space-icon:before{color:var(--ac-notification-orange);content:"";margin-top:1px}.ac-upload-space.full .ac-upload-space-progress-bar{background-color:var(--ac-notification-red)}#form-site-list .tablenav .actions .ac-button{float:none}.ac-inline-info{display:inline-block;border-radius:3px;min-width:8px;padding:0 6px;min-height:20px;background-color:#e9e9e9;text-align:center;margin-right:7px;font-size:11px;font-weight:bold}.ac-rounded{display:inline-block;border-radius:10px;min-width:8px;padding:0 6px;height:20px;background-color:#e0e0e0;text-align:center;margin-left:7px;margin-right:7px;font-size:12px}.ac-rounded.ac-rounded-first{margin-left:0}.ac-spacing{display:inline-block;margin-right:10px;margin-bottom:4px}.cpac-suffix{margin-left:8px;color:gray}.ac-small-block{display:inline-block;border-radius:3px;background-color:rgba(224,224,224,.6);padding:2px 7px;margin:0 5px 5px 0}.ac-more-link-show{cursor:pointer}.ac-show-more__content{margin-right:4px}.ac-show-more__toggle{cursor:pointer;white-space:nowrap}.ac-show-more__part.-more{display:none}.ac-show-more.-on .ac-show-more__part.-more{display:inline}.ac-show-more__divider{color:#ddd;padding-right:4px}.ac-image-container{margin-bottom:-6px}.ac-image:not(body){display:inline-block;margin-right:2px;margin-bottom:6px;overflow:hidden;max-width:100%;background-color:#ccc;vertical-align:middle}.ac-image:not(body) img{display:block;margin:0 auto}.ac-image:not(body) .ac-extension{font-size:12px;line-height:22px;display:block;text-align:center;text-transform:uppercase;font-weight:bold}.ac-image:not(body).ac-icon{background-color:rgba(0,0,0,0)}.ac-image:not(body).-cover img{object-fit:cover}.rtl .column-column-attachment img{padding-left:5px;padding-right:0}.ac-progress-bar{width:100%;display:flex}.ac-progress-bar .ac-label-main{width:65px}.ac-progress-bar .ac-bar-container{flex:auto;background-color:#fff;min-height:22px;line-height:22px;position:relative;border:1px solid #ccc;border-radius:2px}.ac-progress-bar .ac-bar-container .ac-bar{height:100%;background-color:#69c471;border-right:1px solid #fff}.ac-progress-bar .ac-bar-container .ac-label-left,.ac-progress-bar .ac-bar-container .ac-label-right{text-shadow:rgba(255,255,255,.65) 0 0 5px;color:#555;position:absolute}.ac-progress-bar .ac-bar-container .ac-label-left{left:5px}.ac-progress-bar .ac-bar-container .ac-label-right{right:5px}.ac-progress-bar.full .ac-bar-container .ac-bar{background-color:rgba(255,0,0,.45);border:none}.ac-progress-bar.dark .ac-bar-container{flex:auto;background-color:#a6a6a6;min-height:22px;line-height:22px;position:relative}.ac-progress-bar.dark .ac-bar-container .ac-bar{height:100%;background-color:#46b450;border-right:1px solid #fff}.ac-progress-bar.dark .ac-bar-container .ac-label-left{color:#fff;position:absolute;left:5px}.ac-progress-bar.dark .ac-bar-container .ac-label-right{color:#fff;position:absolute;right:5px}.ac-progress-bar.dark.full .ac-bar-container .ac-bar{background-color:rgba(255,0,0,.68);border:none}div.cpac-color{line-height:26px}div.cpac-color span{display:block;-webkit-border-radius:3px;border-radius:3px;color:#fff;float:left;height:16px;line-height:16px;margin-right:12px;overflow:hidden;padding:4px 5px;font-size:10px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;min-width:47px;text-align:center}.rtl div.cpac-color span{float:right;margin-left:12px;margin-right:0}.button.cpac-button-action{position:relative;text-indent:9999px;margin-right:4px;padding:0 13px;overflow:hidden}.button.cpac-button-action:before{position:absolute;top:0;left:0;width:100%;height:100%;text-indent:0}.cpac_wp_button,.column-actions .cpac_use_icons+.hidden+.row-actions>span a,.column-actions .cpac_use_icons+.hidden+.row-actions>span button,.column-actions .cpac_use_icons+.row-actions>span a,.column-actions .cpac_use_icons+.row-actions>span button{color:#555;background:#f7f7f7;box-shadow:0 1px 0 #ccc;vertical-align:top;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border:1px solid #ccc;border-radius:3px;white-space:nowrap;box-sizing:border-box}.cpac_wp_button:hover,.column-actions .cpac_use_icons+.hidden+.row-actions>span a:hover,.column-actions .cpac_use_icons+.hidden+.row-actions>span button:hover,.column-actions .cpac_use_icons+.row-actions>span a:hover,.column-actions .cpac_use_icons+.row-actions>span button:hover{background:#fafafa;color:#23282d;border-color:#999}.column-actions .row-actions{left:0;position:relative}.column-actions .cpac_use_icons+.hidden+.row-actions>span,.column-actions .cpac_use_icons+.row-actions>span{color:rgba(0,0,0,0);font-size:0;margin-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span a,.column-actions .cpac_use_icons+.hidden+.row-actions>span button,.column-actions .cpac_use_icons+.row-actions>span a,.column-actions .cpac_use_icons+.row-actions>span button{display:inline-block;position:relative;min-width:26px;margin-bottom:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span button:before,.column-actions .cpac_use_icons+.row-actions>span a:before,.column-actions .cpac_use_icons+.row-actions>span button:before{text-indent:0;font-family:Dashicons,sans-serif;font-size:16px;position:absolute;padding-left:4px;top:0;left:0;width:100%;height:100%}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.edit a,.column-actions .cpac_use_icons+.row-actions>span.edit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.inline a,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link,.column-actions .cpac_use_icons+.row-actions>span.trash a,.column-actions .cpac_use_icons+.row-actions>span.trash button.button-link,.column-actions .cpac_use_icons+.row-actions>span.view a,.column-actions .cpac_use_icons+.row-actions>span.view button.button-link,.column-actions .cpac_use_icons+.row-actions>span.quickedit a,.column-actions .cpac_use_icons+.row-actions>span.quickedit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.approve a,.column-actions .cpac_use_icons+.row-actions>span.approve button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unapprove a,.column-actions .cpac_use_icons+.row-actions>span.unapprove button.button-link,.column-actions .cpac_use_icons+.row-actions>span.spam a,.column-actions .cpac_use_icons+.row-actions>span.spam button.button-link,.column-actions .cpac_use_icons+.row-actions>span.untrash a,.column-actions .cpac_use_icons+.row-actions>span.untrash button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unspam a,.column-actions .cpac_use_icons+.row-actions>span.unspam button.button-link,.column-actions .cpac_use_icons+.row-actions>span.reply a,.column-actions .cpac_use_icons+.row-actions>span.reply button.button-link,.column-actions .cpac_use_icons+.row-actions>span.delete a,.column-actions .cpac_use_icons+.row-actions>span.delete button.button-link,.column-actions .cpac_use_icons+.row-actions>span.backend a,.column-actions .cpac_use_icons+.row-actions>span.backend button.button-link,.column-actions .cpac_use_icons+.row-actions>span.visit a,.column-actions .cpac_use_icons+.row-actions>span.visit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.deactivate a,.column-actions .cpac_use_icons+.row-actions>span.deactivate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.archive a,.column-actions .cpac_use_icons+.row-actions>span.archive button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unarchive a,.column-actions .cpac_use_icons+.row-actions>span.unarchive button.button-link,.column-actions .cpac_use_icons+.row-actions>span.activate a,.column-actions .cpac_use_icons+.row-actions>span.activate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.download a,.column-actions .cpac_use_icons+.row-actions>span.download button.button-link,.column-actions .cpac_use_icons+.row-actions>span.duplicate a,.column-actions .cpac_use_icons+.row-actions>span.duplicate button.button-link{text-indent:-3000em}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.row-actions>span.edit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.row-actions>span.trash button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.row-actions>span.view button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.quickedit a:before,.column-actions .cpac_use_icons+.row-actions>span.quickedit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.row-actions>span.approve button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.row-actions>span.spam button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.row-actions>span.untrash button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.row-actions>span.unspam button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.row-actions>span.reply button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.row-actions>span.delete button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.row-actions>span.backend button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.row-actions>span.visit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.row-actions>span.archive button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.row-actions>span.activate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.row-actions>span.download button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate button.button-link:before{text-indent:0;font-family:Dashicons,sans-serif}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.row-actions>span.edit a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline.quickedit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.row-actions>span.inline.quickedit a:before,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a,.column-actions .cpac_use_icons+.row-actions>span.trash a{border-radius:3px;border:1px solid #ccc}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.row-actions>span.trash a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:hover,.column-actions .cpac_use_icons+.row-actions>span.trash a:hover{border-color:#999}.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.row-actions>span.view a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.row-actions>span.approve a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.row-actions>span.spam a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.row-actions>span.reply a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.row-actions>span.unspam a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.row-actions>span.delete a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.row-actions>span.backend a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.row-actions>span.visit a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.row-actions>span.archive a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.row-actions>span.activate a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.row-actions>span.download a:before{content:""}@media screen and (max-width: 782px){.wp-list-table.widefat thead th{display:none}.wp-list-table.widefat thead th.column-primary{display:table-cell}.wp-list-table.widefat tbody tr:not(.inline-edit-row):not(.no-items) td{display:none}.wp-list-table.widefat tbody tr:not(.inline-edit-row):not(.no-items) td.column-primary{display:block}}.ac-tip{display:inline-block}.ac-table-actions{display:none;position:relative;z-index:20;float:left;white-space:nowrap;margin-right:5px;margin-left:1px;margin-bottom:5px}.ac-table-actions.-init{display:block}.ac-table-actions .ac-table-actions-buttons{white-space:nowrap;display:inline-flex;vertical-align:top;border:1px solid var(--ac-button-border);border-radius:3px;overflow:hidden}.ac-table-actions .ac-table-actions-buttons .ac-table-button{display:flex}.ac-table-actions .ac-table-button{display:inline-block;padding:2px 12px;cursor:pointer;color:var(--ac-button-color);border-right:1px solid var(--ac-button-border);background:var(--ac-button-bg);text-decoration:none;font-size:13px;height:24px;line-height:24px;text-align:center}.ac-table-actions .ac-table-button:last-child{border-right:none !important}.ac-table-actions .ac-table-button:hover,.ac-table-actions .ac-table-button:focus,.ac-table-actions .ac-table-button:active{outline:none;box-shadow:none;background-color:#f0f0f1;color:var(--ac-button-hover)}.ac-table-actions .ac-table-button .dashicons{font-size:14px;width:14px;height:14px;line-height:24px}.ac-table-actions .ac-table-button.disabled{background:#ddd;color:#484848;cursor:not-allowed}.ac-table-actions .ac-table-button.active{background:#00a0d2;border:1px solid #008ec2;color:#fff}.ac-table-actions .ac-table-button.active+.ac-table-button{border-left:none}.ac-table-actions .ac-table-button.-inline-edit .dashicons{font-size:18px;margin-left:-2px}.ac-table-actions .ac-table-button.-toggle{background:none;border:1px solid rgba(0,0,0,0);padding-left:4px;padding-right:4px;transform:translateY(-1px)}.ac-table-actions .ac-table-button.-toggle .ac-toggle__switch{vertical-align:middle;margin-top:-3px;margin-right:1px;color:#888}.ac-table-actions .ac-table-button__caret{display:inline-block;vertical-align:middle;width:0;height:0;border-left:3px solid rgba(0,0,0,0);border-right:3px solid rgba(0,0,0,0);border-top:4px solid #6f6f6f;transition:transform .2s}.ac-table-actions .ac-table-button.-open{color:#0072aa}.ac-table-actions .ac-table-button.-open .ac-table-button__caret{transform:rotate(180deg)}.hide-column-tog+span .dashicons{transform:translateY(5px);margin-left:3px} +:root{--ac-text-color: #23282d;--ac-link: #0073aa;--ac-link-hover: #0096dd;--ac-button-bg: #f6f7f7;--ac-button-color: #2271b1;--ac-button-border: var(--ac-button-color);--ac-button-hover: #0a4b78;--ac-primary-color: #2271b1;--ac-primary-color-hover: #135e96;--ac-notification-red: #d63638;--ac-notification-blue: #72aee6;--ac-notification-yellow: #dba617;--ac-notification-orange: #d54e21;--ac-notification-green: #00a32a;--ac-border-grey: #ddd;--ac-pink-color: #e9426e;--ac-form-input-border: #757575;--ac-select-hover-bg: #5897fb;--ac-table-border: #c3c4c7;--ac-table-color: #50575e}:root body.admin-color-coffee{--ac-button-color: #32373c;--ac-button-border: #8c8f94;--ac-primary-color: #c7a589;--ac-primary-color-hover: #ccad93}:root body.admin-color-light{--ac-button-color: #04a4cc;--ac-button-border: #04a4cc;--ac-button-hover: #04b0db;--ac-primary-color: #04a4cc;--ac-primary-color-hover: #04b0db}:root body.admin-color-modern{--ac-link: #3858e9;--ac-link-hover: #183ad6;--ac-button-color: #3858e9;--ac-button-border: #3858e9;--ac-primary-color: #3858e9;--ac-primary-color-hover: #04b0db}:root body.admin-color-blue{--ac-button-color: #096484;--ac-primary-color: #e1a948;--ac-primary-color-hover: #e3af55}:root body.admin-color-ectoplasm{--ac-button-color: #a3b745;--ac-primary-color: #a3b745;--ac-primary-color-hover: #a9bd4f}:root body.admin-color-ocean{--ac-button-color: #7e8993;--ac-primary-color: #9ebaa0;--ac-primary-color-hover: #a7c0a9}:root body.admin-color-sunrise{--ac-button-color: #dd823b;--ac-button-hover: #db7728;--ac-primary-color: #dd823b;--ac-primary-color-hover: #df8a48}@font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=569879") format("woff2"),url("../fonts/cpac_icons.woff?v=134916") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^=cpacicon-],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-delete::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-duplicate::before{content:""}.cpacicon-filter::before{content:""}.cpacicon-more::before{content:""}.cpacicon-move::before{content:""}.cpacicon-rename::before{content:""}.cpacicon-reset-password::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}.cpacicon-text-clip::before{content:""}.cpacicon-text-wrap::before{content:""}.cpacicon-user-switch::before{content:""}body .ac-modal{position:fixed;overflow:auto;z-index:100000;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:none}body .ac-modal.-active{display:flex;align-items:center;justify-content:center}body .ac-modal__dialog{border:1px solid #c8c8c8;background:#fff;position:fixed;width:650px;max-width:90%}body .ac-modal__dialog__header{font-size:16px;line-height:16px;color:#555;padding:17px 20px}body .ac-modal__dialog__close{display:inline-block;padding:0;margin:0;border:none;background:none;position:absolute;right:0;top:0;width:52px;height:52px;text-align:center;color:#555;cursor:pointer}body .ac-modal__dialog__close:hover{background-color:#f2f2f2}body .ac-modal__dialog__close span.dashicons{font-size:22px}body .ac-modal__dialog__close span.dashicons:hover{color:var(--ac-primary-color-hover)}body .ac-modal__dialog__content{padding:20px;max-height:calc(100vh - 200px);overflow:auto}body .ac-modal__dialog__content__lead{font-weight:bold;font-size:15px;margin-top:5px;margin-bottom:25px;color:#6d6d6d}body .ac-modal__dialog__content.-p0{padding:0}body .ac-modal__dialog__content.-accent{border-top:1px solid #dbdbdb;background:#f9f9f9}body .ac-modal__dialog__content.-hide{display:none}body .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:.5px;margin-bottom:10px}body .ac-modal__dialog__list li:before{content:"";font-family:Dashicons;position:absolute;left:0;top:0;color:#3d4350}body .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}body .ac-modal__dialog__footer{padding:12px 20px;border-top:1px solid #dbdbdb;background:#f9f9f9;font-size:13px}body .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}body .ac-modal.-blocking{background:#e3e7eb}@media only screen and (max-width: 720px){body .ac-modal__dialog__footer__content{display:block}body .ac-modal__dialog__footer .button{margin-left:0;margin-top:10px}}body .ac-modal .ac-modal-footer-actions{display:flex}body .ac-modal .ac-modal-footer-actions__info{flex-grow:1;display:flex;align-items:center}@keyframes ac-striped-animation{from{transform:translateX(0)}to{transform:translateX(46px)}}.ac-striped-loading{overflow:hidden;position:relative}.ac-striped-loading:before{animation:ac-striped-animation 2s linear infinite;content:"";display:block;position:absolute;left:-46px;top:0;bottom:0;right:0;background:repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.1) 1px, transparent 2px, transparent 11px, rgba(255, 255, 255, 0.1) 12px, rgba(255, 255, 255, 0.1) 20px)}.ac-confirmation{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000000;cursor:not-allowed}.ac-confirmation__modal{cursor:pointer;padding:20px;min-width:300px;max-width:400px;margin:20px;height:auto;transform:translateX(-50%);background:#fff;border-radius:3px;box-shadow:0 0 5px rgba(0,0,0,.2);border:1px solid #d8d8d8;position:absolute;top:30%;left:50%}.ac-confirmation__modal__content{margin-bottom:20px}.ac-confirmation__modal__footer{display:block;text-align:right}.ac-confirmation__modal__footer button{margin-left:6px !important;min-width:80px}.ac-tooltip-wrapper{position:relative}.ac-tooltip-wrapper:focus .ac-tooltip,.ac-tooltip-wrapper:hover .ac-tooltip{opacity:1}.ac-tooltip{background:#000;border-radius:3px;padding:5px 10px;color:#fff;position:absolute;transform:translateX(-50%);min-width:30px;margin-top:5px;display:block;opacity:0;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000;max-width:200px}.ac-tooltip:before{content:"";display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,.8);border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);position:absolute;left:50%;top:-4px;transform:translateX(-4px)}.ac-tooltip.hover{opacity:1}html.wp-toolbar .ac-tooltip{margin-top:36px}.ac-toggle-container{display:inline-flex}.ac-toggle-container .ac-toggle-label{margin-left:7px;transform:translateY(-1px)}.ac-toggle{display:inline-block;white-space:nowrap}.ac-toggle input{position:absolute;left:-3000em}.rtl .ac-toggle input{left:inherit;right:-3000em}.ac-toggle__switch{display:inline-block;background:#ccc;border-radius:8px;width:30px;height:16px;position:relative;transition:background-color .3s}.ac-toggle__switch__on,.ac-toggle__switch__off{font-size:11px;font-weight:bold;color:#fff;position:absolute;top:5px;line-height:11px}.ac-toggle__switch__off{right:6px;color:#555}.ac-toggle__switch__on{left:8px}.ac-toggle__switch__track{border-radius:50%;display:inline-block;background:#fff;position:absolute;left:3px;top:3px;height:10px;width:10px;transition:all .1s}.ac-toggle input:checked+.ac-toggle__switch{background:var(--ac-primary-color)}.ac-toggle input:checked+.ac-toggle__switch .ac-toggle__switch__track{left:calc(100% - 13px)}.ac-toggle-v2{position:relative}.ac-toggle-v2.-disabled{cursor:not-allowed}.ac-toggle-v2.-disabled *{cursor:not-allowed}.ac-toggle-v2__toggle{position:relative;display:inline-block;margin-right:5px}.ac-toggle-v2__toggle input[type=checkbox]{position:absolute;left:0;top:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:2;border:none;margin:0 !important}.ac-toggle-v2__toggle input[type=checkbox]:focus:not(:disabled)~.ac-toggle-v2__toggle__track,.ac-toggle-v2__toggle input[type=checkbox]:active:not(:disabled)~.ac-toggle-v2__toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ac-primary-color)}.ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__thumb{transform:translateX(14px)}.ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__track{background:var(--ac-primary-color)}.ac-toggle-v2__toggle input[type=checkbox]:disabled{cursor:not-allowed}.ac-toggle-v2__toggle input[type=checkbox]:disabled~.ac-toggle-v2__toggle__track{background:#ddd !important;cursor:not-allowed}.ac-toggle-v2__toggle input[type=checkbox]:disabled~.ac-toggle-v2__toggle__thumb{cursor:not-allowed}.ac-toggle-v2__toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#d8d8d8;width:36px;height:22px;border-radius:11px;transition:background .2s ease}.ac-toggle-v2__toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;left:3px;width:16px;height:16px;border-radius:50%;transition:transform .1s ease;background-color:#fff;border:5px solid #fff}.ac-toggle-v2.-small{margin-bottom:10px}.ac-toggle-v2.-small .ac-toggle-v2__toggle{transform:translateY(2px)}.ac-toggle-v2.-small .ac-toggle-v2__toggle__track{width:30px;height:18px}.ac-toggle-v2.-small .ac-toggle-v2__toggle__thumb{top:2px;left:2px;width:14px;height:14px}.ac-toggle-v2.-small .ac-toggle-v2__toggle input[type=checkbox]:checked~.ac-toggle-v2__toggle__thumb{transform:translateX(12px)}.ac-pointer-modal-container{position:absolute;z-index:100000;width:500px}.ac-pointer-modal{background:#fff;border:1px solid var(--ac-border-grey);box-shadow:0 1px 3px rgba(0,0,0,.1)}.ac-pointer-modal__content{padding-bottom:20px}.ac-pointer-modal__content img{max-width:calc(100% - 30px);margin:0 15px;margin-bottom:5px;height:auto}.ac-pointer-modal__content h3{background:var(--ac-primary-color);color:#fff;padding:10px 15px;font-weight:400;font-size:14px;margin:0;margin-bottom:10px}.ac-pointer-modal__content h4{padding:0 15px;margin-bottom:10px}.ac-pointer-modal__content p{padding:0 15px;margin-bottom:10px}.ac-pointer-modal__arrow{display:block;width:10px;height:10px;border-left:1px solid var(--ac-border-grey);border-bottom:1px solid var(--ac-border-grey);position:absolute;background:#fff;top:50%;transform:translateY(-5px) rotate(45deg);left:-5px}.ac-pointer-modal__arrow[data-pos=left]{left:inherit;right:-5px;transform:translateY(-5px) rotate(-135deg)}.ac-pointer-modal__arrow[data-pos=right_bottom]{display:none}.ac-value-modal .ac-value-modal-background{position:fixed;left:0;top:0;right:0;bottom:0;z-index:10000000000;background:rgba(0,0,0,.6)}.ac-value-modal .ac-value-modal-container{display:flex;position:fixed;top:0;left:0;bottom:0;right:0;align-items:center;justify-content:center;z-index:10000000001}.ac-value-modal table td{vertical-align:top}.ac-value-modal.-w-large .ac-value-modal-panel{width:800px}.ac-value-modal .ac-value-modal-panel{background:#fff;width:600px}.ac-value-modal .ac-value-modal-panel__header{background:#fafafa;border-bottom:1px solid #ccc;text-align:right;display:flex}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-title{text-align:left;display:flex;align-items:center;flex:1;overflow:hidden}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-title h2{margin:0;font-size:15px;padding:10px 20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions{width:70px;display:flex;align-items:center;justify-content:flex-end}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions button{border:none;background-color:rgba(0,0,0,0);cursor:pointer;border-left:1px solid #ccc;display:block;width:50px;height:50px}.ac-value-modal .ac-value-modal-panel__header .ac-value-modal-actions button:hover{background:#efefef}.ac-value-modal .ac-value-modal-panel__body{padding:20px;max-height:calc(100vh - 150px);overflow:auto}.ac-value-modal .ac-value-modal-panel__body video{display:block}.ac-value-modal .ac-value-modal-panel__body img{width:100%;height:auto}.ac-value-modal .ac-value-modal-panel__body span.loading{display:block;margin:20px;text-align:center}.ac-value-modal .ac-value-modal-panel__footer{display:flex;border-top:1px solid #ccc;background:#fafafa}.ac-value-modal .ac-value-modal-panel__footer .ac-value-modal__edit a{margin-top:5px;margin-bottom:5px}.ac-value-modal .ac-value-modal-panel__footer button{width:40px;height:40px;border:none;border-left:1px solid #ccc;justify-content:center;cursor:pointer;background:none;align-items:center}.ac-value-modal .ac-value-modal-panel__footer button .dashicons{transform:translateY(2px);font-size:16px}.ac-value-modal .ac-value-modal-panel__footer button:hover{background:#efefef}.ac-value-modal__edit{flex-grow:1;padding-left:10px;display:flex;align-items:center}.ac-value-modal__edit a.button{margin-right:5px}.ac-value-modal__navigation{flex-grow:0;width:100px;display:flex;justify-content:flex-end}.ac-value-modal .ac-badge{background:#eee;border-radius:3px;color:#464646;font-size:13px;padding:2px 10px}.ac-value-modal.-nopadding .ac-value-modal-panel__body{padding:0}.ac-value-modal.-nopadding .ac-value-modal-panel__body .loading{padding:20px}.ac-value-modal.-preview .ac-value-modal-panel{width:auto;max-width:80vw;min-width:400px;top:0;left:0;transform:none}.ac-value-modal.-preview .ac-value-modal-panel .ac-value-modal-panel__header h2{text-overflow:ellipsis;max-width:500px;overflow:hidden;white-space:nowrap}.ac-value-modal.-preview .ac-value-modal-panel .ac-value-modal-panel__body img{width:auto;min-width:300px;max-width:100%;max-height:calc(100vh - 150px);display:block;margin:auto}[data-component=ac-json]{overflow-x:scroll;width:100%;font-size:12px !important}[data-component=ac-json] ul{font-size:13px !important}[data-component=ac-json]>div>div>ul{margin-left:0}[data-component=ac-json]>div>div>ul>ul>li.indent{margin-left:0;padding-left:0}[data-component=ac-json]::-webkit-scrollbar{display:none}[data-component=ac-json] .arrow{width:auto;height:auto;left:inherit;bottom:inherit}[data-component=ac-json] .root{max-width:100px;white-space:nowrap;margin-bottom:5px}[data-component=ac-json] .root>.container{padding-left:10px}[data-component=ac-json] .root>.container .arrow{margin-left:-6px}[data-component=ac-json] ul .root{display:none}[data-component=ac-json] ul li.indent{white-space:nowrap;margin-bottom:0}[data-component=ac-json] ul li.indent ul{margin-top:4px;margin-bottom:4px}[data-component=ac-json] ul li span.container{display:none}[data-component=ac-json] ul li span.container+span.property{color:var(--ac-primary-color);cursor:pointer !important;font-style:italic}[data-component=ac-json] ul li span.container+span.property:hover{color:var(--ac-primary-color-hover)}[data-component=ac-json] ul li span.container~span.operator{display:none}[data-modal-value]{cursor:pointer}.column-status .dashicons{font-size:22px}.column-status .dashicons.large{width:25px;height:28px;font-size:28px}.column-status .dashicons.dashicons-lock{font-size:15px;margin-left:-2px}.ac-image-sizes .ac-missing-size{color:#929292}table .column-audio_player{min-width:310px !important}.ac-comment-bubble .post-com-count{display:inline-block;vertical-align:top}.ac-comment-bubble .post-com-count-no-comments,.ac-comment-bubble .post-com-count-approved{margin-top:5px}.ac-comment-bubble .comment-count-no-comments,.ac-comment-bubble .comment-count-approved{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;-webkit-border-radius:5px;border-radius:5px;background-color:#72777c;color:#fff;font-size:11px;line-height:21px;text-align:center}.ac-comment-bubble .post-com-count-no-comments:after,.ac-comment-bubble .post-com-count-approved:after{content:"";display:block;margin-left:8px;width:0;height:0;border-top:5px solid #72777c;border-right:5px solid rgba(0,0,0,0)}.ac-comment-bubble .post-com-count-approved:hover .comment-count-approved,.ac-comment-bubble .post-com-count-approved:focus .comment-count-approved{background:#0073aa}.ac-comment-bubble .post-com-count-approved:hover:after,.ac-comment-bubble .post-com-count-approved:focus:after{border-top-color:#0073aa}.ac-comment-bubble .post-com-count-pending{position:relative;left:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;-webkit-border-radius:11px;border-radius:11px;background:#ca4a1f;color:#fff;font-size:9px;line-height:17px;text-align:center}.ac-comment-bubble .post-com-count-no-pending{display:none}.ac-divider{display:inline-block;width:14px;height:12px;position:relative}.ac-divider:before{content:"";display:block;width:2px;height:2px;background:#000;position:absolute;left:50%;margin-left:-1px;top:60%}span.status-closed{color:red}.ac-value-stars{white-space:nowrap;word-wrap:normal;display:block}.ac-value-stars .ac-value-star{font-size:16px;width:auto;margin-right:-3px}.actions #post-query-submit{float:left;vertical-align:middle}body:not(.post-type-attachment) .actions #post-query-submit{margin-bottom:4px}.tablenav.top .ac-button{top:2px;display:inline-block;vertical-align:middle;float:left;margin-bottom:4px}body.edit-tags-php .tablenav.top .ac-button{float:none}span.dashicons.flip:before{transform:scale(-1, 1);display:inline-block}span.dashicons.yellow{color:#ffb900}span.dashicons.orange{color:#d54e21}span.dashicons.red{color:#dc3232}span.dashicons.green{color:#46b450}span.dashicons.light-gray{color:#bbb}span.dashicons.gray{color:var(--ac-table-color)}span.dashicons.blue{color:#0073aa}span.dashicons.light-blue{color:#00a0d2}body.edit-php #delete_all{float:left;margin-right:3px}body.users-php .tablenav .actions a.add-new-h2{float:none;vertical-align:middle !important;top:2px !important}@media screen and (max-width: 782px){.tablenav.top .actions{display:block !important;margin-bottom:4px}.tablenav.top .actions *{display:none}.tablenav.top .actions .ac-button{display:inline-block}}body.upload-php .tablenav.top .ac-button{float:none}.ac-toggle-box-link:focus{outline:none;box-shadow:none}.ac-toggle-box-link .spinner{float:none;margin-top:-2px}.ac-toggle-box-link .spinner{display:none}.ac-toggle-box-link.loading .spinner{display:inline-block;visibility:visible}.ac-toggle-box-contents-ajax{padding:5px 0 0}.ac-toggle-box-contents{display:none;padding:5px 0 0}.ac-toggle-box-contents.-open{display:block}table.ac-table-items{border-spacing:0}table.ac-table-items tr td{border:0;margin:0;padding:0 0 3px}table.ac-table-items tr td.ac-table-item-qty{color:#999;padding-right:6px;text-align:left}a.ac-badge-post-count{display:inline-block;background:#eee;border-radius:3px;font-size:13px;padding:6px 14px;text-decoration:none;margin-right:6px;margin-bottom:6px}a.ac-badge-post-count span.-label{color:#464646}a.ac-badge-post-count:hover{background:#dcdcdc}table.ac-table-items.-user-posts{width:100%}table.ac-table-items.-user-posts tr td,table.ac-table-items.-user-posts tr th{padding:12px 20px 14px}table.ac-table-items.-user-posts thead tr>*{padding-bottom:5px;border-bottom:1px solid #eee}table.ac-table-items.-user-posts tbody tr td,table.ac-table-items.-user-posts tbody tr th{border-bottom:1px solid #eee}table.ac-table-items.-user-posts tbody tr:last-child td,table.ac-table-items.-user-posts tbody tr:last-child th{border-bottom:none}table.ac-table-items.-user-posts .col-id{text-align:left;font-size:14px;padding-left:0;padding-right:0;width:40px;white-space:nowrap}table.ac-table-items.-user-posts .col-date{white-space:nowrap;width:1px}table.ac-table-items.-user-posts .col-post-type{white-space:nowrap;width:1px}table.ac-table-items.-user-posts .col-post-type{text-align:right;padding-right:0}.ac-post-state-format:before{color:var(--ac-table-color)}.ac-image-details .ac-image-info{display:inline-block;border-radius:7px;padding:0 9px;min-height:20px;background-color:#e9e9e9;text-align:left;font-size:11px;font-weight:bold;margin:0 6px 5px 0;white-space:nowrap}.ac-image-details .ac-image-info>span{margin-right:6px}.ac-image-details .ac-image-info>span:last-child{margin-right:0}.ac-image-details .ac-image-info span{vertical-align:middle;line-height:20px}.ac-image-details .ac-image-info span.image-id{font-size:11px;color:#757575}.ac-image-details .ac-image-info span.image-file-size{font-size:12px}.ac-image-details .ac-image-info span.image-extension{text-transform:uppercase;font-size:11px;color:#757575}.ac-image-details .ac-image-info span.suffix{display:inline-block;text-transform:uppercase;font-size:10px;color:#757575;padding-left:3px;margin-top:-2px}.ac-image-details .ac-image-info span.dashicons{margin-top:-2px;color:#757575;font-size:14px;width:16px}.ac-image-details a.ac-image-info:hover{color:var(--ac-link)}.ac-image-details a.ac-image-info:hover span.dashicons{color:#3d4350}.ac-upload-space .ac-upload-space-labels{display:table;width:100%}.ac-upload-space .ac-upload-space-labels .inner{display:table-row}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-icon{display:table-cell}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-icon:before{color:#82878c;content:"";display:inline-block;font-family:"dashicons",serif;width:20px;height:20px;font-size:18px;line-height:1;text-decoration:inherit;font-weight:normal;font-style:normal;vertical-align:top;text-align:center;margin-right:4px}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-left{display:table-cell;white-space:nowrap}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-right{width:100%;text-align:right;padding-left:6px;display:table-cell;white-space:nowrap}.ac-upload-space .ac-upload-space-progress{margin-top:6px;height:3px;background:#fff;border:1px solid #dfdfdf;position:relative}.ac-upload-space .ac-upload-space-progress .ac-upload-space-progress-bar{background-color:var(--ac-notification-green);height:100%;display:block}.ac-upload-space.warning .ac-upload-space-icon:before{color:var(--ac-notification-yellow);content:"";margin-top:1px}.ac-upload-space.warning .ac-upload-space-progress-bar{background-color:var(--ac-notification-yellow)}.ac-upload-space.full .ac-upload-space-icon:before{color:var(--ac-notification-orange);content:"";margin-top:1px}.ac-upload-space.full .ac-upload-space-progress-bar{background-color:var(--ac-notification-red)}#form-site-list .tablenav .actions .ac-button{float:none}.ac-inline-info{display:inline-block;border-radius:3px;min-width:8px;padding:0 6px;min-height:20px;background-color:#e9e9e9;text-align:center;margin-right:7px;font-size:11px;font-weight:bold}.ac-rounded{display:inline-block;border-radius:10px;min-width:8px;padding:0 6px;height:20px;background-color:#e0e0e0;text-align:center;margin-left:7px;margin-right:7px;font-size:12px}.ac-rounded.ac-rounded-first{margin-left:0}.ac-spacing{display:inline-block;margin-right:10px;margin-bottom:4px}.cpac-suffix{margin-left:8px;color:gray}.ac-small-block{display:inline-block;border-radius:3px;background-color:rgba(224,224,224,.6);padding:2px 7px;margin:0 5px 5px 0}.ac-more-link-show{cursor:pointer}.ac-show-more__content{margin-right:4px}.ac-show-more__toggle{cursor:pointer;white-space:nowrap}.ac-show-more__part.-more{display:none}.ac-show-more.-on .ac-show-more__part.-more{display:inline}.ac-show-more__divider{color:#ddd;padding-right:4px}.ac-image-container{margin-bottom:-6px}.ac-image:not(body){display:inline-block;margin-right:2px;margin-bottom:6px;overflow:hidden;max-width:100%;background-color:#ccc;vertical-align:middle}.ac-image:not(body) img{display:block;margin:0 auto}.ac-image:not(body) .ac-extension{font-size:12px;line-height:22px;display:block;text-align:center;text-transform:uppercase;font-weight:bold}.ac-image:not(body).ac-icon{background-color:rgba(0,0,0,0)}.ac-image:not(body).-cover img{object-fit:cover}.rtl .column-column-attachment img{padding-left:5px;padding-right:0}.ac-progress-bar{width:100%;display:flex}.ac-progress-bar .ac-label-main{width:65px}.ac-progress-bar .ac-bar-container{flex:auto;background-color:#fff;min-height:22px;line-height:22px;position:relative;border:1px solid #ccc;border-radius:2px}.ac-progress-bar .ac-bar-container .ac-bar{height:100%;background-color:#69c471;border-right:1px solid #fff}.ac-progress-bar .ac-bar-container .ac-label-left,.ac-progress-bar .ac-bar-container .ac-label-right{text-shadow:rgba(255,255,255,.65) 0 0 5px;color:#555;position:absolute}.ac-progress-bar .ac-bar-container .ac-label-left{left:5px}.ac-progress-bar .ac-bar-container .ac-label-right{right:5px}.ac-progress-bar.full .ac-bar-container .ac-bar{background-color:rgba(255,0,0,.45);border:none}.ac-progress-bar.dark .ac-bar-container{flex:auto;background-color:#a6a6a6;min-height:22px;line-height:22px;position:relative}.ac-progress-bar.dark .ac-bar-container .ac-bar{height:100%;background-color:#46b450;border-right:1px solid #fff}.ac-progress-bar.dark .ac-bar-container .ac-label-left{color:#fff;position:absolute;left:5px}.ac-progress-bar.dark .ac-bar-container .ac-label-right{color:#fff;position:absolute;right:5px}.ac-progress-bar.dark.full .ac-bar-container .ac-bar{background-color:rgba(255,0,0,.68);border:none}div.cpac-color{line-height:26px}div.cpac-color span{display:block;-webkit-border-radius:3px;border-radius:3px;color:#fff;float:left;height:16px;line-height:16px;margin-right:12px;overflow:hidden;padding:4px 5px;font-size:10px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;min-width:47px;text-align:center}.rtl div.cpac-color span{float:right;margin-left:12px;margin-right:0}.button.cpac-button-action{position:relative;text-indent:9999px;margin-right:4px;padding:0 13px;overflow:hidden}.button.cpac-button-action:before{position:absolute;top:0;left:0;width:100%;height:100%;text-indent:0}.cpac_wp_button,.column-actions .cpac_use_icons+.hidden+.row-actions>span a,.column-actions .cpac_use_icons+.hidden+.row-actions>span button,.column-actions .cpac_use_icons+.row-actions>span a,.column-actions .cpac_use_icons+.row-actions>span button{color:#555;background:#f7f7f7;box-shadow:0 1px 0 #ccc;vertical-align:top;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border:1px solid #ccc;border-radius:3px;white-space:nowrap;box-sizing:border-box}.cpac_wp_button:hover,.column-actions .cpac_use_icons+.hidden+.row-actions>span a:hover,.column-actions .cpac_use_icons+.hidden+.row-actions>span button:hover,.column-actions .cpac_use_icons+.row-actions>span a:hover,.column-actions .cpac_use_icons+.row-actions>span button:hover{background:#fafafa;color:#23282d;border-color:#999}.column-actions .row-actions{left:0;position:relative}.column-actions .cpac_use_icons+.hidden+.row-actions>span,.column-actions .cpac_use_icons+.row-actions>span{color:rgba(0,0,0,0);font-size:0;margin-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span a,.column-actions .cpac_use_icons+.hidden+.row-actions>span button,.column-actions .cpac_use_icons+.row-actions>span a,.column-actions .cpac_use_icons+.row-actions>span button{display:inline-flex;align-items:center;justify-content:center;position:relative;min-width:26px;margin-bottom:5px;padding-left:6px;padding-right:6px}.column-actions .cpac_use_icons+.hidden+.row-actions>span a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span button:before,.column-actions .cpac_use_icons+.row-actions>span a:before,.column-actions .cpac_use_icons+.row-actions>span button:before{text-indent:0;font-family:Dashicons,sans-serif;font-size:16px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.edit a,.column-actions .cpac_use_icons+.row-actions>span.edit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.inline a,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link,.column-actions .cpac_use_icons+.row-actions>span.trash a,.column-actions .cpac_use_icons+.row-actions>span.trash button.button-link,.column-actions .cpac_use_icons+.row-actions>span.view a,.column-actions .cpac_use_icons+.row-actions>span.view button.button-link,.column-actions .cpac_use_icons+.row-actions>span.quickedit a,.column-actions .cpac_use_icons+.row-actions>span.quickedit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.approve a,.column-actions .cpac_use_icons+.row-actions>span.approve button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unapprove a,.column-actions .cpac_use_icons+.row-actions>span.unapprove button.button-link,.column-actions .cpac_use_icons+.row-actions>span.spam a,.column-actions .cpac_use_icons+.row-actions>span.spam button.button-link,.column-actions .cpac_use_icons+.row-actions>span.untrash a,.column-actions .cpac_use_icons+.row-actions>span.untrash button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unspam a,.column-actions .cpac_use_icons+.row-actions>span.unspam button.button-link,.column-actions .cpac_use_icons+.row-actions>span.reply a,.column-actions .cpac_use_icons+.row-actions>span.reply button.button-link,.column-actions .cpac_use_icons+.row-actions>span.delete a,.column-actions .cpac_use_icons+.row-actions>span.delete button.button-link,.column-actions .cpac_use_icons+.row-actions>span.backend a,.column-actions .cpac_use_icons+.row-actions>span.backend button.button-link,.column-actions .cpac_use_icons+.row-actions>span.visit a,.column-actions .cpac_use_icons+.row-actions>span.visit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.deactivate a,.column-actions .cpac_use_icons+.row-actions>span.deactivate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.archive a,.column-actions .cpac_use_icons+.row-actions>span.archive button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unarchive a,.column-actions .cpac_use_icons+.row-actions>span.unarchive button.button-link,.column-actions .cpac_use_icons+.row-actions>span.activate a,.column-actions .cpac_use_icons+.row-actions>span.activate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.download a,.column-actions .cpac_use_icons+.row-actions>span.download button.button-link,.column-actions .cpac_use_icons+.row-actions>span.duplicate a,.column-actions .cpac_use_icons+.row-actions>span.duplicate button.button-link{text-indent:-3000em}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.row-actions>span.edit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.row-actions>span.trash button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.row-actions>span.view button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.quickedit a:before,.column-actions .cpac_use_icons+.row-actions>span.quickedit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.row-actions>span.approve button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.row-actions>span.spam button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.row-actions>span.untrash button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.row-actions>span.unspam button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.row-actions>span.reply button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.row-actions>span.delete button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.row-actions>span.backend button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.row-actions>span.visit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.row-actions>span.archive button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.row-actions>span.activate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.row-actions>span.download button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate button.button-link:before{text-indent:0;font-family:Dashicons,sans-serif}.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline.quickedit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.row-actions>span.inline.quickedit a:before,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a,.column-actions .cpac_use_icons+.row-actions>span.trash a{border-radius:3px;border:1px solid #ccc}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.row-actions>span.trash a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:hover,.column-actions .cpac_use_icons+.row-actions>span.trash a:hover{border-color:#999}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a,.column-actions .cpac_use_icons+.row-actions>span.edit a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.row-actions>span.edit a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a,.column-actions .cpac_use_icons+.row-actions>span.duplicate a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a,.column-actions .cpac_use_icons+.row-actions>span.view a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.row-actions>span.view a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a,.column-actions .cpac_use_icons+.row-actions>span.unapprove a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a,.column-actions .cpac_use_icons+.row-actions>span.approve a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.row-actions>span.approve a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a,.column-actions .cpac_use_icons+.row-actions>span.spam a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.row-actions>span.spam a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a,.column-actions .cpac_use_icons+.row-actions>span.reply a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.row-actions>span.reply a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a,.column-actions .cpac_use_icons+.row-actions>span.untrash a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.row-actions>span.untrash a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a,.column-actions .cpac_use_icons+.row-actions>span.unspam a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.row-actions>span.unspam a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a,.column-actions .cpac_use_icons+.row-actions>span.delete a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.row-actions>span.delete a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a,.column-actions .cpac_use_icons+.row-actions>span.backend a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.row-actions>span.backend a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a,.column-actions .cpac_use_icons+.row-actions>span.visit a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.row-actions>span.visit a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a,.column-actions .cpac_use_icons+.row-actions>span.deactivate a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a,.column-actions .cpac_use_icons+.row-actions>span.archive a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.row-actions>span.archive a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a,.column-actions .cpac_use_icons+.row-actions>span.unarchive a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a,.column-actions .cpac_use_icons+.row-actions>span.activate a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.row-actions>span.activate a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a,.column-actions .cpac_use_icons+.row-actions>span.download a{padding-left:4px;padding-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.row-actions>span.download a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.resetpassword a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.resetpassword button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.switch_to_user a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.switch_to_user button.button-link,.column-actions .cpac_use_icons+.row-actions>span.resetpassword a,.column-actions .cpac_use_icons+.row-actions>span.resetpassword button.button-link,.column-actions .cpac_use_icons+.row-actions>span.switch_to_user a,.column-actions .cpac_use_icons+.row-actions>span.switch_to_user button.button-link{text-indent:-3000em}.column-actions .cpac_use_icons+.hidden+.row-actions>span.resetpassword a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.resetpassword button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.switch_to_user a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.switch_to_user button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.resetpassword a:before,.column-actions .cpac_use_icons+.row-actions>span.resetpassword button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.switch_to_user a:before,.column-actions .cpac_use_icons+.row-actions>span.switch_to_user button.button-link:before{font-size:13px;text-indent:0;font-family:cpac_icons,sans-serif}.column-actions .cpac_use_icons+.hidden+.row-actions>span.resetpassword a:before,.column-actions .cpac_use_icons+.row-actions>span.resetpassword a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.switch_to_user a:before,.column-actions .cpac_use_icons+.row-actions>span.switch_to_user a:before{content:""}.column-actions .cpac_use_icons+.hidden+.row-actions>span.copy,.column-actions .cpac_use_icons+.row-actions>span.copy{background:red}.column-actions .cpac_use_icons+.hidden+.row-actions>span.copy .copy-to-clipboard-container button,.column-actions .cpac_use_icons+.row-actions>span.copy .copy-to-clipboard-container button{text-indent:-3000em;zoom:0}.column-actions .cpac_use_icons+.hidden+.row-actions>span.copy .copy-to-clipboard-container button:before,.column-actions .cpac_use_icons+.row-actions>span.copy .copy-to-clipboard-container button:before{font-family:Dashicons;content:""}@media screen and (max-width: 782px){.wp-list-table.widefat thead th{display:none}.wp-list-table.widefat thead th.column-primary{display:table-cell}.wp-list-table.widefat tbody tr:not(.inline-edit-row):not(.no-items) td{display:none}.wp-list-table.widefat tbody tr:not(.inline-edit-row):not(.no-items) td.column-primary{display:block}}.ac-tip{display:inline-block}.ac-table-actions{display:none;position:relative;z-index:20;float:left;white-space:nowrap;margin-right:5px;margin-left:1px;margin-bottom:5px}.ac-table-actions.-init{display:block}.ac-table-actions .ac-table-actions-buttons{white-space:nowrap;display:inline-flex;height:30px;box-sizing:border-box;vertical-align:top;border:1px solid var(--ac-button-border);border-radius:3px;overflow:hidden}.ac-table-actions .ac-table-actions-buttons .ac-table-button{display:flex}.ac-table-actions .ac-table-button{display:inline-block;padding:2px 12px;cursor:pointer;color:var(--ac-button-color);border-right:1px solid var(--ac-button-border);background:var(--ac-button-bg);text-decoration:none;font-size:13px;height:24px;line-height:24px;text-align:center}.ac-table-actions .ac-table-button:last-child{border-right:none !important}.ac-table-actions .ac-table-button:hover,.ac-table-actions .ac-table-button:focus,.ac-table-actions .ac-table-button:active{outline:none;box-shadow:none;background-color:#f0f0f1;color:var(--ac-button-hover)}.ac-table-actions .ac-table-button .dashicons{font-size:14px;width:14px;height:14px;line-height:24px}.ac-table-actions .ac-table-button.disabled{background:#ddd;color:#484848;cursor:not-allowed}.ac-table-actions .ac-table-button.active{background:#00a0d2;border:1px solid #008ec2;color:#fff}.ac-table-actions .ac-table-button.active+.ac-table-button{border-left:none}.ac-table-actions .ac-table-button.-inline-edit .dashicons{font-size:18px;margin-left:-2px}.ac-table-actions .ac-table-button.-toggle{background:none;border:1px solid rgba(0,0,0,0);padding-left:4px;padding-right:4px;transform:translateY(-1px)}.ac-table-actions .ac-table-button.-toggle .ac-toggle__switch{vertical-align:middle;margin-top:-3px;margin-right:1px;color:#888}.ac-table-actions .ac-table-button__caret{display:inline-block;vertical-align:middle;width:0;height:0;border-left:3px solid rgba(0,0,0,0);border-right:3px solid rgba(0,0,0,0);border-top:4px solid #6f6f6f;transition:transform .2s}.ac-table-actions .ac-table-button.-open{color:#0072aa}.ac-table-actions .ac-table-button.-open .ac-table-button__caret{transform:rotate(180deg)}.hide-column-tog+span .dashicons{transform:translateY(5px);margin-left:3px}.ac-value-modal-container .ac-modal-images-container{display:grid;grid-template-columns:repeat(4, 1fr);grid-auto-rows:min-content;grid-gap:10px;width:100%}@media screen and (max-width: 782px){.ac-value-modal-container .ac-modal-images-container{grid-template-columns:repeat(2, 1fr)}}.ac-value-modal-container .ac-modal-images-container .ac-image-container{border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;margin-bottom:0;border-radius:2px}.ac-value-modal-container .ac-modal-images-container .ac-image-container .ac-image-center img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.ac-value-modal-container .ac-modal-images-container .ac-image-container .ac-image-meta{padding:6px 0}.ac-value-modal-container .ac-modal-images-container .ac-image-container .ac-image-meta .ac-image-meta-item{word-break:break-word;padding:6px 10px 8px} diff --git a/assets/fonts/cpac_icons.woff b/assets/fonts/cpac_icons.woff index 148675d78..7a256ffaf 100644 Binary files a/assets/fonts/cpac_icons.woff and b/assets/fonts/cpac_icons.woff differ diff --git a/assets/fonts/cpac_icons.woff2 b/assets/fonts/cpac_icons.woff2 index adf67e791..84e48f343 100644 Binary files a/assets/fonts/cpac_icons.woff2 and b/assets/fonts/cpac_icons.woff2 differ diff --git a/assets/js/admin-general.js b/assets/js/admin-general.js index d890a6bf0..ce4f0bbb8 100644 --- a/assets/js/admin-general.js +++ b/assets/js/admin-general.js @@ -1,2 +1,2 @@ /*! For license information please see admin-general.js.LICENSE.txt */ -(()=>{var e={808:(e,t,n)=>{var s,i,o;void 0===(i="function"==typeof(s=o=function(){function e(){for(var e=0,t={};e{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,n,s){t(e!=n,s)},t.notOk=function(e,n){t(!e,n)},t.equal=function(e,n,s){t(e==n,s)},t.ok=t,e.exports=t},559:(e,t,n)=>{var s=n(69),i=n(999),o=n(204);function r(e){if(!(this instanceof r))return new r(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=r,r.prototype.emit=function(e){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.emit: eventName should be type string or symbol");for(var t=[],n=1,s=arguments.length;n0&&this._emit(this._listeners[e],t),this._starListeners.length>0&&this._emit(this._starListeners,e,t,r.uuid),r(),this},r.prototype.on=r.prototype.addListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.on: listener should be type function"),"*"===e?this._starListeners.push(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)),this},r.prototype.prependListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.prependListener: listener should be type function"),"*"===e?this._starListeners.unshift(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].unshift(t)),this},r.prototype.once=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.once: listener should be type function");var n=this;return this.on(e,(function s(){t.apply(n,arguments),n.removeListener(e,s)})),this},r.prototype.prependOnceListener=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(e,(function s(){t.apply(n,arguments),n.removeListener(e,s)})),this},r.prototype.removeListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.removeListener: listener should be type function"),"*"===e?(this._starListeners=this._starListeners.slice(),n(this._starListeners,t)):(void 0!==this._listeners[e]&&(this._listeners[e]=this._listeners[e].slice()),n(this._listeners[e],t));function n(e,t){if(e){var n=e.indexOf(t);return-1!==n?(s(e,n,1),!0):void 0}}},r.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},r.prototype.listeners=function(e){var t="*"!==e?this._listeners[e]:this._starListeners,n=[];if(t)for(var s=t.length,i=0;i{var s=n(204),i="undefined"!=typeof window;function o(e){this.hasWindow=e,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}o.prototype.push=function(e){s.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},o.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var e=this;this.method((function(t){for(;e.queue.length&&t.timeRemaining()>0;)e.queue.shift()(t);e.scheduled=!1,e.queue.length&&e.schedule()}))}},o.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return i?(window._nanoScheduler||(window._nanoScheduler=new o(!0)),e=window._nanoScheduler):e=new o,e}},999:(e,t,n)=>{var s,i=n(61)(),o=n(204);r.disabled=!0;try{s=window.performance,r.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!s.mark}catch(e){}function r(e){if(o.equal(typeof e,"string","nanotiming: name should be type string"),r.disabled)return l;var t=(1e4*s.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function a(o){var r="end-"+t+"-"+e;s.mark(r),i.push((function(){var i=null;try{var l=e+" ["+t+"]";s.measure(l,n,r),s.clearMarks(n),s.clearMarks(r)}catch(e){i=e}o&&o(i,e)}))}return s.mark(n),a.uuid=t,a}function l(e){e&&i.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=r},69:e=>{"use strict";e.exports=function(e,t,n){var s,i=e.length;if(!(t>=i||0===n)){var o=i-(n=t+n>i?i-t:n);for(s=t;s{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";let e=n(808);class t{constructor(e){this.element=e,this.init()}init(){if(this.element.classList.contains("-closable")){const t=this.element.querySelector(".ac-section__header");if(t&&t.addEventListener("click",(()=>{this.toggle()})),this.isStorable()){let t=e.get(this.getCookieKey());void 0!==t&&(1===parseInt(t)?this.open:this.close())}}}getCookieKey(){return`ac-section_${this.getSectionId()}`}getSectionId(){return this.element.dataset.section}isStorable(){return void 0!==this.element.dataset.section}toggle(){this.isOpen()?this.close():this.open()}isOpen(){return!this.element.classList.contains("-closed")}open(){this.element.classList.remove("-closed"),this.isStorable()&&e.set(this.getCookieKey(),1)}close(){this.element.classList.add("-closed"),this.isStorable()&&e.set(this.getCookieKey(),0)}}class s{constructor(e,t=""){this.element=e,this.content=t||e.dataset.acTip,this.tip=i(this.content),this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();document.body.appendChild(this.tip),this.tip.style.left=t.left-e.left+this.element.offsetWidth/2+"px",this.tip.style.top=t.top-e.top+this.element.offsetHeight+"px",this.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(()=>{this.tip.classList.remove("hover"),document.body.contains(this.tip)&&document.body.removeChild(this.tip)})),this.element.removeAttribute("title"))}}const i=e=>{let t=document.createElement("div");return t.classList.add("ac-tooltip"),t.innerHTML=e,t},o=class{constructor(){this.init()}init(){document.querySelectorAll(".ac-tooltip").forEach((e=>e.remove())),document.querySelectorAll("[data-ac-tip]").forEach((e=>{new s(e)}))}};function r(){}function l(e){return e()}function a(){return Object.create(null)}function c(e){e.forEach(l)}function u(e){return"function"==typeof e}function h(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function d(e){return 0===Object.keys(e).length}new Set;const p="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class f{constructor(e){this.options=e,this._listeners="WeakMap"in p?new WeakMap:void 0}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return null!==(e=this._observer)&&void 0!==e?e:this._observer=new ResizeObserver((e=>{var t;for(const n of e)f.entries.set(n.target,n),null===(t=this._listeners.get(n.target))||void 0===t||t(n)}))}}f.entries="WeakMap"in p?new WeakMap:void 0;let m,v=!1;function y(e,t){e.appendChild(t)}function g(e,t,n){e.insertBefore(t,n||null)}function b(e){e.parentNode&&e.parentNode.removeChild(e)}function w(e){return document.createElement(e)}function _(e){return document.createTextNode(e)}function $(){return _(" ")}function E(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function C(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function L(e,t,n){e.classList[n?"add":"remove"](t)}function k(e){m=e}new Map;const S=[],x=[];let O=[];const A=[],q=Promise.resolve();let I=!1;function T(e){O.push(e)}const N=new Set;let H=0;function M(){if(0!==H)return;const e=m;do{try{for(;H-1===e.indexOf(s)?t.push(s):n.push(s))),n.forEach((e=>e())),O=t}(n.after_update),c(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function F(e,t,n,s,i,o,h,d=[-1]){const p=m;k(e);const f=e.$$={fragment:null,ctx:[],props:o,update:r,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(p?p.$$.context:[])),callbacks:a(),dirty:d,skip_bound:!1,root:t.target||p.$$.root};h&&h(f.root);let y=!1;if(f.ctx=n?n(e,t.props||{},((t,n,...s)=>{const o=s.length?s[0]:n;return f.ctx&&i(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),y&&function(e,t){-1===e.$$.dirty[0]&&(S.push(e),I||(I=!0,q.then(M)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const t=e.$$.on_mount.map(l).filter(u);e.$$.on_destroy?e.$$.on_destroy.push(...t):c(t),e.$$.on_mount=[]})),o.forEach(T)}(e,t.target,t.anchor,t.customElement),v=!1,M()}var g,w,_;k(p)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(P=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(l).filter(u);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){c(this.$$.on_disconnect)}$destroy(){j(this,1),this.$destroy=r}$on(e,t){if(!u(t))return r;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!d(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class W{$destroy(){j(this,1),this.$destroy=r}$on(e,t){if(!u(t))return r;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!d(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function D(e){let t,n,s,i,o,l,a;return{c(){t=w("div"),n=w("div"),s=$(),i=w("div"),C(n,"class","ac-pointer-modal__arrow"),C(n,"data-pos",e[1]),C(i,"class","ac-pointer-modal__content"),C(t,"class",o="ac-pointer-modal -"+e[1])},m(o,r){g(o,t,r),y(t,n),y(t,s),y(t,i),i.innerHTML=e[0],l||(a=[E(t,"mouseenter",e[6]),E(t,"mouseleave",e[7])],l=!0)},p(e,[s]){2&s&&C(n,"data-pos",e[1]),1&s&&(i.innerHTML=e[0]),2&s&&o!==(o="ac-pointer-modal -"+e[1])&&C(t,"class",o)},i:r,o:r,d(e){e&&b(t),l=!1,c(a)}}}function U(e,t,n){let{content:s=""}=t,{position:i=""}=t,o=!1,{closeHandler:r}=t;const l=()=>{n(2,o=!1),r()};return e.$$set=e=>{"content"in e&&n(0,s=e.content),"position"in e&&n(1,i=e.position),"closeHandler"in e&&n(4,r=e.closeHandler)},[s,i,o,l,r,()=>o,()=>n(2,o=!0),()=>l()]}const J=class extends W{constructor(e){super(),F(this,e,U,D,h,{content:0,position:1,closeHandler:4,isOnElement:5})}get isOnElement(){return this.$$.ctx[5]}};class K{constructor(e,t){var n,s;this.element=e,this.target=t,this.width=null!==(n=e.dataset.width)&&void 0!==n?n:null,this.position=null!==(s=e.dataset.pos)&&void 0!==s?s:"right",this.noClick=void 0!==e.dataset.noclick,this.waitingForClose=!1,this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.container=V(),this.width&&(this.container.style.width=`${this.width}px`),this.attachModel(),this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{this.onScreen||(this.onScreen=!0,document.body.appendChild(this.container),this.container.style.width=`${this.width}px`,this.setPosition(),setTimeout((()=>{this.setPosition()}),100))})),this.element.addEventListener("mouseleave",(()=>{this.checkClose()})),this.element.addEventListener("click",(()=>{this.noClick||(this.waitingForClose=!0)})))}setPosition(){const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();switch(this.container.style.top=t.top-e.top+this.element.offsetHeight-this.container.offsetHeight/2+20+"px",this.position){case"right_bottom":this.container.style.top=t.top-e.top-this.container.offsetHeight+100+"px",this.container.style.left=t.left-e.left+this.element.offsetWidth+14+"px";break;case"left":this.container.style.left=t.left-e.left-this.container.offsetWidth-12+"px";break;default:this.container.style.left=t.left-e.left+this.element.offsetWidth+10+"px"}}checkClose(){setTimeout((()=>{this.waitingForClose||this.closeHandler()}),50)}closeHandler(){this.onScreen&&(document.body.removeChild(this.container),this.onScreen=!1,this.waitingForClose=!1)}destroyComponent(){null!==this.component&&this.component.$destroy()}attachModel(){this.component=new J({target:this.container,props:{content:this.target.innerHTML,position:this.position,closeHandler:()=>this.closeHandler(),destroyHandler:()=>this.destroyComponent()}})}}const V=()=>{const e=document.createElement("div");return e.classList.add("ac-pointer-modal-container"),e.style.position="absolute",e};var G=n(559),z=n.n(G);class Q{constructor(e){this.element=e}static find(e){let t=document.querySelector(e);return null===t?null:new Q(t)}static create(e){return new Q(document.createElement(e))}getElement(){return this.element}addId(e){return this.element.id=e,this}toggleClass(e,t=null){return null===t?this.element.classList.contains(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClasses(e)}addClass(e){return this.element.classList.add(e),this}addClasses(...e){return e.forEach((e=>this.addClass(e))),this}removeClasses(...e){return e.forEach((e=>this.removeClass(e))),this}removeClass(e){return this.element.classList.remove(e),this}setAttribute(e,t){return this.element.setAttribute(e,t),this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}addHtml(e){return this.element.innerHTML=e,this}append(e){return this.element.appendChild(e),this}appendSelfTo(e){return e.append(this.element),this}prepend(e){return this.element.prepend(e),this}prependSelfTo(e){return e.prepend(this.element),this}css(e,t){return this.element.style[e]=t,this}insertAfter(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element.nextElementSibling)}catch(e){console.error("Not able to insert element after current node",this.element)}}insertSelfBefore(e){var t;try{null===(t=e.parentElement)||void 0===t||t.insertBefore(this.element,e)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}insertBefore(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}addEventListener(e,t){return this.element.addEventListener(e,t),this}addEventListeners(e,t){return e.forEach((e=>this.addEventListener(e,t))),this}}class X{constructor(){this.filters={}}addFilter(e,t,n=10){this.filters.hasOwnProperty(e)||(this.filters[e]={}),this.filters[e].hasOwnProperty(n)||(this.filters[e][n]=[]),this.filters[e][n].push(t)}applyFilters(e,t,n={}){return this.filters.hasOwnProperty(e)?(Object.keys(this.filters[e]).forEach((s=>{this.filters[e][parseInt(s)].forEach((e=>{t=e(t,n)}))})),t):t}}function Z(e,t,n){const s=e.slice();return s[5]=t[n],s}function Y(e){let t;return{c(){t=w("span"),C(t,"class","dashicons dashicons-yes")},m(e,n){g(e,t,n)},d(e){e&&b(t)}}}function ee(e){let t,n,s,i,o,r,l,a=e[5].label+"",c=e[0]===e[5].value&&Y();function u(){return e[4](e[5])}return{c(){t=w("button"),c&&c.c(),n=$(),s=_(a),i=$(),C(t,"class","button"),t.value=o=e[5].value,L(t,"button-primary",e[0]===e[5].value)},m(e,o){var a;g(e,t,o),c&&c.m(t,null),y(t,n),y(t,s),y(t,i),r||(l=E(t,"click",(a=u,function(e){return e.preventDefault(),a.call(this,e)})),r=!0)},p(i,r){var l,u;(e=i)[0]===e[5].value?c||(c=Y(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),2&r&&a!==(a=e[5].label+"")&&(u=""+(u=a),(l=s).data!==u&&(l.data=u)),2&r&&o!==(o=e[5].value)&&(t.value=o),3&r&&L(t,"button-primary",e[0]===e[5].value)},d(e){e&&b(t),c&&c.d(),r=!1,l()}}}function te(e){let t,n=e[1],s=[];for(let t=0;t{n(0,s=e),o(e)};return e.$$set=e=>{"value"in e&&n(0,s=e.value),"options"in e&&n(1,i=e.options),"onChange"in e&&n(3,o=e.onChange)},[s,i,r,o,e=>r(e.value)]}const se=class extends W{constructor(e){super(),F(this,e,ne,te,h,{value:0,options:1,onChange:3})}};class ie{constructor(e){this.input=e,this.parseOptions(),this.wrap()}parseOptions(){const e=this.input.dataset.options?JSON.parse(this.input.dataset.options):{};let t=[];Object.keys(JSON.parse(this.input.dataset.options)).forEach((n=>{t.push({value:n,label:e[n]})})),this.options=t}wrap(){const e=Q.create("div").addClass("acui-plugin-toggle-buttons"),t=Q.create("div");this.input.readOnly=!0,this.input.type="hidden",this.input.parentElement.insertBefore(e.getElement(),this.input),e.append(this.input).append(t.getElement()),new se({target:t.getElement(),props:{onChange:e=>{this.input.value=e,this.input.dispatchEvent(new Event("change")),this.input.dispatchEvent(new Event("input"))},value:this.input.value,options:this.options}})}}window.AC_SERVICES||(window.AC_SERVICES=new class{constructor(){this.services={},this.events=new(z()),this.filters=new X,this.$=Q}registerService(e,t){return this.services[e]=t,this.events.emit(`Service.Registered.${e}`,t),this}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}addListener(e,t){this.events.addListener(e,t)}emitEvent(e,t){this.events.emit(e,t)}}),window.AC_SERVICES,document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".ac-section").forEach((e=>{new t(e)})),jQuery(document).on("select2:open",(()=>{var e;null===(e=document.querySelector(".select2-container--open .select2-search__field"))||void 0===e||e.focus()})),((e=null)=>{e||(e=document.querySelectorAll(".ac-pointer")),e.forEach((e=>{var t;let n=document.querySelector(null!==(t=`#${e.getAttribute("rel")}`)&&void 0!==t?t:"#n");n&&new K(e,n)})),new o})(),document.querySelectorAll('input[data-component="acui-toggle-buttons"]').forEach((e=>{new ie(e)}))}))})()})(); \ No newline at end of file +(()=>{var t={808:(t,e,n)=>{var s,i,o;void 0===(i="function"==typeof(s=o=function(){function t(){for(var t=0,e={};t{function e(t,e){if(!t)throw new Error(e||"AssertionError")}e.notEqual=function(t,n,s){e(t!=n,s)},e.notOk=function(t,n){e(!t,n)},e.equal=function(t,n,s){e(t==n,s)},e.ok=e,t.exports=e},559:(t,e,n)=>{var s=n(69),i=n(999),o=n(204);function r(t){if(!(this instanceof r))return new r(t);this._name=t||"nanobus",this._starListeners=[],this._listeners={}}t.exports=r,r.prototype.emit=function(t){o.ok("string"==typeof t||"symbol"==typeof t,"nanobus.emit: eventName should be type string or symbol");for(var e=[],n=1,s=arguments.length;n0&&this._emit(this._listeners[t],e),this._starListeners.length>0&&this._emit(this._starListeners,t,e,r.uuid),r(),this},r.prototype.on=r.prototype.addListener=function(t,e){return o.ok("string"==typeof t||"symbol"==typeof t,"nanobus.on: eventName should be type string or symbol"),o.equal(typeof e,"function","nanobus.on: listener should be type function"),"*"===t?this._starListeners.push(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)),this},r.prototype.prependListener=function(t,e){return o.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependListener: eventName should be type string or symbol"),o.equal(typeof e,"function","nanobus.prependListener: listener should be type function"),"*"===t?this._starListeners.unshift(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].unshift(e)),this},r.prototype.once=function(t,e){o.ok("string"==typeof t||"symbol"==typeof t,"nanobus.once: eventName should be type string or symbol"),o.equal(typeof e,"function","nanobus.once: listener should be type function");var n=this;return this.on(t,(function s(){e.apply(n,arguments),n.removeListener(t,s)})),this},r.prototype.prependOnceListener=function(t,e){o.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependOnceListener: eventName should be type string or symbol"),o.equal(typeof e,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(t,(function s(){e.apply(n,arguments),n.removeListener(t,s)})),this},r.prototype.removeListener=function(t,e){return o.ok("string"==typeof t||"symbol"==typeof t,"nanobus.removeListener: eventName should be type string or symbol"),o.equal(typeof e,"function","nanobus.removeListener: listener should be type function"),"*"===t?(this._starListeners=this._starListeners.slice(),n(this._starListeners,e)):(void 0!==this._listeners[t]&&(this._listeners[t]=this._listeners[t].slice()),n(this._listeners[t],e));function n(t,e){if(t){var n=t.indexOf(e);return-1!==n?(s(t,n,1),!0):void 0}}},r.prototype.removeAllListeners=function(t){return t?"*"===t?this._starListeners=[]:this._listeners[t]=[]:(this._starListeners=[],this._listeners={}),this},r.prototype.listeners=function(t){var e="*"!==t?this._listeners[t]:this._starListeners,n=[];if(e)for(var s=e.length,i=0;i{var s=n(204),i="undefined"!=typeof window;function o(t){this.hasWindow=t,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}o.prototype.push=function(t){s.equal(typeof t,"function","nanoscheduler.push: cb should be type function"),this.queue.push(t),this.schedule()},o.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var t=this;this.method((function(e){for(;t.queue.length&&e.timeRemaining()>0;)t.queue.shift()(e);t.scheduled=!1,t.queue.length&&t.schedule()}))}},o.prototype.setTimeout=function(t){setTimeout(t,0,{timeRemaining:function(){return 1}})},t.exports=function(){var t;return i?(window._nanoScheduler||(window._nanoScheduler=new o(!0)),t=window._nanoScheduler):t=new o,t}},999:(t,e,n)=>{var s,i=n(61)(),o=n(204);r.disabled=!0;try{s=window.performance,r.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!s.mark}catch(t){}function r(t){if(o.equal(typeof t,"string","nanotiming: name should be type string"),r.disabled)return l;var e=(1e4*s.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+e+"-"+t;function a(o){var r="end-"+e+"-"+t;s.mark(r),i.push((function(){var i=null;try{var l=t+" ["+e+"]";s.measure(l,n,r),s.clearMarks(n),s.clearMarks(r)}catch(t){i=t}o&&o(i,t)}))}return s.mark(n),a.uuid=e,a}function l(t){t&&i.push((function(){t(new Error("nanotiming: performance API unavailable"))}))}t.exports=r},69:t=>{"use strict";t.exports=function(t,e,n){var s,i=t.length;if(!(e>=i||0===n)){var o=i-(n=e+n>i?i-e:n);for(s=e;s{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";let t=n(808);class e{constructor(t){this.element=t,this.init()}init(){if(this.element.classList.contains("-closable")){const e=this.element.querySelector(".ac-section__header");if(e&&e.addEventListener("click",(()=>{this.toggle()})),this.isStorable()){let e=t.get(this.getCookieKey());void 0!==e&&(1===parseInt(e)?this.open:this.close())}}}getCookieKey(){return`ac-section_${this.getSectionId()}`}getSectionId(){return this.element.dataset.section}isStorable(){return void 0!==this.element.dataset.section}toggle(){this.isOpen()?this.close():this.open()}isOpen(){return!this.element.classList.contains("-closed")}open(){this.element.classList.remove("-closed"),this.isStorable()&&t.set(this.getCookieKey(),1)}close(){this.element.classList.add("-closed"),this.isStorable()&&t.set(this.getCookieKey(),0)}}class s{constructor(t,e=""){this.element=t,this.content=e||t.dataset.acTip,this.tip=i(this.content),this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{const t=document.body.getBoundingClientRect(),e=this.element.getBoundingClientRect();document.body.appendChild(this.tip),this.tip.style.left=e.left-t.left+this.element.offsetWidth/2+"px",this.tip.style.top=e.top-t.top+this.element.offsetHeight+"px",this.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(()=>{this.tip.classList.remove("hover"),document.body.contains(this.tip)&&document.body.removeChild(this.tip)})),this.element.removeAttribute("title"))}}const i=t=>{let e=document.createElement("div");return e.classList.add("ac-tooltip"),e.innerHTML=t,e},o=class{constructor(){this.init()}init(){document.querySelectorAll(".ac-tooltip").forEach((t=>t.remove())),document.querySelectorAll("[data-ac-tip]").forEach((t=>{new s(t)}))}};new Set;const r="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class l{_listeners="WeakMap"in r?new WeakMap:void 0;_observer=void 0;options;constructor(t){this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver((t=>{for(const e of t)l.entries.set(e.target,e),this._listeners.get(e.target)?.(e)})))}}l.entries="WeakMap"in r?new WeakMap:void 0;let a,c=!1;function u(t,e){t.appendChild(e)}function h(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode&&t.parentNode.removeChild(t)}function p(t){return document.createElement(t)}function f(t){return document.createTextNode(t)}function m(){return f(" ")}function $(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function v(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function y(t,e,n){t.classList.toggle(e,!!n)}function g(){}function b(t){return t()}function _(){return Object.create(null)}function w(t){t.forEach(b)}function E(t){return"function"==typeof t}function C(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function L(t){a=t}new Map;const S=[],k=[];let x=[];const O=[],A=Promise.resolve();let q=!1;function N(t){x.push(t)}const I=new Set;let T=0;function M(){if(0!==T)return;const t=a;do{try{for(;T{const o=s.length?s[0]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=o)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](o),p&&function(t,e){-1===t.$$.dirty[0]&&(S.push(t),q||(q=!0,A.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const e=t.$$.on_mount.map(b).filter(E);t.$$.on_destroy?t.$$.on_destroy.push(...e):w(e),t.$$.on_mount=[]})),i.forEach(N)}(t,e.target,e.anchor),c=!1,M()}var f,m;L(u)}function F(t,e,n,s){const i=n[t]?.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!s||!n[t])return e;if("toAttribute"===s)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(P=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=p("slot"),"default"!==t&&v(e,"name",t)},m:function(t,n){h(t,e,n)},d:function(t){t&&d(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const i of this.$$s)i in n&&(e[i]=[t(i)]);for(const o of this.attributes){const r=this.$$g_p(o.name);r in this.$$d||(this.$$d[r]=F(r,o.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=F(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const l in this.$$l)for(const a of this.$$l[l]){const c=this.$$c.$on(l,a);this.$$l_u.set(a,c)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=F(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class W{$$=void 0;$$set=void 0;$destroy(){(function(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];x.forEach((s=>-1===t.indexOf(s)?e.push(s):n.push(s))),n.forEach((t=>t())),x=e}(n.after_update),w(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])})(this,1),this.$destroy=g}$on(t,e){if(!E(e))return g;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function D(t){let e,n,s,i,o,r,l;return{c(){e=p("div"),n=p("div"),s=m(),i=p("div"),v(n,"class","ac-pointer-modal__arrow"),v(n,"data-pos",t[1]),v(i,"class","ac-pointer-modal__content"),v(e,"class",o="ac-pointer-modal -"+t[1]),v(e,"role","none")},m(o,a){h(o,e,a),u(e,n),u(e,s),u(e,i),i.innerHTML=t[0],r||(l=[$(e,"mouseenter",t[6]),$(e,"mouseleave",t[7])],r=!0)},p(t,[s]){2&s&&v(n,"data-pos",t[1]),1&s&&(i.innerHTML=t[0]),2&s&&o!==(o="ac-pointer-modal -"+t[1])&&v(e,"class",o)},i:g,o:g,d(t){t&&d(e),r=!1,w(l)}}}function J(t,e,n){let{content:s=""}=e,{position:i=""}=e,o=!1,{closeHandler:r}=e;const l=()=>{n(2,o=!1),r()};return t.$$set=t=>{"content"in t&&n(0,s=t.content),"position"in t&&n(1,i=t.position),"closeHandler"in t&&n(4,r=t.closeHandler)},[s,i,o,l,r,()=>o,()=>n(2,o=!0),()=>l()]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const U=class extends W{constructor(t){super(),j(this,t,J,D,C,{content:0,position:1,closeHandler:4,isOnElement:5})}get isOnElement(){return this.$$.ctx[5]}};class K{constructor(t,e){var n,s;this.element=t,this.target=e,this.width=null!==(n=t.dataset.width)&&void 0!==n?n:null,this.position=null!==(s=t.dataset.pos)&&void 0!==s?s:"right",this.noClick=void 0!==t.dataset.noclick,this.waitingForClose=!1,this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.container=V(),this.width&&(this.container.style.width=`${this.width}px`),this.attachModel(),this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{this.onScreen||(this.onScreen=!0,document.body.appendChild(this.container),this.container.style.width=`${this.width}px`,this.setPosition(),setTimeout((()=>{this.setPosition()}),100))})),this.element.addEventListener("mouseleave",(()=>{this.checkClose()})),this.element.addEventListener("click",(()=>{this.noClick||(this.waitingForClose=!0)})))}setPosition(){const t=document.body.getBoundingClientRect(),e=this.element.getBoundingClientRect();switch(this.container.style.top=e.top-t.top+this.element.offsetHeight-this.container.offsetHeight/2+20+"px",this.position){case"right_bottom":this.container.style.top=e.top-t.top-this.container.offsetHeight+100+"px",this.container.style.left=e.left-t.left+this.element.offsetWidth+14+"px";break;case"left":this.container.style.left=e.left-t.left-this.container.offsetWidth-12+"px";break;default:this.container.style.left=e.left-t.left+this.element.offsetWidth+10+"px"}}checkClose(){setTimeout((()=>{this.waitingForClose||this.closeHandler()}),50)}closeHandler(){this.onScreen&&(document.body.removeChild(this.container),this.onScreen=!1,this.waitingForClose=!1)}destroyComponent(){null!==this.component&&this.component.$destroy()}attachModel(){this.component=new U({target:this.container,props:{content:this.target.innerHTML,position:this.position,closeHandler:()=>this.closeHandler(),destroyHandler:()=>this.destroyComponent()}})}}const V=()=>{const t=document.createElement("div");return t.classList.add("ac-pointer-modal-container"),t.style.position="absolute",t};var G=n(559),z=n.n(G);class Q{constructor(t){this.element=t}static find(t){let e=document.querySelector(t);return null===e?null:new Q(e)}static create(t){return new Q(document.createElement(t))}getElement(){return this.element}addId(t){return this.element.id=t,this}toggleClass(t,e=null){return null===e?this.element.classList.contains(t)?this.removeClass(t):this.addClass(t):e?this.addClass(t):this.removeClasses(t)}addClass(t){return this.element.classList.add(t),this}addClasses(...t){return t.forEach((t=>this.addClass(t))),this}removeClasses(...t){return t.forEach((t=>this.removeClass(t))),this}removeClass(t){return this.element.classList.remove(t),this}setAttribute(t,e){return this.element.setAttribute(t,e),this}setAttributes(t){return Object.keys(t).forEach((e=>this.setAttribute(e,t[e]))),this}addHtml(t){return this.element.innerHTML=t,this}append(t){return this.element.appendChild(t),this}appendFound(t){return document.querySelectorAll(t).forEach((t=>this.append(t))),this}appendSelfTo(t){return t.append(this.element),this}prepend(t){return this.element.prepend(t),this}prependSelfTo(t){return t.prepend(this.element),this}css(t,e){return this.element.style[t]=e,this}insertAfter(t){var e;try{null===(e=this.element.parentElement)||void 0===e||e.insertBefore(t,this.element.nextElementSibling)}catch(t){console.error("Not able to insert element after current node",this.element)}}insertSelfBefore(t){var e;try{null===(e=t.parentElement)||void 0===e||e.insertBefore(this.element,t)}catch(t){console.error("Not able to insert element before current node",this.element)}return this}insertBefore(t){var e;try{null===(e=this.element.parentElement)||void 0===e||e.insertBefore(t,this.element)}catch(t){console.error("Not able to insert element before current node",this.element)}return this}addEventListener(t,e){return this.element.addEventListener(t,e),this}addEventListeners(t,e){return t.forEach((t=>this.addEventListener(t,e))),this}$(){return this.getElement()}}class X{constructor(){this.filters={}}addFilter(t,e,n=10){this.filters.hasOwnProperty(t)||(this.filters[t]={}),this.filters[t].hasOwnProperty(n)||(this.filters[t][n]=[]),this.filters[t][n].push(e)}applyFilters(t,e,n={}){return this.filters.hasOwnProperty(t)?(Object.keys(this.filters[t]).forEach((s=>{this.filters[t][parseInt(s)].forEach((t=>{e=t(e,n)}))})),e):e}}function Z(t,e,n){const s=t.slice();return s[5]=e[n],s}function Y(t){let e;return{c(){e=p("span"),v(e,"class","dashicons dashicons-yes")},m(t,n){h(t,e,n)},d(t){t&&d(e)}}}function tt(t){let e,n,s,i,o,r,l,a=t[5].label+"",c=t[0]===t[5].value&&Y();function g(){return t[4](t[5])}return{c(){e=p("button"),c&&c.c(),n=m(),s=f(a),i=m(),v(e,"class","button"),e.value=o=t[5].value,y(e,"button-primary",t[0]===t[5].value)},m(t,o){var a;h(t,e,o),c&&c.m(e,null),u(e,n),u(e,s),u(e,i),r||(l=$(e,"click",(a=g,function(t){return t.preventDefault(),a.call(this,t)})),r=!0)},p(i,r){var l,u;(t=i)[0]===t[5].value?c||(c=Y(),c.c(),c.m(e,n)):c&&(c.d(1),c=null),2&r&&a!==(a=t[5].label+"")&&(u=""+(u=a),(l=s).data!==u&&(l.data=u)),2&r&&o!==(o=t[5].value)&&(e.value=o),3&r&&y(e,"button-primary",t[0]===t[5].value)},d(t){t&&d(e),c&&c.d(),r=!1,l()}}}function et(t){let e,n=R(t[1]),s=[];for(let e=0;e{n(0,s=t),o(t)};return t.$$set=t=>{"value"in t&&n(0,s=t.value),"options"in t&&n(1,i=t.options),"onChange"in t&&n(3,o=t.onChange)},[s,i,r,o,t=>r(t.value)]}const st=class extends W{constructor(t){super(),j(this,t,nt,et,C,{value:0,options:1,onChange:3})}};class it{constructor(t){this.input=t,this.parseOptions(),this.wrap()}parseOptions(){const t=this.input.dataset.options?JSON.parse(this.input.dataset.options):{};let e=[];Object.keys(JSON.parse(this.input.dataset.options)).forEach((n=>{e.push({value:n,label:t[n]})})),this.options=e}wrap(){const t=Q.create("div").addClass("acui-plugin-toggle-buttons"),e=Q.create("div");this.input.readOnly=!0,this.input.type="hidden",this.input.parentElement.insertBefore(t.getElement(),this.input),t.append(this.input).append(e.getElement()),new st({target:e.getElement(),props:{onChange:t=>{this.input.value=t,this.input.dispatchEvent(new Event("change")),this.input.dispatchEvent(new Event("input"))},value:this.input.value,options:this.options}})}}window.AC_SERVICES||(window.AC_SERVICES=new class{constructor(){this.services={},this.events=new(z()),this.filters=new X,this.$=Q}registerService(t,e){return this.services[t]=e,this.events.emit(`Service.Registered.${t}`,e),this}getService(t){return this.hasService(t)?this.services[t]:null}hasService(t){return this.services.hasOwnProperty(t)}addListener(t,e){this.events.addListener(t,e)}emitEvent(t,e){this.events.emit(t,e)}}),window.AC_SERVICES,document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".ac-section").forEach((t=>{new e(t)})),jQuery(document).on("select2:open",(()=>{var t;null===(t=document.querySelector(".select2-container--open .select2-search__field"))||void 0===t||t.focus()})),((t=null)=>{t||(t=document.querySelectorAll(".ac-pointer")),t.forEach((t=>{var e;let n=document.querySelector(null!==(e=`#${t.getAttribute("rel")}`)&&void 0!==e?e:"#n");n&&new K(t,n)})),new o})(),document.querySelectorAll('input[data-component="acui-toggle-buttons"]').forEach((t=>{new it(t)}))}))})()})(); \ No newline at end of file diff --git a/assets/js/admin-page-addons.js b/assets/js/admin-page-addons.js index 7a120aa54..16b5e2c77 100644 --- a/assets/js/admin-page-addons.js +++ b/assets/js/admin-page-addons.js @@ -1 +1 @@ -(()=>{var e={669:(e,t,r)=>{e.exports=r(609)},448:(e,t,r)=>{"use strict";var n=r(867),s=r(26),o=r(372),i=r(327),a=r(97),c=r(109),u=r(985),l=r(916);e.exports=function(e){return new Promise((function(t,r){var d=e.data,f=e.headers,p=e.responseType;n.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(m+":"+g)}var v=a(e.baseURL,e.url);function b(){if(h){var n="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};s(t,r,o),h=null}}if(h.open(e.method.toUpperCase(),i(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=b:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(b)},h.onabort=function(){h&&(r(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var y=(e.withCredentials||u(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;y&&(f[e.xsrfHeaderName]=y)}"setRequestHeader"in h&&n.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),r(e),h=null)})),d||(d=null),h.send(d)}))}},609:(e,t,r)=>{"use strict";var n=r(867),s=r(849),o=r(321),i=r(185);function a(e){var t=new o(e),r=s(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r}var c=a(r(655));c.Axios=o,c.create=function(e){return a(i(c.defaults,e))},c.Cancel=r(263),c.CancelToken=r(972),c.isCancel=r(502),c.all=function(e){return Promise.all(e)},c.spread=r(713),c.isAxiosError=r(268),e.exports=c,e.exports.default=c},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,r)=>{"use strict";var n=r(263);function s(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.source=function(){var e;return{token:new s((function(t){e=t})),cancel:e}},e.exports=s},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var n=r(867),s=r(327),o=r(782),i=r(572),a=r(185),c=r(875),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var s,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!n){var l=[i,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(o),s=Promise.resolve(e);l.length;)s=s.then(l.shift(),l.shift());return s}for(var d=e;r.length;){var f=r.shift(),p=r.shift();try{d=f(d)}catch(e){p(e);break}}try{s=i(d)}catch(e){return Promise.reject(e)}for(;o.length;)s=s.then(o.shift(),o.shift());return s},l.prototype.getUri=function(e){return e=a(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}})),e.exports=l},782:(e,t,r)=>{"use strict";var n=r(867);function s(){this.handlers=[]}s.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},s.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},s.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=s},97:(e,t,r)=>{"use strict";var n=r(793),s=r(303);e.exports=function(e,t){return e&&!n(t)?s(e,t):t}},916:(e,t,r)=>{"use strict";var n=r(481);e.exports=function(e,t,r,s,o){var i=new Error(e);return n(i,t,r,s,o)}},572:(e,t,r)=>{"use strict";var n=r(867),s=r(527),o=r(502),i=r(655);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=s.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return a(e),t.data=s.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=s.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,r,n,s){return e.config=t,r&&(e.code=r),e.request=n,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},185:(e,t,r)=>{"use strict";var n=r(867);e.exports=function(e,t){t=t||{};var r={},s=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function u(s){n.isUndefined(t[s])?n.isUndefined(e[s])||(r[s]=c(void 0,e[s])):r[s]=c(e[s],t[s])}n.forEach(s,(function(e){n.isUndefined(t[e])||(r[e]=c(void 0,t[e]))})),n.forEach(o,u),n.forEach(i,(function(s){n.isUndefined(t[s])?n.isUndefined(e[s])||(r[s]=c(void 0,e[s])):r[s]=c(void 0,t[s])})),n.forEach(a,(function(n){n in t?r[n]=c(e[n],t[n]):n in e&&(r[n]=c(void 0,e[n]))}));var l=s.concat(o).concat(i).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(d,u),r}},26:(e,t,r)=>{"use strict";var n=r(916);e.exports=function(e,t,r){var s=r.config.validateStatus;r.status&&s&&!s(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},527:(e,t,r)=>{"use strict";var n=r(867),s=r(655);e.exports=function(e,t,r){var o=this||s;return n.forEach(r,(function(r){e=r.call(o,e,t)})),e}},655:(e,t,r)=>{"use strict";var n=r(867),s=r(16),o=r(481),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=r(448)),c),transformRequest:[function(e,t){return s(t,"Accept"),s(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,s=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||s&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(i)})),e.exports=u},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n{"use strict";var n=r(867);function s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var i=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),i.push(s(t)+"="+s(e))})))})),o=i.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,r)=>{"use strict";var n=r(867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,s,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(s)&&a.push("path="+s),n.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,r)=>{"use strict";var n=r(867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function s(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=s(window.location.href),function(t){var r=n.isString(t)?s(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},16:(e,t,r)=>{"use strict";var n=r(867);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},109:(e,t,r)=>{"use strict";var n=r(867),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,i={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(i[t]&&s.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,r)=>{"use strict";var n=r(593),s={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){s[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var o={},i=n.version.split(".");function a(e,t){for(var r=t?t.split("."):i,n=e.split("."),s=0;s<3;s++){if(r[s]>n[s])return!0;if(r[s]0;){var o=n[s],i=t[o];if(i){var a=e[o],c=void 0===a||i(a,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:s}},867:(e,t,r)=>{"use strict";var n=r(849),s=Object.prototype.toString;function o(e){return"[object Array]"===s.call(e)}function i(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==s.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===s.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";class e{constructor(){this.element=document.createElement("div"),this.element.classList.add("notice"),this.dismissible=!1}setMessage(e){return this.message=e,this}renderDismiss(){const e=document.createElement("button");e.classList.add("notice-dismiss"),e.setAttribute("type","button"),e.insertAdjacentHTML("beforeend",'Dismiss this notice.'),e.addEventListener("click",(e=>{e.preventDefault(),this.element.remove()})),this.element.classList.add("is-dismissible"),this.element.insertAdjacentElement("beforeend",e)}renderContent(){this.element.insertAdjacentHTML("afterbegin",this.message)}makeDismissable(){return this.dismissible=!0,this}addClass(e){return this.element.classList.add(e),this}render(){return this.element.innerHTML="",this.renderContent(),this.dismissible&&this.renderDismiss(),this.element}}const t=jQuery;var n=r.n(t),s=r(669),o=r.n(s);const i=(e,t,r="")=>{if(!t||"object"!=typeof t||t instanceof Date||t instanceof File){const n=null==t?"":t;e.append(r,n)}else Object.keys(t).forEach((n=>{i(e,t[n],r?`${r}[${n}]`:n)}))};class a{constructor(e,t,r){this.slug=e,this.network_admin=t,this.nonce=r}download(){return o().post(ajaxurl,((e,t=null)=>{let r=null!=t?t:new FormData;return Object.keys(e).forEach((t=>{i(r,e[t],t)})),r})({action:"acp-ajax-install-addon",plugin_name:this.slug,network_wide:this.network_admin?1:0,_ajax_nonce:this.nonce}))}}class c{constructor(e,t){this.downloader=new a(t,AC.is_network_admin,AC._ajax_nonce),this.element=e,this.slug=t,this.loadingState=!1,this.initEvents()}getButton(){return this.element.querySelector("[data-install],[data-activate]")}setLoadingState(){const e=this.getButton();e&&e.classList.add("button-disabled"),this.element.querySelectorAll(".ac-addon__actions").forEach((e=>e.insertAdjacentHTML("beforeend",''))),this.loadingState=!0}setLoadingFinished(){this.loadingState=!1;const e=this.getButton();this.element.querySelectorAll(".spinner").forEach((e=>e.remove())),e&&e.classList.remove("button-disabled")}initEvents(){const e=this.getButton();e&&!e.classList.contains("-disabled")&&e.addEventListener("click",(e=>{e.preventDefault(),this.loadingState||(this.setLoadingState(),this.download())}))}getFooterElement(){return this.element.querySelector(".ac-addon__actions")}success(t){const r=this.element.querySelector("h3"),n=new e;let s=ACi18n.plugin_installed.replace("%s",`${null==r?void 0:r.innerHTML}`);n.setMessage(`

${s}

`).makeDismissable().addClass("updated"),this.addNotice(n),this.setLoadingFinished();let o=this.getFooterElement();o&&(o.innerHTML=`
${t}
`)}addNotice(e){var t;let r=document.querySelector(".ac-addons-groups");r&&(null===(t=r.parentElement)||void 0===t||t.insertBefore(e.render(),r))}static scrollToTop(e){n()("html, body").animate({scrollTop:0},e)}failure(t){const r=this.element.querySelector("h3"),n=new e;n.setMessage(`

${null==r?void 0:r.innerHTML}: ${t}

`).makeDismissable().addClass("notice-error"),this.addNotice(n),this.setLoadingFinished(),c.scrollToTop(200)}download(){this.downloader.download().then((e=>{switch(e.data.success){case!0:this.success(e.data.data.status);break;case!1:this.failure(e.data.data)}}))}}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".ac-addon .acu-pt-3").forEach((e=>{e.dataset.slug&&new c(e,e.dataset.slug)}))}))})()})(); \ No newline at end of file +(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};class t{constructor(){this.element=document.createElement("div"),this.element.classList.add("notice"),this.dismissible=!1}setMessage(e){return this.message=e,this}renderDismiss(){const e=document.createElement("button");e.classList.add("notice-dismiss"),e.setAttribute("type","button"),e.insertAdjacentHTML("beforeend",'Dismiss this notice.'),e.addEventListener("click",(e=>{e.preventDefault(),this.element.remove()})),this.element.classList.add("is-dismissible"),this.element.insertAdjacentElement("beforeend",e)}renderContent(){this.element.insertAdjacentHTML("afterbegin",this.message)}makeDismissable(){return this.dismissible=!0,this}addClass(e){return this.element.classList.add(e),this}render(){return this.element.innerHTML="",this.renderContent(),this.dismissible&&this.renderDismiss(),this.element}}const n=jQuery;var r=e.n(n);function o(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,a=(c=Object.create(null),e=>{const t=s.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const l=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,f=u("undefined"),h=l("ArrayBuffer"),p=u("string"),m=u("function"),g=u("number"),y=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==a(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},w=l("Date"),E=l("File"),O=l("Blob"),S=l("FileList"),A=l("URLSearchParams");function R(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),d(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,j=e=>!f(e)&&e!==v,C=(N="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>N&&e instanceof N);var N;const _=l("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=l("RegExp"),P=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};R(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},D="abcdefghijklmnopqrstuvwxyz",F="0123456789",B={DIGIT:F,ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+F},U=l("AsyncFunction"),k={isArray:d,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=a(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:p,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:b,isUndefined:f,isDate:w,isFile:E,isBlob:O,isRegExp:L,isFunction:m,isStream:e=>y(e)&&m(e.pipe),isURLSearchParams:A,isTypedArray:C,isFileList:S,forEach:R,merge:function e(){const{caseless:t}=j(this)&&this||{},n={},r=(r,o)=>{const s=t&&T(n,o)||o;b(n[s])&&b(r)?n[s]=e(n[s],r):b(r)?n[s]=e({},r):d(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e(R(t,((t,r)=>{n&&m(t)?e[r]=o(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:_,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:P,freezeMethods:e=>{P(e,((t,n)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];m(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:T,global:v,isContextDefined:j,ALPHABET:B,generateString:(e=16,t=B.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=d(e)?[]:{};return R(e,((e,t)=>{const s=n(e,r+1);!f(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:U,isThenable:e=>e&&(y(e)||m(e))&&m(e.then)&&m(e.catch)};function q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}k.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const M=q.prototype,I={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{I[e]={value:e}})),Object.defineProperties(q,I),Object.defineProperty(M,"isAxiosError",{value:!0}),q.from=(e,t,n,r,o,s)=>{const i=Object.create(M);return k.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),q.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const H=q;function z(e){return k.isPlainObject(e)||k.isArray(e)}function J(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const $=k.toFlatObject(k,{},null,(function(e){return/^is[A-Z]/.test(e)})),K=function(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!k.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(k.isDate(e))return e.toISOString();if(!a&&k.isBlob(e))throw new H("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(e)||k.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(k.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(k.isArray(e)&&function(e){return k.isArray(e)&&!e.some(z)}(e)||(k.isFileList(e)||k.endsWith(n,"[]"))&&(a=k.toArray(e)))return n=J(n),a.forEach((function(e,r){!k.isUndefined(e)&&null!==e&&t.append(!0===i?W([n],r,s):null===i?n:n+"[]",c(e))})),!1;return!!z(e)||(t.append(W(o,n,s),c(e)),!1)}const u=[],d=Object.assign($,{defaultVisitor:l,convertValue:c,isVisitable:z});if(!k.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!k.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),k.forEach(n,(function(n,s){!0===(!(k.isUndefined(n)||null===n)&&o.call(t,n,k.isString(s)?s.trim():s,r,d))&&e(n,r?r.concat(s):[s])})),u.pop()}}(e),t};function V(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function G(e,t){this._pairs=[],e&&K(e,this,t)}const X=G.prototype;X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){const t=e?function(t){return e.call(this,t,V)}:V;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Q=G;function Y(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Z(e,t,n){if(!t)return e;const r=n&&n.encode||Y,o=n&&n.serialize;let s;if(s=o?o(t,n):k.isURLSearchParams(t)?t.toString():new Q(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const ee=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){k.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},re=function(e){function t(e,n,r,o){let s=e[o++];const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&k.isArray(r)?r.length:s,a?(k.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&k.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&k.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r{t(function(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},oe={transitional:te,adapter:ne.isNode?"http":"xhr",transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=k.isObject(e);if(o&&k.isHTMLForm(e)&&(e=new FormData(e)),k.isFormData(e))return r&&r?JSON.stringify(re(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return K(e,new ne.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ne.isNode&&k.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=k.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return K(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(k.isString(e))try{return(0,JSON.parse)(e),k.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||oe.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&k.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw H.from(e,H.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ne.classes.FormData,Blob:ne.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],(e=>{oe.headers[e]={}}));const se=oe,ie=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ae=Symbol("internals");function ce(e){return e&&String(e).trim().toLowerCase()}function le(e){return!1===e||null==e?e:k.isArray(e)?e.map(le):String(e)}function ue(e,t,n,r,o){return k.isFunction(r)?r.call(this,t,n):(o&&(t=n),k.isString(t)?k.isString(r)?-1!==t.indexOf(r):k.isRegExp(r)?r.test(t):void 0:void 0)}class de{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ce(t);if(!o)throw new Error("header name must be a non-empty string");const s=k.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=le(e))}const s=(e,t)=>k.forEach(e,((e,n)=>o(e,n,t)));return k.isPlainObject(e)||e instanceof this.constructor?s(e,t):k.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ie[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=ce(e)){const n=k.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(k.isFunction(t))return t.call(this,e,n);if(k.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ce(e)){const n=k.findKey(this,e);return!(!n||void 0===this[n]||t&&!ue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ce(e)){const o=k.findKey(n,e);!o||t&&!ue(0,n[o],o,t)||(delete n[o],r=!0)}}return k.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ue(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return k.forEach(this,((r,o)=>{const s=k.findKey(n,o);if(s)return t[s]=le(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=le(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return k.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&k.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ae]=this[ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ce(e);t[r]||(function(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return k.isArray(e)?e.forEach(r):r(e),this}}de.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(de.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),k.freezeMethods(de);const fe=de;function he(e,t){const n=this||se,r=t||n,o=fe.from(r.headers);let s=r.data;return k.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function pe(e){return!(!e||!e.__CANCEL__)}function me(e,t,n){H.call(this,null==e?"canceled":e,H.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(me,H,{__CANCEL__:!0});const ge=me,ye=ne.isStandardBrowserEnv?{write:function(e,t,n,r,o,s){const i=[];i.push(e+"="+encodeURIComponent(t)),k.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),k.isString(r)&&i.push("path="+r),k.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function be(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const we=ne.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=k.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Ee(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,d=0;for(;u!==s;)d+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,c=r(a);n=s;const l={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const Oe={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=fe.from(e.headers).normalize(),s=e.responseType;let i;function a(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}k.isFormData(r)&&(ne.isStandardBrowserEnv||ne.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const l=be(e.baseURL,e.url);function u(){if(!c)return;const r=fe.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),a()}),(function(e){n(e),a()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),Z(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new H("Request aborted",H.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new H("Network Error",H.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||te;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new H(t,r.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,c)),c=null},ne.isStandardBrowserEnv){const t=(e.withCredentials||we(l))&&e.xsrfCookieName&&ye.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&k.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),k.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",Ee(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Ee(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(n(!t||t.type?new ge(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l);d&&-1===ne.protocols.indexOf(d)?n(new H("Unsupported protocol "+d+":",H.ERR_BAD_REQUEST,e)):c.send(r||null)}))}};k.forEach(Oe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Se=e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof fe?e.toJSON():e;function ve(e,t){t=t||{};const n={};function r(e,t,n){return k.isPlainObject(e)&&k.isPlainObject(t)?k.merge.call({caseless:n},e,t):k.isPlainObject(t)?k.merge({},t):k.isArray(t)?t.slice():t}function o(e,t,n){return k.isUndefined(t)?k.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!k.isUndefined(t))return r(void 0,t)}function i(e,t){return k.isUndefined(t)?k.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Te(e),Te(t),!0)};return k.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);k.isUndefined(i)&&s!==a||(n[r]=i)})),n}const je={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{je[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ce={};je.transitional=function(e,t,n){function r(e,t){return"[Axios v1.5.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new H(r(o," has been removed"+(t?" in "+t:"")),H.ERR_DEPRECATED);return t&&!Ce[o]&&(Ce[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};const Ne={assertOptions:function(e,t,n){if("object"!=typeof e)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new H("option "+s+" must be "+n,H.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new H("Unknown option "+s,H.ERR_BAD_OPTION)}},validators:je},_e=Ne.validators;class xe{constructor(e){this.defaults=e,this.interceptors={request:new ee,response:new ee}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ve(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ne.assertOptions(n,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean)},!1),null!=r&&(k.isFunction(r)?t.paramsSerializer={serialize:r}:Ne.assertOptions(r,{encode:_e.function,serialize:_e.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&k.merge(o.common,o[t.method]);o&&k.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=fe.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[Re.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new ge(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Pe((function(t){e=t})),cancel:e}}}const De=Pe,Fe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fe).forEach((([e,t])=>{Fe[t]=e}));const Be=Fe,Ue=function e(t){const n=new Le(t),r=o(Le.prototype.request,n);return k.extend(r,Le.prototype,n,{allOwnKeys:!0}),k.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ve(t,n))},r}(se);Ue.Axios=Le,Ue.CanceledError=ge,Ue.CancelToken=De,Ue.isCancel=pe,Ue.VERSION="1.5.0",Ue.toFormData=K,Ue.AxiosError=H,Ue.Cancel=Ue.CanceledError,Ue.all=function(e){return Promise.all(e)},Ue.spread=function(e){return function(t){return e.apply(null,t)}},Ue.isAxiosError=function(e){return k.isObject(e)&&!0===e.isAxiosError},Ue.mergeConfig=ve,Ue.AxiosHeaders=fe,Ue.formToJSON=e=>re(k.isHTMLForm(e)?new FormData(e):e),Ue.getAdapter=Se,Ue.HttpStatusCode=Be,Ue.default=Ue;const ke=Ue,qe=(e,t,n="")=>{if(!t||"object"!=typeof t||t instanceof Date||t instanceof File){const r=null==t?"":t;e.append(n,r)}else Object.keys(t).forEach((r=>{qe(e,t[r],n?`${n}[${r}]`:r)}))};class Me{constructor(e,t,n){this.slug=e,this.network_admin=t,this.nonce=n}download(){return ke.post(ajaxurl,((e,t=null)=>{let n=null!=t?t:new FormData;return Object.keys(e).forEach((t=>{qe(n,e[t],t)})),n})({action:"acp-ajax-install-addon",plugin_name:this.slug,network_wide:this.network_admin?1:0,_ajax_nonce:this.nonce}))}}class Ie{constructor(e,t){this.downloader=new Me(t,AC.is_network_admin,AC._ajax_nonce),this.element=e,this.slug=t,this.loadingState=!1,this.initEvents()}getButton(){return this.element.querySelector("[data-install],[data-activate]")}setLoadingState(){const e=this.getButton();e&&e.classList.add("button-disabled"),this.element.querySelectorAll(".ac-addon__actions").forEach((e=>e.insertAdjacentHTML("beforeend",''))),this.loadingState=!0}setLoadingFinished(){this.loadingState=!1;const e=this.getButton();this.element.querySelectorAll(".spinner").forEach((e=>e.remove())),e&&e.classList.remove("button-disabled")}initEvents(){const e=this.getButton();e&&!e.classList.contains("-disabled")&&e.addEventListener("click",(e=>{e.preventDefault(),this.loadingState||(this.setLoadingState(),this.download())}))}getFooterElement(){return this.element.querySelector(".ac-addon__actions")}success(e){const n=this.element.querySelector("h3"),r=new t;let o=ACi18n.plugin_installed.replace("%s",`${null==n?void 0:n.innerHTML}`);r.setMessage(`

${o}

`).makeDismissable().addClass("updated"),this.addNotice(r),this.setLoadingFinished();let s=this.getFooterElement();s&&(s.innerHTML=`
${e}
`)}addNotice(e){var t;let n=document.querySelector(".ac-addons-groups");n&&(null===(t=n.parentElement)||void 0===t||t.insertBefore(e.render(),n))}static scrollToTop(e){r()("html, body").animate({scrollTop:0},e)}failure(e){const n=this.element.querySelector("h3"),r=new t;r.setMessage(`

${null==n?void 0:n.innerHTML}: ${e}

`).makeDismissable().addClass("notice-error"),this.addNotice(r),this.setLoadingFinished(),Ie.scrollToTop(200)}download(){this.downloader.download().then((e=>{switch(e.data.success){case!0:this.success(e.data.data.status);break;case!1:this.failure(e.data.data)}}))}}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".ac-addon .acu-pt-3").forEach((e=>{e.dataset.slug&&new Ie(e,e.dataset.slug)}))}))})(); \ No newline at end of file diff --git a/assets/js/admin-page-columns.js b/assets/js/admin-page-columns.js index 7580e5899..7154dee89 100644 --- a/assets/js/admin-page-columns.js +++ b/assets/js/admin-page-columns.js @@ -1 +1 @@ -(()=>{var e={669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var s=n(867),i=n(26),r=n(372),o=n(327),a=n(97),l=n(109),c=n(985),u=n(916);e.exports=function(e){return new Promise((function(t,n){var h=e.data,d=e.headers,p=e.responseType;s.isFormData(h)&&delete d["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(f+":"+g)}var v=a(e.baseURL,e.url);function y(){if(m){var s="getAllResponseHeaders"in m?l(m.getAllResponseHeaders()):null,r={data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:s,config:e,request:m};i(t,n,r),m=null}}if(m.open(e.method.toUpperCase(),o(v,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(u("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(u("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},s.isStandardBrowserEnv()){var E=(e.withCredentials||c(v))&&e.xsrfCookieName?r.read(e.xsrfCookieName):void 0;E&&(d[e.xsrfHeaderName]=E)}"setRequestHeader"in m&&s.forEach(d,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete d[t]:m.setRequestHeader(t,e)})),s.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),p&&"json"!==p&&(m.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){m&&(m.abort(),n(e),m=null)})),h||(h=null),m.send(h)}))}},609:(e,t,n)=>{"use strict";var s=n(867),i=n(849),r=n(321),o=n(185);function a(e){var t=new r(e),n=i(r.prototype.request,t);return s.extend(n,r.prototype,t),s.extend(n,t),n}var l=a(n(655));l.Axios=r,l.create=function(e){return a(o(l.defaults,e))},l.Cancel=n(263),l.CancelToken=n(972),l.isCancel=n(502),l.all=function(e){return Promise.all(e)},l.spread=n(713),l.isAxiosError=n(268),e.exports=l,e.exports.default=l},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,n)=>{"use strict";var s=n(263);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new s(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var s=n(867),i=n(327),r=n(782),o=n(572),a=n(185),l=n(875),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new r,response:new r}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,r=[];if(this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)})),!s){var u=[o,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(r),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var h=e;n.length;){var d=n.shift(),p=n.shift();try{h=d(h)}catch(e){p(e);break}}try{i=o(h)}catch(e){return Promise.reject(e)}for(;r.length;)i=i.then(r.shift(),r.shift());return i},u.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},s.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),s.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,s){return this.request(a(s||{},{method:e,url:t,data:n}))}})),e.exports=u},782:(e,t,n)=>{"use strict";var s=n(867);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){s.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},97:(e,t,n)=>{"use strict";var s=n(793),i=n(303);e.exports=function(e,t){return e&&!s(t)?i(e,t):t}},916:(e,t,n)=>{"use strict";var s=n(481);e.exports=function(e,t,n,i,r){var o=new Error(e);return s(o,t,n,i,r)}},572:(e,t,n)=>{"use strict";var s=n(867),i=n(527),r=n(502),o=n(655);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=s.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),s.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return a(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(a(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,s,i){return e.config=t,n&&(e.code=n),e.request=s,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},185:(e,t,n)=>{"use strict";var s=n(867);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],r=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(e,t){return s.isPlainObject(e)&&s.isPlainObject(t)?s.merge(e,t):s.isPlainObject(t)?s.merge({},t):s.isArray(t)?t.slice():t}function c(i){s.isUndefined(t[i])?s.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}s.forEach(i,(function(e){s.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),s.forEach(r,c),s.forEach(o,(function(i){s.isUndefined(t[i])?s.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),s.forEach(a,(function(s){s in t?n[s]=l(e[s],t[s]):s in e&&(n[s]=l(void 0,e[s]))}));var u=i.concat(r).concat(o).concat(a),h=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return s.forEach(h,c),n}},26:(e,t,n)=>{"use strict";var s=n(916);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(s("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var s=n(867),i=n(655);e.exports=function(e,t,n){var r=this||i;return s.forEach(n,(function(n){e=n.call(r,e,t)})),e}},655:(e,t,n)=>{"use strict";var s=n(867),i=n(16),r=n(481),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(448)),l),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e)?e:s.isArrayBufferView(e)?e.buffer:s.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):s.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,n){if(s.isString(e))try{return(0,JSON.parse)(e),s.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&s.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw r(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};s.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),s.forEach(["post","put","patch"],(function(e){c.headers[e]=s.merge(o)})),e.exports=c},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),s=0;s{"use strict";var s=n(867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(s.isURLSearchParams(t))r=t.toString();else{var o=[];s.forEach(t,(function(e,t){null!=e&&(s.isArray(e)?t+="[]":e=[e],s.forEach(e,(function(e){s.isDate(e)?e=e.toISOString():s.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),r=o.join("&")}if(r){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var s=n(867);e.exports=s.isStandardBrowserEnv()?{write:function(e,t,n,i,r,o){var a=[];a.push(e+"="+encodeURIComponent(t)),s.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),s.isString(i)&&a.push("path="+i),s.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var s=n(867);e.exports=s.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var s=e;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=s.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var s=n(867);e.exports=function(e,t){s.forEach(e,(function(n,s){s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[s])}))}},109:(e,t,n)=>{"use strict";var s=n(867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,r,o={};return e?(s.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=s.trim(e.substr(0,r)).toLowerCase(),n=s.trim(e.substr(r+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,n)=>{"use strict";var s=n(593),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var r={},o=s.version.split(".");function a(e,t){for(var n=t?t.split("."):o,s=e.split("."),i=0;i<3;i++){if(n[i]>s[i])return!0;if(n[i]0;){var r=s[i],o=t[r];if(o){var a=e[r],l=void 0===a||o(a,r,e);if(!0!==l)throw new TypeError("option "+r+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+r)}},validators:i}},867:(e,t,n)=>{"use strict";var s=n(849),i=Object.prototype.toString;function r(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,s=e.length;n{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,n,s){t(e!=n,s)},t.notOk=function(e,n){t(!e,n)},t.equal=function(e,n,s){t(e==n,s)},t.ok=t,e.exports=t},559:(e,t,n)=>{var s=n(69),i=n(999),r=n(204);function o(e){if(!(this instanceof o))return new o(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=o,o.prototype.emit=function(e){r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.emit: eventName should be type string or symbol");for(var t=[],n=1,s=arguments.length;n0&&this._emit(this._listeners[e],t),this._starListeners.length>0&&this._emit(this._starListeners,e,t,o.uuid),o(),this},o.prototype.on=o.prototype.addListener=function(e,t){return r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.on: listener should be type function"),"*"===e?this._starListeners.push(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)),this},o.prototype.prependListener=function(e,t){return r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.prependListener: listener should be type function"),"*"===e?this._starListeners.unshift(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].unshift(t)),this},o.prototype.once=function(e,t){r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.once: listener should be type function");var n=this;return this.on(e,(function s(){t.apply(n,arguments),n.removeListener(e,s)})),this},o.prototype.prependOnceListener=function(e,t){r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(e,(function s(){t.apply(n,arguments),n.removeListener(e,s)})),this},o.prototype.removeListener=function(e,t){return r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.removeListener: listener should be type function"),"*"===e?(this._starListeners=this._starListeners.slice(),n(this._starListeners,t)):(void 0!==this._listeners[e]&&(this._listeners[e]=this._listeners[e].slice()),n(this._listeners[e],t));function n(e,t){if(e){var n=e.indexOf(t);return-1!==n?(s(e,n,1),!0):void 0}}},o.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},o.prototype.listeners=function(e){var t="*"!==e?this._listeners[e]:this._starListeners,n=[];if(t)for(var s=t.length,i=0;i{var s=n(204),i="undefined"!=typeof window;function r(e){this.hasWindow=e,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}r.prototype.push=function(e){s.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},r.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var e=this;this.method((function(t){for(;e.queue.length&&t.timeRemaining()>0;)e.queue.shift()(t);e.scheduled=!1,e.queue.length&&e.schedule()}))}},r.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return i?(window._nanoScheduler||(window._nanoScheduler=new r(!0)),e=window._nanoScheduler):e=new r,e}},999:(e,t,n)=>{var s,i=n(61)(),r=n(204);o.disabled=!0;try{s=window.performance,o.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!s.mark}catch(e){}function o(e){if(r.equal(typeof e,"string","nanotiming: name should be type string"),o.disabled)return a;var t=(1e4*s.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function l(r){var o="end-"+t+"-"+e;s.mark(o),i.push((function(){var i=null;try{var a=e+" ["+t+"]";s.measure(a,n,o),s.clearMarks(n),s.clearMarks(o)}catch(e){i=e}r&&r(i,e)}))}return s.mark(n),l.uuid=t,l}function a(e){e&&i.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=o},69:e=>{"use strict";e.exports=function(e,t,n){var s,i=e.length;if(!(t>=i||0===n)){var r=i-(n=t+n>i?i-t:n);for(s=t;s{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e={LOADED:"Settings.Form.Loaded",READY:"Settings.Form.Ready",SAVING:"Settings.Form.Saving",SAVED:"Settings.Form.Saved"},t={INIT:"Settings.Column.Init",SWITCH:"Settings.Column.SwitchToType",REFRESHED:"Settings.Column.Refreshed"},s=jQuery;var i=n.n(s),r=n(559),o=n.n(r);const a=n(669),l=(e,t=new FormData)=>(Object.keys(e).forEach((n=>{t.append(n,e[n])})),t);class c{constructor(e){this.element=e}static find(e){let t=document.querySelector(e);return null===t?null:new c(t)}static create(e){return new c(document.createElement(e))}getElement(){return this.element}addId(e){return this.element.id=e,this}toggleClass(e,t=null){return null===t?this.element.classList.contains(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClasses(e)}addClass(e){return this.element.classList.add(e),this}addClasses(...e){return e.forEach((e=>this.addClass(e))),this}removeClasses(...e){return e.forEach((e=>this.removeClass(e))),this}removeClass(e){return this.element.classList.remove(e),this}setAttribute(e,t){return this.element.setAttribute(e,t),this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}addHtml(e){return this.element.innerHTML=e,this}append(e){return this.element.appendChild(e),this}appendSelfTo(e){return e.append(this.element),this}prepend(e){return this.element.prepend(e),this}prependSelfTo(e){return e.prepend(this.element),this}css(e,t){return this.element.style[e]=t,this}insertAfter(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element.nextElementSibling)}catch(e){console.error("Not able to insert element after current node",this.element)}}insertSelfBefore(e){var t;try{null===(t=e.parentElement)||void 0===t||t.insertBefore(this.element,e)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}insertBefore(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}addEventListener(e,t){return this.element.addEventListener(e,t),this}addEventListeners(e,t){return e.forEach((e=>this.addEventListener(e,t))),this}}const u=(e,t="div")=>c.create(t).addHtml(e).getElement(),h=(e,t=100,n=null,s="block")=>{e.style.display=s,e.style.transition=`opacity ${t}ms`,e.style.opacity="0",setTimeout((()=>{e.style.opacity="1"}),100),n&&e.addEventListener("transitionend",(()=>{n.call(void 0)}),{once:!0})},d=(e,t=100,n=null,s="none")=>{e.style.transition=`opacity ${t}ms`,e.style.opacity="1",setTimeout((()=>{e.style.opacity="0"}),100),e.addEventListener("transitionend",(()=>{e.style.display=s,n&&n.call(void 0)}),{once:!0})},p=(e="",t=!1)=>{let n=(Date.now()/1e3).toString(16).split(".").join("");for(;n.length<14;)n+="0";let s="";return t&&(s=".",s+=Math.round(1e8*Math.random())),e+n+s},m="closed",f="open",g="remove",v="clone";class y{constructor(e,t,n){this.events=new(o()),this.name=t,this.element=e,this.state=m,this.services=n,this.setPropertiesByElement(e),this.init()}setPropertiesByElement(e){return this.type=e.dataset.type,this.original="1"===e.dataset.original,this.disabled=e.classList.contains("disabled"),e.dataset.columnName=this.name,this}getName(){return this.name}getType(){return this.type}isOriginal(){return this.original}getElement(){return this.element}isDisabled(){return this.element.classList.contains("disabled")}disable(){return this.element.classList.add("disabled"),this}setLoading(e){return e?this.getElement().classList.add("loading"):this.getElement().classList.remove("loading"),this}enable(){return this.element.classList.remove("disabled"),this}init(){return this.services.emitEvent(t.INIT,this),this}destroy(){this.element.remove()}remove(e=150){this.events.emit(g,this),d(this.getElement(),e,(()=>{this.destroy()}))}getState(){return this.state}toggle(e=150){this.getState()===f?this.close(e):this.open(e)}close(e=0){this.getElement().classList.remove("opened"),i()(this.getElement()).find(".ac-column-body").slideUp(e),this.state=m}open(e=0){this.getElement().classList.add("opened"),i()(this.getElement()).find(".ac-column-body").slideDown(e),this.state=f}isOpen(){return this.state===f}showMessage(e){let t=this.getElement().querySelector(".ac-column-setting--type .msg");t&&(t.innerHTML=e,t.style.display="block")}getJson(){let e=new FormData(this.getElement());e.set("name",this.getName());var t={};for(var n of e.entries()){let e=n[0],s=n[1];if(this.fieldSupportsMultipleValues(e)){let n=t.hasOwnProperty(e)?t[e]:[];n.push(s),t[e]=n}else t[e]=s}return t}switchToType(e){this.setLoading(!0),((e,t=AC.list_screen)=>{var n;return a.post(ajaxurl,l({_ajax_nonce:AC._ajax_nonce,action:"ac-columns",current_original_columns:JSON.stringify(null===(n=AC_SERVICES.getService("Form"))||void 0===n?void 0:n.getOriginalColumns().map((e=>e.getName()))),id:"select",list_screen:t,type:e}))})(e).then((e=>{if(e.data.success){let t=u(e.data.data.trim()).firstChild;this.name=p(),this.reinitColumnFromElement(t).open()}else this.showMessage(e.data.data.error)})).catch((()=>{this.showMessage(AC.i18n.errors.loading_column)})).finally((()=>this.setLoading(!1)))}refresh(){this.setLoading(!0),((e,t,n=AC.list_screen)=>a.post(ajaxurl,l({_ajax_nonce:AC._ajax_nonce,action:"ac-columns",column_name:e,data:t,id:"refresh",list_screen:n})))(this.getName(),JSON.stringify(this.getJson())).then((e=>{e.data.success?(this.reinitColumnFromElement(u(e.data.data.trim()).firstChild),this.services.emitEvent(t.REFRESHED,this),this.isOpen()&&this.open()):this.showMessage(AC.i18n.errors.loading_column)})).finally((()=>this.setLoading(!1)))}fieldSupportsMultipleValues(e){let t=this.getElement().elements[e];return t&&"SELECT"===t.tagName&&t.hasAttribute("multiple")}reinitColumnFromElement(e){var t;return null===(t=this.getElement().parentNode)||void 0===t||t.replaceChild(e,this.getElement()),this.element=e,this.setPropertiesByElement(e).init(),this}}class E{constructor(t,n){this.form=t,this.services=n,this.columns=[],this.preferences=[],this.services.emitEvent(e.LOADED,this),this.init()}init(){this.initColumns(),this.isDisabled()&&(this.disableFields(),this.disableColumns()),this.services.emitEvent(e.READY,this)}getElement(){return this.form}getColumns(){return this.columns}getSortedColumns(){let e=[];return this.getElement().querySelectorAll("form.ac-column").forEach((t=>{let n=this.columns.find((e=>e.getName()===t.dataset.columnName));n&&e.push(n)})),e}placeColumn(e,t=null){var n;return t?((e,t)=>{var n;null===(n=null==t?void 0:t.parentNode)||void 0===n||n.insertBefore(e,t.nextSibling)})(e.getElement(),t):null===(n=this.getElement().querySelector(".ac-columns"))||void 0===n||n.append(e.getElement()),setTimeout((()=>{((e,t,n={})=>{var s;let i=Object.assign({},{offset:0},n);const r=e.offsetTop+(null!==(s=i.offset)&&void 0!==s?s:0),o=window.pageYOffset,a=r-o;let l;window.requestAnimationFrame((function e(n){l||(l=n);let s=n-l,i=Math.min(s/t,1);window.scrollTo(0,o+a*i),se.isOriginal()))}disableColumns(){this.columns.forEach((e=>e.disable()))}initColumns(){this.getElement().querySelectorAll(".ac-column").forEach((e=>{var t;let n=new y(e,null!==(t=e.dataset.columnName)&&void 0!==t?t:"",this.services);this.columns.push(n),this.bindColumnEvents(n)}))}bindColumnEvents(e){e.events.addListener(g,(()=>{this.removeColumn(e.getName())})),e.events.addListener(v,(()=>{let t=new y(e.getElement().cloneNode(!0),p(),this.services);this.columns.push(t),this.placeColumn(t,e.getElement()).bindColumnEvents(t),e.isOpen()?t.open():t.close(),h(t.getElement(),300)}))}resetColumns(){this.columns.forEach((e=>{e.destroy()})),this.columns=[]}getFormData(){let e={},t=this.getElement().querySelector("input[name=title]");return this.getSortedColumns().forEach((t=>{e[t.getName()]=t.getJson()})),{title:t?t.value:"",list_screen:AC.list_screen,list_screen_id:AC.layout,columns:e,settings:this.getPreferences()}}disableFields(){this.getElement().querySelectorAll("input, select, button").forEach((e=>{e.setAttribute("readonly","readonly"),e.setAttribute("disabled","disabled")}))}submitForm(){var t;this.services.emitEvent(e.SAVING,this),(t=this.getFormData(),a.post(ajaxurl,l({action:"ac-columns",id:"save",_ajax_nonce:AC._ajax_nonce,data:JSON.stringify(t)}))).then((e=>{if(e.data.success)this.showMessage(e.data.data.message,"updated"),AC.layout=e.data.data.list_id;else if(e.data){let t=e.data;this.showMessage(t.data.message,"notice notice-warning")}})).catch((()=>{this.showMessage(AC.i18n.error.save_settings)})).finally((()=>{this.services.emitEvent(e.SAVED,this)}))}showMessage(e,t="updated"){let n=c.create("div").addClass("ac-message").addClasses(...t.split(" ")).addHtml(`

${e}

`).getElement(),s=document.querySelector(".ac-admin__main");s&&(s.querySelectorAll(".ac-message").forEach((e=>e.remove())),s.insertAdjacentElement("afterbegin",n)),h(n,600)}removeColumn(e){this.columns.forEach(((t,n)=>{e===t.getName()&&this.columns.splice(n,1)}))}registerPreference(e){this.preferences.push(e)}getPreferences(){let e={};return this.preferences.forEach((t=>{e=t.getPreferences(e)})),e}}const b=e=>{var t;let n=null===(t=document.querySelector("#add-new-column-template .ac-column"))||void 0===t?void 0:t.cloneNode(!0);const s=p();return n.querySelectorAll("label[for]").forEach((e=>{let t=e.getAttribute("for");if(t){let i=n.querySelector(`#${t}`);if(i){const n=t+s;e.setAttribute("for",n),i.id=n}}})),new y(n,s,e)};class w{constructor(){this.filters={}}addFilter(e,t,n=10){this.filters.hasOwnProperty(e)||(this.filters[e]={}),this.filters[e].hasOwnProperty(n)||(this.filters[e][n]=[]),this.filters[e][n].push(t)}applyFilters(e,t,n={}){return this.filters.hasOwnProperty(e)?(Object.keys(this.filters[e]).forEach((s=>{this.filters[e][parseInt(s)].forEach((e=>{t=e(t,n)}))})),t):t}}class S{constructor(){this.services={},this.events=new(o()),this.filters=new w,this.$=c}registerService(e,t){return this.services[e]=t,this.events.emit(`Service.Registered.${e}`,t),this}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}addListener(e,t){this.events.addListener(e,t)}emitEvent(e,t){this.events.emit(e,t)}}const _=()=>(window.AC_SERVICES||(window.AC_SERVICES=new S),window.AC_SERVICES),x=(e,t)=>{let n=e?"on":"off";t.forEach((e=>{e.value===n&&(e.checked=!0,e.dispatchEvent(new Event("change")),e.dispatchEvent(new Event("click")))}))},A=(e,t)=>{var n;let s=null===(n=e.closest(".col-label"))||void 0===n?void 0:n.querySelector("div.tooltip");s&&(s.style.display=t)};class L{constructor(e){var t;this.el=e,this.dialog=null!==(t=e.querySelector(".ac-modal__dialogs"))&&void 0!==t?t:document.createElement("div"),this.initEvents()}getElement(){return this.el}initEvents(){document.addEventListener("keydown",(e=>{const t=e.key;this.isOpen()&&"Escape"===t&&this.close()}));let e=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');e.length>0&&e.forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.close()}))})),this.el.addEventListener("click",(e=>{e.target.classList.contains("ac-modal")&&self.close()}))}isOpen(){return this.el.classList.contains("-active")}close(){this.onClose(),this.el.classList.remove("-active")}open(){setTimeout((()=>{this.onOpen(),this.el.removeAttribute("style"),this.el.classList.add("-active")}))}destroy(){this.el.remove()}onClose(){}onOpen(){}}class C{constructor(e,t){this.column=e,this.setting=t,this.column=e,this.setting=t,this.field=this.setting.querySelector(".ac-setting-input_label");let n=e.getElement().querySelector(".-iconpicker");n&&(this.modal=new q(n),this.modal.setIconSelection(this.getDashIconFromValue()),this.initEvents())}initEvents(){this.column.getElement().querySelectorAll(".ac-setting-label-icon").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modal.open()}))})),this.modal.onSubmit((()=>{this.setLabel(this.modal.getDashIconMarkup()),this.modal.close()}))}getDashIconFromValue(){let e=document.createRange().createContextualFragment(this.getValue()).querySelector(".dashicons"),t="";return e?(e.classList.forEach((e=>{0===e.indexOf("dashicons-")&&(t=e.replace("dashicons-",""))})),t):t}getValue(){var e,t;return null!==(t=null===(e=this.field)||void 0===e?void 0:e.value)&&void 0!==t?t:""}setLabel(e){this.field&&(this.field.value=e,this.field.dispatchEvent(new Event("change")))}}class q extends L{constructor(e){super(e),this.events=new(o()),this.dashIcon="",this.search=new k(this)}initEvents(){super.initEvents(),this.getElement().querySelectorAll('[data-action="submit"]').forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.events.emit("submit")}))})),this.getElement().querySelectorAll("input[type=search]").forEach((e=>{["keyup","search"].forEach((t=>{e.addEventListener(t,(t=>{t.preventDefault(),this.search.searchFor(e.value)}))}))})),this.getIconElements().forEach((e=>{e.addEventListener("click",(t=>{var n;t.preventDefault(),this.setIconSelection(null!==(n=e.dataset.dashicon)&&void 0!==n?n:""),this.getIconElements().forEach((e=>e.classList.remove("active"))),e.classList.add("active")}))}))}getIconElements(){return this.getElement().querySelectorAll(".ac-ipicker__icon")}onSubmit(e){this.events.on("submit",e)}getDashIconMarkup(){return``}setIconSelection(e){let t=this.getElement().querySelector(".ac-ipicker__selection");this.dashIcon=e,t&&(t.innerHTML=this.getDashIconMarkup(),t.style.visibility="visible")}}class k{constructor(e){this.modal=e}searchFor(e){this.modal.getElement().querySelectorAll("[data-dashicon]").forEach((t=>{var n;-1!==(null===(n=t.dataset.dashicon)||void 0===n?void 0:n.indexOf(e.toLowerCase()))?t.style.display="inline-block":t.style.display="none"})),this.determineVisibilityGroups()}determineVisibilityGroups(){this.modal.getElement().querySelectorAll(".ac-ipicker__group").forEach((e=>{let t=e.querySelectorAll("[data-dashicon]"),n=Array.from(t).filter((e=>null===e.offsetParent)),s=e.querySelector("h3");s&&(s.style.display=t.length==n.length?"none":"block")}))}}class O{constructor(e,t){this.column=e,this.setting=t,this.field=this.setting.querySelector(".ac-setting-input select"),this.initState(),this.bindEvents()}getValue(){var e;return null===(e=this.field)||void 0===e?void 0:e.value}bindEvents(){var e;null===(e=this.field)||void 0===e||e.addEventListener("change",(()=>this.initState()))}initState(){this.toggleSubSettings("cpac-custom"===this.getValue())}toggleSubSettings(e=!0){this.setting.querySelectorAll(".ac-column-setting").forEach((t=>t.style.display=e?"table":"none"))}}const j=n(669);class T{constructor(e,t){this.column=e,this.setting=t,this.bindEvents()}bindEvents(){this.refreshPreview(),this.setting.querySelectorAll("input").forEach((e=>{e.addEventListener("change",(()=>this.refreshPreview()))}))}refreshPreview(){this.getExampleRequest().then((e=>{this.setting.querySelectorAll("[data-preview]").forEach((t=>t.textContent=e.data.data))}))}getValue(){let e=this.setting.querySelector(".ac-setting-input_number_decimals"),t=this.setting.querySelector(".ac-setting-input_number_decimal_point"),n=this.setting.querySelector(".ac-setting-input_number_thousands_separator");return{decimals:e?e.value:"",decimal_point:t?t.value:"",thousands_point:n?n.value:""}}getExampleRequest(){const e=this.getValue();let t=new FormData;return t.set("action","ac_number_format"),t.set("number","7500"),t.set("decimals",e.decimals),t.set("decimal_point",e.decimal_point),t.set("thousands_sep",e.thousands_point),j.post(ajaxurl,t,{})}}function $(e,t){if(""===jQuery.trim(e.term))return t;if(void 0===t.children)return null;var n=[];if(jQuery.each(t.children,(function(t,s){s.text.toUpperCase().indexOf(e.term.toUpperCase())>-1&&n.push(s)})),n.length){var s=jQuery.extend({},t,!0);return s.children=n,s}return null}class N{constructor(e,t){this.column=e,this.setting=t,this.bindEvents()}bindEvents(){const e=this.setting.querySelector(".ac-setting-input_type"),t=this.setting,n=this.column;e&&(e.removeAttribute("data-select2-id"),this.setting.querySelectorAll(".select2").forEach((e=>{e.remove()})),i()(e).ac_select2({theme:"acs2",width:"100%",dropdownCssClass:"-type-selector",escapeMarkup:function(e){return e},templateResult:function(e){let s=e.text;return e.hasOwnProperty("id")&&e.id.includes("placeholder-")&&(s+='PRO'),_().filters.applyFilters("column_type_templates",s,{setting:t,column:n,result:e})},matcher:$}))}}class I{constructor(e,t){this.column=e,this.setting=t,this.events=new(o()),this.indicator=new R(e.getElement().querySelector(".ac-column-heading-setting--width")),this.widthInput=this.setting.querySelector("[data-width-input]"),this.unitInput=this.setting.querySelectorAll("[data-unit-input] input"),this.init()}getWidth(){var e,t;return+(null!==(t=null===(e=this.widthInput)||void 0===e?void 0:e.value)&&void 0!==t?t:0)}setWidth(e){this.widthInput&&(this.widthInput.value=e?e.toString():""),this.updateIndicator()}updateUnit(){this.setting.querySelector(".description .unit").innerHTML=this.getUnit()}getUnit(){var e,t;return null!==(t=null===(e=this.setting.querySelector("[data-unit-input] input:checked"))||void 0===e?void 0:e.value)&&void 0!==t?t:"0"}getValue(){return{width:this.getWidth(),unit:this.getUnit()}}validate(){let e=this.getWidth();(0===e||e<0)&&this.setWidth(""),"%"===this.getUnit()&&e>100&&this.setWidth(100)}init(){var e;null===(e=this.widthInput)||void 0===e||e.addEventListener("keyup",(()=>{this.updateIndicator(),this.initSlider(),this.validate()})),this.unitInput.forEach((e=>{e.addEventListener("change",(()=>{this.initSlider(),this.updateIndicator(),this.updateUnit(),this.validate()}))})),this.initSlider()}updateIndicator(){this.indicator.setValue(this.getWidth(),this.getUnit())}initSlider(){this.column.getElement().querySelectorAll(".width-slider").forEach((e=>{i()(e).slider({range:"min",min:0,max:"%"===this.getUnit()?100:500,value:this.getWidth(),slide:(e,t)=>{this.setWidth(t.value)}})}))}}class R{constructor(e){this.element=e,this.events=new(o())}setValue(e,t){if(null===e||0===e)return this.element.innerText="";this.element.innerText=`${e.toString()}${t}`}}const D=n(669);class F{constructor(e,t){this.column=e,this.setting=t,this.options=this.setting.querySelectorAll(".radio-labels input[type=radio]"),this.valueInput=this.setting.querySelector("[data-value-input]");let n=this.setting.querySelector(".radio-labels code");this.defaultFormat=n?n.textContent:"Y-m-d";let s=[...this.options].filter((e=>void 0!==e.dataset.custom));this.customOption=new P(s[0],this.setting.querySelector("[data-custom-date]"),this.setting.querySelector(".ac-setting-input-date__example"),this.valueInput),this.initEvents()}getOptionsAsArray(){return Array.from(this.options)}getSelectionOption(){let e=this.getOptionsAsArray().filter((e=>e.checked));return e?e[0]:null}initEvents(){this.options.forEach((e=>{e.addEventListener("change",(()=>this.handleUpdate(e)))})),this.setSelected(),this.customOption.updateExample()}setSelected(){let e=this.getOptionsAsArray().find((e=>e.value===this.getCurrentValue()));e&&(e.checked=!0,e.dispatchEvent(new Event("change")))}getCustomFormats(){var e,t;return JSON.parse(null!==(t=null===(e=this.setting.querySelector("[data-custom-formats]"))||void 0===e?void 0:e.dataset.customFormats)&&void 0!==t?t:"")}handleUpdate(e){var t,n,s;this.valueInput.value=e.value,this.customOption.toggle(void 0!==e.dataset.custom);let i=null!==(s=null===(n=null===(t=e.closest("label"))||void 0===t?void 0:t.querySelector("[data-help]"))||void 0===n?void 0:n.innerHTML)&&void 0!==s?s:"";this.setHelpText(i),void 0===e.dataset.custom&&("custom"===this.valueInput.value||this.customOption.setExample(this.valueInput.value),this.getCustomFormats().includes(this.valueInput.value)&&this.customOption.setExample(""),this.customOption.updateExample())}getCurrentValue(){return this.valueInput.value}setHelpText(e){let t=this.setting.querySelector(".help-msg");t&&(t.innerHTML=e,t.style.display="block")}}class P{constructor(e,t,n,s){this.radio=e,this.input=t,this.example=n,this.valueElement=s,this.timeout=null,this.input.addEventListener("change",(()=>{this.updateExample(),e.checked&&(this.valueElement.value=this.input.value)})),this.input.addEventListener("keyup",(()=>{e.checked&&(this.valueElement.value=this.input.value),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.updateExample()),500)}))}setExample(e){this.input.value=e}updateExample(){this.getExample().then((e=>{this.example.innerHTML=e.data}))}toggle(e=!0){e?this.input.removeAttribute("disabled"):this.input.setAttribute("disabled","disabled")}getExample(){let e=new FormData;return e.set("action","date_format"),e.set("date",this.input.value),D.post(ajaxurl,e,{})}}const M=n(669);class H{constructor(e,t){this.column=e,this.setting=t,this.select=t.querySelector(".custom_field"),this.bindEvents()}bindEvents(){var e,t;const n=U(null!==(e=this.select.dataset.type)&&void 0!==e?e:"",null!==(t=this.select.dataset.post_type)&&void 0!==t?t:""),s=this.column.getElement().querySelectorAll('[data-setting="edit"][data-indicator-toggle]').length>0;this.select.querySelectorAll("optgroup").forEach((e=>{e.remove()})),this.select.removeAttribute("data-select2-id"),this.setting.querySelectorAll(".select2").forEach((e=>{e.remove()})),n.getOptions().then((e=>{i()(this.select).ac_select2({theme:"acs2",width:"100%",tags:s,dropdownCssClass:"-customfields",data:e})}))}}class B{constructor(e,t){this.metaType=e,this.postType=t,this.loading=!1,this.data=null,this.events=new(o())}retrieveOptions(){this.loading=!0;let e=new FormData;return e.set("action","ac_custom_field_options"),e.set("post_type",this.postType),e.set("meta_type",this.metaType),e.set("_ajax_nonce",AC._ajax_nonce),M.post(ajaxurl,e)}getOptions(){return new Promise(((e,t)=>{this.data?e(this.data):this.loading?this.events.on("loaded",(()=>{e(this.data)})):this.retrieveOptions().then((n=>{n.data.success||t(),this.data=n.data.data.results,this.events.emit("loaded"),e(this.data)}))}))}}const U=(e,t)=>{const n=`custom_field_${e}_${t}`;return void 0===window.AC_Requests&&(window.AC_Requests={}),window.AC_Requests.hasOwnProperty(n)||(window.AC_Requests[n]=new B(e,t)),window.AC_Requests[n]};class V{constructor(e){var t;this.element=e,this.input=e.querySelector('.ac-setting-input input[type="checkbox"]'),this.subFields=e.querySelectorAll(".ac-column-setting"),this.initState(),null===(t=this.input)||void 0===t||t.addEventListener("input",(()=>this.initState()))}initState(){this.isOptionEnabled()?this.subFields.forEach((e=>e.style.display="table")):this.subFields.forEach((e=>e.style.display="none"))}isOptionEnabled(){var e,t;return null!==(t=null===(e=this.input)||void 0===e?void 0:e.checked)&&void 0!==t&&t}}class W{constructor(e,t){this.column=e,this.select=t,this.bindEvents()}getSelectedOptions(){const e=this.select.querySelectorAll("option:checked");return Array.from(e).map((e=>e.value))}bindEvents(){var e,t;this.select.removeAttribute("data-select2-id"),null===(e=this.select.parentElement)||void 0===e||e.querySelectorAll(".select2").forEach((e=>{e.remove()}));let n=c.create("input").setAttributes({name:null!==(t=this.select.getAttribute("name"))&&void 0!==t?t:"",type:"hidden"});0===this.getSelectedOptions().length&&n.insertSelfBefore(this.select),i()(this.select).ac_select2({theme:"acs2",width:"100%",closeOnSelect:!1,escapeMarkup:function(e){return e}}).on("select2:selecting",(()=>{n.getElement().remove()})).on("select2:unselect",(()=>{0===this.getSelectedOptions().length&&n.insertSelfBefore(this.select)}))}}const J=class{constructor(e){this.element=e,this.init()}init(){var e,t;null===(e=this.element.querySelector("a.no"))||void 0===e||e.addEventListener("click",(e=>{e.preventDefault(),d(this.element.querySelector("#feedback-choice"),300,(()=>{h(this.element.querySelector("#feedback-support"),300)}))})),null===(t=this.element.querySelector("a.yes"))||void 0===t||t.addEventListener("click",(e=>{e.preventDefault(),d(this.element.querySelector("#feedback-choice"),300,(()=>{h(this.element.querySelector("#feedback-rate"),300)}))}))}};var z=n(669),G=n.n(z);const X=(e,t,n="")=>{if(!t||"object"!=typeof t||t instanceof Date||t instanceof File){const s=null==t?"":t;e.append(n,s)}else Object.keys(t).forEach((s=>{X(e,t[s],n?`${n}[${s}]`:s)}))};class Y{constructor(e,t,n,s){this.name=e,this.input=t,this.toggleClass=n,this.container=s,this.initEvents()}initEvents(){this.input.addEventListener("change",(()=>{this.input.checked?this.container.classList.add(this.toggleClass):this.container.classList.remove(this.toggleClass),this.persist()}))}persist(){G().post(ajaxurl,((e,t=null)=>{let n=null!=t?t:new FormData;return Object.keys(e).forEach((t=>{X(n,e[t],t)})),n})({action:"ac_admin_screen_options",_ajax_nonce:AC._ajax_nonce,option_name:this.name,option_value:this.input.checked?1:0}))}}const Q=()=>{document.querySelectorAll(".ac-tooltip").forEach((e=>e.remove())),document.querySelectorAll("[data-ac-tip]").forEach((e=>{new K(e)}))};class K{constructor(e,t=""){this.element=e,this.content=t||e.dataset.acTip,this.tip=Z(this.content),this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();document.body.appendChild(this.tip),this.tip.style.left=t.left-e.left+this.element.offsetWidth/2+"px",this.tip.style.top=t.top-e.top+this.element.offsetHeight+"px",this.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(()=>{this.tip.classList.remove("hover"),document.body.contains(this.tip)&&document.body.removeChild(this.tip)})),this.element.removeAttribute("title"))}}const Z=e=>{let t=document.createElement("div");return t.classList.add("ac-tooltip"),t.innerHTML=e,t},ee=class{constructor(){this.init()}init(){Q()}};function te(){}function ne(e){return e()}function se(){return Object.create(null)}function ie(e){e.forEach(ne)}function re(e){return"function"==typeof e}function oe(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function ae(e){return 0===Object.keys(e).length}new Set;const le="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class ce{constructor(e){this.options=e,this._listeners="WeakMap"in le?new WeakMap:void 0}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return null!==(e=this._observer)&&void 0!==e?e:this._observer=new ResizeObserver((e=>{var t;for(const n of e)ce.entries.set(n.target,n),null===(t=this._listeners.get(n.target))||void 0===t||t(n)}))}}ce.entries="WeakMap"in le?new WeakMap:void 0;let ue,he=!1;function de(e,t){e.appendChild(t)}function pe(e){e.parentNode&&e.parentNode.removeChild(e)}function me(e){return document.createElement(e)}function fe(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function ge(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ve(e){ue=e}new Map;const ye=[],Ee=[];let be=[];const we=[],Se=Promise.resolve();let _e=!1;function xe(e){be.push(e)}const Ae=new Set;let Le=0;function Ce(){if(0!==Le)return;const e=ue;do{try{for(;Le-1===e.indexOf(s)?t.push(s):n.push(s))),n.forEach((e=>e())),be=t}(n.after_update),ie(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Te(e,t,n,s,i,r,o,a=[-1]){const l=ue;ve(e);const c=e.$$={fragment:null,ctx:[],props:r,update:te,not_equal:i,bound:se(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:se(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};o&&o(c.root);let u=!1;if(c.ctx=n?n(e,t.props||{},((t,n,...s)=>{const r=s.length?s[0]:n;return c.ctx&&i(c.ctx[t],c.ctx[t]=r)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](r),u&&function(e,t){-1===e.$$.dirty[0]&&(ye.push(e),_e||(_e=!0,Se.then(Ce)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const t=e.$$.on_mount.map(ne).filter(re);e.$$.on_destroy?e.$$.on_destroy.push(...t):ie(t),e.$$.on_mount=[]})),r.forEach(xe)}(e,t.target,t.anchor,t.customElement),he=!1,Ce()}var h,d,p;ve(l)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Oe=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(ne).filter(re);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){ie(this.$$.on_disconnect)}$destroy(){je(this,1),this.$destroy=te}$on(e,t){if(!re(t))return te;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!ae(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class $e{$destroy(){je(this,1),this.$destroy=te}$on(e,t){if(!re(t))return te;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!ae(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function Ne(e){let t,n,s,i,r,o,a;return{c(){var o;t=me("div"),n=me("div"),o=" ",s=document.createTextNode(o),i=me("div"),ge(n,"class","ac-pointer-modal__arrow"),ge(n,"data-pos",e[1]),ge(i,"class","ac-pointer-modal__content"),ge(t,"class",r="ac-pointer-modal -"+e[1])},m(r,l){(function(e,t,n){e.insertBefore(t,n||null)})(r,t,l),de(t,n),de(t,s),de(t,i),i.innerHTML=e[0],o||(a=[fe(t,"mouseenter",e[6]),fe(t,"mouseleave",e[7])],o=!0)},p(e,[s]){2&s&&ge(n,"data-pos",e[1]),1&s&&(i.innerHTML=e[0]),2&s&&r!==(r="ac-pointer-modal -"+e[1])&&ge(t,"class",r)},i:te,o:te,d(e){e&&pe(t),o=!1,ie(a)}}}function Ie(e,t,n){let{content:s=""}=t,{position:i=""}=t,r=!1,{closeHandler:o}=t;const a=()=>{n(2,r=!1),o()};return e.$$set=e=>{"content"in e&&n(0,s=e.content),"position"in e&&n(1,i=e.position),"closeHandler"in e&&n(4,o=e.closeHandler)},[s,i,r,a,o,()=>r,()=>n(2,r=!0),()=>a()]}const Re=class extends $e{constructor(e){super(),Te(this,e,Ie,Ne,oe,{content:0,position:1,closeHandler:4,isOnElement:5})}get isOnElement(){return this.$$.ctx[5]}};class De{constructor(e,t){var n,s;this.element=e,this.target=t,this.width=null!==(n=e.dataset.width)&&void 0!==n?n:null,this.position=null!==(s=e.dataset.pos)&&void 0!==s?s:"right",this.noClick=void 0!==e.dataset.noclick,this.waitingForClose=!1,this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.container=Fe(),this.width&&(this.container.style.width=`${this.width}px`),this.attachModel(),this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{this.onScreen||(this.onScreen=!0,document.body.appendChild(this.container),this.container.style.width=`${this.width}px`,this.setPosition(),setTimeout((()=>{this.setPosition()}),100))})),this.element.addEventListener("mouseleave",(()=>{this.checkClose()})),this.element.addEventListener("click",(()=>{this.noClick||(this.waitingForClose=!0)})))}setPosition(){const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();switch(this.container.style.top=t.top-e.top+this.element.offsetHeight-this.container.offsetHeight/2+20+"px",this.position){case"right_bottom":this.container.style.top=t.top-e.top-this.container.offsetHeight+100+"px",this.container.style.left=t.left-e.left+this.element.offsetWidth+14+"px";break;case"left":this.container.style.left=t.left-e.left-this.container.offsetWidth-12+"px";break;default:this.container.style.left=t.left-e.left+this.element.offsetWidth+10+"px"}}checkClose(){setTimeout((()=>{this.waitingForClose||this.closeHandler()}),50)}closeHandler(){this.onScreen&&(document.body.removeChild(this.container),this.onScreen=!1,this.waitingForClose=!1)}destroyComponent(){null!==this.component&&this.component.$destroy()}attachModel(){this.component=new Re({target:this.container,props:{content:this.target.innerHTML,position:this.position,closeHandler:()=>this.closeHandler(),destroyHandler:()=>this.destroyComponent()}})}}const Fe=()=>{const e=document.createElement("div");return e.classList.add("ac-pointer-modal-container"),e.style.position="absolute",e},Pe=n(669);class Me{constructor(e){this.listScreens=e,this.processed=[],this.errors=[],this.success=[],this.events=new(o()),this.run()}doAjaxCall(e){return Pe.get(e.screen_link)}run(){Object.values(this.listScreens).forEach((e=>this.processListScreen(e)))}onFinish(){this.success.length===Object.keys(this.listScreens).length&&this.events.emit("success"),this.errors.length>0&&this.events.emit("error")}checkFinish(){this.processed.length===Object.keys(this.listScreens).length&&this.onFinish()}processListScreen(e){this.doAjaxCall(e).then((t=>{"ac_success"===t.data?this.success.push(e):this.errors.push(e)})).catch((()=>{this.errors.push(e)})).finally((()=>{this.processed.push(e),this.checkFinish()}))}}let He=_();He.registerService("Modals",new class{constructor(){this.modals={},this.number=0,this.defaults={modal:L},this.initGlobalEvents()}register(e,t=""){return t||(t="m"+this.number),this.modals[t]=e,this.number++,e}get(e){return this.modals.hasOwnProperty(e)?this.modals[e]:null}open(e){var t;null===(t=this.get(e))||void 0===t||t.open()}close(e){var t;null===(t=this.get(e))||void 0===t||t.close()}closeAll(){for(let e in this.modals)this.close(e)}initGlobalEvents(){document.addEventListener("click",(e=>{let t=e.target;t.dataset.acModal&&(e.preventDefault(),this.open(t.dataset.acModal))}))}}),new class{constructor(e){e.addListener(t.INIT,(e=>{(e=>{e.getElement().querySelectorAll('[data-toggle="column"]').forEach((t=>{t.addEventListener("click",(t=>e.toggle())),t.style.cursor="pointer"}))})(e),(e=>{e.isDisabled()||e.getElement().querySelectorAll("[data-indicator-toggle]").forEach((t=>{var n;let s=null!==(n=t.dataset.setting)&&void 0!==n?n:"";e.getElement().querySelectorAll(`.ac-column-setting[data-setting='${t.dataset.setting}'] .col-input .ac-setting-input:first-child input[type=radio]`).length&&((e,t,n)=>{let s=e.getElement().querySelectorAll(`.ac-column-setting[data-setting='${n}'] .col-input .ac-setting-input:first-child input[type=radio]`);t.addEventListener("click",(()=>{x(!t.classList.contains("on"),s)})),s.forEach((e=>{e.addEventListener("change",(()=>{"off"===e.value?t.classList.remove("on"):t.classList.add("on")}))}))})(e,t,s);let i=e.getElement().querySelector(`.ac-column-setting[data-setting='${t.dataset.setting}'] .col-input .ac-setting-input:first-child .ac-toggle-v2`);i&&((e,t,n,s)=>{var i;let r=null!==(i=s.querySelector("input[type=checkbox]"))&&void 0!==i?i:document.createElement("input");t.addEventListener("click",(()=>{r.checked=!r.checked,r.dispatchEvent(new Event("input"))})),r.addEventListener("input",(()=>r.checked?t.classList.add("on"):t.classList.remove("on")))})(0,t,0,i)}))})(e),(e=>{e.getElement().querySelectorAll("select.ac-setting-input_type").forEach((t=>{i()(t).on("change",(()=>e.switchToType(t.value)))}))})(e),(e=>{e.getElement().querySelectorAll("[data-remove-column]").forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault(),e.remove()}))}))})(e),(e=>{e.getElement().querySelectorAll(".clone-button").forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault(),e.isOriginal()||e.events.emit(v)}))}))})(e),(e=>{let t=e.getElement().querySelector(".ac-column-setting--label input[type=text]");var n,s;t&&(n=t,s=()=>((e,t)=>{t.getElement().querySelectorAll("[data-column-label]").forEach((t=>t.innerHTML=e.value))})(t,e),["change","keyup"].forEach((e=>n.addEventListener(e,s))))})(e),(e=>{e.getElement().querySelectorAll(".col-label .label").forEach((e=>{var t,n,s;n=()=>A(e,"block"),s=()=>A(e,"none"),(t=e).addEventListener("mouseenter",n),t.addEventListener("mouseleave",s)}))})(e),(e=>{e.getElement().querySelectorAll('select[data-label="update"]').forEach((t=>{t.addEventListener("change",(()=>{let n=e.getElement().querySelector("input.ac-setting-input_label"),s=t.selectedOptions.length>0?t.selectedOptions[0]:null;n&&s&&(n.value=s.innerHTML,n.dispatchEvent(new Event("change")))}))})),setTimeout((()=>{e.getElement().querySelectorAll("[data-column-label]").forEach((t=>{t.offsetWidth<10&&(t.innerText=e.getType())}))}),50)})(e),(e=>{e.getElement().querySelectorAll('[data-refresh="column"], [data-refresh="column"] input').forEach((t=>{t.addEventListener("change",(()=>{setTimeout((()=>e.refresh()),50)}))}))})(e),(e=>{e.getElement().querySelectorAll("select[multiple]").forEach((t=>{new W(e,t)}))})(e),(e=>{let t=e.getElement().querySelector(".ac-column-setting--label");t&&new C(e,t)})(e),(e=>{let t=e.getElement().querySelector(".ac-column-setting--image");t&&new O(e,t)})(e),(e=>{e.getElement().querySelectorAll(".ac-column-setting--number_format").forEach((t=>{new T(e,t)}))})(e),(e=>{e.getElement().querySelectorAll('[data-setting="type"]').forEach((t=>{new N(e,t)}))})(e),(e=>{e.getElement().querySelectorAll('table[data-setting="width"]').forEach((t=>new I(e,t)))})(e),(e=>{e.getElement().querySelectorAll("[data-setting=date]").forEach((t=>new F(e,t)))})(e),(e=>{e.getElement().querySelectorAll(".ac-column-setting--pro").forEach((e=>{e.querySelectorAll("input").forEach((t=>{t.addEventListener("click",(()=>i()(e).find("[data-ac-modal]").trigger("click")))}))}))})(e),(e=>{e.getElement().querySelectorAll("[data-setting=custom_field]").forEach((t=>new H(e,t)))})(e),(e=>{e.getElement().querySelectorAll(".ac-column-setting--filter,.ac-column-setting--sort,.ac-column-setting--edit").forEach((e=>{new V(e)}))})(e)}))}}(He),document.addEventListener("DOMContentLoaded",(()=>{Be(),document.querySelectorAll("#listscreen_settings").forEach((e=>{He.registerService("Form",new E(e,He))})),He.hasService("Modals")&&document.querySelectorAll("#ac-modal-pro").forEach((e=>{var t;null===(t=He.getService("Modals"))||void 0===t||t.register(new L(e),"pro")})),document.querySelectorAll("#ac_list_screen").forEach((e=>{e.addEventListener("change",(()=>{var t;document.querySelectorAll(".view-link").forEach((e=>e.style.display="none")),null===(t=e.closest("form"))||void 0===t||t.submit(),e.disabled=!0,e.nextElementSibling.style.display="inline-block"}))})),document.querySelectorAll("#direct-feedback").forEach((e=>new J(e))),AC.hasOwnProperty("uninitialized_list_screens")&&(e=>{if(Object.keys(e).length>0)if(e.hasOwnProperty(AC.list_screen)){const t=new Me({[AC.list_screen]:e[AC.list_screen]});t.events.on("error",(()=>{document.querySelectorAll(".ac-loading-msg-wrapper").forEach((e=>e.remove())),document.querySelectorAll(".menu").forEach((e=>e.classList.remove("hidden")))})),t.events.on("success",(()=>{window.location.href=`${location.href}&t=${Date.now()}`}))}else new Me(e)})(AC.uninitialized_list_screens),document.querySelectorAll('[data-ac-screen-option="show_column_id"] input').forEach((e=>new Y("show_column_id",e,"show-column-id",document.querySelector(".ac-boxes")))),document.querySelectorAll('[data-ac-screen-option="show_column_type"] input').forEach((e=>new Y("show_column_type",e,"show-column-type",document.querySelector(".ac-boxes")))),document.querySelectorAll('[data-ac-screen-option="show_list_screen_id"] input').forEach((e=>new Y("show_list_screen_id",e,"show-list-screen-id",document.querySelector(".ac-admin")))),document.querySelectorAll('[data-ac-screen-option="show_list_screen_type"] input').forEach((e=>new Y("show_list_screen_type",e,"show-list-screen-type",document.querySelector(".ac-admin"))))})),He.addListener(e.LOADED,(e=>{if(document.querySelectorAll(".add_column").forEach((t=>t.addEventListener("click",(()=>e.createNewColumn())))),document.querySelectorAll("a[data-clear-columns]").forEach((t=>t.addEventListener("click",(()=>e.resetColumns())))),!e.getElement().classList.contains("-disabled")){let t=i()(e.getElement());t.hasClass("ui-sortable")?t.sortable("refresh"):t.sortable({axis:"y",items:".ac-column",handle:"[data-sort-handle]",containment:t})}})),He.addListener(e.SAVING,(()=>{var e;null===(e=document.querySelector("#cpac .ac-admin"))||void 0===e||e.classList.add("saving")})),He.addListener(e.SAVED,(()=>{var e,t;null===(e=document.querySelector("#cpac .ac-admin"))||void 0===e||e.classList.remove("saving"),null===(t=document.querySelector("#cpac .ac-admin"))||void 0===t||t.classList.add("stored")})),He.addListener(t.INIT,(e=>{Q(),((e=null)=>{e||(e=document.querySelectorAll(".ac-pointer")),e.forEach((e=>{var t;let n=document.querySelector(null!==(t=`#${e.getAttribute("rel")}`)&&void 0!==t?t:"#n");n&&new De(e,n)})),new ee})(e.getElement().querySelectorAll(".ac-pointer"))}));const Be=()=>{const t=document.querySelectorAll(".sidebox a.submit, .column-footer a.submit");He.addListener(e.READY,(e=>{t.forEach((n=>{n.addEventListener("click",(n=>{n.preventDefault(),t.forEach((e=>e.setAttribute("disabled","disabled"))),e.submitForm()}))}))})),He.addListener(e.SAVED,(()=>t.forEach((e=>e.removeAttribute("disabled")))))}})()})(); \ No newline at end of file +(()=>{var e={204:e=>{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,n,s){t(e!=n,s)},t.notOk=function(e,n){t(!e,n)},t.equal=function(e,n,s){t(e==n,s)},t.ok=t,e.exports=t},559:(e,t,n)=>{var s=n(69),i=n(999),r=n(204);function o(e){if(!(this instanceof o))return new o(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=o,o.prototype.emit=function(e){r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.emit: eventName should be type string or symbol");for(var t=[],n=1,s=arguments.length;n0&&this._emit(this._listeners[e],t),this._starListeners.length>0&&this._emit(this._starListeners,e,t,o.uuid),o(),this},o.prototype.on=o.prototype.addListener=function(e,t){return r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.on: listener should be type function"),"*"===e?this._starListeners.push(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)),this},o.prototype.prependListener=function(e,t){return r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.prependListener: listener should be type function"),"*"===e?this._starListeners.unshift(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].unshift(t)),this},o.prototype.once=function(e,t){r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.once: listener should be type function");var n=this;return this.on(e,(function s(){t.apply(n,arguments),n.removeListener(e,s)})),this},o.prototype.prependOnceListener=function(e,t){r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(e,(function s(){t.apply(n,arguments),n.removeListener(e,s)})),this},o.prototype.removeListener=function(e,t){return r.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),r.equal(typeof t,"function","nanobus.removeListener: listener should be type function"),"*"===e?(this._starListeners=this._starListeners.slice(),n(this._starListeners,t)):(void 0!==this._listeners[e]&&(this._listeners[e]=this._listeners[e].slice()),n(this._listeners[e],t));function n(e,t){if(e){var n=e.indexOf(t);return-1!==n?(s(e,n,1),!0):void 0}}},o.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},o.prototype.listeners=function(e){var t="*"!==e?this._listeners[e]:this._starListeners,n=[];if(t)for(var s=t.length,i=0;i{var s=n(204),i="undefined"!=typeof window;function r(e){this.hasWindow=e,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}r.prototype.push=function(e){s.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},r.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var e=this;this.method((function(t){for(;e.queue.length&&t.timeRemaining()>0;)e.queue.shift()(t);e.scheduled=!1,e.queue.length&&e.schedule()}))}},r.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return i?(window._nanoScheduler||(window._nanoScheduler=new r(!0)),e=window._nanoScheduler):e=new r,e}},999:(e,t,n)=>{var s,i=n(61)(),r=n(204);o.disabled=!0;try{s=window.performance,o.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!s.mark}catch(e){}function o(e){if(r.equal(typeof e,"string","nanotiming: name should be type string"),o.disabled)return a;var t=(1e4*s.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function l(r){var o="end-"+t+"-"+e;s.mark(o),i.push((function(){var i=null;try{var a=e+" ["+t+"]";s.measure(a,n,o),s.clearMarks(n),s.clearMarks(o)}catch(e){i=e}r&&r(i,e)}))}return s.mark(n),l.uuid=t,l}function a(e){e&&i.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=o},69:e=>{"use strict";e.exports=function(e,t,n){var s,i=e.length;if(!(t>=i||0===n)){var r=i-(n=t+n>i?i-t:n);for(s=t;s{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e={LOADED:"Settings.Form.Loaded",READY:"Settings.Form.Ready",SAVING:"Settings.Form.Saving",SAVED:"Settings.Form.Saved"},t={INIT:"Settings.Column.Init",SWITCH:"Settings.Column.SwitchToType",REFRESHED:"Settings.Column.Refreshed"},s=jQuery;var i=n.n(s),r=n(559),o=n.n(r);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:l}=Object.prototype,{getPrototypeOf:c}=Object,u=(d=Object.create(null),e=>{const t=l.call(e);return d[t]||(d[t]=t.slice(8,-1).toLowerCase())});var d;const h=e=>(e=e.toLowerCase(),t=>u(t)===e),p=e=>t=>typeof t===e,{isArray:f}=Array,m=p("undefined"),g=h("ArrayBuffer"),v=p("string"),y=p("function"),E=p("number"),b=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==u(e))return!1;const t=c(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},S=h("Date"),_=h("File"),A=h("Blob"),O=h("FileList"),$=h("URLSearchParams");function L(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let s,i;if("object"!=typeof e&&(e=[e]),f(e))for(s=0,i=e.length;s0;)if(s=n[i],t===s.toLowerCase())return s;return null}const q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,x=e=>!m(e)&&e!==q,k=(T="undefined"!=typeof Uint8Array&&c(Uint8Array),e=>T&&e instanceof T);var T;const R=h("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),j=h("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};L(n,((n,i)=>{let r;!1!==(r=t(n,i,e))&&(s[i]=r||n)})),Object.defineProperties(e,s)},D="abcdefghijklmnopqrstuvwxyz",P="0123456789",I={DIGIT:P,ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+P},M=h("AsyncFunction"),B={isArray:f,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=u(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:v,isNumber:E,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isUndefined:m,isDate:S,isFile:_,isBlob:A,isRegExp:j,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:$,isTypedArray:k,isFileList:O,forEach:L,merge:function e(){const{caseless:t}=x(this)&&this||{},n={},s=(s,i)=>{const r=t&&C(n,i)||i;w(n[r])&&w(s)?n[r]=e(n[r],s):w(s)?n[r]=e({},s):f(s)?n[r]=s.slice():n[r]=s};for(let e=0,t=arguments.length;e(L(t,((t,s)=>{n&&y(t)?e[s]=a(t,n):e[s]=t}),{allOwnKeys:s}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,s)=>{let i,r,o;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)o=i[r],s&&!s(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==n&&c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:h,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return-1!==s&&s===n},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!E(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const n=s.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const s=[];for(;null!==(n=e.exec(t));)s.push(n);return s},isHTMLForm:R,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const s=e[n];y(s)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},s=e=>{e.forEach((e=>{n[e]=!0}))};return f(e)?s(e):s(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:C,global:q,isContextDefined:x,ALPHABET:I,generateString:(e=16,t=I.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,s)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[s]=e;const i=f(e)?[]:{};return L(e,((e,t)=>{const r=n(e,s+1);!m(r)&&(i[t]=r)})),t[s]=void 0,i}}return e};return n(e,0)},isAsyncFn:M,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch)};function U(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i)}B.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const H=U.prototype,V={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{V[e]={value:e}})),Object.defineProperties(U,V),Object.defineProperty(H,"isAxiosError",{value:!0}),U.from=(e,t,n,s,i,r)=>{const o=Object.create(H);return B.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),U.call(o,e.message,t,n,s,i),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};const W=U;function z(e){return B.isPlainObject(e)||B.isArray(e)}function J(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const K=B.toFlatObject(B,{},null,(function(e){return/^is[A-Z]/.test(e)})),Q=function(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!B.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,r=n.dots,o=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(B.isDate(e))return e.toISOString();if(!a&&B.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(e)||B.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if(B.endsWith(n,"{}"))n=s?n:n.slice(0,-2),e=JSON.stringify(e);else if(B.isArray(e)&&function(e){return B.isArray(e)&&!e.some(z)}(e)||(B.isFileList(e)||B.endsWith(n,"[]"))&&(a=B.toArray(e)))return n=J(n),a.forEach((function(e,s){!B.isUndefined(e)&&null!==e&&t.append(!0===o?G([n],s,r):null===o?n:n+"[]",l(e))})),!1;return!!z(e)||(t.append(G(i,n,r),l(e)),!1)}const u=[],d=Object.assign(K,{defaultVisitor:c,convertValue:l,isVisitable:z});if(!B.isObject(e))throw new TypeError("data must be an object");return function e(n,s){if(!B.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+s.join("."));u.push(n),B.forEach(n,(function(n,r){!0===(!(B.isUndefined(n)||null===n)&&i.call(t,n,B.isString(r)?r.trim():r,s,d))&&e(n,s?s.concat(r):[r])})),u.pop()}}(e),t};function X(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Y(e,t){this._pairs=[],e&&Q(e,this,t)}const Z=Y.prototype;Z.append=function(e,t){this._pairs.push([e,t])},Z.toString=function(e){const t=e?function(t){return e.call(this,t,X)}:X;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ee=Y;function te(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ne(e,t,n){if(!t)return e;const s=n&&n.encode||te,i=n&&n.serialize;let r;if(r=i?i(t,n):B.isURLSearchParams(t)?t.toString():new ee(t,n).toString(s),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}const se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},oe=function(e){function t(e,n,s,i){let r=e[i++];const o=Number.isFinite(+r),a=i>=e.length;return r=!r&&B.isArray(s)?s.length:r,a?(B.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!o):(s[r]&&B.isObject(s[r])||(s[r]=[]),t(e,n,s[r],i)&&B.isArray(s[r])&&(s[r]=function(e){const t={},n=Object.keys(e);let s;const i=n.length;let r;for(s=0;s{t(function(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),s,n,0)})),n}return null},ae={transitional:ie,adapter:re.isNode?"http":"xhr",transformRequest:[function(e,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,i=B.isObject(e);if(i&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return s&&s?JSON.stringify(oe(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Q(e,new re.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,s){return re.isNode&&B.isBuffer(e)?(this.append(t,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=B.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Q(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||s?(t.setContentType("application/json",!1),function(e,t,n){if(B.isString(e))try{return(0,JSON.parse)(e),B.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ae.transitional,n=t&&t.forcedJSONParsing,s="json"===this.responseType;if(e&&B.isString(e)&&(n&&!this.responseType||s)){const n=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],(e=>{ae.headers[e]={}}));const le=ae,ce=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ue=Symbol("internals");function de(e){return e&&String(e).trim().toLowerCase()}function he(e){return!1===e||null==e?e:B.isArray(e)?e.map(he):String(e)}function pe(e,t,n,s,i){return B.isFunction(s)?s.call(this,t,n):(i&&(t=n),B.isString(t)?B.isString(s)?-1!==t.indexOf(s):B.isRegExp(s)?s.test(t):void 0:void 0)}class fe{constructor(e){e&&this.set(e)}set(e,t,n){const s=this;function i(e,t,n){const i=de(t);if(!i)throw new Error("header name must be a non-empty string");const r=B.findKey(s,i);(!r||void 0===s[r]||!0===n||void 0===n&&!1!==s[r])&&(s[r||t]=he(e))}const r=(e,t)=>B.forEach(e,((e,n)=>i(e,n,t)));return B.isPlainObject(e)||e instanceof this.constructor?r(e,t):B.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?r((e=>{const t={};let n,s,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),s=e.substring(i+1).trim(),!n||t[n]&&ce[n]||("set-cookie"===n?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=de(e)){const n=B.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}(e);if(B.isFunction(t))return t.call(this,e,n);if(B.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=de(e)){const n=B.findKey(this,e);return!(!n||void 0===this[n]||t&&!pe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let s=!1;function i(e){if(e=de(e)){const i=B.findKey(n,e);!i||t&&!pe(0,n[i],i,t)||(delete n[i],s=!0)}}return B.isArray(e)?e.forEach(i):i(e),s}clear(e){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];e&&!pe(0,this[i],i,e,!0)||(delete this[i],s=!0)}return s}normalize(e){const t=this,n={};return B.forEach(this,((s,i)=>{const r=B.findKey(n,i);if(r)return t[r]=he(s),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();o!==i&&delete t[i],t[o]=he(s),n[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return B.forEach(this,((n,s)=>{null!=n&&!1!==n&&(t[s]=e&&B.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ue]=this[ue]={accessors:{}}).accessors,n=this.prototype;function s(e){const s=de(e);t[s]||(function(e,t){const n=B.toCamelCase(" "+t);["get","set","has"].forEach((s=>{Object.defineProperty(e,s+n,{value:function(e,n,i){return this[s].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[s]=!0)}return B.isArray(e)?e.forEach(s):s(e),this}}fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(fe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),B.freezeMethods(fe);const me=fe;function ge(e,t){const n=this||le,s=t||n,i=me.from(s.headers);let r=s.data;return B.forEach(e,(function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)})),i.normalize(),r}function ve(e){return!(!e||!e.__CANCEL__)}function ye(e,t,n){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,n),this.name="CanceledError"}B.inherits(ye,W,{__CANCEL__:!0});const Ee=ye,be=re.isStandardBrowserEnv?{write:function(e,t,n,s,i,r){const o=[];o.push(e+"="+encodeURIComponent(t)),B.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),B.isString(s)&&o.push("path="+s),B.isString(i)&&o.push("domain="+i),!0===r&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function we(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Se=re.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function s(n){let s=n;return e&&(t.setAttribute("href",s),s=t.href),t.setAttribute("href",s),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=s(window.location.href),function(e){const t=B.isString(e)?s(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function _e(e,t){let n=0;const s=function(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i,r=0,o=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=s[o];i||(i=l),n[r]=a,s[r]=l;let u=o,d=0;for(;u!==r;)d+=n[u++],u%=e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),l-i{const r=i.loaded,o=i.lengthComputable?i.total:void 0,a=r-n,l=s(a);n=r;const c={loaded:r,total:o,progress:o?r/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&r<=o?(o-r)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Ae={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let s=e.data;const i=me.from(e.headers).normalize(),r=e.responseType;let o;function a(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}B.isFormData(s)&&(re.isStandardBrowserEnv||re.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const c=we(e.baseURL,e.url);function u(){if(!l)return;const s=me.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),a()}),(function(e){n(e),a()}),{data:r&&"text"!==r&&"json"!==r?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:s,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),ne(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(u)},l.onabort=function(){l&&(n(new W("Request aborted",W.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const s=e.transitional||ie;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new W(t,s.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,l)),l=null},re.isStandardBrowserEnv){const t=(e.withCredentials||Se(c))&&e.xsrfCookieName&&be.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===s&&i.setContentType(null),"setRequestHeader"in l&&B.forEach(i.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),B.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),r&&"json"!==r&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",_e(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",_e(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{l&&(n(!t||t.type?new Ee(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);d&&-1===re.protocols.indexOf(d)?n(new W("Unsupported protocol "+d+":",W.ERR_BAD_REQUEST,e)):l.send(s||null)}))}};B.forEach(Ae,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Oe=e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let i=0;ie instanceof me?e.toJSON():e;function qe(e,t){t=t||{};const n={};function s(e,t,n){return B.isPlainObject(e)&&B.isPlainObject(t)?B.merge.call({caseless:n},e,t):B.isPlainObject(t)?B.merge({},t):B.isArray(t)?t.slice():t}function i(e,t,n){return B.isUndefined(t)?B.isUndefined(e)?void 0:s(void 0,e,n):s(e,t,n)}function r(e,t){if(!B.isUndefined(t))return s(void 0,t)}function o(e,t){return B.isUndefined(t)?B.isUndefined(e)?void 0:s(void 0,e):s(void 0,t)}function a(n,i,r){return r in t?s(n,i):r in e?s(void 0,n):void 0}const l={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t)=>i(Ce(e),Ce(t),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),(function(s){const r=l[s]||i,o=r(e[s],t[s],s);B.isUndefined(o)&&r!==a||(n[s]=o)})),n}const xe={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{xe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ke={};xe.transitional=function(e,t,n){function s(e,t){return"[Axios v1.5.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new W(s(i," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!ke[i]&&(ke[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}};const Te={assertOptions:function(e,t,n){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const r=s[i],o=t[r];if(o){const t=e[r],n=void 0===t||o(t,r,e);if(!0!==n)throw new W("option "+r+" must be "+n,W.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new W("Unknown option "+r,W.ERR_BAD_OPTION)}},validators:xe},Re=Te.validators;class Ne{constructor(e){this.defaults=e,this.interceptors={request:new se,response:new se}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=qe(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;void 0!==n&&Te.assertOptions(n,{silentJSONParsing:Re.transitional(Re.boolean),forcedJSONParsing:Re.transitional(Re.boolean),clarifyTimeoutError:Re.transitional(Re.boolean)},!1),null!=s&&(B.isFunction(s)?t.paramsSerializer={serialize:s}:Te.assertOptions(s,{encode:Re.function,serialize:Re.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&B.merge(i.common,i[t.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=me.concat(r,i);const o=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[Le.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const s=new Promise((e=>{n.subscribe(e),t=e})).then(e);return s.cancel=function(){n.unsubscribe(t)},s},e((function(e,s,i){n.reason||(n.reason=new Ee(e,s,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Fe((function(t){e=t})),cancel:e}}}const De=Fe,Pe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pe).forEach((([e,t])=>{Pe[t]=e}));const Ie=Pe,Me=function e(t){const n=new je(t),s=a(je.prototype.request,n);return B.extend(s,je.prototype,n,{allOwnKeys:!0}),B.extend(s,n,null,{allOwnKeys:!0}),s.create=function(n){return e(qe(t,n))},s}(le);Me.Axios=je,Me.CanceledError=Ee,Me.CancelToken=De,Me.isCancel=ve,Me.VERSION="1.5.0",Me.toFormData=Q,Me.AxiosError=W,Me.Cancel=Me.CanceledError,Me.all=function(e){return Promise.all(e)},Me.spread=function(e){return function(t){return e.apply(null,t)}},Me.isAxiosError=function(e){return B.isObject(e)&&!0===e.isAxiosError},Me.mergeConfig=qe,Me.AxiosHeaders=me,Me.formToJSON=e=>oe(B.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=Oe,Me.HttpStatusCode=Ie,Me.default=Me;const Be=Me,Ue=(e,t=new FormData)=>(Object.keys(e).forEach((n=>{t.append(n,e[n])})),t);class He{constructor(e){this.element=e}static find(e){let t=document.querySelector(e);return null===t?null:new He(t)}static create(e){return new He(document.createElement(e))}getElement(){return this.element}addId(e){return this.element.id=e,this}toggleClass(e,t=null){return null===t?this.element.classList.contains(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClasses(e)}addClass(e){return this.element.classList.add(e),this}addClasses(...e){return e.forEach((e=>this.addClass(e))),this}removeClasses(...e){return e.forEach((e=>this.removeClass(e))),this}removeClass(e){return this.element.classList.remove(e),this}setAttribute(e,t){return this.element.setAttribute(e,t),this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}addHtml(e){return this.element.innerHTML=e,this}append(e){return this.element.appendChild(e),this}appendFound(e){return document.querySelectorAll(e).forEach((e=>this.append(e))),this}appendSelfTo(e){return e.append(this.element),this}prepend(e){return this.element.prepend(e),this}prependSelfTo(e){return e.prepend(this.element),this}css(e,t){return this.element.style[e]=t,this}insertAfter(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element.nextElementSibling)}catch(e){console.error("Not able to insert element after current node",this.element)}}insertSelfBefore(e){var t;try{null===(t=e.parentElement)||void 0===t||t.insertBefore(this.element,e)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}insertBefore(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}addEventListener(e,t){return this.element.addEventListener(e,t),this}addEventListeners(e,t){return e.forEach((e=>this.addEventListener(e,t))),this}$(){return this.getElement()}}const Ve=(e,t="div")=>He.create(t).addHtml(e).getElement(),We=(e,t=100,n=null,s="block")=>{e.style.display=s,e.style.transition=`opacity ${t}ms`,e.style.opacity="0",setTimeout((()=>{e.style.opacity="1"}),100),n&&e.addEventListener("transitionend",(()=>{n.call(void 0)}),{once:!0})},ze=(e,t=100,n=null,s="none")=>{e.style.transition=`opacity ${t}ms`,e.style.opacity="1",setTimeout((()=>{e.style.opacity="0"}),100),e.addEventListener("transitionend",(()=>{e.style.display=s,n&&n.call(void 0)}),{once:!0})},Je=(e="",t=!1)=>{let n=(Math.floor(Math.random()*Date.now())/1e3).toString(16).split(".").join("");for(;n.length<14;)n+="0";let s="";return t&&(s=".",s+=Math.round(1e8*Math.random())),e+n+s},Ge="closed",Ke="open",Qe="remove",Xe="clone";class Ye{constructor(e,t,n){this.events=new(o()),this.name=t,this.element=e,this.state=Ge,this.services=n,this.setPropertiesByElement(e),this.init()}setPropertiesByElement(e){return this.type=e.dataset.type,this.original="1"===e.dataset.original,this.disabled=e.classList.contains("disabled"),e.dataset.columnName=this.name,this}getName(){return this.name}getType(){return this.type}isOriginal(){return this.original}getElement(){return this.element}isDisabled(){return this.element.classList.contains("disabled")}disable(){return this.element.classList.add("disabled"),this}setLoading(e){return e?this.getElement().classList.add("loading"):this.getElement().classList.remove("loading"),this}enable(){return this.element.classList.remove("disabled"),this}init(){return this.services.emitEvent(t.INIT,this),this}destroy(){this.element.remove()}remove(e=150){this.events.emit(Qe,this),ze(this.getElement(),e,(()=>{this.destroy()}))}getState(){return this.state}toggle(e=150){this.getState()===Ke?this.close(e):this.open(e)}close(e=0){this.getElement().classList.remove("opened"),i()(this.getElement()).find(".ac-column-body").slideUp(e),this.state=Ge}open(e=0){this.getElement().classList.add("opened"),i()(this.getElement()).find(".ac-column-body").slideDown(e),this.state=Ke}isOpen(){return this.state===Ke}showMessage(e){let t=this.getElement().querySelector(".ac-column-setting--type .msg");t&&(t.innerHTML=e,t.style.display="block")}getJson(){let e=new FormData(this.getElement());e.set("name",this.getName());var t={};for(var n of e.entries()){let e=n[0],s=n[1];if(this.fieldSupportsMultipleValues(e)){let n=t.hasOwnProperty(e)?t[e]:[];n.push(s),t[e]=n}else t[e]=s}return t}switchToType(e){this.setLoading(!0),((e,t=AC.list_screen)=>{var n;return Be.post(ajaxurl,Ue({_ajax_nonce:AC._ajax_nonce,action:"ac-columns",current_original_columns:JSON.stringify(null===(n=AC_SERVICES.getService("Form"))||void 0===n?void 0:n.getOriginalColumns().map((e=>e.getName()))),id:"select",list_screen:t,type:e}))})(e).then((e=>{if(e.data.success){let t=Ve(e.data.data.trim()).firstChild;this.name=Je(),this.reinitColumnFromElement(t).open()}else this.showMessage(e.data.data.error)})).catch((()=>{this.showMessage(AC.i18n.errors.loading_column)})).finally((()=>this.setLoading(!1)))}refresh(){this.setLoading(!0),((e,t,n=AC.list_screen)=>Be.post(ajaxurl,Ue({_ajax_nonce:AC._ajax_nonce,action:"ac-columns",column_name:e,data:t,id:"refresh",list_screen:n})))(this.getName(),JSON.stringify(this.getJson())).then((e=>{e.data.success?(this.reinitColumnFromElement(Ve(e.data.data.trim()).firstChild),this.services.emitEvent(t.REFRESHED,this),this.isOpen()&&this.open()):this.showMessage(AC.i18n.errors.loading_column)})).finally((()=>this.setLoading(!1)))}fieldSupportsMultipleValues(e){let t=this.getElement().elements[e];return t&&"SELECT"===t.tagName&&t.hasAttribute("multiple")}reinitColumnFromElement(e){var t;return null===(t=this.getElement().parentNode)||void 0===t||t.replaceChild(e,this.getElement()),this.element=e,this.setPropertiesByElement(e).init(),this}}class Ze{constructor(t,n){this.form=t,this.services=n,this.columns=[],this.preferences=[],this.services.emitEvent(e.LOADED,this),this.init()}init(){this.initColumns(),this.isDisabled()&&(this.disableFields(),this.disableColumns()),this.services.emitEvent(e.READY,this)}getElement(){return this.form}getColumns(){return this.columns}getSortedColumns(){let e=[];return this.getElement().querySelectorAll("form.ac-column").forEach((t=>{let n=this.columns.find((e=>e.getName()===t.dataset.columnName));n&&e.push(n)})),e}placeColumn(e,t=null){var n;return t?((e,t)=>{var n;null===(n=null==t?void 0:t.parentNode)||void 0===n||n.insertBefore(e,t.nextSibling)})(e.getElement(),t):null===(n=this.getElement().querySelector(".ac-columns"))||void 0===n||n.append(e.getElement()),setTimeout((()=>{((e,t,n={})=>{var s;let i=Object.assign({},{offset:0},n);const r=e.offsetTop+(null!==(s=i.offset)&&void 0!==s?s:0),o=window.pageYOffset,a=r-o;let l;window.requestAnimationFrame((function e(n){l||(l=n);let s=n-l,i=Math.min(s/t,1);window.scrollTo(0,o+a*i),se.isOriginal()))}disableColumns(){this.columns.forEach((e=>e.disable()))}initColumns(){this.getElement().querySelectorAll(".ac-column").forEach((e=>{var t;let n=new Ye(e,null!==(t=e.dataset.columnName)&&void 0!==t?t:"",this.services);this.columns.push(n),this.bindColumnEvents(n)}))}bindColumnEvents(e){e.events.addListener(Qe,(()=>{this.removeColumn(e.getName())})),e.events.addListener(Xe,(()=>{let t=new Ye(e.getElement().cloneNode(!0),Je(),this.services);this.columns.push(t),this.placeColumn(t,e.getElement()).bindColumnEvents(t),e.isOpen()?t.open():t.close(),We(t.getElement(),300)}))}resetColumns(){this.columns.forEach((e=>{e.destroy()})),this.columns=[]}getFormData(){let e={},t=this.getElement().querySelector("input[name=title]");return this.getSortedColumns().forEach((t=>{e[t.getName()]=t.getJson()})),{title:t?t.value:"",list_screen:AC.list_screen,list_screen_id:AC.layout,columns:e,settings:this.getPreferences()}}disableFields(){this.getElement().querySelectorAll("input, select, button").forEach((e=>{e.setAttribute("readonly","readonly"),e.setAttribute("disabled","disabled")}))}submitForm(){var t;this.services.emitEvent(e.SAVING,this),(t=this.getFormData(),Be.post(ajaxurl,Ue({action:"ac-columns",id:"save",_ajax_nonce:AC._ajax_nonce,data:JSON.stringify(t)}))).then((e=>{if(e.data.success)this.showMessage(e.data.data.message,"updated"),AC.layout=e.data.data.list_id;else if(e.data){let t=e.data;this.showMessage(t.data.message,"notice notice-warning")}})).catch((()=>{this.showMessage(AC.i18n.errors.save_settings)})).finally((()=>{this.services.emitEvent(e.SAVED,this)}))}showMessage(e,t="updated"){let n=He.create("div").addClass("ac-message").addClasses(...t.split(" ")).addHtml(`

${e}

`).getElement(),s=document.querySelector(".ac-admin__main");s&&(s.querySelectorAll(".ac-message").forEach((e=>e.remove())),s.insertAdjacentElement("afterbegin",n)),We(n,600)}removeColumn(e){this.columns.forEach(((t,n)=>{e===t.getName()&&this.columns.splice(n,1)}))}registerPreference(e){this.preferences.push(e)}getPreferences(){let e={};return this.preferences.forEach((t=>{e=t.getPreferences(e)})),e}}const et=e=>{var t;let n=null===(t=document.querySelector("#add-new-column-template .ac-column"))||void 0===t?void 0:t.cloneNode(!0);const s=Je();return n.querySelectorAll("label[for]").forEach((e=>{let t=e.getAttribute("for");if(t){let i=n.querySelector(`#${t}`);if(i){const n=t+s;e.setAttribute("for",n),i.id=n}}})),new Ye(n,s,e)};class tt{constructor(){this.filters={}}addFilter(e,t,n=10){this.filters.hasOwnProperty(e)||(this.filters[e]={}),this.filters[e].hasOwnProperty(n)||(this.filters[e][n]=[]),this.filters[e][n].push(t)}applyFilters(e,t,n={}){return this.filters.hasOwnProperty(e)?(Object.keys(this.filters[e]).forEach((s=>{this.filters[e][parseInt(s)].forEach((e=>{t=e(t,n)}))})),t):t}}class nt{constructor(){this.services={},this.events=new(o()),this.filters=new tt,this.$=He}registerService(e,t){return this.services[e]=t,this.events.emit(`Service.Registered.${e}`,t),this}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}addListener(e,t){this.events.addListener(e,t)}emitEvent(e,t){this.events.emit(e,t)}}const st=()=>(window.AC_SERVICES||(window.AC_SERVICES=new nt),window.AC_SERVICES),it=(e,t)=>{let n=e?"on":"off";t.forEach((e=>{e.value===n&&(e.checked=!0,e.dispatchEvent(new Event("change")),e.dispatchEvent(new Event("click")))}))},rt=(e,t)=>{var n;let s=null===(n=e.closest(".col-label"))||void 0===n?void 0:n.querySelector("div.tooltip");s&&(s.style.display=t)};class ot{constructor(e){var t;this.el=e,this.dialog=null!==(t=e.querySelector(".ac-modal__dialogs"))&&void 0!==t?t:document.createElement("div"),this.initEvents()}getElement(){return this.el}initEvents(){document.addEventListener("keydown",(e=>{const t=e.key;this.isOpen()&&"Escape"===t&&this.close()}));let e=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');e.length>0&&e.forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.close()}))})),this.el.addEventListener("click",(e=>{e.target.classList.contains("ac-modal")&&self.close()}))}isOpen(){return this.el.classList.contains("-active")}close(){this.onClose(),this.el.classList.remove("-active")}open(){setTimeout((()=>{this.onOpen(),this.el.removeAttribute("style"),this.el.classList.add("-active")}))}destroy(){this.el.remove()}onClose(){}onOpen(){}}class at{constructor(e,t){this.column=e,this.setting=t,this.column=e,this.setting=t,this.field=this.setting.querySelector(".ac-setting-input_label");let n=e.getElement().querySelector(".-iconpicker");n&&(this.modal=new lt(n),this.modal.setIconSelection(this.getDashIconFromValue()),this.initEvents())}initEvents(){this.column.getElement().querySelectorAll(".ac-setting-label-icon").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modal.open()}))})),this.modal.onSubmit((()=>{this.setLabel(this.modal.getDashIconMarkup()),this.modal.close()}))}getDashIconFromValue(){let e=document.createRange().createContextualFragment(this.getValue()).querySelector(".dashicons"),t="";return e?(e.classList.forEach((e=>{0===e.indexOf("dashicons-")&&(t=e.replace("dashicons-",""))})),t):t}getValue(){var e,t;return null!==(t=null===(e=this.field)||void 0===e?void 0:e.value)&&void 0!==t?t:""}setLabel(e){this.field&&(this.field.value=e,this.field.dispatchEvent(new Event("change")))}}class lt extends ot{constructor(e){super(e),this.events=new(o()),this.dashIcon="",this.search=new ct(this)}initEvents(){super.initEvents(),this.getElement().querySelectorAll('[data-action="submit"]').forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.events.emit("submit")}))})),this.getElement().querySelectorAll("input[type=search]").forEach((e=>{["keyup","search"].forEach((t=>{e.addEventListener(t,(t=>{t.preventDefault(),this.search.searchFor(e.value)}))}))})),this.getIconElements().forEach((e=>{e.addEventListener("click",(t=>{var n;t.preventDefault(),this.setIconSelection(null!==(n=e.dataset.dashicon)&&void 0!==n?n:""),this.getIconElements().forEach((e=>e.classList.remove("active"))),e.classList.add("active")}))}))}getIconElements(){return this.getElement().querySelectorAll(".ac-ipicker__icon")}onSubmit(e){this.events.on("submit",e)}getDashIconMarkup(){return``}setIconSelection(e){let t=this.getElement().querySelector(".ac-ipicker__selection");this.dashIcon=e,t&&(t.innerHTML=this.getDashIconMarkup(),t.style.visibility="visible")}}class ct{constructor(e){this.modal=e}searchFor(e){this.modal.getElement().querySelectorAll("[data-dashicon]").forEach((t=>{var n;-1!==(null===(n=t.dataset.dashicon)||void 0===n?void 0:n.indexOf(e.toLowerCase()))?t.style.display="inline-block":t.style.display="none"})),this.determineVisibilityGroups()}determineVisibilityGroups(){this.modal.getElement().querySelectorAll(".ac-ipicker__group").forEach((e=>{let t=e.querySelectorAll("[data-dashicon]"),n=Array.from(t).filter((e=>null===e.offsetParent)),s=e.querySelector("h3");s&&(s.style.display=t.length==n.length?"none":"block")}))}}class ut{constructor(e,t){this.column=e,this.setting=t,this.field=this.setting.querySelector(".ac-setting-input select"),this.initState(),this.bindEvents()}getValue(){var e;return null===(e=this.field)||void 0===e?void 0:e.value}bindEvents(){var e;null===(e=this.field)||void 0===e||e.addEventListener("change",(()=>this.initState()))}initState(){this.toggleSubSettings("cpac-custom"===this.getValue())}toggleSubSettings(e=!0){this.setting.querySelectorAll(".ac-column-setting").forEach((t=>t.style.display=e?"table":"none"))}}class dt{constructor(e,t){this.column=e,this.setting=t,this.bindEvents()}bindEvents(){this.refreshPreview(),this.setting.querySelectorAll("input").forEach((e=>{e.addEventListener("change",(()=>this.refreshPreview()))}))}refreshPreview(){this.getExampleRequest().then((e=>{this.setting.querySelectorAll("[data-preview]").forEach((t=>t.textContent=e.data.data))}))}getValue(){let e=this.setting.querySelector(".ac-setting-input_number_decimals"),t=this.setting.querySelector(".ac-setting-input_number_decimal_point"),n=this.setting.querySelector(".ac-setting-input_number_thousands_separator");return{decimals:e?e.value:"",decimal_point:t?t.value:"",thousands_point:n?n.value:""}}getExampleRequest(){const e=this.getValue();let t=new FormData;return t.set("action","ac_number_format"),t.set("number","7500"),t.set("decimals",e.decimals),t.set("decimal_point",e.decimal_point),t.set("thousands_sep",e.thousands_point),Be.post(ajaxurl,t,{})}}function ht(e,t){if(""===jQuery.trim(e.term))return t;if(void 0===t.children)return null;var n=[];if(jQuery.each(t.children,(function(t,s){s.text.toUpperCase().indexOf(e.term.toUpperCase())>-1&&n.push(s)})),n.length){var s=jQuery.extend({},t,!0);return s.children=n,s}return null}class pt{constructor(e,t){this.column=e,this.setting=t,this.bindEvents()}bindEvents(){const e=this.setting.querySelector(".ac-setting-input_type"),t=this.setting,n=this.column;e&&(e.removeAttribute("id"),e.removeAttribute("data-select2-id"),this.setting.querySelectorAll(".select2").forEach((e=>{e.remove()})),i()(e).ac_select2({theme:"acs2",width:"100%",dropdownCssClass:"-type-selector",escapeMarkup:function(e){return e},templateResult:function(e){let s=e.text;return e.hasOwnProperty("id")&&e.id.includes("placeholder-")&&(s+='PRO'),st().filters.applyFilters("column_type_templates",s,{setting:t,column:n,result:e})},matcher:ht}))}}class ft{constructor(e,t){this.column=e,this.setting=t,this.events=new(o()),this.indicator=new mt(e.getElement().querySelector(".ac-column-heading-setting--width")),this.widthInput=this.setting.querySelector("[data-width-input]"),this.unitInput=this.setting.querySelectorAll("[data-unit-input] input"),this.init()}getWidth(){var e,t;return+(null!==(t=null===(e=this.widthInput)||void 0===e?void 0:e.value)&&void 0!==t?t:0)}setWidth(e){this.widthInput&&(this.widthInput.value=e?e.toString():""),this.updateIndicator()}updateUnit(){this.setting.querySelector(".description .unit").innerHTML=this.getUnit()}getUnit(){var e,t;return null!==(t=null===(e=this.setting.querySelector("[data-unit-input] input:checked"))||void 0===e?void 0:e.value)&&void 0!==t?t:"0"}getValue(){return{width:this.getWidth(),unit:this.getUnit()}}validate(){let e=this.getWidth();(0===e||e<0)&&this.setWidth(""),"%"===this.getUnit()&&e>100&&this.setWidth(100)}init(){var e;null===(e=this.widthInput)||void 0===e||e.addEventListener("keyup",(()=>{this.updateIndicator(),this.initSlider(),this.validate()})),this.unitInput.forEach((e=>{e.addEventListener("change",(()=>{this.initSlider(),this.updateIndicator(),this.updateUnit(),this.validate()}))})),this.initSlider()}updateIndicator(){this.indicator.setValue(this.getWidth(),this.getUnit())}initSlider(){this.column.getElement().querySelectorAll(".width-slider").forEach((e=>{i()(e).slider({range:"min",min:0,max:"%"===this.getUnit()?100:500,value:this.getWidth(),slide:(e,t)=>{this.setWidth(t.value)}})}))}}class mt{constructor(e){this.element=e,this.events=new(o())}setValue(e,t){if(null===e||0===e)return this.element.innerText="";this.element.innerText=`${e.toString()}${t}`}}class gt{constructor(e,t){this.column=e,this.setting=t,this.options=this.setting.querySelectorAll(".radio-labels input[type=radio]"),this.valueInput=this.setting.querySelector("[data-value-input]");let n=this.setting.querySelector(".radio-labels code");this.defaultFormat=n?n.textContent:"Y-m-d";let s=[...this.options].filter((e=>void 0!==e.dataset.custom));this.customOption=new vt(s[0],this.setting.querySelector("[data-custom-date]"),this.setting.querySelector(".ac-setting-input-date__example"),this.valueInput),this.initEvents()}getOptionsAsArray(){return Array.from(this.options)}getSelectionOption(){let e=this.getOptionsAsArray().filter((e=>e.checked));return e?e[0]:null}initEvents(){this.options.forEach((e=>{e.addEventListener("change",(()=>this.handleUpdate(e)))})),this.setSelected(),this.customOption.updateExample()}setSelected(){let e=this.getOptionsAsArray().find((e=>e.value===this.getCurrentValue()));e&&(e.checked=!0,e.dispatchEvent(new Event("change")))}getCustomFormats(){var e,t;return JSON.parse(null!==(t=null===(e=this.setting.querySelector("[data-custom-formats]"))||void 0===e?void 0:e.dataset.customFormats)&&void 0!==t?t:"")}handleUpdate(e){var t,n,s;this.valueInput.value=e.value,this.customOption.toggle(void 0!==e.dataset.custom);let i=null!==(s=null===(n=null===(t=e.closest("label"))||void 0===t?void 0:t.querySelector("[data-help]"))||void 0===n?void 0:n.innerHTML)&&void 0!==s?s:"";this.setHelpText(i),void 0===e.dataset.custom&&("custom"===this.valueInput.value||this.customOption.setExample(this.valueInput.value),this.getCustomFormats().includes(this.valueInput.value)&&this.customOption.setExample(""),this.customOption.updateExample())}getCurrentValue(){return this.valueInput.value}setHelpText(e){let t=this.setting.querySelector(".help-msg");t&&(t.innerHTML=e,t.style.display="block")}}class vt{constructor(e,t,n,s){this.radio=e,this.input=t,this.example=n,this.valueElement=s,this.timeout=null,this.input.addEventListener("change",(()=>{this.updateExample(),e.checked&&(this.valueElement.value=this.input.value)})),this.input.addEventListener("keyup",(()=>{e.checked&&(this.valueElement.value=this.input.value),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.updateExample()),500)}))}setExample(e){this.input.value=e}updateExample(){this.getExample().then((e=>{this.example.innerHTML=e.data}))}toggle(e=!0){e?this.input.removeAttribute("disabled"):this.input.setAttribute("disabled","disabled")}getExample(){let e=new FormData;return e.set("action","date_format"),e.set("date",this.input.value),Be.post(ajaxurl,e,{})}}class yt{constructor(e,t){this.column=e,this.setting=t,this.select=t.querySelector(".custom_field"),this.bindEvents()}bindEvents(){var e,t;const n=bt(null!==(e=this.select.dataset.type)&&void 0!==e?e:"",null!==(t=this.select.dataset.post_type)&&void 0!==t?t:""),s=this.column.getElement().querySelectorAll('[data-setting="edit"][data-indicator-toggle]').length>0;this.select.querySelectorAll("optgroup").forEach((e=>{e.remove()})),this.select.removeAttribute("data-select2-id"),this.setting.querySelectorAll(".select2").forEach((e=>{e.remove()})),n.getOptions().then((e=>{i()(this.select).ac_select2({theme:"acs2",width:"100%",tags:s,dropdownCssClass:"-customfields",data:e})}))}}class Et{constructor(e,t){this.metaType=e,this.postType=t,this.loading=!1,this.data=null,this.events=new(o())}retrieveOptions(){this.loading=!0;let e=new FormData;return e.set("action","ac_custom_field_options"),e.set("post_type",this.postType),e.set("meta_type",this.metaType),e.set("_ajax_nonce",AC._ajax_nonce),Be.post(ajaxurl,e)}getOptions(){return new Promise(((e,t)=>{this.data?e(this.data):this.loading?this.events.on("loaded",(()=>{e(this.data)})):this.retrieveOptions().then((n=>{n.data.success||t(),this.data=n.data.data.results,this.events.emit("loaded"),e(this.data)}))}))}}const bt=(e,t)=>{const n=`custom_field_${e}_${t}`;return void 0===window.AC_Requests&&(window.AC_Requests={}),window.AC_Requests.hasOwnProperty(n)||(window.AC_Requests[n]=new Et(e,t)),window.AC_Requests[n]};class wt{constructor(e){var t;this.element=e,this.input=e.querySelector('.ac-setting-input input[type="checkbox"]'),this.subFields=e.querySelectorAll(".ac-column-setting"),this.initState(),null===(t=this.input)||void 0===t||t.addEventListener("input",(()=>this.initState()))}initState(){this.isOptionEnabled()?this.subFields.forEach((e=>e.style.display="table")):this.subFields.forEach((e=>e.style.display="none"))}isOptionEnabled(){var e,t;return null!==(t=null===(e=this.input)||void 0===e?void 0:e.checked)&&void 0!==t&&t}}class St{constructor(e,t){this.column=e,this.select=t,this.bindEvents()}getSelectedOptions(){const e=this.select.querySelectorAll("option:checked");return Array.from(e).map((e=>e.value))}bindEvents(){var e,t;this.select.removeAttribute("data-select2-id"),null===(e=this.select.parentElement)||void 0===e||e.querySelectorAll(".select2").forEach((e=>{e.remove()}));let n=He.create("input").setAttributes({name:null!==(t=this.select.getAttribute("name"))&&void 0!==t?t:"",type:"hidden"});0===this.getSelectedOptions().length&&n.insertSelfBefore(this.select),i()(this.select).ac_select2({theme:"acs2",width:"100%",closeOnSelect:!1,escapeMarkup:function(e){return e}}).on("select2:selecting",(()=>{n.getElement().remove()})).on("select2:unselect",(()=>{0===this.getSelectedOptions().length&&n.insertSelfBefore(this.select)}))}}new Set;const _t="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class At{_listeners="WeakMap"in _t?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver((e=>{for(const t of e)At.entries.set(t.target,t),this._listeners.get(t.target)?.(t)})))}}At.entries="WeakMap"in _t?new WeakMap:void 0;let Ot,$t=!1;function Lt(e,t){e.appendChild(t)}function Ct(e,t,n){e.insertBefore(t,n||null)}function qt(e){e.parentNode&&e.parentNode.removeChild(e)}function xt(e){return document.createElement(e)}function kt(){return e=" ",document.createTextNode(e);var e}function Tt(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function Rt(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Nt(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function jt(e,t){e.value=null==t?"":t}function Ft(){}function Dt(e){return e()}function Pt(){return Object.create(null)}function It(e){e.forEach(Dt)}function Mt(e){return"function"==typeof e}function Bt(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Ut(e){Ot=e}new Map;const Ht=[],Vt=[];let Wt=[];const zt=[],Jt=Promise.resolve();let Gt=!1;function Kt(e){Wt.push(e)}const Qt=new Set;let Xt=0;function Yt(){if(0!==Xt)return;const e=Ot;do{try{for(;Xt{const r=s.length?s[0]:n;return c.ctx&&i(c.ctx[t],c.ctx[t]=r)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](r),u&&function(e,t){-1===e.$$.dirty[0]&&(Ht.push(e),Gt||(Gt=!0,Jt.then(Yt)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const t=e.$$.on_mount.map(Dt).filter(Mt);e.$$.on_destroy?e.$$.on_destroy.push(...t):It(t),e.$$.on_mount=[]})),i.forEach(Kt)}(e,t.target,t.anchor),$t=!1,Yt()}var d;Ut(l)}function an(e,t,n,s){const i=n[e]?.type;if(t="Boolean"===i&&"boolean"!=typeof t?null!=t:t,!s||!n[e])return t;if("toAttribute"===s)switch(i){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(rn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function e(e){return()=>{let t;return{c:function(){t=xt("slot"),"default"!==e&&Nt(t,"name",e)},m:function(e,n){Ct(e,t,n)},d:function(e){e&&qt(t)}}}}const t={},n=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const i of this.$$s)i in n&&(t[i]=[e(i)]);for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=an(o,r.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const t=an(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const a in this.$$l)for(const l of this.$$l[a]){const c=this.$$c.$on(a,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=an(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class ln{$$=void 0;$$set=void 0;$destroy(){(function(e,t){const n=e.$$;null!==n.fragment&&(function(e){const t=[],n=[];Wt.forEach((s=>-1===e.indexOf(s)?t.push(s):n.push(s))),n.forEach((e=>e())),Wt=t}(n.after_update),It(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])})(this,1),this.$destroy=Ft}$on(e,t){if(!Mt(t))return Ft;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function cn(e){!function(e,t,n){const s=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!s.getElementById(t)){const e=xt("style");e.id=t,e.textContent=".ac-setting-selectoptions.svelte-14rmlqa.svelte-14rmlqa{position:relative}.ac-setting-selectoptions-row.svelte-14rmlqa.svelte-14rmlqa{display:flex;gap:8px;margin-bottom:8px;width:100%;background:#fff}.ac-setting-selectoptions-row__input.svelte-14rmlqa.svelte-14rmlqa{flex-grow:1}.ac-setting-selectoptions-row__actions.svelte-14rmlqa button.svelte-14rmlqa{background:none;border:none;padding:0;cursor:pointer;color:#B4B4B4}.ac-setting-selectoptions-row__actions.svelte-14rmlqa button.ac-setting-selectoptions-row__remove.svelte-14rmlqa:hover{color:var(--ac-notification-red)}.ac-setting-selectoptions-row__actions.svelte-14rmlqa button.ac-setting-selectoptions-row__add.svelte-14rmlqa:hover{color:#2271b1}.ac-setting-selectoptions-row__drag.svelte-14rmlqa.svelte-14rmlqa{display:flex;align-items:center}.ac-setting-selectoptions-row__drag.svelte-14rmlqa .-drag.svelte-14rmlqa{padding:3px 3px;cursor:move}",function(e,t){Lt(e.head||e,t),t.sheet}(s,e)}}(e,"svelte-14rmlqa")}function un(e,t,n){const s=e.slice();return s[16]=t[n],s[17]=t,s[18]=n,s}function dn(e,t){let n,s,i,r,o,a,l,c,u,d,h,p,f,m,g,v,y,E,b;function w(){t[7].call(o,t[17],t[18])}function S(){t[8].call(u,t[17],t[18])}function _(){return t[9](t[16])}function A(){return t[10](t[16])}return{key:e,first:null,c(){n=xt("div"),s=xt("div"),s.innerHTML='',i=kt(),r=xt("div"),o=xt("input"),l=kt(),c=xt("div"),u=xt("input"),h=kt(),p=xt("div"),f=xt("button"),f.innerHTML='',m=kt(),g=xt("button"),g.innerHTML='',v=kt(),Nt(s,"class","ac-setting-selectoptions-row__drag svelte-14rmlqa"),Nt(o,"type","text"),Nt(o,"placeholder",a=t[2].value),Nt(r,"class","ac-setting-selectoptions-row__input svelte-14rmlqa"),Nt(u,"type","text"),Nt(u,"placeholder",d=t[2].label),Nt(c,"class","ac-setting-selectoptions-row__input svelte-14rmlqa"),Nt(f,"class","ac-setting-selectoptions-row__remove svelte-14rmlqa"),Nt(g,"class","ac-setting-selectoptions-row__add svelte-14rmlqa"),Nt(p,"class","ac-setting-selectoptions-row__actions svelte-14rmlqa"),Nt(n,"class","ac-setting-selectoptions-row svelte-14rmlqa"),Nt(n,"data-id",y=t[16].id),this.first=n},m(e,a){Ct(e,n,a),Lt(n,s),Lt(n,i),Lt(n,r),Lt(r,o),jt(o,t[16].value),Lt(n,l),Lt(n,c),Lt(c,u),jt(u,t[16].label),Lt(n,h),Lt(n,p),Lt(p,f),Lt(p,m),Lt(p,g),Lt(n,v),E||(b=[Tt(o,"input",w),Tt(u,"input",S),Tt(f,"click",Rt(_)),Tt(g,"click",Rt(A))],E=!0)},p(e,s){t=e,1&s&&o.value!==t[16].value&&jt(o,t[16].value),1&s&&u.value!==t[16].label&&jt(u,t[16].label),1&s&&y!==(y=t[16].id)&&Nt(n,"data-id",y)},d(e){e&&qt(n),E=!1,It(b)}}}function hn(e){let t,n=[],s=new Map,i=nn(e[0]);const r=e=>e[16].id;for(let t=0;ta.p(e,t))):(a=c(s,e),a.c()),v.set(s,g[f]=a),s in m&&y.set(s,Math.abs(f-m[s]))}const b=new Set,w=new Set;function S(e){tn(e,1),e.m(a,u),o.set(e.key,e),u=e.first,p--}for(;h&&p;){const t=g[p-1],n=e[h-1],s=t.key,i=n.key;t===n?(u=t.first,h--,p--):v.has(i)?!o.has(s)||b.has(s)?S(t):w.has(i)?h--:y.get(s)>y.get(i)?(w.add(s),S(t)):(b.add(i),h--):(l(n,o),h--)}for(;h--;){const t=e[h];v.has(t.key)||l(t,o)}for(;p;)S(g[p-1]);return It(E),g}(n,o,r,0,e,i,s,t,sn,dn,null,un))},i:Ft,o:Ft,d(s){s&&qt(t);for(let e=0;e({value:"",label:"",id:Je()}),c=e=>{n(0,a=a.filter((t=>t.id!==e))),a.length||a.push(l())},u=e=>{const t=a.findIndex((t=>t.id===e))+1;a.splice(t,0,l()),n(0,a)};var d;return d=()=>{n(0,a=i.map((e=>Object.assign(e,{id:Je()})))),a.length||a.push(l()),jQuery(o).sortable({axis:"y",handle:".-drag",stop:()=>{let e=[],t=[];o.childNodes.forEach((t=>e.push(t.dataset.id))),e.forEach((e=>{t.push(a.find((t=>t.id===e)))})),n(0,a=t)}})},function(){if(!Ot)throw new Error("Function called outside component initialization");return Ot}().$$.on_mount.push(d),e.$$set=e=>{"input"in e&&n(5,s=e.input),"options"in e&&n(6,i=e.options)},e.$$.update=()=>{1&e.$$.dirty&&a&&n(5,s.value=JSON.stringify(a.map((e=>({value:e.value,label:e.label})))),s)},[a,o,r,c,u,s,i,function(e,t){e[t].value=this.value,n(0,a)},function(e,t){e[t].label=this.value,n(0,a)},e=>c(e.id),e=>u(e.id),function(e){Vt[e?"unshift":"push"]((()=>{o=e,n(1,o)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const fn=class extends ln{constructor(e){super(),on(this,e,pn,hn,Bt,{input:5,options:6},cn)}};class mn{constructor(e,t,n){this.column=e,this.setting=t,this.input=n,this.column=e,this.setting=t,n.type="hidden";const s=t.querySelector('[data-component="ac-select-options"]');this.component=s?new fn({target:s,props:{options:this.input.value?JSON.parse(this.input.value):[],input:this.input}}):null}}const gn=class{constructor(e){this.element=e,this.init()}init(){var e,t;null===(e=this.element.querySelector("a.no"))||void 0===e||e.addEventListener("click",(e=>{e.preventDefault(),ze(this.element.querySelector("#feedback-choice"),300,(()=>{We(this.element.querySelector("#feedback-support"),300)}))})),null===(t=this.element.querySelector("a.yes"))||void 0===t||t.addEventListener("click",(e=>{e.preventDefault(),ze(this.element.querySelector("#feedback-choice"),300,(()=>{We(this.element.querySelector("#feedback-rate"),300)}))}))}},vn=(e,t,n="")=>{if(!t||"object"!=typeof t||t instanceof Date||t instanceof File){const s=null==t?"":t;e.append(n,s)}else Object.keys(t).forEach((s=>{vn(e,t[s],n?`${n}[${s}]`:s)}))};class yn{constructor(e,t,n,s){this.name=e,this.input=t,this.toggleClass=n,this.container=s,this.initEvents()}initEvents(){this.input.addEventListener("change",(()=>{this.input.checked?this.container.classList.add(this.toggleClass):this.container.classList.remove(this.toggleClass),this.persist()}))}persist(){Be.post(ajaxurl,((e,t=null)=>{let n=null!=t?t:new FormData;return Object.keys(e).forEach((t=>{vn(n,e[t],t)})),n})({action:"ac_admin_screen_options",_ajax_nonce:AC._ajax_nonce,option_name:this.name,option_value:this.input.checked?1:0}))}}const En=()=>{document.querySelectorAll(".ac-tooltip").forEach((e=>e.remove())),document.querySelectorAll("[data-ac-tip]").forEach((e=>{new bn(e)}))};class bn{constructor(e,t=""){this.element=e,this.content=t||e.dataset.acTip,this.tip=wn(this.content),this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();document.body.appendChild(this.tip),this.tip.style.left=t.left-e.left+this.element.offsetWidth/2+"px",this.tip.style.top=t.top-e.top+this.element.offsetHeight+"px",this.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(()=>{this.tip.classList.remove("hover"),document.body.contains(this.tip)&&document.body.removeChild(this.tip)})),this.element.removeAttribute("title"))}}const wn=e=>{let t=document.createElement("div");return t.classList.add("ac-tooltip"),t.innerHTML=e,t},Sn=class{constructor(){this.init()}init(){En()}};function _n(e){let t,n,s,i,r,o,a;return{c(){t=xt("div"),n=xt("div"),s=kt(),i=xt("div"),Nt(n,"class","ac-pointer-modal__arrow"),Nt(n,"data-pos",e[1]),Nt(i,"class","ac-pointer-modal__content"),Nt(t,"class",r="ac-pointer-modal -"+e[1]),Nt(t,"role","none")},m(r,l){Ct(r,t,l),Lt(t,n),Lt(t,s),Lt(t,i),i.innerHTML=e[0],o||(a=[Tt(t,"mouseenter",e[6]),Tt(t,"mouseleave",e[7])],o=!0)},p(e,[s]){2&s&&Nt(n,"data-pos",e[1]),1&s&&(i.innerHTML=e[0]),2&s&&r!==(r="ac-pointer-modal -"+e[1])&&Nt(t,"class",r)},i:Ft,o:Ft,d(e){e&&qt(t),o=!1,It(a)}}}function An(e,t,n){let{content:s=""}=t,{position:i=""}=t,r=!1,{closeHandler:o}=t;const a=()=>{n(2,r=!1),o()};return e.$$set=e=>{"content"in e&&n(0,s=e.content),"position"in e&&n(1,i=e.position),"closeHandler"in e&&n(4,o=e.closeHandler)},[s,i,r,a,o,()=>r,()=>n(2,r=!0),()=>a()]}const On=class extends ln{constructor(e){super(),on(this,e,An,_n,Bt,{content:0,position:1,closeHandler:4,isOnElement:5})}get isOnElement(){return this.$$.ctx[5]}};class $n{constructor(e,t){var n,s;this.element=e,this.target=t,this.width=null!==(n=e.dataset.width)&&void 0!==n?n:null,this.position=null!==(s=e.dataset.pos)&&void 0!==s?s:"right",this.noClick=void 0!==e.dataset.noclick,this.waitingForClose=!1,this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.container=Ln(),this.width&&(this.container.style.width=`${this.width}px`),this.attachModel(),this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{this.onScreen||(this.onScreen=!0,document.body.appendChild(this.container),this.container.style.width=`${this.width}px`,this.setPosition(),setTimeout((()=>{this.setPosition()}),100))})),this.element.addEventListener("mouseleave",(()=>{this.checkClose()})),this.element.addEventListener("click",(()=>{this.noClick||(this.waitingForClose=!0)})))}setPosition(){const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();switch(this.container.style.top=t.top-e.top+this.element.offsetHeight-this.container.offsetHeight/2+20+"px",this.position){case"right_bottom":this.container.style.top=t.top-e.top-this.container.offsetHeight+100+"px",this.container.style.left=t.left-e.left+this.element.offsetWidth+14+"px";break;case"left":this.container.style.left=t.left-e.left-this.container.offsetWidth-12+"px";break;default:this.container.style.left=t.left-e.left+this.element.offsetWidth+10+"px"}}checkClose(){setTimeout((()=>{this.waitingForClose||this.closeHandler()}),50)}closeHandler(){this.onScreen&&(document.body.removeChild(this.container),this.onScreen=!1,this.waitingForClose=!1)}destroyComponent(){null!==this.component&&this.component.$destroy()}attachModel(){this.component=new On({target:this.container,props:{content:this.target.innerHTML,position:this.position,closeHandler:()=>this.closeHandler(),destroyHandler:()=>this.destroyComponent()}})}}const Ln=()=>{const e=document.createElement("div");return e.classList.add("ac-pointer-modal-container"),e.style.position="absolute",e};class Cn{constructor(e){this.listScreens=e,this.processed=[],this.errors=[],this.success=[],this.events=new(o()),this.run()}doAjaxCall(e){return Be.get(e.screen_link)}run(){Object.values(this.listScreens).forEach((e=>this.processListScreen(e)))}onFinish(){this.success.length===Object.keys(this.listScreens).length&&this.events.emit("success"),this.errors.length>0&&this.events.emit("error")}checkFinish(){this.processed.length===Object.keys(this.listScreens).length&&this.onFinish()}processListScreen(e){this.doAjaxCall(e).then((t=>{"ac_success"===t.data?this.success.push(e):this.errors.push(e)})).catch((()=>{this.errors.push(e)})).finally((()=>{this.processed.push(e),this.checkFinish()}))}}let qn=st();qn.registerService("Modals",new class{constructor(){this.modals={},this.number=0,this.defaults={modal:ot},this.initGlobalEvents()}register(e,t=""){return t||(t="m"+this.number),this.modals[t]=e,this.number++,e}get(e){return this.modals.hasOwnProperty(e)?this.modals[e]:null}open(e){var t;null===(t=this.get(e))||void 0===t||t.open()}close(e){var t;null===(t=this.get(e))||void 0===t||t.close()}closeAll(){for(let e in this.modals)this.close(e)}initGlobalEvents(){document.addEventListener("click",(e=>{let t=e.target;t.dataset.acModal&&(e.preventDefault(),this.open(t.dataset.acModal))}))}}),new class{constructor(e){e.addListener(t.INIT,(e=>{(e=>{e.getElement().querySelectorAll('[data-toggle="column"]').forEach((t=>{t.addEventListener("click",(t=>e.toggle())),t.style.cursor="pointer"}))})(e),(e=>{e.isDisabled()||e.getElement().querySelectorAll("[data-indicator-toggle]").forEach((t=>{var n;let s=null!==(n=t.dataset.setting)&&void 0!==n?n:"";e.getElement().querySelectorAll(`.ac-column-setting[data-setting='${t.dataset.setting}'] .col-input .ac-setting-input:first-child input[type=radio]`).length&&((e,t,n)=>{let s=e.getElement().querySelectorAll(`.ac-column-setting[data-setting='${n}'] .col-input .ac-setting-input:first-child input[type=radio]`);t.addEventListener("click",(()=>{it(!t.classList.contains("on"),s)})),s.forEach((e=>{e.addEventListener("change",(()=>{"off"===e.value?t.classList.remove("on"):t.classList.add("on")}))}))})(e,t,s);let i=e.getElement().querySelector(`.ac-column-setting[data-setting='${t.dataset.setting}'] .col-input .ac-setting-input:first-child .ac-toggle-v2`);i&&((e,t,n,s)=>{var i;let r=null!==(i=s.querySelector("input[type=checkbox]"))&&void 0!==i?i:document.createElement("input");t.addEventListener("click",(()=>{r.checked=!r.checked,r.dispatchEvent(new Event("input"))})),r.addEventListener("input",(()=>r.checked?t.classList.add("on"):t.classList.remove("on")))})(0,t,0,i)}))})(e),(e=>{e.getElement().querySelectorAll("select.ac-setting-input_type").forEach((t=>{i()(t).on("change",(()=>e.switchToType(t.value)))}))})(e),(e=>{e.getElement().querySelectorAll("[data-remove-column]").forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault(),e.remove()}))}))})(e),(e=>{e.getElement().querySelectorAll(".clone-button").forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault(),e.isOriginal()||e.events.emit(Xe)}))}))})(e),(e=>{let t=e.getElement().querySelector(".ac-column-setting--label input[type=text]");var n,s;t&&(n=t,s=()=>((e,t)=>{t.getElement().querySelectorAll("[data-column-label]").forEach((t=>t.innerHTML=e.value))})(t,e),["change","keyup"].forEach((e=>n.addEventListener(e,s))))})(e),(e=>{e.getElement().querySelectorAll(".col-label .label").forEach((e=>{var t,n,s;n=()=>rt(e,"block"),s=()=>rt(e,"none"),(t=e).addEventListener("mouseenter",n),t.addEventListener("mouseleave",s)}))})(e),(e=>{e.getElement().querySelectorAll('select[data-label="update"]').forEach((t=>{t.addEventListener("change",(()=>{let n=e.getElement().querySelector("input.ac-setting-input_label"),s=t.selectedOptions.length>0?t.selectedOptions[0]:null,i=null!==n&&n.value!==n.getAttribute("placeholder");n&&s&&!i&&(n.value=s.innerHTML,n.dispatchEvent(new Event("change")))}))})),setTimeout((()=>{e.getElement().querySelectorAll("[data-column-label]").forEach((t=>{t.offsetWidth<10&&(t.innerText=e.getType())}))}),50)})(e),(e=>{e.getElement().querySelectorAll('[data-refresh="column"], [data-refresh="column"] input').forEach((t=>{t.addEventListener("change",(()=>{setTimeout((()=>e.refresh()),50)}))}))})(e),(e=>{e.getElement().querySelectorAll("select[multiple]").forEach((t=>{new St(e,t)}))})(e),(e=>{let t=e.getElement().querySelector(".ac-column-setting--label");t&&new at(e,t)})(e),(e=>{let t=e.getElement().querySelector(".ac-column-setting--image");t&&new ut(e,t)})(e),(e=>{e.getElement().querySelectorAll(".ac-column-setting--number_format").forEach((t=>{new dt(e,t)}))})(e),(e=>{e.getElement().querySelectorAll('[data-setting="type"]').forEach((t=>{new pt(e,t)}))})(e),(e=>{e.getElement().querySelectorAll('table[data-setting="width"]').forEach((t=>new ft(e,t)))})(e),(e=>{e.getElement().querySelectorAll("[data-setting=date]").forEach((t=>new gt(e,t)))})(e),(e=>{e.getElement().querySelectorAll(".ac-column-setting--pro").forEach((e=>{e.querySelectorAll("input").forEach((t=>{t.addEventListener("click",(()=>i()(e).find("[data-ac-modal]").trigger("click")))}))}))})(e),(e=>{e.getElement().querySelectorAll("[data-setting=custom_field]").forEach((t=>new yt(e,t)))})(e),(e=>{e.getElement().querySelectorAll(".ac-column-setting--filter,.ac-column-setting--sort,.ac-column-setting--edit").forEach((e=>{new wt(e)}))})(e),(e=>{e.getElement().querySelectorAll('[data-setting="select_options"]').forEach((t=>new mn(e,t,t.querySelector('input[name="select_options"]'))))})(e)}))}}(qn),document.addEventListener("DOMContentLoaded",(()=>{xn(),document.querySelectorAll("#listscreen_settings").forEach((e=>{qn.registerService("Form",new Ze(e,qn))})),qn.hasService("Modals")&&document.querySelectorAll("#ac-modal-pro").forEach((e=>{var t;null===(t=qn.getService("Modals"))||void 0===t||t.register(new ot(e),"pro")}));const e=(e,t)=>{if(""===jQuery.trim(e.term))return t;if(void 0===t.children)return null;let n=[];if(jQuery.each(t.children,((t,s)=>{s.text.toUpperCase().indexOf(e.term.toUpperCase())>-1&&n.push(s)})),n.length){let e=Object.assign({},t);return e.children=n,e}return null};document.querySelectorAll("#ac_list_screen").forEach((t=>{jQuery(t).ac_select2({theme:"acs2",matcher:e,width:"250px",dropdownCssClass:"-listkeys"}).on("select2:select",(()=>{var e;document.querySelectorAll(".view-link").forEach((e=>e.style.display="none")),null===(e=t.closest("form"))||void 0===e||e.submit(),t.disabled=!0,t.nextElementSibling.style.display="inline-block"}))})),document.querySelectorAll("#direct-feedback").forEach((e=>new gn(e))),AC.hasOwnProperty("uninitialized_list_screens")&&(e=>{if(Object.keys(e).length>0)if(e.hasOwnProperty(AC.list_screen)){const t=new Cn({[AC.list_screen]:e[AC.list_screen]});t.events.on("error",(()=>{document.querySelectorAll(".ac-loading-msg-wrapper").forEach((e=>e.remove())),document.querySelectorAll(".menu").forEach((e=>e.classList.remove("hidden")))})),t.events.on("success",(()=>{window.location.href=`${location.href}&t=${Date.now()}`}))}else new Cn(e)})(AC.uninitialized_list_screens),document.querySelectorAll('[data-ac-screen-option="show_column_id"] input').forEach((e=>new yn("show_column_id",e,"show-column-id",document.querySelector(".ac-boxes")))),document.querySelectorAll('[data-ac-screen-option="show_column_type"] input').forEach((e=>new yn("show_column_type",e,"show-column-type",document.querySelector(".ac-boxes")))),document.querySelectorAll('[data-ac-screen-option="show_list_screen_id"] input').forEach((e=>new yn("show_list_screen_id",e,"show-list-screen-id",document.querySelector(".ac-admin")))),document.querySelectorAll('[data-ac-screen-option="show_list_screen_type"] input').forEach((e=>new yn("show_list_screen_type",e,"show-list-screen-type",document.querySelector(".ac-admin"))))})),qn.addListener(e.LOADED,(e=>{if(document.querySelectorAll(".add_column").forEach((t=>t.addEventListener("click",(()=>e.createNewColumn())))),document.querySelectorAll("a[data-clear-columns]").forEach((t=>t.addEventListener("click",(()=>e.resetColumns())))),!e.getElement().classList.contains("-disabled")){let t=i()(e.getElement());t.hasClass("ui-sortable")?t.sortable("refresh"):t.sortable({axis:"y",items:".ac-column",handle:"[data-sort-handle]",containment:t})}})),qn.addListener(e.SAVING,(()=>{var e;null===(e=document.querySelector("#cpac .ac-admin"))||void 0===e||e.classList.add("saving")})),qn.addListener(e.SAVED,(()=>{var e,t;null===(e=document.querySelector("#cpac .ac-admin"))||void 0===e||e.classList.remove("saving"),null===(t=document.querySelector("#cpac .ac-admin"))||void 0===t||t.classList.add("stored")})),qn.addListener(t.INIT,(e=>{En(),((e=null)=>{e||(e=document.querySelectorAll(".ac-pointer")),e.forEach((e=>{var t;let n=document.querySelector(null!==(t=`#${e.getAttribute("rel")}`)&&void 0!==t?t:"#n");n&&new $n(e,n)})),new Sn})(e.getElement().querySelectorAll(".ac-pointer"))}));const xn=()=>{const t=document.querySelectorAll(".sidebox a.submit, .column-footer a.submit");qn.addListener(e.READY,(e=>{t.forEach((n=>{n.addEventListener("click",(n=>{n.preventDefault(),t.forEach((e=>e.setAttribute("disabled","disabled"))),e.submitForm()}))}))})),qn.addListener(e.SAVED,(()=>t.forEach((e=>e.removeAttribute("disabled")))))}})()})(); \ No newline at end of file diff --git a/assets/js/admin-page-settings.js b/assets/js/admin-page-settings.js index 2e4417cd8..a4b0aa60a 100644 --- a/assets/js/admin-page-settings.js +++ b/assets/js/admin-page-settings.js @@ -1 +1 @@ -(()=>{var e={669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),s=n(26),o=n(372),i=n(327),a=n(97),u=n(109),c=n(985),l=n(916);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,h=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(m+":"+v)}var g=a(e.baseURL,e.url);function y(){if(p){var r="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,o={data:h&&"text"!==h&&"json"!==h?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};s(t,n,o),p=null}}if(p.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(l("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||c(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},609:(e,t,n)=>{"use strict";var r=n(867),s=n(849),o=n(321),i=n(185);function a(e){var t=new o(e),n=s(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=a(n(655));u.Axios=o,u.create=function(e){return a(i(u.defaults,e))},u.Cancel=n(263),u.CancelToken=n(972),u.isCancel=n(502),u.all=function(e){return Promise.all(e)},u.spread=n(713),u.isAxiosError=n(268),e.exports=u,e.exports.default=u},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,n)=>{"use strict";var r=n(263);function s(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.source=function(){var e;return{token:new s((function(t){e=t})),cancel:e}},e.exports=s},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(867),s=n(327),o=n(782),i=n(572),a=n(185),u=n(875),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var s,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var l=[i,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(o),s=Promise.resolve(e);l.length;)s=s.then(l.shift(),l.shift());return s}for(var d=e;n.length;){var f=n.shift(),h=n.shift();try{d=f(d)}catch(e){h(e);break}}try{s=i(d)}catch(e){return Promise.reject(e)}for(;o.length;)s=s.then(o.shift(),o.shift());return s},l.prototype.getUri=function(e){return e=a(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(867);function s(){this.handlers=[]}s.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},s.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},s.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=s},97:(e,t,n)=>{"use strict";var r=n(793),s=n(303);e.exports=function(e,t){return e&&!r(t)?s(e,t):t}},916:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,s,o){var i=new Error(e);return r(i,t,n,s,o)}},572:(e,t,n)=>{"use strict";var r=n(867),s=n(527),o=n(502),i=n(655);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=s.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return a(e),t.data=s.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=s.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,s){return e.config=t,n&&(e.code=n),e.request=r,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},185:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={},s=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(s){r.isUndefined(t[s])?r.isUndefined(e[s])||(n[s]=u(void 0,e[s])):n[s]=u(e[s],t[s])}r.forEach(s,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(o,c),r.forEach(i,(function(s){r.isUndefined(t[s])?r.isUndefined(e[s])||(n[s]=u(void 0,e[s])):n[s]=u(void 0,t[s])})),r.forEach(a,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var l=s.concat(o).concat(i).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(d,c),n}},26:(e,t,n)=>{"use strict";var r=n(916);e.exports=function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var r=n(867),s=n(655);e.exports=function(e,t,n){var o=this||s;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},655:(e,t,n)=>{"use strict";var r=n(867),s=n(16),o=n(481),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(448)),u),transformRequest:[function(e,t){return s(t,"Accept"),s(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,s=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||s&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(867);function s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(s(t)+"="+s(e))})))})),o=i.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,s,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(s)&&a.push("path="+s),r.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function s(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=s(window.location.href),function(t){var n=r.isString(t)?s(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:(e,t,n)=>{"use strict";var r=n(867),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(i[t]&&s.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,n)=>{"use strict";var r=n(593),s={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){s[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},i=r.version.split(".");function a(e,t){for(var n=t?t.split("."):i,r=e.split("."),s=0;s<3;s++){if(n[s]>r[s])return!0;if(n[s]0;){var o=r[s],i=t[o];if(i){var a=e[o],u=void 0===a||i(a,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:s}},867:(e,t,n)=>{"use strict";var r=n(849),s=Object.prototype.toString;function o(e){return"[object Array]"===s.call(e)}function i(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==s.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===s.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,n,r){t(e!=n,r)},t.notOk=function(e,n){t(!e,n)},t.equal=function(e,n,r){t(e==n,r)},t.ok=t,e.exports=t},559:(e,t,n)=>{var r=n(69),s=n(999),o=n(204);function i(e){if(!(this instanceof i))return new i(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=i,i.prototype.emit=function(e){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.emit: eventName should be type string or symbol");for(var t=[],n=1,r=arguments.length;n0&&this._emit(this._listeners[e],t),this._starListeners.length>0&&this._emit(this._starListeners,e,t,i.uuid),i(),this},i.prototype.on=i.prototype.addListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.on: listener should be type function"),"*"===e?this._starListeners.push(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)),this},i.prototype.prependListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.prependListener: listener should be type function"),"*"===e?this._starListeners.unshift(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].unshift(t)),this},i.prototype.once=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.once: listener should be type function");var n=this;return this.on(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},i.prototype.prependOnceListener=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},i.prototype.removeListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.removeListener: listener should be type function"),"*"===e?(this._starListeners=this._starListeners.slice(),n(this._starListeners,t)):(void 0!==this._listeners[e]&&(this._listeners[e]=this._listeners[e].slice()),n(this._listeners[e],t));function n(e,t){if(e){var n=e.indexOf(t);return-1!==n?(r(e,n,1),!0):void 0}}},i.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},i.prototype.listeners=function(e){var t="*"!==e?this._listeners[e]:this._starListeners,n=[];if(t)for(var r=t.length,s=0;s{var r=n(204),s="undefined"!=typeof window;function o(e){this.hasWindow=e,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}o.prototype.push=function(e){r.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},o.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var e=this;this.method((function(t){for(;e.queue.length&&t.timeRemaining()>0;)e.queue.shift()(t);e.scheduled=!1,e.queue.length&&e.schedule()}))}},o.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return s?(window._nanoScheduler||(window._nanoScheduler=new o(!0)),e=window._nanoScheduler):e=new o,e}},999:(e,t,n)=>{var r,s=n(61)(),o=n(204);i.disabled=!0;try{r=window.performance,i.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(e){}function i(e){if(o.equal(typeof e,"string","nanotiming: name should be type string"),i.disabled)return a;var t=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function u(o){var i="end-"+t+"-"+e;r.mark(i),s.push((function(){var s=null;try{var a=e+" ["+t+"]";r.measure(a,n,i),r.clearMarks(n),r.clearMarks(i)}catch(e){s=e}o&&o(s,e)}))}return r.mark(n),u.uuid=t,u}function a(e){e&&s.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=i},69:e=>{"use strict";e.exports=function(e,t,n){var r,s=e.length;if(!(t>=s||0===n)){var o=s-(n=t+n>s?s-t:n);for(r=t;r{"use strict";n.d(t,{k:()=>r});const r=()=>ac_global_translations},593:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=(e,n=null)=>{let r=null!=n?n:new FormData;return Object.keys(e).forEach((n=>{t(r,e[n],n)})),r},t=(e,n,r="")=>{if(!n||"object"!=typeof n||n instanceof Date||n instanceof File){const t=null==n?"":n;e.append(r,t)}else Object.keys(n).forEach((s=>{t(e,n[s],r?`${r}[${s}]`:s)}))};class r{constructor(e){this.element=e}static find(e){let t=document.querySelector(e);return null===t?null:new r(t)}static create(e){return new r(document.createElement(e))}getElement(){return this.element}addId(e){return this.element.id=e,this}toggleClass(e,t=null){return null===t?this.element.classList.contains(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClasses(e)}addClass(e){return this.element.classList.add(e),this}addClasses(...e){return e.forEach((e=>this.addClass(e))),this}removeClasses(...e){return e.forEach((e=>this.removeClass(e))),this}removeClass(e){return this.element.classList.remove(e),this}setAttribute(e,t){return this.element.setAttribute(e,t),this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}addHtml(e){return this.element.innerHTML=e,this}append(e){return this.element.appendChild(e),this}appendSelfTo(e){return e.append(this.element),this}prepend(e){return this.element.prepend(e),this}prependSelfTo(e){return e.prepend(this.element),this}css(e,t){return this.element.style[e]=t,this}insertAfter(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element.nextElementSibling)}catch(e){console.error("Not able to insert element after current node",this.element)}}insertSelfBefore(e){var t;try{null===(t=e.parentElement)||void 0===t||t.insertBefore(this.element,e)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}insertBefore(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}addEventListener(e,t){return this.element.addEventListener(e,t),this}addEventListeners(e,t){return e.forEach((e=>this.addEventListener(e,t))),this}}var s=n(559),o=n.n(s);class i{constructor(){this.element=a(),this.events=new(o())}getElement(){return this.element}setActive(e=!0){return e?this.element.classList.add("-active"):this.element.classList.remove("-active"),this}setLoading(e=!0){return this.setActive(!0),e?this.element.classList.add("-loading"):this.element.classList.remove("-loading"),this}onFinish(e){this.events.on("finish",e)}finish(){this.setLoading(!1),this.element.classList.add("-finished"),setTimeout((()=>{((e,t=100,n=null,r="none")=>{e.style.transition=`opacity ${t}ms`,e.style.opacity="1",setTimeout((()=>{e.style.opacity="0"}),100),e.addEventListener("transitionend",(()=>{e.style.display=r,n&&n.call(void 0)}),{once:!0})})(this.element,500,(()=>{this.setActive(!1),this.events.emit("finish")}))}),2e3)}}const a=()=>r.create("div").addClass("ac-ajax-loading").addHtml('\n
\n
\n
Saved
\n ').getElement();function u(){}function c(e){return e()}function l(){return Object.create(null)}function d(e){e.forEach(c)}function f(e){return"function"==typeof e}function h(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function p(e){return 0===Object.keys(e).length}new Set;const m="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class v{constructor(e){this.options=e,this._listeners="WeakMap"in m?new WeakMap:void 0}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return null!==(e=this._observer)&&void 0!==e?e:this._observer=new ResizeObserver((e=>{var t;for(const n of e)v.entries.set(n.target,n),null===(t=this._listeners.get(n.target))||void 0===t||t(n)}))}}v.entries="WeakMap"in m?new WeakMap:void 0;let g,y=!1;function b(e,t){e.appendChild(t)}function w(e){e.parentNode&&e.parentNode.removeChild(e)}function x(e){return document.createElement(e)}function E(e){return document.createTextNode(e)}function _(){return E(" ")}function k(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function $(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function j(e,t){t=""+t,e.data!==t&&(e.data=t)}function L(e){g=e}function C(){if(!g)throw new Error("Function called outside component initialization");return g}new Map;const S=[],O=[];let N=[];const A=[],T=Promise.resolve();let q=!1;function R(e){N.push(e)}const P=new Set;let B=0;function U(){if(0!==B)return;const e=g;do{try{for(;B-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),N=t}(n.after_update),d(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function H(e,t,n,r,s,o,i,a=[-1]){const h=g;L(e);const p=e.$$={fragment:null,ctx:[],props:o,update:u,not_equal:s,bound:l(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(h?h.$$.context:[])),callbacks:l(),dirty:a,skip_bound:!1,root:t.target||h.$$.root};i&&i(p.root);let m=!1;if(p.ctx=n?n(e,t.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return p.ctx&&s(p.ctx[t],p.ctx[t]=o)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](o),m&&function(e,t){-1===e.$$.dirty[0]&&(S.push(e),q||(q=!0,T.then(U)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const t=e.$$.on_mount.map(c).filter(f);e.$$.on_destroy?e.$$.on_destroy.push(...t):d(t),e.$$.on_mount=[]})),o.forEach(R)}(e,t.target,t.anchor,t.customElement),y=!1,U()}var v,b,x;L(h)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(D=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(c).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){I(this,1),this.$destroy=u}$on(e,t){if(!f(t))return u;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!p(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class J{$destroy(){I(this,1),this.$destroy=u}$on(e,t){if(!f(t))return u;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!p(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function z(e){let t,n,r,s,o,i,a,c,l,f,h,p,m;return{c(){t=x("div"),n=x("div"),r=x("div"),s=E(e[0]),o=_(),i=x("div"),a=x("button"),c=E(e[2]),l=_(),f=x("button"),h=E(e[1]),$(r,"class","ac-confirmation__modal__content"),$(a,"class","button"),$(f,"class","button button-primary"),$(i,"class","ac-confirmation__modal__footer"),$(n,"class","ac-confirmation__modal"),$(t,"class","ac-confirmation acu-mb-")},m(u,d){(function(e,t,n){e.insertBefore(t,n||null)})(u,t,d),b(t,n),b(n,r),b(r,s),b(n,o),b(n,i),b(i,a),b(a,c),b(i,l),b(i,f),b(f,h),e[9](f),p||(m=[k(a,"click",e[5]),k(f,"click",e[4])],p=!0)},p(e,[t]){1&t&&j(s,e[0]),4&t&&j(c,e[2]),2&t&&j(h,e[1])},i:u,o:u,d(n){n&&w(t),e[9](null),p=!1,d(m)}}}function W(e,t,n){let r,{message:s}=t,{onConfirm:o}=t,{onClose:i}=t,{lastFocusElement:a}=t,{ok:u}=t,{cancel:c}=t;const l=()=>{a&&a.focus(),i()},d=e=>{"Escape"===e.key&&l()};var f;return f=()=>{document.addEventListener("keydown",d),r.focus()},C().$$.on_mount.push(f),C().$$.on_destroy.push((()=>{document.removeEventListener("keydown",d)})),e.$$set=e=>{"message"in e&&n(0,s=e.message),"onConfirm"in e&&n(6,o=e.onConfirm),"onClose"in e&&n(7,i=e.onClose),"lastFocusElement"in e&&n(8,a=e.lastFocusElement),"ok"in e&&n(1,u=e.ok),"cancel"in e&&n(2,c=e.cancel)},[s,u,c,r,()=>{o(),l()},l,o,i,a,function(e){O[e?"unshift":"push"]((()=>{r=e,n(3,r)}))}]}const V=class extends J{constructor(e){super(),H(this,e,W,z,h,{message:0,onConfirm:6,onClose:7,lastFocusElement:8,ok:1,cancel:2})}};var X=n(404);class G{constructor(e){this.config=e}create(){var e,t,n,r,s,o;let i=document.createElement("div");document.body.appendChild(i),this.component=new V({target:i,props:{ok:null!==(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.translation)||void 0===t?void 0:t.ok)&&void 0!==n?n:(0,X.k)().confirmation.ok,cancel:null!==(o=null===(s=null===(r=this.config)||void 0===r?void 0:r.translation)||void 0===s?void 0:s.cancel)&&void 0!==o?o:(0,X.k)().confirmation.cancel,message:this.config.message,onConfirm:this.config.confirm,lastFocusElement:this.config.lastFocus,onClose:()=>{this.component.$destroy(),i.remove()}}})}}var K=n(669),Z=n.n(K);const Q=(t,n)=>Z().post(ajaxurl,e({action:"ac_admin_general_options",_ajax_nonce:AC._ajax_nonce,option_name:t,option_value:n}));document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".ac-settings-box input[data-ajax-setting]").forEach((e=>{var t;new Y(e,null!==(t=e.dataset.ajaxSetting)&&void 0!==t?t:"")}));let e=document.querySelector("#frm-ac-restore [type=submit]");e&&e.addEventListener("click",(t=>{t.preventDefault(),new G({message:AC_I18N.restore_settings,confirm:()=>{var t;null===(t=null==e?void 0:e.closest("form"))||void 0===t||t.submit()},lastFocus:e}).create()}));const t=document.querySelector('input[name="layout_style"]');if(t){let e=new i;t.addEventListener("input",(()=>{var n;null==e||e.getElement().remove(),e=new i,null===(n=t.closest(".ac-general-setting-row__layout"))||void 0===n||n.append(e.getElement()),e.setActive(!0).setLoading(!0),Q("layout_style",t.value).then((()=>{e.finish()}))}))}}));class Y{constructor(e,t){this.element=e,this.name=t,this.loader=null,this.init()}init(){this.element.addEventListener("change",(()=>{var e,t,n,r;this.initNewLoader(),null===(e=this.element.closest(".ac-toggle-v2"))||void 0===e||e.append(null!==(n=null===(t=this.loader)||void 0===t?void 0:t.getElement())&&void 0!==n?n:document.createElement("div")),null===(r=this.loader)||void 0===r||r.setLoading(!0),this.persist().then((()=>{var e;null===(e=this.loader)||void 0===e||e.finish()}))})),e({})}initNewLoader(){var e;null===(e=this.loader)||void 0===e||e.getElement().remove(),this.loader=new i}persist(){return Q(this.name,this.element.checked?"1":"0")}}})()})(); \ No newline at end of file +(()=>{var e={204:e=>{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,n,r){t(e!=n,r)},t.notOk=function(e,n){t(!e,n)},t.equal=function(e,n,r){t(e==n,r)},t.ok=t,e.exports=t},559:(e,t,n)=>{var r=n(69),o=n(999),s=n(204);function i(e){if(!(this instanceof i))return new i(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=i,i.prototype.emit=function(e){s.ok("string"==typeof e||"symbol"==typeof e,"nanobus.emit: eventName should be type string or symbol");for(var t=[],n=1,r=arguments.length;n0&&this._emit(this._listeners[e],t),this._starListeners.length>0&&this._emit(this._starListeners,e,t,i.uuid),i(),this},i.prototype.on=i.prototype.addListener=function(e,t){return s.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),s.equal(typeof t,"function","nanobus.on: listener should be type function"),"*"===e?this._starListeners.push(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)),this},i.prototype.prependListener=function(e,t){return s.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),s.equal(typeof t,"function","nanobus.prependListener: listener should be type function"),"*"===e?this._starListeners.unshift(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].unshift(t)),this},i.prototype.once=function(e,t){s.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),s.equal(typeof t,"function","nanobus.once: listener should be type function");var n=this;return this.on(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},i.prototype.prependOnceListener=function(e,t){s.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),s.equal(typeof t,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},i.prototype.removeListener=function(e,t){return s.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),s.equal(typeof t,"function","nanobus.removeListener: listener should be type function"),"*"===e?(this._starListeners=this._starListeners.slice(),n(this._starListeners,t)):(void 0!==this._listeners[e]&&(this._listeners[e]=this._listeners[e].slice()),n(this._listeners[e],t));function n(e,t){if(e){var n=e.indexOf(t);return-1!==n?(r(e,n,1),!0):void 0}}},i.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},i.prototype.listeners=function(e){var t="*"!==e?this._listeners[e]:this._starListeners,n=[];if(t)for(var r=t.length,o=0;o{var r=n(204),o="undefined"!=typeof window;function s(e){this.hasWindow=e,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}s.prototype.push=function(e){r.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},s.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var e=this;this.method((function(t){for(;e.queue.length&&t.timeRemaining()>0;)e.queue.shift()(t);e.scheduled=!1,e.queue.length&&e.schedule()}))}},s.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return o?(window._nanoScheduler||(window._nanoScheduler=new s(!0)),e=window._nanoScheduler):e=new s,e}},999:(e,t,n)=>{var r,o=n(61)(),s=n(204);i.disabled=!0;try{r=window.performance,i.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(e){}function i(e){if(s.equal(typeof e,"string","nanotiming: name should be type string"),i.disabled)return a;var t=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function c(s){var i="end-"+t+"-"+e;r.mark(i),o.push((function(){var o=null;try{var a=e+" ["+t+"]";r.measure(a,n,i),r.clearMarks(n),r.clearMarks(i)}catch(e){o=e}s&&s(o,e)}))}return r.mark(n),c.uuid=t,c}function a(e){e&&o.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=i},69:e=>{"use strict";e.exports=function(e,t,n){var r,o=e.length;if(!(t>=o||0===n)){var s=o-(n=t+n>o?o-t:n);for(r=t;r{"use strict";n.d(t,{k:()=>r});const r=()=>ac_global_translations}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=(e,n=null)=>{let r=null!=n?n:new FormData;return Object.keys(e).forEach((n=>{t(r,e[n],n)})),r},t=(e,n,r="")=>{if(!n||"object"!=typeof n||n instanceof Date||n instanceof File){const t=null==n?"":n;e.append(r,t)}else Object.keys(n).forEach((o=>{t(e,n[o],r?`${r}[${o}]`:o)}))};class r{constructor(e){this.element=e}static find(e){let t=document.querySelector(e);return null===t?null:new r(t)}static create(e){return new r(document.createElement(e))}getElement(){return this.element}addId(e){return this.element.id=e,this}toggleClass(e,t=null){return null===t?this.element.classList.contains(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClasses(e)}addClass(e){return this.element.classList.add(e),this}addClasses(...e){return e.forEach((e=>this.addClass(e))),this}removeClasses(...e){return e.forEach((e=>this.removeClass(e))),this}removeClass(e){return this.element.classList.remove(e),this}setAttribute(e,t){return this.element.setAttribute(e,t),this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}addHtml(e){return this.element.innerHTML=e,this}append(e){return this.element.appendChild(e),this}appendFound(e){return document.querySelectorAll(e).forEach((e=>this.append(e))),this}appendSelfTo(e){return e.append(this.element),this}prepend(e){return this.element.prepend(e),this}prependSelfTo(e){return e.prepend(this.element),this}css(e,t){return this.element.style[e]=t,this}insertAfter(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element.nextElementSibling)}catch(e){console.error("Not able to insert element after current node",this.element)}}insertSelfBefore(e){var t;try{null===(t=e.parentElement)||void 0===t||t.insertBefore(this.element,e)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}insertBefore(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}addEventListener(e,t){return this.element.addEventListener(e,t),this}addEventListeners(e,t){return e.forEach((e=>this.addEventListener(e,t))),this}$(){return this.getElement()}}var o=n(559),s=n.n(o);class i{constructor(){this.element=a(),this.events=new(s())}getElement(){return this.element}setActive(e=!0){return e?this.element.classList.add("-active"):this.element.classList.remove("-active"),this}setLoading(e=!0){return this.setActive(!0),e?this.element.classList.add("-loading"):this.element.classList.remove("-loading"),this}onFinish(e){this.events.on("finish",e)}finish(){this.setLoading(!1),this.element.classList.add("-finished"),setTimeout((()=>{((e,t=100,n=null,r="none")=>{e.style.transition=`opacity ${t}ms`,e.style.opacity="1",setTimeout((()=>{e.style.opacity="0"}),100),e.addEventListener("transitionend",(()=>{e.style.display=r,n&&n.call(void 0)}),{once:!0})})(this.element,500,(()=>{this.setActive(!1),this.events.emit("finish")}))}),2e3)}}const a=()=>r.create("div").addClass("ac-ajax-loading").addHtml('\n
\n
\n
Saved
\n ').getElement();new Set;const c="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class l{_listeners="WeakMap"in c?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver((e=>{for(const t of e)l.entries.set(t.target,t),this._listeners.get(t.target)?.(t)})))}}l.entries="WeakMap"in c?new WeakMap:void 0;let u,d=!1;function f(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e){return document.createElement(e)}function y(e){return document.createTextNode(e)}function g(){return y(" ")}function b(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function v(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function w(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(){}function $(e){return e()}function _(){return Object.create(null)}function O(e){e.forEach($)}function S(e){return"function"==typeof e}function A(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function R(e){u=e}function L(){if(!u)throw new Error("Function called outside component initialization");return u}new Map;const x=[],C=[];let T=[];const N=[],j=Promise.resolve();let k=!1;function P(e){T.push(e)}const F=new Set;let B=0;function U(){if(0!==B)return;const e=u;do{try{for(;B{const s=r.length?r[0]:n;return l.ctx&&o(l.ctx[t],l.ctx[t]=s)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](s),f&&function(e,t){-1===e.$$.dirty[0]&&(x.push(e),k||(k=!0,j.then(U)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const t=e.$$.on_mount.map($).filter(S);e.$$.on_destroy?e.$$.on_destroy.push(...t):O(t),e.$$.on_mount=[]})),o.forEach(P)}(e,t.target,t.anchor),d=!1,U()}var h,m;R(c)}function H(e,t,n,r){const o=n[e]?.type;if(t="Boolean"===o&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(o){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(M=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function e(e){return()=>{let t;return{c:function(){t=m("slot"),"default"!==e&&v(t,"name",e)},m:function(e,n){h(e,t,n)},d:function(e){e&&p(t)}}}}const t={},n=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const o of this.$$s)o in n&&(t[o]=[e(o)]);for(const s of this.attributes){const i=this.$$g_p(s.name);i in this.$$d||(this.$$d[i]=H(i,s.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const t=H(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const a in this.$$l)for(const c of this.$$l[a]){const l=this.$$c.$on(a,c);this.$$l_u.set(c,l)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=H(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class z{$$=void 0;$$set=void 0;$destroy(){(function(e,t){const n=e.$$;null!==n.fragment&&(function(e){const t=[],n=[];T.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),T=t}(n.after_update),O(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])})(this,1),this.$destroy=E}$on(e,t){if(!S(t))return E;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function J(e){let t,n,r,o,s,i,a,c,l,u,d,$;return{c(){t=m("div"),n=m("div"),r=m("div"),o=g(),s=m("div"),i=m("button"),a=y(e[2]),c=g(),l=m("button"),u=y(e[1]),v(r,"class","ac-confirmation__modal__content"),v(i,"class","button"),v(l,"class","button button-primary"),v(s,"class","ac-confirmation__modal__footer"),v(n,"class","ac-confirmation__modal"),v(t,"class","ac-confirmation acu-mb-")},m(p,m){h(p,t,m),f(t,n),f(n,r),r.innerHTML=e[0],f(n,o),f(n,s),f(s,i),f(i,a),f(s,c),f(s,l),f(l,u),e[9](l),d||($=[b(i,"click",e[5]),b(l,"click",e[4])],d=!0)},p(e,[t]){1&t&&(r.innerHTML=e[0]),4&t&&w(a,e[2]),2&t&&w(u,e[1])},i:E,o:E,d(n){n&&p(t),e[9](null),d=!1,O($)}}}function W(e,t,n){let r,{message:o}=t,{onConfirm:s}=t,{onClose:i}=t,{lastFocusElement:a}=t,{ok:c}=t,{cancel:l}=t;const u=()=>{a&&a.focus(),i()},d=e=>{"Escape"===e.key&&u()};var f;return f=()=>{document.addEventListener("keydown",d),r.focus()},L().$$.on_mount.push(f),L().$$.on_destroy.push((()=>{document.removeEventListener("keydown",d)})),e.$$set=e=>{"message"in e&&n(0,o=e.message),"onConfirm"in e&&n(6,s=e.onConfirm),"onClose"in e&&n(7,i=e.onClose),"lastFocusElement"in e&&n(8,a=e.lastFocusElement),"ok"in e&&n(1,c=e.ok),"cancel"in e&&n(2,l=e.cancel)},[o,c,l,r,()=>{s(),u()},u,s,i,a,function(e){C[e?"unshift":"push"]((()=>{r=e,n(3,r)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const K=class extends z{constructor(e){super(),I(this,e,W,J,A,{message:0,onConfirm:6,onClose:7,lastFocusElement:8,ok:1,cancel:2})}};var V=n(404);class G{constructor(e){this.config=e}create(){var e,t,n,r,o,s;let i=document.createElement("div");document.body.appendChild(i),this.component=new K({target:i,props:{ok:null!==(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.translation)||void 0===t?void 0:t.ok)&&void 0!==n?n:(0,V.k)().confirmation.ok,cancel:null!==(s=null===(o=null===(r=this.config)||void 0===r?void 0:r.translation)||void 0===o?void 0:o.cancel)&&void 0!==s?s:(0,V.k)().confirmation.cancel,message:this.config.message,onConfirm:this.config.confirm,lastFocusElement:this.config.lastFocus,onClose:()=>{this.component.$destroy(),i.remove()}}})}}function X(e,t){return function(){return e.apply(t,arguments)}}const{toString:Q}=Object.prototype,{getPrototypeOf:Z}=Object,Y=(ee=Object.create(null),e=>{const t=Q.call(e);return ee[t]||(ee[t]=t.slice(8,-1).toLowerCase())});var ee;const te=e=>(e=e.toLowerCase(),t=>Y(t)===e),ne=e=>t=>typeof t===e,{isArray:re}=Array,oe=ne("undefined"),se=te("ArrayBuffer"),ie=ne("string"),ae=ne("function"),ce=ne("number"),le=e=>null!==e&&"object"==typeof e,ue=e=>{if("object"!==Y(e))return!1;const t=Z(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},de=te("Date"),fe=te("File"),he=te("Blob"),pe=te("FileList"),me=te("URLSearchParams");function ye(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),re(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ve=e=>!oe(e)&&e!==be,we=(Ee="undefined"!=typeof Uint8Array&&Z(Uint8Array),e=>Ee&&e instanceof Ee);var Ee;const $e=te("HTMLFormElement"),_e=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Oe=te("RegExp"),Se=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ye(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},Ae="abcdefghijklmnopqrstuvwxyz",Re="0123456789",Le={DIGIT:Re,ALPHA:Ae,ALPHA_DIGIT:Ae+Ae.toUpperCase()+Re},xe=te("AsyncFunction"),Ce={isArray:re,isArrayBuffer:se,isBuffer:function(e){return null!==e&&!oe(e)&&null!==e.constructor&&!oe(e.constructor)&&ae(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ae(e.append)&&("formdata"===(t=Y(e))||"object"===t&&ae(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&se(e.buffer),t},isString:ie,isNumber:ce,isBoolean:e=>!0===e||!1===e,isObject:le,isPlainObject:ue,isUndefined:oe,isDate:de,isFile:fe,isBlob:he,isRegExp:Oe,isFunction:ae,isStream:e=>le(e)&&ae(e.pipe),isURLSearchParams:me,isTypedArray:we,isFileList:pe,forEach:ye,merge:function e(){const{caseless:t}=ve(this)&&this||{},n={},r=(r,o)=>{const s=t&&ge(n,o)||o;ue(n[s])&&ue(r)?n[s]=e(n[s],r):ue(r)?n[s]=e({},r):re(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e(ye(t,((t,r)=>{n&&ae(t)?e[r]=X(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&Z(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Y,kindOfTest:te,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(re(e))return e;let t=e.length;if(!ce(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:$e,hasOwnProperty:_e,hasOwnProp:_e,reduceDescriptors:Se,freezeMethods:e=>{Se(e,((t,n)=>{if(ae(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ae(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return re(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:ge,global:be,isContextDefined:ve,ALPHABET:Le,generateString:(e=16,t=Le.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&ae(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(le(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=re(e)?[]:{};return ye(e,((e,t)=>{const s=n(e,r+1);!oe(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:xe,isThenable:e=>e&&(le(e)||ae(e))&&ae(e.then)&&ae(e.catch)};function Te(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Ce.inherits(Te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ne=Te.prototype,je={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{je[e]={value:e}})),Object.defineProperties(Te,je),Object.defineProperty(Ne,"isAxiosError",{value:!0}),Te.from=(e,t,n,r,o,s)=>{const i=Object.create(Ne);return Ce.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Te.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const ke=Te;function Pe(e){return Ce.isPlainObject(e)||Ce.isArray(e)}function Fe(e){return Ce.endsWith(e,"[]")?e.slice(0,-2):e}function Be(e,t,n){return e?e.concat(t).map((function(e,t){return e=Fe(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Ue=Ce.toFlatObject(Ce,{},null,(function(e){return/^is[A-Z]/.test(e)})),De=function(e,t,n){if(!Ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ce.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ce.isSpecCompliantForm(t);if(!Ce.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ce.isDate(e))return e.toISOString();if(!a&&Ce.isBlob(e))throw new ke("Blob is not supported. Use a Buffer instead.");return Ce.isArrayBuffer(e)||Ce.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Ce.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ce.isArray(e)&&function(e){return Ce.isArray(e)&&!e.some(Pe)}(e)||(Ce.isFileList(e)||Ce.endsWith(n,"[]"))&&(a=Ce.toArray(e)))return n=Fe(n),a.forEach((function(e,r){!Ce.isUndefined(e)&&null!==e&&t.append(!0===i?Be([n],r,s):null===i?n:n+"[]",c(e))})),!1;return!!Pe(e)||(t.append(Be(o,n,s),c(e)),!1)}const u=[],d=Object.assign(Ue,{defaultVisitor:l,convertValue:c,isVisitable:Pe});if(!Ce.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ce.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ce.forEach(n,(function(n,s){!0===(!(Ce.isUndefined(n)||null===n)&&o.call(t,n,Ce.isString(s)?s.trim():s,r,d))&&e(n,r?r.concat(s):[s])})),u.pop()}}(e),t};function qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Me(e,t){this._pairs=[],e&&De(e,this,t)}const Ie=Me.prototype;Ie.append=function(e,t){this._pairs.push([e,t])},Ie.toString=function(e){const t=e?function(t){return e.call(this,t,qe)}:qe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const He=Me;function ze(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Je(e,t,n){if(!t)return e;const r=n&&n.encode||ze,o=n&&n.serialize;let s;if(s=o?o(t,n):Ce.isURLSearchParams(t)?t.toString():new He(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const We=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ce.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Ke={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ve={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:He,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},Ge=function(e){function t(e,n,r,o){let s=e[o++];const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&Ce.isArray(r)?r.length:s,a?(Ce.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&Ce.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&Ce.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r{t(function(e){return Ce.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},Xe={transitional:Ke,adapter:Ve.isNode?"http":"xhr",transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ce.isObject(e);if(o&&Ce.isHTMLForm(e)&&(e=new FormData(e)),Ce.isFormData(e))return r&&r?JSON.stringify(Ge(e)):e;if(Ce.isArrayBuffer(e)||Ce.isBuffer(e)||Ce.isStream(e)||Ce.isFile(e)||Ce.isBlob(e))return e;if(Ce.isArrayBufferView(e))return e.buffer;if(Ce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return De(e,new Ve.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ve.isNode&&Ce.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=Ce.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return De(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ce.isString(e))try{return(0,JSON.parse)(e),Ce.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Xe.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Ce.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ke.from(e,ke.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ce.forEach(["delete","get","head","post","put","patch"],(e=>{Xe.headers[e]={}}));const Qe=Xe,Ze=Ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ye=Symbol("internals");function et(e){return e&&String(e).trim().toLowerCase()}function tt(e){return!1===e||null==e?e:Ce.isArray(e)?e.map(tt):String(e)}function nt(e,t,n,r,o){return Ce.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ce.isString(t)?Ce.isString(r)?-1!==t.indexOf(r):Ce.isRegExp(r)?r.test(t):void 0:void 0)}class rt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=et(t);if(!o)throw new Error("header name must be a non-empty string");const s=Ce.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=tt(e))}const s=(e,t)=>Ce.forEach(e,((e,n)=>o(e,n,t)));return Ce.isPlainObject(e)||e instanceof this.constructor?s(e,t):Ce.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ze[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=et(e)){const n=Ce.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ce.isFunction(t))return t.call(this,e,n);if(Ce.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=et(e)){const n=Ce.findKey(this,e);return!(!n||void 0===this[n]||t&&!nt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=et(e)){const o=Ce.findKey(n,e);!o||t&&!nt(0,n[o],o,t)||(delete n[o],r=!0)}}return Ce.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!nt(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ce.forEach(this,((r,o)=>{const s=Ce.findKey(n,o);if(s)return t[s]=tt(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=tt(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ce.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ce.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ye]=this[Ye]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=et(e);t[r]||(function(e,t){const n=Ce.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Ce.isArray(e)?e.forEach(r):r(e),this}}rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ce.reduceDescriptors(rt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ce.freezeMethods(rt);const ot=rt;function st(e,t){const n=this||Qe,r=t||n,o=ot.from(r.headers);let s=r.data;return Ce.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function it(e){return!(!e||!e.__CANCEL__)}function at(e,t,n){ke.call(this,null==e?"canceled":e,ke.ERR_CANCELED,t,n),this.name="CanceledError"}Ce.inherits(at,ke,{__CANCEL__:!0});const ct=at,lt=Ve.isStandardBrowserEnv?{write:function(e,t,n,r,o,s){const i=[];i.push(e+"="+encodeURIComponent(t)),Ce.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Ce.isString(r)&&i.push("path="+r),Ce.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ut(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const dt=Ve.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Ce.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function ft(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,d=0;for(;u!==s;)d+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,c=r(a);n=s;const l={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const ht={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ot.from(e.headers).normalize(),s=e.responseType;let i;function a(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}Ce.isFormData(r)&&(Ve.isStandardBrowserEnv||Ve.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const l=ut(e.baseURL,e.url);function u(){if(!c)return;const r=ot.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ke("Request failed with status code "+n.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),a()}),(function(e){n(e),a()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),Je(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new ke("Request aborted",ke.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new ke("Network Error",ke.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Ke;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ke(t,r.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,c)),c=null},Ve.isStandardBrowserEnv){const t=(e.withCredentials||dt(l))&&e.xsrfCookieName&<.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&Ce.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Ce.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",ft(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",ft(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(n(!t||t.type?new ct(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l);d&&-1===Ve.protocols.indexOf(d)?n(new ke("Unsupported protocol "+d+":",ke.ERR_BAD_REQUEST,e)):c.send(r||null)}))}};Ce.forEach(ht,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const pt=e=>{e=Ce.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof ot?e.toJSON():e;function bt(e,t){t=t||{};const n={};function r(e,t,n){return Ce.isPlainObject(e)&&Ce.isPlainObject(t)?Ce.merge.call({caseless:n},e,t):Ce.isPlainObject(t)?Ce.merge({},t):Ce.isArray(t)?t.slice():t}function o(e,t,n){return Ce.isUndefined(t)?Ce.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!Ce.isUndefined(t))return r(void 0,t)}function i(e,t){return Ce.isUndefined(t)?Ce.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(gt(e),gt(t),!0)};return Ce.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);Ce.isUndefined(i)&&s!==a||(n[r]=i)})),n}const vt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{vt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const wt={};vt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.5.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new ke(r(o," has been removed"+(t?" in "+t:"")),ke.ERR_DEPRECATED);return t&&!wt[o]&&(wt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};const Et={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new ke("option "+s+" must be "+n,ke.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ke("Unknown option "+s,ke.ERR_BAD_OPTION)}},validators:vt},$t=Et.validators;class _t{constructor(e){this.defaults=e,this.interceptors={request:new We,response:new We}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=bt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Et.assertOptions(n,{silentJSONParsing:$t.transitional($t.boolean),forcedJSONParsing:$t.transitional($t.boolean),clarifyTimeoutError:$t.transitional($t.boolean)},!1),null!=r&&(Ce.isFunction(r)?t.paramsSerializer={serialize:r}:Et.assertOptions(r,{encode:$t.function,serialize:$t.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&Ce.merge(o.common,o[t.method]);o&&Ce.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ot.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[yt.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new ct(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new St((function(t){e=t})),cancel:e}}}const At=St,Rt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rt).forEach((([e,t])=>{Rt[t]=e}));const Lt=Rt,xt=function e(t){const n=new Ot(t),r=X(Ot.prototype.request,n);return Ce.extend(r,Ot.prototype,n,{allOwnKeys:!0}),Ce.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(bt(t,n))},r}(Qe);xt.Axios=Ot,xt.CanceledError=ct,xt.CancelToken=At,xt.isCancel=it,xt.VERSION="1.5.0",xt.toFormData=De,xt.AxiosError=ke,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return Ce.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=bt,xt.AxiosHeaders=ot,xt.formToJSON=e=>Ge(Ce.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=pt,xt.HttpStatusCode=Lt,xt.default=xt;const Ct=xt,Tt=(t,n)=>Ct.post(ajaxurl,e({action:"ac_admin_general_options",_ajax_nonce:AC._ajax_nonce,option_name:t,option_value:n}));document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".ac-settings-box input[data-ajax-setting]").forEach((e=>{var t;new Nt(e,null!==(t=e.dataset.ajaxSetting)&&void 0!==t?t:"")}));let e=document.querySelector("#frm-ac-restore [type=submit]");e&&e.addEventListener("click",(t=>{t.preventDefault(),new G({message:AC_I18N.restore_settings,confirm:()=>{var t;null===(t=null==e?void 0:e.closest("form"))||void 0===t||t.submit()},lastFocus:e}).create()}));const t=document.querySelector('input[name="layout_style"]');if(t){let e=new i;t.addEventListener("input",(()=>{var n;null==e||e.getElement().remove(),e=new i,null===(n=t.closest(".ac-general-setting-row__layout"))||void 0===n||n.append(e.getElement()),e.setActive(!0).setLoading(!0),Tt("layout_style",t.value).then((()=>{e.finish()}))}))}}));class Nt{constructor(e,t){this.element=e,this.name=t,this.loader=null,this.init()}init(){this.element.addEventListener("change",(()=>{var e,t,n,r;this.initNewLoader(),null===(e=this.element.closest(".ac-toggle-v2"))||void 0===e||e.append(null!==(n=null===(t=this.loader)||void 0===t?void 0:t.getElement())&&void 0!==n?n:document.createElement("div")),null===(r=this.loader)||void 0===r||r.setLoading(!0),this.persist().then((()=>{var e;null===(e=this.loader)||void 0===e||e.finish()}))})),e({})}initNewLoader(){var e;null===(e=this.loader)||void 0===e||e.getElement().remove(),this.loader=new i}persist(){return Tt(this.name,this.element.checked?"1":"0")}}})()})(); \ No newline at end of file diff --git a/assets/js/table.js b/assets/js/table.js index 95182a91a..b67bc2202 100644 --- a/assets/js/table.js +++ b/assets/js/table.js @@ -1 +1 @@ -(()=>{var e={669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),s=n(26),o=n(372),i=n(327),a=n(97),l=n(109),c=n(985),u=n(916);e.exports=function(e){return new Promise((function(t,n){var d=e.data,p=e.headers,f=e.responseType;r.isFormData(d)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+g)}var v=a(e.baseURL,e.url);function $(){if(h){var r="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};s(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),i(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=$:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout($)},h.onabort=function(){h&&(n(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||c(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;y&&(p[e.xsrfHeaderName]=y)}"setRequestHeader"in h&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),f&&"json"!==f&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},609:(e,t,n)=>{"use strict";var r=n(867),s=n(849),o=n(321),i=n(185);function a(e){var t=new o(e),n=s(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=a(n(655));l.Axios=o,l.create=function(e){return a(i(l.defaults,e))},l.Cancel=n(263),l.CancelToken=n(972),l.isCancel=n(502),l.all=function(e){return Promise.all(e)},l.spread=n(713),l.isAxiosError=n(268),e.exports=l,e.exports.default=l},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,n)=>{"use strict";var r=n(263);function s(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.source=function(){var e;return{token:new s((function(t){e=t})),cancel:e}},e.exports=s},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(867),s=n(327),o=n(782),i=n(572),a=n(185),l=n(875),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var s,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var u=[i,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),s=Promise.resolve(e);u.length;)s=s.then(u.shift(),u.shift());return s}for(var d=e;n.length;){var p=n.shift(),f=n.shift();try{d=p(d)}catch(e){f(e);break}}try{s=i(d)}catch(e){return Promise.reject(e)}for(;o.length;)s=s.then(o.shift(),o.shift());return s},u.prototype.getUri=function(e){return e=a(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=u},782:(e,t,n)=>{"use strict";var r=n(867);function s(){this.handlers=[]}s.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},s.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},s.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=s},97:(e,t,n)=>{"use strict";var r=n(793),s=n(303);e.exports=function(e,t){return e&&!r(t)?s(e,t):t}},916:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,s,o){var i=new Error(e);return r(i,t,n,s,o)}},572:(e,t,n)=>{"use strict";var r=n(867),s=n(527),o=n(502),i=n(655);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=s.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return a(e),t.data=s.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=s.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,s){return e.config=t,n&&(e.code=n),e.request=r,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},185:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={},s=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(s){r.isUndefined(t[s])?r.isUndefined(e[s])||(n[s]=l(void 0,e[s])):n[s]=l(e[s],t[s])}r.forEach(s,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(o,c),r.forEach(i,(function(s){r.isUndefined(t[s])?r.isUndefined(e[s])||(n[s]=l(void 0,e[s])):n[s]=l(void 0,t[s])})),r.forEach(a,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var u=s.concat(o).concat(i).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,c),n}},26:(e,t,n)=>{"use strict";var r=n(916);e.exports=function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var r=n(867),s=n(655);e.exports=function(e,t,n){var o=this||s;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},655:(e,t,n)=>{"use strict";var r=n(867),s=n(16),o=n(481),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(448)),l),transformRequest:[function(e,t){return s(t,"Accept"),s(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,s=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||s&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(867);function s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(s(t)+"="+s(e))})))})),o=i.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,s,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(s)&&a.push("path="+s),r.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function s(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=s(window.location.href),function(t){var n=r.isString(t)?s(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:(e,t,n)=>{"use strict";var r=n(867),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(i[t]&&s.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,n)=>{"use strict";var r=n(593),s={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){s[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},i=r.version.split(".");function a(e,t){for(var n=t?t.split("."):i,r=e.split("."),s=0;s<3;s++){if(n[s]>r[s])return!0;if(n[s]0;){var o=r[s],i=t[o];if(i){var a=e[o],l=void 0===a||i(a,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:s}},867:(e,t,n)=>{"use strict";var r=n(849),s=Object.prototype.toString;function o(e){return"[object Array]"===s.call(e)}function i(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==s.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===s.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,n,r){t(e!=n,r)},t.notOk=function(e,n){t(!e,n)},t.equal=function(e,n,r){t(e==n,r)},t.ok=t,e.exports=t},559:(e,t,n)=>{var r=n(69),s=n(999),o=n(204);function i(e){if(!(this instanceof i))return new i(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=i,i.prototype.emit=function(e){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.emit: eventName should be type string or symbol");for(var t=[],n=1,r=arguments.length;n0&&this._emit(this._listeners[e],t),this._starListeners.length>0&&this._emit(this._starListeners,e,t,i.uuid),i(),this},i.prototype.on=i.prototype.addListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.on: listener should be type function"),"*"===e?this._starListeners.push(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)),this},i.prototype.prependListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.prependListener: listener should be type function"),"*"===e?this._starListeners.unshift(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].unshift(t)),this},i.prototype.once=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.once: listener should be type function");var n=this;return this.on(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},i.prototype.prependOnceListener=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},i.prototype.removeListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.removeListener: listener should be type function"),"*"===e?(this._starListeners=this._starListeners.slice(),n(this._starListeners,t)):(void 0!==this._listeners[e]&&(this._listeners[e]=this._listeners[e].slice()),n(this._listeners[e],t));function n(e,t){if(e){var n=e.indexOf(t);return-1!==n?(r(e,n,1),!0):void 0}}},i.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},i.prototype.listeners=function(e){var t="*"!==e?this._listeners[e]:this._starListeners,n=[];if(t)for(var r=t.length,s=0;s{var r=n(204),s="undefined"!=typeof window;function o(e){this.hasWindow=e,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}o.prototype.push=function(e){r.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},o.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var e=this;this.method((function(t){for(;e.queue.length&&t.timeRemaining()>0;)e.queue.shift()(t);e.scheduled=!1,e.queue.length&&e.schedule()}))}},o.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return s?(window._nanoScheduler||(window._nanoScheduler=new o(!0)),e=window._nanoScheduler):e=new o,e}},999:(e,t,n)=>{var r,s=n(61)(),o=n(204);i.disabled=!0;try{r=window.performance,i.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(e){}function i(e){if(o.equal(typeof e,"string","nanotiming: name should be type string"),i.disabled)return a;var t=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function l(o){var i="end-"+t+"-"+e;r.mark(i),s.push((function(){var s=null;try{var a=e+" ["+t+"]";r.measure(a,n,i),r.clearMarks(n),r.clearMarks(i)}catch(e){s=e}o&&o(s,e)}))}return r.mark(n),l.uuid=t,l}function a(e){e&&s.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=i},69:e=>{"use strict";e.exports=function(e,t,n){var r,s=e.length;if(!(t>=s||0===n)){var o=s-(n=t+n>s?s-t:n);for(r=t;r{"use strict";e.exports=jQuery},593:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=(e,t)=>{var n;null===(n=null==t?void 0:t.parentNode)||void 0===n||n.insertBefore(e,t.nextSibling)};class t{constructor(e){this.element=e}static find(e){let n=document.querySelector(e);return null===n?null:new t(n)}static create(e){return new t(document.createElement(e))}getElement(){return this.element}addId(e){return this.element.id=e,this}toggleClass(e,t=null){return null===t?this.element.classList.contains(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClasses(e)}addClass(e){return this.element.classList.add(e),this}addClasses(...e){return e.forEach((e=>this.addClass(e))),this}removeClasses(...e){return e.forEach((e=>this.removeClass(e))),this}removeClass(e){return this.element.classList.remove(e),this}setAttribute(e,t){return this.element.setAttribute(e,t),this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}addHtml(e){return this.element.innerHTML=e,this}append(e){return this.element.appendChild(e),this}appendSelfTo(e){return e.append(this.element),this}prepend(e){return this.element.prepend(e),this}prependSelfTo(e){return e.prepend(this.element),this}css(e,t){return this.element.style[e]=t,this}insertAfter(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element.nextElementSibling)}catch(e){console.error("Not able to insert element after current node",this.element)}}insertSelfBefore(e){var t;try{null===(t=e.parentElement)||void 0===t||t.insertBefore(this.element,e)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}insertBefore(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}addEventListener(e,t){return this.element.addEventListener(e,t),this}addEventListeners(e,t){return e.forEach((e=>this.addEventListener(e,t))),this}}class r{constructor(e){this.el=e,this.visible=!0}toggle(e){return this.visible=e,this}isHidden(){return!this.visible}getElement(){return new t(this.el)}setTooltip(e){return this.el.dataset.acTip=e,this}static createWithMarkup(e,n){return new r(t.create("a").setAttribute("data-slug",e).addClasses("ac-table-button").addHtml(n).getElement())}}class s{constructor(e){this.data=e}add(e,t){t in this.data||(this.data[t]=[]),this.data[t].push(e)}getById(e){this.getButtons().find((t=>t.getElement().getElement().id===e))}getButtons(){let e=[];return Object.keys(this.data).forEach((t=>{this.data[parseInt(t)].forEach((t=>{e.push(t)}))})),e}getReversedButtons(){return this.getButtons().reverse()}}class o{constructor(e){this.container=e,this.buttons=new s({}),this.init()}getButton(e){return this.buttons.getById(e)}addButton(e,t){this.buttons.add(e,t)}init(){this.container.addEventListener("update",(()=>{this.refresh()})),document.querySelectorAll(".tablenav.top .actions").forEach((t=>{e(this.container,t),this.container.classList.add("-init")})),this.container.querySelectorAll(".ac-table-actions-buttons .ac-table-button").forEach((e=>{var t,n;let s=new r(e);e.offsetParent||(s.toggle(!1),s.getElement().getElement().remove()),this.addButton(s,parseInt(null!==(n=null===(t=e.dataset)||void 0===t?void 0:t.priority)&&void 0!==n?n:"10"))}))}getElement(){return this.container}refresh(){this.buttons.getButtons().forEach((e=>{var t;e.isHidden()?e.getElement().getElement().remove():null===(t=this.container.querySelector(".ac-table-actions-buttons"))||void 0===t||t.append(e.getElement().getElement())}))}}class i{constructor(e={}){this.cells=e}add(e,t){this.cells.hasOwnProperty(e)||(this.cells[e]={}),this.cells[e][t.getName()]=t}getByID(e){let t=[];if(!this.cells.hasOwnProperty(e.toString()))return t;let n=this.cells[e.toString()];return Object.keys(n).forEach((e=>t.push(n[e]))),t}getByElement(e){return this.getAll().find((t=>t.getElement()===e))}getAll(){let e=[];return Object.keys(this.cells).forEach((t=>{let n=this.cells[t];Object.keys(n).forEach((t=>e.push(n[t])))})),e}getByName(e){let t=[];return Object.keys(this.cells).forEach((n=>{let r=this.cells[n];Object.keys(r).forEach((n=>{e===n&&t.push(r[n])}))})),t}get(e,t){return this.cells.hasOwnProperty(e.toString())?this.cells[e][t]:null}}class a{constructor(e,t={}){this.table=e,this.columns=t,this.init()}init(){var e;null===(e=this.table.querySelector("thead"))||void 0===e||e.querySelectorAll("th").forEach((e=>{let t=null==e?void 0:e.id;this.columns[t]=new l(t,AC.column_types[t],this.sanitizeLabel(e))}))}getColumns(){return this.columns}getColumnNames(){return Object.keys(this.columns)}get(e){return this.columns.hasOwnProperty(e)?this.columns[e]:null}sanitizeLabel(e){let t=e.querySelector("a"),n=e.innerHTML;if(t){let e=t.getElementsByTagName("span");e.length>0&&(n=e[0].innerHTML)}return n}}class l{constructor(e,t,n){this.name=e,this.type=t,this.label=n,this.services={}}setService(e,t){this.services[e]=t}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}}var c=n(559),u=n.n(c);class d{constructor(e,t,n){this.object_id=e,this.column_name=t,this.original_value=n.innerHTML,this.el=n,this.services={},this.events=new(u())}getOriginalValue(){return this.original_value}getObjectID(){return this.object_id}getName(){return this.column_name}getElement(){return this.el}setElement(e){this.el=e}getRow(){return this.el.parentElement}getSettings(){var e;return null===(e=AC_SERVICES.getService("Table"))||void 0===e?void 0:e.Columns.get(this.getName())}hasChanged(e){return this.original_value!==e}setValue(e){let t=this.el.querySelector(".row-actions");return this.original_value=e,this.el.innerHTML=e,t&&this.el.append(t),this.original_value=e,this.events.emit("setValue",this),this}setService(e,t){this.services[e]=t}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}}class p{constructor(e){this.Table=e}getIDs(){let e=[],t=this.Table.getElement().querySelectorAll("tbody th.check-column input[type=checkbox]:checked");if(0===t.length)return e;for(let n=0;n{let r=this.Table.Cells.get(t,e);r&&n.push(r)})),n}getCount(){return this.getIDs().length}isAllSelected(){return!!this.Table.getElement().querySelector("thead #cb input:checked")}}class f{constructor(){this.filters={}}addFilter(e,t,n=10){this.filters.hasOwnProperty(e)||(this.filters[e]={}),this.filters[e].hasOwnProperty(n)||(this.filters[e][n]=[]),this.filters[e][n].push(t)}applyFilters(e,t,n={}){return this.filters.hasOwnProperty(e)?(Object.keys(this.filters[e]).forEach((r=>{this.filters[e][parseInt(r)].forEach((e=>{t=e(t,n)}))})),t):t}}class h{constructor(){this.services={},this.events=new(u()),this.filters=new f,this.$=t}registerService(e,t){return this.services[e]=t,this.events.emit(`Service.Registered.${e}`,t),this}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}addListener(e,t){this.events.addListener(e,t)}emitEvent(e,t){this.events.emit(e,t)}}const m=()=>(window.AC_SERVICES||(window.AC_SERVICES=new h),window.AC_SERVICES),g=e=>{var t,n,r,s,o,i;if(e.classList.contains("no-items"))return 0;let a=v(e.id);if(!a){let t=e.querySelector(".check-column input[type=checkbox]");t&&(a=v(t.id))}if(!a){let r=null===(t=e.parentElement)||void 0===t?void 0:t.querySelector(".edit a");if(r){let e=r.getAttribute("href");e&&(a=parseInt(null!==("id",n=(l=e).includes("?")?new URLSearchParams(l.split("?")[1]).get("id"):null)&&void 0!==n?n:""))}}var l;if(Number.isNaN(a)&&(null===(r=e.closest("table"))||void 0===r?void 0:r.classList.contains("users-network"))){let t=null!==(s=e.querySelector(".row-actions .edit a"))&&void 0!==s?s:null;if(t){let e=null!==(i=new URLSearchParams(null!==(o=t.href.split("?")[1])&&void 0!==o?o:"").get("user_id"))&&void 0!==i?i:AC.current_user_id.toString();a=parseInt(e)}}return a=m().filters.applyFilters("table_row_id",a,{row:e}),e.dataset.id=a.toString(),a},v=e=>{let t=e.split(/[_,\-]+/);return parseInt(t[t.length-1])},$="Table.Ready";class y{constructor(){this.services={}}setService(e,t){this.services[e]=t}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}}class b{constructor(e,t){this.el=e,this.AcServices=t,this.Services=new y,this.Columns=new a(e),this.Cells=new i,this.Selection=new p(this);let n=document.getElementById("ac-table-actions");this.Actions=n?new o(n):null}getElement(){return this.el}getIdsFromTable(){let e=[];return this.el.getElementsByTagName("tbody")[0].querySelectorAll("tr").forEach((t=>{e.push(g(t))})),e=e.filter((e=>0!==e)),e}init(){return this.initTable(),this.addCellClasses(),document.dispatchEvent(new CustomEvent("AC_Table_Ready",{detail:{table:this}})),this.AcServices.emitEvent($,{table:this}),this}addCellClasses(){this.Columns.getColumnNames().forEach((e=>{var t;let n=null===(t=this.Columns.get(e))||void 0===t?void 0:t.type,r=this.Cells.getByName(e);n&&r.forEach((e=>{e.getElement().classList.add(null!=n?n:"")}))}))}initTable(){this.el.getElementsByTagName("tbody")[0].querySelectorAll("tr").forEach((e=>{this.updateRow(e)}))}updateRow(e){let t=g(e);e.dataset.id=t.toString(),this.setCellsForRow(e)}setCellsForRow(e){let t=g(e);this.Columns.getColumnNames().forEach((n=>{let r=n.replace(/\./g,"\\."),s=e.querySelector("td.column-"+r);if(s){let e=new d(t,n,s);this.Cells.add(t,e)}}))}}const x=()=>{document.querySelectorAll(".ac-tooltip").forEach((e=>e.remove())),document.querySelectorAll("[data-ac-tip]").forEach((e=>{new w(e)}))};class w{constructor(e,t=""){this.element=e,this.content=t||e.dataset.acTip,this.tip=k(this.content),this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();document.body.appendChild(this.tip),this.tip.style.left=t.left-e.left+this.element.offsetWidth/2+"px",this.tip.style.top=t.top-e.top+this.element.offsetHeight+"px",this.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(()=>{this.tip.classList.remove("hover"),document.body.contains(this.tip)&&document.body.removeChild(this.tip)})),this.element.removeAttribute("title"))}}const k=e=>{let t=document.createElement("div");return t.classList.add("ac-tooltip"),t.innerHTML=e,t},E=class{constructor(){this.init()}init(){x()}};class S{constructor(e){this.columns=e,this.columns.getColumnNames().forEach((n=>{var r,s;let o=e.get(n);if(o){let e=S.getInputByName(o.name);e&&0===(null===(s=null===(r=null==e?void 0:e.parentElement)||void 0===r?void 0:r.textContent)||void 0===s?void 0:s.length)&&e.parentElement.appendChild(t.create("span").addHtml(o.label).getElement())}}))}static getInputByName(e){return document.querySelector(`input[name='${e}-hide']`)}}const _=n(311);class C{constructor(e){var t,n;this.element=e,this.element=e,this.initEvents(),this.contentBox=null!==(n=null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.querySelector(".ac-toggle-box-contents"))&&void 0!==n?n:null,this.contentBox||this.createContentBox()}isAjax(){var e;return 1===parseInt(null!==(e=this.element.dataset.ajaxPopulate)&&void 0!==e?e:"")}isInited(){return this.element.dataset.toggleBoxInit}createContentBox(){let t=document.createElement("div");return t.classList.add("ac-toggle-box-contents"),e(t,this.element),this.contentBox=t,this.contentBox}initEvents(){this.isInited()||(this.element.addEventListener("click",(e=>{e.preventDefault(),this.isAjax()&&!this.hasContent()&&this.manageAjaxValue(),this.toggleContentBox()})),this.element.dataset.toggleBoxInit="true")}hasContent(){return this.getContentBox().innerHTML.length>0}setContent(e){this.getContentBox().innerHTML=e}getContentBox(){return this.contentBox?this.contentBox:this.createContentBox()}setLabel(e){let t=this.element.dataset.label;e&&this.element.dataset.labelClose&&(t=this.element.dataset.labelClose),this.element.innerHTML=t+'',x()}toggleContentBox(){this.getContentBox().classList.contains("-open")?(this.getContentBox().classList.remove("-open"),this.setLabel(!1)):(this.getContentBox().classList.add("-open"),this.setLabel(!0))}manageAjaxValue(){this.element.classList.add("loading"),this.retrieveAjaxValue().done((e=>{var t;this.setContent(e),_(this.element.parentElement).trigger("ajax_column_value_ready"),null===(t=AC_SERVICES.getService("Tooltips"))||void 0===t||t.init()})).always((()=>{this.element.classList.remove("loading")}))}retrieveAjaxValue(){return _.ajax({url:ajaxurl,method:"POST",data:{action:"ac_get_column_value",list_screen:AC.list_screen,layout:AC.layout,column:this.element.dataset.column,pk:this.element.dataset.itemId,_ajax_nonce:AC.ajax_nonce}})}}var L=n(311),j=n.n(L);const T=()=>{document.querySelectorAll(".ac-show-more").forEach((e=>{new A(e)}))};class A{constructor(e){this.element=e,this.initEvents()}initEvents(){var e;this.isInited()||(this.getToggleElement()&&(null===(e=this.getToggleElement())||void 0===e||e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),this.toggle()}))),this.element.dataset.showMoreInit="true")}getToggleElement(){return this.element.querySelector(".ac-show-more__toggle")}isInited(){return"true"===this.element.dataset.showMoreInit}toggle(){this.element.classList.contains("-on")?this.hide():this.show()}show(){var e,t,n;this.element.classList.add("-on"),this.setToggleText(null!==(n=null===(t=null===(e=this.getToggleElement())||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.less)&&void 0!==n?n:"")}hide(){var e,t,n;this.element.classList.remove("-on"),this.setToggleText(null!==(n=null===(t=null===(e=this.getToggleElement())||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.more)&&void 0!==n?n:"")}setToggleText(e){let t=this.getToggleElement();t&&(t.innerHTML=e)}}class O{constructor(e){var t;this.el=e,this.dialog=null!==(t=e.querySelector(".ac-modal__dialogs"))&&void 0!==t?t:document.createElement("div"),this.initEvents()}getElement(){return this.el}initEvents(){document.addEventListener("keydown",(e=>{const t=e.key;this.isOpen()&&"Escape"===t&&this.close()}));let e=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');e.length>0&&e.forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.close()}))})),this.el.addEventListener("click",(e=>{e.target.classList.contains("ac-modal")&&self.close()}))}isOpen(){return this.el.classList.contains("-active")}close(){this.onClose(),this.el.classList.remove("-active")}open(){setTimeout((()=>{this.onOpen(),this.el.removeAttribute("style"),this.el.classList.add("-active")}))}destroy(){this.el.remove()}onClose(){}onOpen(){}}function N(){}function B(e,t){for(const n in t)e[n]=t[n];return e}function q(e){return e()}function P(){return Object.create(null)}function I(e){e.forEach(q)}function M(e){return"function"==typeof e}function R(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function H(e){return 0===Object.keys(e).length}function D(e,...t){if(null==e)return N;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function U(e,t,n){e.$$.on_destroy.push(D(t,n))}function F(e,t,n,r){if(e){const s=z(e,t,n,r);return e[0](s)}}function z(e,t,n,r){return e[1]&&r?B(n.ctx.slice(),e[1](r(t))):n.ctx}function V(e,t,n,r){if(e[2]&&r){const s=e[2](r(n));if(void 0===t.dirty)return s;if("object"==typeof s){const e=[],n=Math.max(t.dirty.length,s.length);for(let r=0;r32){const t=[],n=e.ctx.length/32;for(let e=0;e{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return null!==(e=this._observer)&&void 0!==e?e:this._observer=new ResizeObserver((e=>{var t;for(const n of e)Z.entries.set(n.target,n),null===(t=this._listeners.get(n.target))||void 0===t||t(n)}))}}Z.entries="WeakMap"in X?new WeakMap:void 0;let Q,Y=!1;function ee(e,t){e.appendChild(t)}function te(e,t,n){const r=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!r.getElementById(t)){const e=oe("style");e.id=t,e.textContent=n,function(e,t){ee(e.head||e,t),t.sheet}(r,e)}}function ne(e,t,n){e.insertBefore(t,n||null)}function re(e){e.parentNode&&e.parentNode.removeChild(e)}function se(e,t){for(let n=0;ne.removeEventListener(t,n,r)}function ue(e){return function(t){return t.preventDefault(),e.call(this,t)}}function de(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function pe(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function fe(e,t){t=""+t,e.data!==t&&(e.data=t)}function he(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function me(e,t,n){e.classList[n?"add":"remove"](t)}function ge(e){Q=e}function ve(){if(!Q)throw new Error("Function called outside component initialization");return Q}function $e(e){ve().$$.on_mount.push(e)}function ye(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach((e=>e.call(this,t)))}new Map;const be=[],xe=[];let we=[];const ke=[],Ee=Promise.resolve();let Se=!1;function _e(e){we.push(e)}const Ce=new Set;let Le=0;function je(){if(0!==Le)return;const e=Q;do{try{for(;Le{Ae.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}function Me(e){e&&e.c()}function Re(e,t,n,r){const{fragment:s,after_update:o}=e.$$;s&&s.m(t,n),r||_e((()=>{const t=e.$$.on_mount.map(q).filter(M);e.$$.on_destroy?e.$$.on_destroy.push(...t):I(t),e.$$.on_mount=[]})),o.forEach(_e)}function He(e,t){const n=e.$$;null!==n.fragment&&(function(e){const t=[],n=[];we.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),we=t}(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function De(e,t,n,r,s,o,i,a=[-1]){const l=Q;ge(e);const c=e.$$={fragment:null,ctx:[],props:o,update:N,not_equal:s,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:P(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};i&&i(c.root);let u=!1;if(c.ctx=n?n(e,t.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return c.ctx&&s(c.ctx[t],c.ctx[t]=o)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](o),u&&function(e,t){-1===e.$$.dirty[0]&&(be.push(e),Se||(Se=!0,Ee.then(je)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!H(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class Ue{$destroy(){He(this,1),this.$destroy=N}$on(e,t){if(!M(t))return N;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!H(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function Fe(e){let t,n,r,s,o,i,a;return{c(){t=oe("div"),n=oe("div"),r=ae(),s=oe("div"),pe(n,"class","ac-pointer-modal__arrow"),pe(n,"data-pos",e[1]),pe(s,"class","ac-pointer-modal__content"),pe(t,"class",o="ac-pointer-modal -"+e[1])},m(o,l){ne(o,t,l),ee(t,n),ee(t,r),ee(t,s),s.innerHTML=e[0],i||(a=[ce(t,"mouseenter",e[6]),ce(t,"mouseleave",e[7])],i=!0)},p(e,[r]){2&r&&pe(n,"data-pos",e[1]),1&r&&(s.innerHTML=e[0]),2&r&&o!==(o="ac-pointer-modal -"+e[1])&&pe(t,"class",o)},i:N,o:N,d(e){e&&re(t),i=!1,I(a)}}}function ze(e,t,n){let{content:r=""}=t,{position:s=""}=t,o=!1,{closeHandler:i}=t;const a=()=>{n(2,o=!1),i()};return e.$$set=e=>{"content"in e&&n(0,r=e.content),"position"in e&&n(1,s=e.position),"closeHandler"in e&&n(4,i=e.closeHandler)},[r,s,o,a,i,()=>o,()=>n(2,o=!0),()=>a()]}const Ve=class extends Ue{constructor(e){super(),De(this,e,ze,Fe,R,{content:0,position:1,closeHandler:4,isOnElement:5})}get isOnElement(){return this.$$.ctx[5]}};class We{constructor(e,t){var n,r;this.element=e,this.target=t,this.width=null!==(n=e.dataset.width)&&void 0!==n?n:null,this.position=null!==(r=e.dataset.pos)&&void 0!==r?r:"right",this.noClick=void 0!==e.dataset.noclick,this.waitingForClose=!1,this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.container=Je(),this.width&&(this.container.style.width=`${this.width}px`),this.attachModel(),this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{this.onScreen||(this.onScreen=!0,document.body.appendChild(this.container),this.container.style.width=`${this.width}px`,this.setPosition(),setTimeout((()=>{this.setPosition()}),100))})),this.element.addEventListener("mouseleave",(()=>{this.checkClose()})),this.element.addEventListener("click",(()=>{this.noClick||(this.waitingForClose=!0)})))}setPosition(){const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();switch(this.container.style.top=t.top-e.top+this.element.offsetHeight-this.container.offsetHeight/2+20+"px",this.position){case"right_bottom":this.container.style.top=t.top-e.top-this.container.offsetHeight+100+"px",this.container.style.left=t.left-e.left+this.element.offsetWidth+14+"px";break;case"left":this.container.style.left=t.left-e.left-this.container.offsetWidth-12+"px";break;default:this.container.style.left=t.left-e.left+this.element.offsetWidth+10+"px"}}checkClose(){setTimeout((()=>{this.waitingForClose||this.closeHandler()}),50)}closeHandler(){this.onScreen&&(document.body.removeChild(this.container),this.onScreen=!1,this.waitingForClose=!1)}destroyComponent(){null!==this.component&&this.component.$destroy()}attachModel(){this.component=new Ve({target:this.container,props:{content:this.target.innerHTML,position:this.position,closeHandler:()=>this.closeHandler(),destroyHandler:()=>this.destroyComponent()}})}}const Je=()=>{const e=document.createElement("div");return e.classList.add("ac-pointer-modal-container"),e.style.position="absolute",e},Ge=(e=null)=>{e||(e=document.querySelectorAll(".ac-pointer")),e.forEach((e=>{var t;let n=document.querySelector(null!==(t=`#${e.getAttribute("rel")}`)&&void 0!==t?t:"#n");n&&new We(e,n)})),new E};var Ke=n(669),Xe=n.n(Ke);function Ze(e){let t,n;return{c(){t=oe("h2"),n=ie(e[4])},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){16&t&&fe(n,e[4])},d(e){e&&re(t)}}}function Qe(e){let t,n,r=e[10].edit+"";return{c(){t=oe("a"),n=ie(r),pe(t,"class","edit btn button"),pe(t,"href",e[6])},m(e,r){ne(e,t,r),ee(t,n)},p(e,n){64&n&&pe(t,"href",e[6])},d(e){e&&re(t)}}}function Ye(e){let t,n,r=e[10].download+"";return{c(){t=oe("a"),n=ie(r),pe(t,"class","edit btn button"),pe(t,"href",e[7]),pe(t,"download","")},m(e,r){ne(e,t,r),ee(t,n)},p(e,n){128&n&&pe(t,"href",e[7])},d(e){e&&re(t)}}}function et(e){let t,n,r,s,o,i,a,l,c,u;return{c(){t=oe("div"),n=oe("button"),r=oe("span"),o=ae(),i=oe("button"),a=oe("span"),pe(r,"class","dashicons dashicons-arrow-left-alt2"),pe(n,"title","Previous"),pe(n,"class","btn"),n.disabled=s=!e[9],pe(a,"class","dashicons dashicons-arrow-right-alt2"),pe(i,"title","Next"),pe(i,"class","btn"),i.disabled=l=!e[8],pe(t,"class","ac-value-modal__navigation")},m(s,l){ne(s,t,l),ee(t,n),ee(n,r),ee(t,o),ee(t,i),ee(i,a),c||(u=[ce(n,"click",ue(e[13])),ce(i,"click",ue(e[12]))],c=!0)},p(e,t){512&t&&s!==(s=!e[9])&&(n.disabled=s),256&t&&l!==(l=!e[8])&&(i.disabled=l)},d(e){e&&re(t),c=!1,I(u)}}}function tt(e){let t,n,r,s,o,i,a,l,c,u,d,p,f,h,m,g,v,$,y,b,x,w,k,E,S=e[4]&&Ze(e),_=e[6]&&Qe(e),C=e[7]&&Ye(e),L=e[1].length>1&&et(e);return{c(){t=oe("div"),n=oe("div"),r=ae(),s=oe("div"),o=oe("div"),i=oe("div"),a=oe("div"),S&&S.c(),l=ae(),c=oe("span"),u=ie("#"),d=ie(e[0]),p=ae(),f=oe("div"),h=oe("button"),h.innerHTML='',m=ae(),g=oe("div"),v=ae(),$=oe("div"),y=oe("div"),_&&_.c(),b=ae(),C&&C.c(),x=ae(),L&&L.c(),pe(n,"class","ac-value-modal-background"),pe(c,"class","ac-badge"),pe(a,"class","ac-value-modal-title"),pe(f,"class","ac-value-modal-actions"),pe(i,"class","ac-value-modal-panel__header"),pe(g,"class","ac-value-modal-panel__body"),pe(y,"class","ac-value-modal__edit"),pe($,"class","ac-value-modal-panel__footer"),pe(o,"class","ac-value-modal-panel"),pe(s,"class","ac-value-modal-container"),pe(t,"class",w="ac-value-modal "+e[2])},m(w,j){ne(w,t,j),ee(t,n),ee(t,r),ee(t,s),ee(s,o),ee(o,i),ee(i,a),S&&S.m(a,null),ee(a,l),ee(a,c),ee(c,u),ee(c,d),ee(i,p),ee(i,f),ee(f,h),ee(o,m),ee(o,g),g.innerHTML=e[5],ee(o,v),ee(o,$),ee($,y),_&&_.m(y,null),ee(y,b),C&&C.m(y,null),ee($,x),L&&L.m($,null),e[16](t),k||(E=[ce(h,"click",e[11]),ce(o,"click",de(e[15])),ce(o,"keypress",nt),ce(t,"click",e[11]),ce(t,"keypress",rt)],k=!0)},p(e,[n]){e[4]?S?S.p(e,n):(S=Ze(e),S.c(),S.m(a,l)):S&&(S.d(1),S=null),1&n&&fe(d,e[0]),32&n&&(g.innerHTML=e[5]),e[6]?_?_.p(e,n):(_=Qe(e),_.c(),_.m(y,b)):_&&(_.d(1),_=null),e[7]?C?C.p(e,n):(C=Ye(e),C.c(),C.m(y,null)):C&&(C.d(1),C=null),e[1].length>1?L?L.p(e,n):(L=et(e),L.c(),L.m($,null)):L&&(L.d(1),L=null),4&n&&w!==(w="ac-value-modal "+e[2])&&pe(t,"class",w)},i:N,o:N,d(n){n&&re(t),S&&S.d(),_&&_.d(),C&&C.d(),L&&L.d(),e[16](null),k=!1,I(E)}}}const nt=()=>{},rt=()=>{};function st(e,t,n){let r,s,o,i,a,l,c,u,d,p,{items:f}=t,{objectId:h}=t,{destroyHandler:m}=t,g="",v=AC_I18N;const $=Xe().CancelToken,y=e=>{"Escape"===e.key&&m(),"ArrowLeft"===e.key&&(E(),e.preventDefault()),"ArrowRight"===e.key&&(k(),e.preventDefault())},b=e=>(n(0,h=e.objectId),n(4,o=v.value_loading),n(5,i=`${v.value_loading}`),n(6,a=e.editLink),n(7,l=e.downloadLink),c&&c.cancel(),c=$.source(),Xe()({method:"get",url:ajaxurl,cancelToken:c.token,params:{action:"ac_get_column_modal_value",layout:AC.layout,column_name:e.columnName,object_id:e.objectId,_ajax_nonce:AC.ajax_nonce}}).then((t=>{n(5,i=t.data),n(4,o=(e=>{var t;return null!==(t=e.title)&&void 0!==t?t:`${r} #${e.objectId}`})(e))}))),x=()=>{n(8,d=u+1{b(f[e])},k=()=>{d&&(u+=1,w(u),x())},E=()=>{p&&(u-=1,w(u),x())};var S;return $e((()=>{var e;let t=f.find((e=>e.objectId===h));u=f.findIndex((e=>e.objectId===h)),r=t.element.closest("td").dataset.colname,f.length>1&&document.addEventListener("keydown",y),n(2,g=t.element.dataset.modalClass),n(4,o=null!==(e=t.title)&&void 0!==e?e:`#${t.objectId}`),b(t),x()})),S=()=>{document.removeEventListener("keydown",y)},ve().$$.on_destroy.push(S),e.$$set=e=>{"items"in e&&n(1,f=e.items),"objectId"in e&&n(0,h=e.objectId),"destroyHandler"in e&&n(14,m=e.destroyHandler)},[h,f,g,s,o,i,a,l,d,p,v,()=>{m()},k,E,m,function(t){ye.call(this,e,t)},function(e){xe[e?"unshift":"push"]((()=>{s=e,n(3,s)}))}]}const ot=class extends Ue{constructor(e){super(),De(this,e,st,tt,R,{items:1,objectId:0,destroyHandler:14})}};class it{constructor(e){this.links=e,this.component=null,this.initEventHandlers()}initEventHandlers(){this.links.forEach((e=>{e.element.addEventListener("click",(t=>{t.preventDefault(),this.displayModal(e.objectId)}))}))}destroyComponent(){null!==this.component&&this.component.$destroy()}displayModal(e){let t=document.createElement("div");document.body.appendChild(t),this.component=new ot({target:t,props:{items:this.links,objectId:e,destroyHandler:()=>this.destroyComponent()}})}}const at=[];function lt(e,t){return{subscribe:ct(e,t).subscribe}}function ct(e,t=N){let n;const r=new Set;function s(t){if(R(e,t)&&(e=t,n)){const t=!at.length;for(const t of r)t[1](),at.push(t,e);if(t){for(let e=0;e{r.delete(a),0===r.size&&n&&(n(),n=null)}}}}var ut=Object.defineProperty,dt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,ht=(e,t,n)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t)=>{for(var n in t||(t={}))pt.call(t,n)&&ht(e,n,t[n]);if(dt)for(var n of dt(t))ft.call(t,n)&&ht(e,n,t[n]);return e};const gt={};function vt(e,t){const n=(r=gt,ve().$$.context.get(r));var r;const s="function"==typeof e?e(n):e,o=mt(mt({},n),s);return(null==t?void 0:t.expandable)&&(o.isParentExpanded=o.expanded),function(e,t){ve().$$.context.set(e,t)}(gt,o),n}function $t(e){te(e,"svelte-1qd6nto",".container.svelte-1qd6nto{display:inline-block;transform:translate(calc(0px - var(--li-identation)), -50%);position:absolute;top:50%;padding-right:100%}.arrow.svelte-1qd6nto{transform-origin:25% 50%;position:relative;line-height:1.1em;font-size:0.75em;margin-left:0;transition:150ms;color:var(--arrow-color);user-select:none;font-family:'Courier New', Courier, monospace;display:block}.expanded.svelte-1qd6nto{transform:rotateZ(90deg) translateX(-3px)}")}function yt(e){let t,n,r,s;return{c(){t=oe("span"),n=oe("span"),n.textContent="▶",pe(n,"class","arrow svelte-1qd6nto"),me(n,"expanded",e[2]),pe(t,"class","container svelte-1qd6nto")},m(o,i){ne(o,t,i),ee(t,n),r||(s=ce(t,"click",e[4]),r=!0)},p(e,t){4&t&&me(n,"expanded",e[2])},d(e){e&&re(t),r=!1,s()}}}function bt(e){let t,n=e[1]&&yt(e);return{c(){n&&n.c(),t=le()},m(e,r){n&&n.m(e,r),ne(e,t,r)},p(e,[r]){e[1]?n?n.p(e,r):(n=yt(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:N,o:N,d(e){n&&n.d(e),e&&re(t)}}}function xt(e,t,n){let r,s,o=N,i=()=>(o(),o=D(c,(e=>n(2,s=e))),c);e.$$.on_destroy.push((()=>o()));const{expanded:a,expandable:l}=vt();U(e,l,(e=>n(1,r=e)));let{expanded:c=a}=t;return i(),e.$$set=e=>{"expanded"in e&&i(n(0,c=e.expanded))},[c,r,s,l,e=>{e.stopPropagation(),K(c,s=!s,s)}]}class wt extends Ue{constructor(e){super(),De(this,e,xt,bt,R,{expanded:0},$t)}}function kt(e){let t;const n=e[1].default,r=F(n,e,e[0],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,[s]){r&&r.p&&(!t||1&s)&&W(r,n,e,e[0],t?V(n,e[0],s,null):J(e[0]),null)},i(e){t||(Pe(r,e),t=!0)},o(e){Ie(r,e),t=!1},d(e){r&&r.d(e)}}}function Et(e,t,n){let{$$slots:r={},$$scope:s}=t;return vt({displayMode:"summary"}),e.$$set=e=>{"$$scope"in e&&n(0,s=e.$$scope)},[s,r]}class St extends Ue{constructor(e){super(),De(this,e,Et,kt,R,{})}}function _t(e){let t;const n=e[3].default,r=F(n,e,e[2],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,[s]){r&&r.p&&(!t||4&s)&&W(r,n,e,e[2],t?V(n,e[2],s,null):J(e[2]),null)},i(e){t||(Pe(r,e),t=!0)},o(e){Ie(r,e),t=!1},d(e){r&&r.d(e)}}}function Ct(e,t,n){let{$$slots:r={},$$scope:s}=t,{expanded:o}=t,{key:i}=t;const a=ct(!1);return vt((({keyPath:e,level:t})=>("[[Entries]]"!==i&&(e=[...e,i],t+=1),{keyPath:e,level:t,expanded:o,expandable:a}))),e.$$set=e=>{"expanded"in e&&n(0,o=e.expanded),"key"in e&&n(1,i=e.key),"$$scope"in e&&n(2,s=e.$$scope)},[o,i,s,r]}class Lt extends Ue{constructor(e){super(),De(this,e,Ct,_t,R,{expanded:0,key:1})}}function jt(e){te(e,"svelte-19drypg",".root.svelte-19drypg{display:inline-block;position:relative}.indent.svelte-19drypg{padding-left:var(--li-identation)}.label.svelte-19drypg{position:relative}")}function Tt(e,t,n){const r=e.slice();return r[19]=t[n],r[21]=n,r}const At=e=>({key:1&e}),Ot=e=>({key:e[19],index:e[21]}),Nt=e=>({key:1&e}),Bt=e=>({key:e[19],index:e[21]}),qt=e=>({}),Pt=e=>({}),It=e=>({}),Mt=e=>({});function Rt(e){let t,n,r,s,o,i,a,l,c=e[6]&&function(e){let t,n;return t=new wt({props:{expanded:e[7]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p:N,i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}(e);r=new St({props:{$$slots:{default:[Dt]},$$scope:{ctx:e}}});let u=e[4]&&Ut(e);return{c(){t=oe("span"),c&&c.c(),n=ae(),Me(r.$$.fragment),s=ae(),u&&u.c(),o=le(),pe(t,"class","root svelte-19drypg")},m(d,p){ne(d,t,p),c&&c.m(t,null),ee(t,n),Re(r,t,null),ne(d,s,p),u&&u.m(d,p),ne(d,o,p),i=!0,a||(l=ce(t,"click",e[9]),a=!0)},p(e,t){e[6]&&c.p(e,t);const n={};8192&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n),e[4]?u?(u.p(e,t),16&t&&Pe(u,1)):(u=Ut(e),u.c(),Pe(u,1),u.m(o.parentNode,o)):u&&(Be(),Ie(u,1,1,(()=>{u=null})),qe())},i(e){i||(Pe(c),Pe(r.$$.fragment,e),Pe(u),i=!0)},o(e){Ie(c),Ie(r.$$.fragment,e),Ie(u),i=!1},d(e){e&&re(t),c&&c.d(),He(r),e&&re(s),u&&u.d(e),e&&re(o),a=!1,l()}}}function Ht(e){let t;const n=e[11].summary,r=F(n,e,e[13],Mt);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,s){r&&r.p&&(!t||8192&s)&&W(r,n,e,e[13],t?V(n,e[13],s,It):J(e[13]),Mt)},i(e){t||(Pe(r,e),t=!0)},o(e){Ie(r,e),t=!1},d(e){r&&r.d(e)}}}function Dt(e){let t;const n=e[11].preview,r=F(n,e,e[13],Pt);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,s){r&&r.p&&(!t||8192&s)&&W(r,n,e,e[13],t?V(n,e[13],s,qt):J(e[13]),Pt)},i(e){t||(Pe(r,e),t=!0)},o(e){Ie(r,e),t=!1},d(e){r&&r.d(e)}}}function Ut(e){let t,n,r,s,o=e[0],i=[];for(let t=0;tIe(i[e],1,1,(()=>{i[e]=null}));return{c(){t=oe("ul");for(let e=0;e{};function Gt(e,t,n){let r,s,o,{$$slots:i={},$$scope:a}=t,{keys:l}=t,{shouldShowColon:c}=t,{expandKey:u=(e=>e)}=t,{defaultExpanded:d=!1}=t;const{isParentExpanded:p,displayMode:f,root:h,expanded:m,expandable:g,keyPath:v,level:$,shouldExpandNode:y}=vt({root:!1},{expandable:!0});if(U(e,m,(e=>n(4,s=e))),U(e,g,(e=>n(14,o=e))),K(g,o=!0,o),"summary"!==f){if(!d){const e=y({keyPath:v,level:$});void 0!==e&&(d=e)}$e((()=>p.subscribe((e=>{e?m.set(d):m.set(!1)}))))}return e.$$set=e=>{"keys"in e&&n(0,l=e.keys),"shouldShowColon"in e&&n(1,c=e.shouldShowColon),"expandKey"in e&&n(2,u=e.expandKey),"defaultExpanded"in e&&n(10,d=e.defaultExpanded),"$$scope"in e&&n(13,a=e.$$scope)},e.$$.update=()=>{1&e.$$.dirty&&n(3,r=l.map((()=>ct(!1))))},[l,c,u,r,s,f,h,m,g,function(){K(m,s=!s,s)},d,i,e=>r[e].update((e=>!e)),a]}class Kt extends Ue{constructor(e){super(),De(this,e,Gt,Wt,R,{keys:0,shouldShowColon:1,expandKey:2,defaultExpanded:10},jt)}}function Xt(e){te(e,"svelte-150ffaa",".comma.svelte-150ffaa{margin-left:-0.5em;margin-right:0.5em}")}function Zt(e,t,n){const r=e.slice();return r[7]=t[n],r[9]=n,r}const Qt=e=>({item:1&e}),Yt=e=>({item:e[7],index:e[9]});function en(e){let t,n,r=e[2]&&tn(e);return{c(){r&&r.c(),t=oe("span"),n=ie(e[3]),pe(t,"class","operator")},m(e,s){r&&r.m(e,s),ne(e,t,s),ee(t,n)},p(e,s){e[2]?r?r.p(e,s):(r=tn(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),8&s&&fe(n,e[3])},d(e){r&&r.d(e),e&&re(t)}}}function tn(e){let t,n;return{c(){t=oe("span"),n=ie(e[2]),pe(t,"class","label")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){4&t&&fe(n,e[2])},d(e){e&&re(t)}}}function nn(e){let t;return{c(){t=oe("span"),t.textContent=",",pe(t,"class","comma operator svelte-150ffaa")},m(e,n){ne(e,t,n)},d(e){e&&re(t)}}}function rn(e){let t,n,r;const s=e[6].item,o=F(s,e,e[5],Yt);let i=e[9]Ie(l[e],1,1,(()=>{l[e]=null}));let u=e[1]&&sn(),d=e[4]&&on(e);return{c(){i&&i.c(),t=ae();for(let e=0;e{"list"in e&&n(0,o=e.list),"hasMore"in e&&n(1,i=e.hasMore),"label"in e&&n(2,a=e.label),"prefix"in e&&n(3,l=e.prefix),"postfix"in e&&n(4,c=e.postfix),"$$scope"in e&&n(5,s=e.$$scope)},[o,i,a,l,c,s,r]}class cn extends Ue{constructor(e){super(),De(this,e,ln,an,R,{list:0,hasMore:1,label:2,prefix:3,postfix:4},Xt)}}function un(e){let t;return{c(){t=oe("span"),t.textContent="{…}",pe(t,"class","label")},m(e,n){ne(e,t,n)},p:N,d(e){e&&re(t)}}}function dn(e){let t,n,r,s,o,i=e[4]+"";return s=new ys({props:{value:e[0][e[4]]}}),{c(){t=oe("span"),n=ie(i),r=oe("span"),r.textContent=": ",Me(s.$$.fragment),pe(t,"class","property"),pe(r,"class","operator")},m(e,i){ne(e,t,i),ee(t,n),ne(e,r,i),Re(s,e,i),o=!0},p(e,t){(!o||16&t)&&i!==(i=e[4]+"")&&fe(n,i);const r={};17&t&&(r.value=e[0][e[4]]),s.$set(r)},i(e){o||(Pe(s.$$.fragment,e),o=!0)},o(e){Ie(s.$$.fragment,e),o=!1},d(e){e&&re(t),e&&re(r),He(s,e)}}}function pn(e){let t,n;return t=new cn({props:{list:e[2],hasMore:e[2].length({4:e}),({item:e})=>e?16:0]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.list=e[2]),6&n&&(r.hasMore=e[2].length({3:e}),({key:e})=>e?8:0],item_key:[fn,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[pn],summary:[un]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,[n]){const r={};2&n&&(r.keys=e[1]),47&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function gn(e,t,n){let r,s,{value:o}=t;return e.$$set=e=>{"value"in e&&n(0,o=e.value)},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=Object.getOwnPropertyNames(o)),2&e.$$.dirty&&n(2,s=r.slice(0,5))},[o,r,s]}class vn extends Ue{constructor(e){super(),De(this,e,gn,mn,R,{value:0})}}function $n(e){let t,n,r,s,o=e[0].length+"";return{c(){t=oe("span"),n=ie("Array("),r=ie(o),s=ie(")"),pe(t,"class","label")},m(e,o){ne(e,t,o),ee(t,n),ee(t,r),ee(t,s)},p(e,t){1&t&&o!==(o=e[0].length+"")&&fe(r,o)},d(e){e&&re(t)}}}function yn(e){let t,n;return t=new ys({props:{value:e[4]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.value=e[4]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function bn(e){let t,n;return t=new cn({props:{list:e[1],hasMore:e[1].length({4:e}),({item:e})=>e?16:0]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.list=e[1]),3&n&&(r.hasMore=e[1].length({3:e}),({key:e})=>e?8:0],item_key:[xn,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[bn],summary:[$n]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,[n]){const r={};4&n&&(r.keys=e[2]),43&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function En(e,t,n){let r,s,{value:o}=t;return e.$$set=e=>{"value"in e&&n(0,o=e.value)},e.$$.update=()=>{1&e.$$.dirty&&n(2,r=Object.getOwnPropertyNames(o)),1&e.$$.dirty&&n(1,s=o.slice(0,5))},[o,s,r]}class Sn extends Ue{constructor(e){super(),De(this,e,En,kn,R,{value:0})}}function _n(e){let t,n,r,s,o,i=e[3].length+"";return{c(){t=oe("span"),n=ie(e[1]),r=ie("("),s=ie(i),o=ie(")"),pe(t,"class","label")},m(e,i){ne(e,t,i),ee(t,n),ee(t,r),ee(t,s),ee(t,o)},p(e,t){2&t&&fe(n,e[1]),8&t&&i!==(i=e[3].length+"")&&fe(s,i)},d(e){e&&re(t)}}}function Cn(e){let t,n;return t=new ys({props:{value:e[8]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};256&n&&(r.value=e[8]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function Ln(e){let t,n;return t=new cn({props:{list:e[4],hasMore:e[4].length({8:e}),({item:e})=>e?256:0]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.list=e[4]),20&n&&(r.hasMore=e[4].length({7:e}),({key:e})=>e?128:0],item_key:[On,({key:e})=>({7:e}),({key:e})=>e?128:0]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.keys=e[3]),644&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function On(e){let t,n,r=e[7]+"";return{c(){t=oe("span"),n=ie(r),pe(t,"class","property")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){128&t&&r!==(r=e[7]+"")&&fe(n,r)},d(e){e&&re(t)}}}function Nn(e){let t,n;return t=new ys({props:{value:e[2][e[7]]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};132&n&&(r.value=e[2][e[7]]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function Bn(e){let t,n,r,s;const o=[An,Tn],i=[];function a(e,t){return e[6]===Pn?0:1}return t=a(e),n=i[t]=o[t](e),{c(){n.c(),r=le()},m(e,n){i[t].m(e,n),ne(e,r,n),s=!0},p(e,s){let l=t;t=a(e),t===l?i[t].p(e,s):(Be(),Ie(i[l],1,1,(()=>{i[l]=null})),qe(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),Pe(n,1),n.m(r.parentNode,r))},i(e){s||(Pe(n),s=!0)},o(e){Ie(n),s=!1},d(e){i[t].d(e),e&&re(r)}}}function qn(e){let t,n;return t=new Kt({props:{keys:[Pn,"size"],shouldShowColon:e[5],$$slots:{item_value:[Bn,({key:e})=>({6:e}),({key:e})=>e?64:0],item_key:[jn,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[Ln],summary:[_n]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,[n]){const r={};607&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}const Pn="[[Entries]]";function In(e,t,n){let r,{value:s}=t,{nodeType:o}=t,i=[],a=[];return e.$$set=e=>{"value"in e&&n(0,s=e.value),"nodeType"in e&&n(1,o=e.nodeType)},e.$$.update=()=>{if(1&e.$$.dirty){let e=[],t=[],r=0;for(const n of s)e.push(r++),t.push(n);n(3,i=e),n(2,a=t)}4&e.$$.dirty&&n(4,r=a.slice(0,5))},[s,o,a,i,r,e=>e!==Pn]}class Mn extends Ue{constructor(e){super(),De(this,e,In,qn,R,{value:0,nodeType:1})}}function Rn(e){let t,n,r,s,o=e[2].length+"";return{c(){t=oe("span"),n=ie("Map("),r=ie(o),s=ie(")"),pe(t,"color","label")},m(e,o){ne(e,t,o),ee(t,n),ee(t,r),ee(t,s)},p(e,t){4&t&&o!==(o=e[2].length+"")&&fe(r,o)},d(e){e&&re(t)}}}function Hn(e){let t,n,r,s;return t=new ys({props:{value:e[10]}}),r=new ys({props:{value:e[0].get(e[10])}}),{c(){Me(t.$$.fragment),n=oe("span"),n.textContent=" => ",Me(r.$$.fragment),pe(n,"class","operator")},m(e,o){Re(t,e,o),ne(e,n,o),Re(r,e,o),s=!0},p(e,n){const s={};1024&n&&(s.value=e[10]),t.$set(s);const o={};1025&n&&(o.value=e[0].get(e[10])),r.$set(o)},i(e){s||(Pe(t.$$.fragment,e),Pe(r.$$.fragment,e),s=!0)},o(e){Ie(t.$$.fragment,e),Ie(r.$$.fragment,e),s=!1},d(e){He(t,e),e&&re(n),He(r,e)}}}function Dn(e){let t,n;return t=new cn({props:{list:e[4],hasMore:e[4].length({10:e}),({item:e})=>e?1024:0]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.list=e[4]),17&n&&(r.hasMore=e[4].length({8:e}),({key:e})=>e?256:0],item_key:[Vn,({key:e})=>({8:e}),({key:e})=>e?256:0]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.keys=e[1]),4&n&&(r.expandKey=e[5]),2316&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function Vn(e){let t,n,r=e[8]+"";return{c(){t=oe("span"),n=ie(r),pe(t,"class","property")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){256&t&&r!==(r=e[8]+"")&&fe(n,r)},d(e){e&&re(t)}}}function Wn(e){let t,n,r,s,o,i;return n=new ys({props:{value:e[2][e[8]]}}),s=new ys({props:{value:e[3][e[8]]}}),{c(){t=oe("span"),t.textContent="{ ",Me(n.$$.fragment),r=oe("span"),r.textContent=" => ",Me(s.$$.fragment),o=oe("span"),o.textContent=" }",pe(t,"class","operator"),pe(r,"class","operator"),pe(o,"class","operator")},m(e,a){ne(e,t,a),Re(n,e,a),ne(e,r,a),Re(s,e,a),ne(e,o,a),i=!0},p(e,t){const r={};260&t&&(r.value=e[2][e[8]]),n.$set(r);const o={};264&t&&(o.value=e[3][e[8]]),s.$set(o)},i(e){i||(Pe(n.$$.fragment,e),Pe(s.$$.fragment,e),i=!0)},o(e){Ie(n.$$.fragment,e),Ie(s.$$.fragment,e),i=!1},d(e){e&&re(t),He(n,e),e&&re(r),He(s,e),e&&re(o)}}}function Jn(e){let t,n,r=e[9]+"";return{c(){t=oe("span"),n=ie(r),pe(t,"class","property")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){512&t&&r!==(r=e[9]+"")&&fe(n,r)},d(e){e&&re(t)}}}function Gn(e){let t,n;return t=new ys({props:{value:"key"===e[9]?e[2][e[8]]:e[3][e[8]]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};780&n&&(r.value="key"===e[9]?e[2][e[8]]:e[3][e[8]]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function Kn(e){let t,n;return t=new Kt({props:{keys:["key","value"],$$slots:{item_value:[Gn,({key:e})=>({9:e}),({key:e})=>e?512:0],item_key:[Jn,({key:e})=>({9:e}),({key:e})=>e?512:0],preview:[Wn]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};2828&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function Xn(e){let t,n,r,s;const o=[zn,Fn],i=[];function a(e,t){return e[7]===Qn?0:1}return t=a(e),n=i[t]=o[t](e),{c(){n.c(),r=le()},m(e,n){i[t].m(e,n),ne(e,r,n),s=!0},p(e,s){let l=t;t=a(e),t===l?i[t].p(e,s):(Be(),Ie(i[l],1,1,(()=>{i[l]=null})),qe(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),Pe(n,1),n.m(r.parentNode,r))},i(e){s||(Pe(n),s=!0)},o(e){Ie(n),s=!1},d(e){i[t].d(e),e&&re(r)}}}function Zn(e){let t,n;return t=new Kt({props:{keys:[Qn,"size"],shouldShowColon:e[6],$$slots:{item_value:[Xn,({key:e})=>({7:e}),({key:e})=>e?128:0],item_key:[Un,({key:e})=>({7:e}),({key:e})=>e?128:0],preview:[Dn],summary:[Rn]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,[n]){const r={};2207&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}const Qn="[[Entries]]";function Yn(e,t,n){let r,{value:s}=t;vt();let o=[],i=[],a=[];return e.$$set=e=>{"value"in e&&n(0,s=e.value)},e.$$.update=()=>{if(1&e.$$.dirty){let e=[],t=[],r=[],l=0;for(const n of s)e.push(l++),t.push(n[0]),r.push(n[1]);n(1,o=e),n(2,i=t),n(3,a=r)}1&e.$$.dirty&&n(4,r=Array.from(s.keys()).slice(0,5))},[s,o,i,a,r,e=>i[e],e=>e!==Qn]}class er extends Ue{constructor(e){super(),De(this,e,Yn,Zn,R,{value:0})}}function tr(e){te(e,"svelte-l95iub",".Date.svelte-l95iub{color:var(--date-color)}.BigInt.svelte-l95iub{color:var(--number-color)}.Number.svelte-l95iub{color:var(--number-color)}.Boolean.svelte-l95iub{color:var(--boolean-color)}.Null.svelte-l95iub{color:var(--null-color)}.Undefined.svelte-l95iub{color:var(--undefined-color)}.Symbol.svelte-l95iub{color:var(--symbol-color)}")}function nr(e){let t,n,r;return{c(){t=oe("span"),n=ie(e[0]),pe(t,"class",r=G(e[1])+" svelte-l95iub")},m(e,r){ne(e,t,r),ee(t,n)},p(e,[s]){1&s&&fe(n,e[0]),2&s&&r!==(r=G(e[1])+" svelte-l95iub")&&pe(t,"class",r)},i:N,o:N,d(e){e&&re(t)}}}function rr(e,t,n){let{value:r,nodeType:s}=t;return e.$$set=e=>{"value"in e&&n(0,r=e.value),"nodeType"in e&&n(1,s=e.nodeType)},[r,s]}class sr extends Ue{constructor(e){super(),De(this,e,rr,nr,R,{value:0,nodeType:1},tr)}}function or(e){te(e,"svelte-1u08yw6",".indent.svelte-1u08yw6{padding-left:var(--li-identation)}")}function ir(e,t,n){const r=e.slice();r[6]=t[n],r[9]=n;const s=r[9]Ie(s[e],1,1,(()=>{s[e]=null}));return{c(){for(let e=0;e0)},m(e,a){ne(e,t,a),Re(n,t,null),ee(t,r),ee(r,s),ne(e,o,a),i=!0},p(e,t){const r={};1&t&&(r.value=e[6]+(e[7]?"\\n":"")),n.$set(r),(!i||1&t)&&a!==(a=e[7]?" +":"")&&fe(s,a)},i(e){i||(Pe(n.$$.fragment,e),i=!0)},o(e){Ie(n.$$.fragment,e),i=!1},d(e){e&&re(t),He(n),e&&re(o)}}}function ur(e){let t,n,r,s,o,i;const a=[lr,ar],l=[];function c(e,t){return e[1]?0:1}return n=c(e),r=l[n]=a[n](e),{c(){t=oe("span"),r.c()},m(r,a){ne(r,t,a),l[n].m(t,null),s=!0,o||(i=ce(t,"click",e[4]),o=!0)},p(e,[s]){let o=n;n=c(e),n===o?l[n].p(e,s):(Be(),Ie(l[o],1,1,(()=>{l[o]=null})),qe(),r=l[n],r?r.p(e,s):(r=l[n]=a[n](e),r.c()),Pe(r,1),r.m(t,null))},i(e){s||(Pe(r),s=!0)},o(e){Ie(r),s=!1},d(e){e&&re(t),l[n].d(),o=!1,i()}}}function dr(e,t,n){let r,s,{stack:o}=t;const{expanded:i,expandable:a}=vt();return U(e,i,(e=>n(1,s=e))),U(e,a,(e=>n(5,r=e))),K(a,r=!0,r),e.$$set=e=>{"stack"in e&&n(0,o=e.stack)},[o,s,i,a,()=>K(i,s=!s,s)]}class pr extends Ue{constructor(e){super(),De(this,e,dr,ur,R,{stack:0},or)}}function fr(e){let t,n,r,s=String(e[0].message)+"";return{c(){t=oe("span"),n=ie("Error: "),r=ie(s),pe(t,"class","label")},m(e,s){ne(e,t,s),ee(t,n),ee(t,r)},p(e,t){1&t&&s!==(s=String(e[0].message)+"")&&fe(r,s)},d(e){e&&re(t)}}}function hr(e){let t,n,r,s=String(e[0].message)+"";return{c(){t=oe("span"),n=ie("Error: "),r=ie(s),pe(t,"class","label")},m(e,s){ne(e,t,s),ee(t,n),ee(t,r)},p(e,t){1&t&&s!==(s=String(e[0].message)+"")&&fe(r,s)},d(e){e&&re(t)}}}function mr(e){let t,n,r=e[2]+"";return{c(){t=oe("span"),n=ie(r),pe(t,"class","property")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){4&t&&r!==(r=e[2]+"")&&fe(n,r)},d(e){e&&re(t)}}}function gr(e){let t,n;return t=new ys({props:{value:e[0][e[2]]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};5&n&&(r.value=e[0][e[2]]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function vr(e){let t,n;return t=new pr({props:{stack:e[1]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.stack=e[1]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function $r(e){let t,n,r,s;const o=[vr,gr],i=[];function a(e,t){return"stack"===e[2]?0:1}return t=a(e),n=i[t]=o[t](e),{c(){n.c(),r=le()},m(e,n){i[t].m(e,n),ne(e,r,n),s=!0},p(e,s){let l=t;t=a(e),t===l?i[t].p(e,s):(Be(),Ie(i[l],1,1,(()=>{i[l]=null})),qe(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),Pe(n,1),n.m(r.parentNode,r))},i(e){s||(Pe(n),s=!0)},o(e){Ie(n),s=!1},d(e){i[t].d(e),e&&re(r)}}}function yr(e){let t,n;return t=new Kt({props:{keys:["message","stack"],$$slots:{item_value:[$r,({key:e})=>({2:e}),({key:e})=>e?4:0],item_key:[mr,({key:e})=>({2:e}),({key:e})=>e?4:0],preview:[hr],summary:[fr]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,[n]){const r={};15&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function br(e,t,n){let r,{value:s}=t;return e.$$set=e=>{"value"in e&&n(0,s=e.value)},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=s.stack.split("\n"))},[s,r]}class xr extends Ue{constructor(e){super(),De(this,e,br,yr,R,{value:0})}}function wr(e){te(e,"svelte-1fvwa9c","span.svelte-1fvwa9c{color:var(--string-color);word-break:break-all;word-wrap:break-word}")}function kr(e){let t,n,r,s;return{c(){t=oe("span"),n=ie('"'),r=ie(e[0]),s=ie('"'),pe(t,"class","svelte-1fvwa9c")},m(e,o){ne(e,t,o),ee(t,n),ee(t,r),ee(t,s)},p(e,t){1&t&&fe(r,e[0])},d(e){e&&re(t)}}}function Er(e){let t,n,r,s,o=e[0].slice(0,30)+(e[0].length>30?"…":"");return{c(){t=oe("span"),n=ie('"'),r=ie(o),s=ie('"'),pe(t,"class","svelte-1fvwa9c")},m(e,o){ne(e,t,o),ee(t,n),ee(t,r),ee(t,s)},p(e,t){1&t&&o!==(o=e[0].slice(0,30)+(e[0].length>30?"…":""))&&fe(r,o)},d(e){e&&re(t)}}}function Sr(e){let t,n=("summary"===e[1]?Er:kr)(e);return{c(){n.c(),t=le()},m(e,r){n.m(e,r),ne(e,t,r)},p(e,[t]){n.p(e,t)},i:N,o:N,d(e){n.d(e),e&&re(t)}}}function _r(e,t,n){let r,{value:s}=t;const o={"\n":"\\n","\t":"\\t","\r":"\\r"},{displayMode:i}=vt();return e.$$set=e=>{"value"in e&&n(2,s=e.value)},e.$$.update=()=>{4&e.$$.dirty&&n(0,r=s.replace(/[\n\t\r]/g,(e=>o[e])))},[r,i,s]}class Cr extends Ue{constructor(e){super(),De(this,e,_r,Sr,R,{value:2},wr)}}function Lr(e){te(e,"svelte-1eamqdt",".i.svelte-1eamqdt{font-style:italic}.fn.svelte-1eamqdt,.i.svelte-1eamqdt{color:var(--function-color)}")}function jr(e){let t;return{c(){t=oe("span"),t.textContent="ƒ",pe(t,"class","i svelte-1eamqdt")},m(e,n){ne(e,t,n)},d(e){e&&re(t)}}}function Tr(e){let t,n,r=Dr(e[2])+"";return{c(){t=oe("span"),n=ie(r),pe(t,"class","fn i svelte-1eamqdt")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){4&t&&r!==(r=Dr(e[2])+"")&&fe(n,r)},d(e){e&&re(t)}}}function Ar(e){let t,n,r=Ur(e[2])+"";return{c(){t=oe("span"),n=ie(r),pe(t,"class","i svelte-1eamqdt")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){4&t&&r!==(r=Ur(e[2])+"")&&fe(n,r)},d(e){e&&re(t)}}}function Or(e){let t,n,r=!e[2].isArrow&&Tr(e),s=!e[2].isClass&&Ar(e);return{c(){r&&r.c(),t=le(),s&&s.c(),n=le()},m(e,o){r&&r.m(e,o),ne(e,t,o),s&&s.m(e,o),ne(e,n,o)},p(e,o){e[2].isArrow?r&&(r.d(1),r=null):r?r.p(e,o):(r=Tr(e),r.c(),r.m(t.parentNode,t)),e[2].isClass?s&&(s.d(1),s=null):s?s.p(e,o):(s=Ar(e),s.c(),s.m(n.parentNode,n))},d(e){r&&r.d(e),e&&re(t),s&&s.d(e),e&&re(n)}}}function Nr(e){let t,n,r,s=e[7]+"";return{c(){t=oe("span"),n=ie(s),pe(t,"class",r=e[7]===Rr||e[7]===Hr?"internal":"property")},m(e,r){ne(e,t,r),ee(t,n)},p(e,o){128&o&&s!==(s=e[7]+"")&&fe(n,s),128&o&&r!==(r=e[7]===Rr||e[7]===Hr?"internal":"property")&&pe(t,"class",r)},d(e){e&&re(t)}}}function Br(e){let t,n;return t=new ys({props:{value:e[3](e[7])}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};128&n&&(r.value=e[3](e[7])),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function qr(e){let t,n;return t=new vn({props:{value:e[3](e[7])}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};128&n&&(r.value=e[3](e[7])),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function Pr(e){let t,n;return{c(){t=oe("span"),n=ie(e[0]),pe(t,"class","i svelte-1eamqdt")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){1&t&&fe(n,e[0])},i:N,o:N,d(e){e&&re(t)}}}function Ir(e){let t,n,r,s;const o=[Pr,qr,Br],i=[];function a(e,t){return e[7]===Rr?0:"prototype"===e[7]?1:2}return t=a(e),n=i[t]=o[t](e),{c(){n.c(),r=le()},m(e,n){i[t].m(e,n),ne(e,r,n),s=!0},p(e,s){let l=t;t=a(e),t===l?i[t].p(e,s):(Be(),Ie(i[l],1,1,(()=>{i[l]=null})),qe(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),Pe(n,1),n.m(r.parentNode,r))},i(e){s||(Pe(n),s=!0)},o(e){Ie(n),s=!1},d(e){i[t].d(e),e&&re(r)}}}function Mr(e){let t,n;return t=new Kt({props:{keys:e[1],$$slots:{item_value:[Ir,({key:e})=>({7:e}),({key:e})=>e?128:0],item_key:[Nr,({key:e})=>({7:e}),({key:e})=>e?128:0],preview:[Or],summary:[jr]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,[n]){const r={};2&n&&(r.keys=e[1]),389&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}const Rr="[[Function]]",Hr="[[Prototype]]";function Dr({isGenerator:e,isAsync:t,isClass:n}){return n?`class ${n}`:(t?"async ":"")+"ƒ"+(e?"*":"")}function Ur({isAsync:e,isArrow:t,fnName:n,args:r}){return(t&&e?"async":"")+" "+(null!=n?n:"")+r+(t?" => …":"")}function Fr(e,t,n){let r,s,o,{value:i}=t;function a(e){return e===Hr?i.__proto__:i[e]}return e.$$set=e=>{"value"in e&&n(4,i=e.value)},e.$$.update=()=>{16&e.$$.dirty&&n(0,r=function(e){try{return e.toString()}catch{switch(e.constructor.name){case"AsyncFunction":return"async function () {}";case"AsyncGeneratorFunction":return"async function * () {}";case"GeneratorFunction:":return"function * () {}";default:return"function () {}"}}}(i)),1&e.$$.dirty&&n(2,s=function(e){const t=e.match(/^(?:(async)\s+)?(?:function)?(\*)?\s*([^(]+)?(\([^)]*\))\s*(=>)?/),n=null==t?void 0:t[1],r=null==t?void 0:t[2],s=null==t?void 0:t[3],o=null==t?void 0:t[4],i=null==t?void 0:t[5],a=e.match(/^class\s+([^\s]+)/);return{args:o,isAsync:n,isGenerator:r,fnName:s,isArrow:i,isClass:null==a?void 0:a[1]}}(r))},n(1,o=["length","name","prototype",Rr,Hr].filter((function(e){return e===Rr||a(e)}))),[r,o,s,a,i]}class zr extends Ue{constructor(e){super(),De(this,e,Fr,Mr,R,{value:4},Lr)}}function Vr(e){let t,n,r,s,o,i=e[3]?"writable(":"readable(";return r=new ys({props:{value:e[2]}}),{c(){t=oe("span"),n=ie(i),Me(r.$$.fragment),s=ie(")"),pe(t,"class","label")},m(e,i){ne(e,t,i),ee(t,n),Re(r,t,null),ee(t,s),o=!0},p(e,t){(!o||8&t)&&i!==(i=e[3]?"writable(":"readable(")&&fe(n,i);const s={};4&t&&(s.value=e[2]),r.$set(s)},i(e){o||(Pe(r.$$.fragment,e),o=!0)},o(e){Ie(r.$$.fragment,e),o=!1},d(e){e&&re(t),He(r)}}}function Wr(e){let t,n,r,s,o,i=e[9]+"";return s=new ys({props:{value:e[0][e[9]]}}),{c(){t=oe("span"),n=ie(i),r=oe("span"),r.textContent=": ",Me(s.$$.fragment),pe(t,"class","property"),pe(r,"class","operator")},m(e,i){ne(e,t,i),ee(t,n),ne(e,r,i),Re(s,e,i),o=!0},p(e,t){(!o||512&t)&&i!==(i=e[9]+"")&&fe(n,i);const r={};513&t&&(r.value=e[0][e[9]]),s.$set(r)},i(e){o||(Pe(s.$$.fragment,e),o=!0)},o(e){Ie(s.$$.fragment,e),o=!1},d(e){e&&re(t),e&&re(r),He(s,e)}}}function Jr(e){let t,n;return t=new cn({props:{list:e[4],hasMore:e[4].length({9:e}),({item:e})=>e?512:0]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.list=e[4]),18&n&&(r.hasMore=e[4].length({8:e}),({key:e})=>e?256:0],item_key:[Gr,({key:e})=>({8:e}),({key:e})=>e?256:0],preview:[Jr],summary:[Vr]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,[n]){const r={};32&n&&(r.keys=e[5]),1311&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}const Zr="$value";function Qr(e,t,n){let r,s,o,i,a,l,c=N,u=()=>(c(),c=D(d,(e=>n(7,l=e))),d);e.$$.on_destroy.push((()=>c()));let{value:d}=t;return u(),e.$$set=e=>{"value"in e&&u(n(0,d=e.value))},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=Object.getOwnPropertyNames(d)),2&e.$$.dirty&&n(5,s=[Zr,...r]),2&e.$$.dirty&&n(4,o=r.slice(0,5)),128&e.$$.dirty&&n(2,i=l),1&e.$$.dirty&&n(3,a="function"==typeof d.set)},[d,r,i,a,o,s,function(e){return e===Zr?i:d[e]},l]}class Yr extends Ue{constructor(e){super(),De(this,e,Qr,Xr,R,{value:0})}}function es(e){let t,n,r,s,o,i=e[0].length+"";return{c(){t=oe("span"),n=ie(e[1]),r=ie("("),s=ie(i),o=ie(")"),pe(t,"class","label")},m(e,i){ne(e,t,i),ee(t,n),ee(t,r),ee(t,s),ee(t,o)},p(e,t){2&t&&fe(n,e[1]),1&t&&i!==(i=e[0].length+"")&&fe(s,i)},d(e){e&&re(t)}}}function ts(e){let t,n;return t=new ys({props:{value:e[7]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};128&n&&(r.value=e[7]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function ns(e){let t,n;return t=new cn({props:{list:e[2],hasMore:e[2].length({7:e}),({item:e})=>e?128:0]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.list=e[2]),5&n&&(r.hasMore=e[2].length({6:e}),({key:e})=>e?64:0],item_key:[rs,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[ns],summary:[es]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,[n]){const r={};8&n&&(r.keys=e[3]),327&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}const is="Symbol(Symbol.toStringTag)";function as(e,t,n){let r,s,{value:o}=t,{nodeType:i}=t;const a=["buffer","byteLength","byteOffset","length",is];return e.$$set=e=>{"value"in e&&n(0,o=e.value),"nodeType"in e&&n(1,i=e.nodeType)},e.$$.update=()=>{1&e.$$.dirty&&n(3,r=[...Object.getOwnPropertyNames(o),...a]),1&e.$$.dirty&&n(2,s=o.slice(0,5))},[o,i,s,r,a,function(e){return e===is?o[Symbol.toStringTag]:o[e]}]}class ls extends Ue{constructor(e){super(),De(this,e,as,os,R,{value:0,nodeType:1})}}function cs(e){te(e,"svelte-17k1wqt",".regex.svelte-17k1wqt{color:var(--regex-color)}")}function us(e){let t,n;return{c(){t=oe("span"),n=ie(e[1]),pe(t,"class","regex svelte-17k1wqt")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){2&t&&fe(n,e[1])},d(e){e&&re(t)}}}function ds(e){let t,n;return{c(){t=oe("span"),n=ie(e[1]),pe(t,"class","regex svelte-17k1wqt")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){2&t&&fe(n,e[1])},d(e){e&&re(t)}}}function ps(e){let t,n,r=String(e[3])+"";return{c(){t=oe("span"),n=ie(r),pe(t,"class","internal")},m(e,r){ne(e,t,r),ee(t,n)},p(e,t){8&t&&r!==(r=String(e[3])+"")&&fe(n,r)},d(e){e&&re(t)}}}function fs(e){let t,n;return t=new ys({props:{value:e[0][e[3]]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};9&n&&(r.value=e[0][e[3]]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function hs(e){let t,n;return t=new Kt({props:{keys:e[2],$$slots:{item_value:[fs,({key:e})=>({3:e}),({key:e})=>e?8:0],item_key:[ps,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[ds],summary:[us]},$$scope:{ctx:e}}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,[n]){const r={};27&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function ms(e,t,n){let r,{value:s}=t;return e.$$set=e=>{"value"in e&&n(0,s=e.value)},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=s.toString())},[s,r,["lastIndex","dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"]]}class gs extends Ue{constructor(e){super(),De(this,e,ms,hs,R,{value:0},cs)}}function vs(e){let t,n,r;const s=[{value:e[0]},e[1]];var o=e[2];function i(e){let t={};for(let e=0;e{He(e,1)})),qe()}o?(t=new o(i()),Me(t.$$.fragment),Pe(t.$$.fragment,1),Re(t,n.parentNode,n)):t=null}else o&&t.$set(a)},i(e){r||(t&&Pe(t.$$.fragment,e),r=!0)},o(e){t&&Ie(t.$$.fragment,e),r=!1},d(e){e&&re(n),t&&He(t,e)}}}function $s(e,t,n){let r,s,o,{value:i}=t;const a=ct();return U(e,a,(e=>n(4,o=e))),e.$$set=e=>{"value"in e&&n(0,i=e.value)},e.$$.update=()=>{1&e.$$.dirty&&K(a,o=function(e){const t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t?"function"==typeof e[Symbol.iterator]?"Iterable":e.constructor.name:t}(i),o),17&e.$$.dirty&&n(2,[r,s]=function(e,t){switch(e){case"Object":return"function"==typeof t.subscribe?[Yr]:[vn];case"Error":return[xr];case"Array":return[Sn];case"Map":return[er];case"Iterable":case"Set":return[Mn,{nodeType:e}];case"Number":return[sr,{nodeType:e}];case"String":return[Cr];case"Boolean":return[sr,{nodeType:e,value:t?"true":"false"}];case"Date":return[sr,{nodeType:e,value:t.toISOString()}];case"Null":return[sr,{nodeType:e,value:"null"}];case"Undefined":return[sr,{nodeType:e,value:"undefined"}];case"Function":case"AsyncFunction":case"AsyncGeneratorFunction":case"GeneratorFunction":return[zr];case"Symbol":return[sr,{nodeType:e,value:t.toString()}];case"BigInt":return[sr,{nodeType:e,value:String(t)+"n"}];case"ArrayBuffer":return[sr,{nodeType:e,value:`ArrayBuffer(${t.byteLength})`}];case"BigInt64Array":case"BigUint64Array":case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint8ClampedArray":case"Uint16Array":case"Uint32Array":return[ls,{nodeType:e}];case"RegExp":return[gs];default:return[sr,{nodeType:e,value:`<${e}>`}]}}(o,i),r,(n(1,s),n(4,o),n(0,i)))},[i,s,r,a,o]}class ys extends Ue{constructor(e){super(),De(this,e,$s,vs,R,{value:0})}}function bs(e){te(e,"svelte-16cw61f","ul.svelte-16cw61f{--string-color:var(--json-tree-string-color, #cb3f41);--symbol-color:var(--json-tree-symbol-color, #cb3f41);--boolean-color:var(--json-tree-boolean-color, #112aa7);--function-color:var(--json-tree-function-color, #112aa7);--number-color:var(--json-tree-number-color, #3029cf);--label-color:var(--json-tree-label-color, #871d8f);--property-color:var(--json-tree-property-color, #000000);--arrow-color:var(--json-tree-arrow-color, #727272);--operator-color:var(--json-tree-operator-color, #727272);--null-color:var(--json-tree-null-color, #8d8d8d);--undefined-color:var(--json-tree-undefined-color, #8d8d8d);--date-color:var(--json-tree-date-color, #8d8d8d);--internal-color:var(--json-tree-internal-color, grey);--regex-color:var(--json-tree-regex-color, var(--string-color));--li-identation:var(--json-tree-li-indentation, 1em);--li-line-height:var(--json-tree-li-line-height, 1.3);font-size:var(--json-tree-font-size, 12px);font-family:var(--json-tree-font-family, 'Courier New', Courier, monospace)}ul.svelte-16cw61f li{line-height:var(--li-line-height);display:var(--li-display, list-item);list-style:none}ul.svelte-16cw61f,ul.svelte-16cw61f ul{padding:0;margin:0}ul.svelte-16cw61f{margin-left:var(--li-identation)}ul.svelte-16cw61f{cursor:default}ul.svelte-16cw61f .label{color:var(--label-color)}ul.svelte-16cw61f .property{color:var(--property-color)}ul.svelte-16cw61f .internal{color:var(--internal-color)}ul.svelte-16cw61f .operator{color:var(--operator-color)}")}function xs(e){let t,n;return t=new ys({props:{value:e[0]}}),{c(){Me(t.$$.fragment)},m(e,r){Re(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.value=e[0]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){He(t,e)}}}function ws(e){let t,n,r;return n=new Lt({props:{key:"$",expanded:e[1],$$slots:{default:[xs]},$$scope:{ctx:e}}}),{c(){t=oe("ul"),Me(n.$$.fragment),pe(t,"class","svelte-16cw61f")},m(e,s){ne(e,t,s),Re(n,t,null),r=!0},p(e,[t]){const r={};33&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(Pe(n.$$.fragment,e),r=!0)},o(e){Ie(n.$$.fragment,e),r=!1},d(e){e&&re(t),He(n)}}}function ks(e,t,n){let r,{value:s}=t,{defaultExpandedPaths:o=[]}=t,{defaultExpandedLevel:i=0}=t;const a=ct(!0);return vt({expanded:a,isParentExpanded:lt(!0),root:!0,shouldExpandNode:e=>r(e),level:0,keyPath:[]}),e.$$set=e=>{"value"in e&&n(0,s=e.value),"defaultExpandedPaths"in e&&n(2,o=e.defaultExpandedPaths),"defaultExpandedLevel"in e&&n(3,i=e.defaultExpandedLevel)},e.$$.update=()=>{12&e.$$.dirty&&(r=function({defaultExpandedPaths:e,defaultExpandedLevel:t}){const n=e.map((e=>e.split(".")));return function({keyPath:e,level:r}){return r<=t||function(e){e:for(const t of n){if(e.length>t.length)continue;const n=Math.min(e.length,t.length);for(let r=0;r{"value"in e&&n(0,r=e.value),"level"in e&&n(1,s=e.level)},[r,s]}const Cs=class extends Ue{constructor(e){super(),De(this,e,_s,Ss,R,{value:0,level:1})}};class Ls{constructor(e){var t;this.element=e,this.value=null!==(t=e.dataset.json)&&void 0!==t?t:"",this.level=e.dataset.level?parseInt(e.dataset.level):0,this.initEventHandlers()}initEventHandlers(){let e=document.createElement("div");this.element.innerText="",this.element.append(e),this.component=new Cs({target:e,props:{value:JSON.parse(this.value),level:this.level}})}}let js=m();js.registerService("Modals",new class{constructor(){this.modals={},this.number=0,this.defaults={modal:O},this.initGlobalEvents()}register(e,t=""){return t||(t="m"+this.number),this.modals[t]=e,this.number++,e}get(e){return this.modals.hasOwnProperty(e)?this.modals[e]:null}open(e){var t;null===(t=this.get(e))||void 0===t||t.open()}close(e){var t;null===(t=this.get(e))||void 0===t||t.close()}closeAll(){for(let e in this.modals)this.close(e)}initGlobalEvents(){document.addEventListener("click",(e=>{let t=e.target;t.dataset.acModal&&(e.preventDefault(),this.open(t.dataset.acModal))}))}}),js.registerService("tooltips",x),js.registerService("initPointers",Ge),document.addEventListener("DOMContentLoaded",(()=>{let e=(e=>{let t=document.querySelector(e);return t?"TABLE"===t.tagName?t:"TBODY"===t.tagName?t.closest("table"):t.querySelector("table.wp-list-table")?t.querySelector("table.wp-list-table"):null:null})(AC.table_id);if(Ge(),e){const t=new b(e,js).init();js.registerService("Table",t),js.registerService("ScreenOptionsColumns",new S(t.Columns))}js.registerService("Tooltips",new E),document.querySelectorAll(".ac-toggle-box-link").forEach((e=>{new C(e)})),j()(".wp-list-table").on("updated","tr",(function(){js.getService("Table").addCellClasses(),T()}))})),js.addListener($,(e=>{T(),document.querySelectorAll(".cpac_use_icons").forEach((e=>{var t;null===(t=null==e?void 0:e.parentElement)||void 0===t||t.querySelectorAll(".row-actions a").forEach((e=>{new w(e,e.innerText)}))})),new MutationObserver((e=>{e.forEach((e=>{e.addedNodes.forEach((e=>{"TR"===e.tagName&&e.classList.contains("iedit")&&j()(e).trigger("updated",{id:g(e),row:e})}))}))})).observe(e.table.getElement(),{childList:!0,subtree:!0}),e.table.Cells.getAll().forEach((e=>{e.events.addListener("setValue",(()=>{T()}))}));let t={};e.table.getElement().querySelectorAll("td [data-modal-value]").forEach((n=>{var r,s,o,i;let a=e.table.Cells.getByElement(null!==(r=n.closest("td"))&&void 0!==r?r:document.createElement("td"));a&&(t.hasOwnProperty(a.getName())||(t[a.getName()]=[]),t[a.getName()].push({element:n,editLink:null!==(s=n.dataset.modalEditLink)&&void 0!==s?s:"",downloadLink:null!==(o=n.dataset.modalDownloadLink)&&void 0!==o?o:"",title:null!==(i=n.dataset.modalTitle)&&void 0!==i?i:null,columnName:a.getName(),objectId:a.getObjectID()}))})),Object.keys(t).forEach((e=>new it(t[e]))),document.querySelectorAll('[data-component="ac-json"]').forEach((e=>{new Ls(e)}))}))})()})(); \ No newline at end of file +(()=>{var e={204:e=>{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,n,r){t(e!=n,r)},t.notOk=function(e,n){t(!e,n)},t.equal=function(e,n,r){t(e==n,r)},t.ok=t,e.exports=t},559:(e,t,n)=>{var r=n(69),s=n(999),o=n(204);function i(e){if(!(this instanceof i))return new i(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=i,i.prototype.emit=function(e){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.emit: eventName should be type string or symbol");for(var t=[],n=1,r=arguments.length;n0&&this._emit(this._listeners[e],t),this._starListeners.length>0&&this._emit(this._starListeners,e,t,i.uuid),i(),this},i.prototype.on=i.prototype.addListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.on: listener should be type function"),"*"===e?this._starListeners.push(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)),this},i.prototype.prependListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.prependListener: listener should be type function"),"*"===e?this._starListeners.unshift(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].unshift(t)),this},i.prototype.once=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.once: listener should be type function");var n=this;return this.on(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},i.prototype.prependOnceListener=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},i.prototype.removeListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),o.equal(typeof t,"function","nanobus.removeListener: listener should be type function"),"*"===e?(this._starListeners=this._starListeners.slice(),n(this._starListeners,t)):(void 0!==this._listeners[e]&&(this._listeners[e]=this._listeners[e].slice()),n(this._listeners[e],t));function n(e,t){if(e){var n=e.indexOf(t);return-1!==n?(r(e,n,1),!0):void 0}}},i.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},i.prototype.listeners=function(e){var t="*"!==e?this._listeners[e]:this._starListeners,n=[];if(t)for(var r=t.length,s=0;s{var r=n(204),s="undefined"!=typeof window;function o(e){this.hasWindow=e,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}o.prototype.push=function(e){r.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},o.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var e=this;this.method((function(t){for(;e.queue.length&&t.timeRemaining()>0;)e.queue.shift()(t);e.scheduled=!1,e.queue.length&&e.schedule()}))}},o.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return s?(window._nanoScheduler||(window._nanoScheduler=new o(!0)),e=window._nanoScheduler):e=new o,e}},999:(e,t,n)=>{var r,s=n(61)(),o=n(204);i.disabled=!0;try{r=window.performance,i.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(e){}function i(e){if(o.equal(typeof e,"string","nanotiming: name should be type string"),i.disabled)return l;var t=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function a(o){var i="end-"+t+"-"+e;r.mark(i),s.push((function(){var s=null;try{var l=e+" ["+t+"]";r.measure(l,n,i),r.clearMarks(n),r.clearMarks(i)}catch(e){s=e}o&&o(s,e)}))}return r.mark(n),a.uuid=t,a}function l(e){e&&s.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=i},69:e=>{"use strict";e.exports=function(e,t,n){var r,s=e.length;if(!(t>=s||0===n)){var o=s-(n=t+n>s?s-t:n);for(r=t;r{"use strict";e.exports=jQuery}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=(e,t)=>{var n;null===(n=null==t?void 0:t.parentNode)||void 0===n||n.insertBefore(e,t.nextSibling)};class t{constructor(e){this.element=e}static find(e){let n=document.querySelector(e);return null===n?null:new t(n)}static create(e){return new t(document.createElement(e))}getElement(){return this.element}addId(e){return this.element.id=e,this}toggleClass(e,t=null){return null===t?this.element.classList.contains(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClasses(e)}addClass(e){return this.element.classList.add(e),this}addClasses(...e){return e.forEach((e=>this.addClass(e))),this}removeClasses(...e){return e.forEach((e=>this.removeClass(e))),this}removeClass(e){return this.element.classList.remove(e),this}setAttribute(e,t){return this.element.setAttribute(e,t),this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}addHtml(e){return this.element.innerHTML=e,this}append(e){return this.element.appendChild(e),this}appendFound(e){return document.querySelectorAll(e).forEach((e=>this.append(e))),this}appendSelfTo(e){return e.append(this.element),this}prepend(e){return this.element.prepend(e),this}prependSelfTo(e){return e.prepend(this.element),this}css(e,t){return this.element.style[e]=t,this}insertAfter(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element.nextElementSibling)}catch(e){console.error("Not able to insert element after current node",this.element)}}insertSelfBefore(e){var t;try{null===(t=e.parentElement)||void 0===t||t.insertBefore(this.element,e)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}insertBefore(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}addEventListener(e,t){return this.element.addEventListener(e,t),this}addEventListeners(e,t){return e.forEach((e=>this.addEventListener(e,t))),this}$(){return this.getElement()}}class r{constructor(e){this.el=e,this.visible=!0}toggle(e){return this.visible=e,this}isHidden(){return!this.visible}getElement(){return new t(this.el)}setTooltip(e){return this.el.dataset.acTip=e,this}static createWithMarkup(e,n){return new r(t.create("a").setAttribute("data-slug",e).addClasses("ac-table-button").addHtml(n).getElement())}}class s{constructor(e){this.data=e}add(e,t){t in this.data||(this.data[t]=[]),this.data[t].push(e)}getById(e){this.getButtons().find((t=>t.getElement().getElement().id===e))}getButtons(){let e=[];return Object.keys(this.data).forEach((t=>{this.data[parseInt(t)].forEach((t=>{e.push(t)}))})),e}getReversedButtons(){return this.getButtons().reverse()}}class o{constructor(e){this.container=e,this.buttons=new s({}),this.init()}getButton(e){return this.buttons.getById(e)}addButton(e,t){this.buttons.add(e,t)}init(){this.container.addEventListener("update",(()=>{this.refresh()})),document.querySelectorAll(".tablenav.top .actions").forEach((t=>{e(this.container,t),this.container.classList.add("-init")})),this.container.querySelectorAll(".ac-table-actions-buttons .ac-table-button").forEach((e=>{var t,n;let s=new r(e);e.offsetParent||(s.toggle(!1),s.getElement().getElement().remove()),this.addButton(s,parseInt(null!==(n=null===(t=e.dataset)||void 0===t?void 0:t.priority)&&void 0!==n?n:"10"))}))}getElement(){return this.container}refresh(){this.buttons.getButtons().forEach((e=>{var t;e.isHidden()?e.getElement().getElement().remove():null===(t=this.container.querySelector(".ac-table-actions-buttons"))||void 0===t||t.append(e.getElement().getElement())}))}}class i{constructor(e={}){this.cells=e}add(e,t){this.cells.hasOwnProperty(e)||(this.cells[e]={}),this.cells[e][t.getName()]=t}getByID(e){let t=[];if(!this.cells.hasOwnProperty(e.toString()))return t;let n=this.cells[e.toString()];return Object.keys(n).forEach((e=>t.push(n[e]))),t}getByElement(e){return this.getAll().find((t=>t.getElement()===e))}getAll(){let e=[];return Object.keys(this.cells).forEach((t=>{let n=this.cells[t];Object.keys(n).forEach((t=>e.push(n[t])))})),e}getByName(e){let t=[];return Object.keys(this.cells).forEach((n=>{let r=this.cells[n];Object.keys(r).forEach((n=>{e===n&&t.push(r[n])}))})),t}get(e,t){return this.cells.hasOwnProperty(e.toString())?this.cells[e][t]:null}}class l{constructor(e,t={}){this.table=e,this.columns=t,this.init()}init(){var e;null===(e=this.table.querySelector("thead"))||void 0===e||e.querySelectorAll("th").forEach((e=>{let t=null==e?void 0:e.id;this.columns[t]=new a(t,AC.column_types[t],this.sanitizeLabel(e))}))}getColumns(){return this.columns}getColumnNames(){return Object.keys(this.columns)}get(e){return this.columns.hasOwnProperty(e)?this.columns[e]:null}sanitizeLabel(e){let t=e.querySelector("a"),n=e.innerHTML;if(t){let e=t.getElementsByTagName("span");e.length>0&&(n=e[0].innerHTML)}return n}}class a{constructor(e,t,n){this.name=e,this.type=t,this.label=n,this.services={}}setService(e,t){this.services[e]=t}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}}var c=n(559),u=n.n(c);class d{constructor(e,t,n){this.object_id=e,this.column_name=t,this.original_value=n.innerHTML,this.el=n,this.services={},this.events=new(u())}getOriginalValue(){return this.original_value}getObjectID(){return this.object_id}getName(){return this.column_name}getElement(){return this.el}setElement(e){this.el=e}getRow(){return this.el.parentElement}getSettings(){var e;return null===(e=AC_SERVICES.getService("Table"))||void 0===e?void 0:e.Columns.get(this.getName())}hasChanged(e){return this.original_value!==e}setValue(e){let t=this.el.querySelector(".row-actions");return this.original_value=e,this.el.innerHTML=e,t&&this.el.append(t),this.original_value=e,this.events.emit("setValue",this),this}setService(e,t){this.services[e]=t}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}}class p{constructor(e){this.Table=e}getIDs(){let e=[],t=this.Table.getElement().querySelectorAll("tbody th.check-column input[type=checkbox]:checked");if(0===t.length)return e;for(let n=0;n{let r=this.Table.Cells.get(t,e);r&&n.push(r)})),n}getCount(){return this.getIDs().length}isAllSelected(){return!!this.Table.getElement().querySelector("thead #cb input:checked")}}class f{constructor(){this.filters={}}addFilter(e,t,n=10){this.filters.hasOwnProperty(e)||(this.filters[e]={}),this.filters[e].hasOwnProperty(n)||(this.filters[e][n]=[]),this.filters[e][n].push(t)}applyFilters(e,t,n={}){return this.filters.hasOwnProperty(e)?(Object.keys(this.filters[e]).forEach((r=>{this.filters[e][parseInt(r)].forEach((e=>{t=e(t,n)}))})),t):t}}class h{constructor(){this.services={},this.events=new(u()),this.filters=new f,this.$=t}registerService(e,t){return this.services[e]=t,this.events.emit(`Service.Registered.${e}`,t),this}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}addListener(e,t){this.events.addListener(e,t)}emitEvent(e,t){this.events.emit(e,t)}}const m=()=>(window.AC_SERVICES||(window.AC_SERVICES=new h),window.AC_SERVICES),$=e=>{var t,n,r,s,o,i;if(e.classList.contains("no-items"))return 0;if(e.dataset.id)return parseInt(e.dataset.id);let l=g(e.id);if(!l){let t=e.querySelector(".check-column input[type=checkbox]");t&&(l=g(t.id))}if(!l){let r=null===(t=e.parentElement)||void 0===t?void 0:t.querySelector(".edit a");if(r){let e=r.getAttribute("href");e&&(l=parseInt(null!==("id",n=(a=e).includes("?")?new URLSearchParams(a.split("?")[1]).get("id"):null)&&void 0!==n?n:""))}}var a;if(Number.isNaN(l)&&(null===(r=e.closest("table"))||void 0===r?void 0:r.classList.contains("users-network"))){let t=null!==(s=e.querySelector(".row-actions .edit a"))&&void 0!==s?s:null;if(t){let e=null!==(i=new URLSearchParams(null!==(o=t.href.split("?")[1])&&void 0!==o?o:"").get("user_id"))&&void 0!==i?i:AC.current_user_id.toString();l=parseInt(e)}}return l=m().filters.applyFilters("table_row_id",l,{row:e}),e.dataset.id=l.toString(),l},g=e=>{let t=e.split(/[_,\-]+/);return parseInt(t[t.length-1])},y="Table.Ready";class v{constructor(){this.services={}}setService(e,t){this.services[e]=t}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}}class b{constructor(e,t){this.el=e,this.AcServices=t,this.Services=new v,this.Columns=new l(e),this.Cells=new i,this.Selection=new p(this);let n=document.getElementById("ac-table-actions");this.Actions=n?new o(n):null}getElement(){return this.el}getIdsFromTable(){let e=[];return this.el.getElementsByTagName("tbody")[0].querySelectorAll("tr").forEach((t=>{e.push($(t))})),e=e.filter((e=>0!==e)),e}init(){return this.initTable(),this.addCellClasses(),document.dispatchEvent(new CustomEvent("AC_Table_Ready",{detail:{table:this}})),this.AcServices.emitEvent(y,{table:this}),this}addCellClasses(){this.Columns.getColumnNames().forEach((e=>{var t;let n=null===(t=this.Columns.get(e))||void 0===t?void 0:t.type,r=this.Cells.getByName(e);n&&r.forEach((e=>{e.getElement().classList.add(null!=n?n:"")}))}))}initTable(){this.el.getElementsByTagName("tbody")[0].querySelectorAll("tr").forEach((e=>{this.updateRow(e)}))}updateRow(e){let t=$(e);e.dataset.id=t.toString(),this.setCellsForRow(e)}setCellsForRow(e){let t=$(e);this.Columns.getColumnNames().forEach((n=>{let r=n.replace(/\./g,"\\."),s=e.querySelector("td.column-"+r);if(s){let e=new d(t,n,s);this.Cells.add(t,e)}}))}}const w=()=>{document.querySelectorAll(".ac-tooltip").forEach((e=>e.remove())),document.querySelectorAll("[data-ac-tip]").forEach((e=>{new E(e)}))};class E{constructor(e,t=""){this.element=e,this.content=t||e.dataset.acTip,this.tip=x(this.content),this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();document.body.appendChild(this.tip),this.tip.style.left=t.left-e.left+this.element.offsetWidth/2+"px",this.tip.style.top=t.top-e.top+this.element.offsetHeight+"px",this.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(()=>{this.tip.classList.remove("hover"),document.body.contains(this.tip)&&document.body.removeChild(this.tip)})),this.element.removeAttribute("title"))}}const x=e=>{let t=document.createElement("div");return t.classList.add("ac-tooltip"),t.innerHTML=e,t},S=class{constructor(){this.init()}init(){w()}};class k{constructor(e){this.columns=e,this.columns.getColumnNames().forEach((n=>{var r,s;let o=e.get(n);if(o){let e=k.getInputByName(o.name);e&&0===(null===(s=null===(r=null==e?void 0:e.parentElement)||void 0===r?void 0:r.textContent)||void 0===s?void 0:s.length)&&e.parentElement.appendChild(t.create("span").addHtml(o.label).getElement())}}))}static getInputByName(e){return document.querySelector(`input[name='${e}-hide']`)}}const _=n(311);class C{constructor(e){var t,n;this.element=e,this.element=e,this.initEvents(),this.contentBox=null!==(n=null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.querySelector(".ac-toggle-box-contents"))&&void 0!==n?n:null,this.contentBox||this.createContentBox()}isAjax(){var e;return 1===parseInt(null!==(e=this.element.dataset.ajaxPopulate)&&void 0!==e?e:"")}isInited(){return this.element.dataset.toggleBoxInit}createContentBox(){let t=document.createElement("div");return t.classList.add("ac-toggle-box-contents"),e(t,this.element),this.contentBox=t,this.contentBox}initEvents(){this.isInited()||(this.element.addEventListener("click",(e=>{e.preventDefault(),this.isAjax()&&!this.hasContent()&&this.manageAjaxValue(),this.toggleContentBox()})),this.element.dataset.toggleBoxInit="true")}hasContent(){return this.getContentBox().innerHTML.length>0}setContent(e){this.getContentBox().innerHTML=e}getContentBox(){return this.contentBox?this.contentBox:this.createContentBox()}setLabel(e){let t=this.element.dataset.label;e&&this.element.dataset.labelClose&&(t=this.element.dataset.labelClose),this.element.innerHTML=t+'',w()}toggleContentBox(){this.getContentBox().classList.contains("-open")?(this.getContentBox().classList.remove("-open"),this.setLabel(!1)):(this.getContentBox().classList.add("-open"),this.setLabel(!0))}manageAjaxValue(){this.element.classList.add("loading"),this.retrieveAjaxValue().done((e=>{var t;this.setContent(e),_(this.element.parentElement).trigger("ajax_column_value_ready"),null===(t=AC_SERVICES.getService("Tooltips"))||void 0===t||t.init()})).always((()=>{this.element.classList.remove("loading")}))}retrieveAjaxValue(){return _.ajax({url:ajaxurl,method:"POST",data:{action:"ac_get_column_value",list_screen:AC.list_screen,layout:AC.layout,column:this.element.dataset.column,pk:this.element.dataset.itemId,_ajax_nonce:AC.ajax_nonce}})}}var O=n(311),A=n.n(O);const T=()=>{document.querySelectorAll(".ac-show-more").forEach((e=>{new L(e)}))};class L{constructor(e){this.element=e,this.initEvents()}initEvents(){var e;this.isInited()||(this.getToggleElement()&&(null===(e=this.getToggleElement())||void 0===e||e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),this.toggle()}))),this.element.dataset.showMoreInit="true")}getToggleElement(){return this.element.querySelector(".ac-show-more__toggle")}isInited(){return"true"===this.element.dataset.showMoreInit}toggle(){this.element.classList.contains("-on")?this.hide():this.show()}show(){var e,t,n;this.element.classList.add("-on"),this.setToggleText(null!==(n=null===(t=null===(e=this.getToggleElement())||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.less)&&void 0!==n?n:"")}hide(){var e,t,n;this.element.classList.remove("-on"),this.setToggleText(null!==(n=null===(t=null===(e=this.getToggleElement())||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.more)&&void 0!==n?n:"")}setToggleText(e){let t=this.getToggleElement();t&&(t.innerHTML=e)}}class N{constructor(e){var t;this.el=e,this.dialog=null!==(t=e.querySelector(".ac-modal__dialogs"))&&void 0!==t?t:document.createElement("div"),this.initEvents()}getElement(){return this.el}initEvents(){document.addEventListener("keydown",(e=>{const t=e.key;this.isOpen()&&"Escape"===t&&this.close()}));let e=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');e.length>0&&e.forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.close()}))})),this.el.addEventListener("click",(e=>{e.target.classList.contains("ac-modal")&&self.close()}))}isOpen(){return this.el.classList.contains("-active")}close(){this.onClose(),this.el.classList.remove("-active")}open(){setTimeout((()=>{this.onOpen(),this.el.removeAttribute("style"),this.el.classList.add("-active")}))}destroy(){this.el.remove()}onClose(){}onOpen(){}}new Set;const j="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class R{_listeners="WeakMap"in j?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver((e=>{for(const t of e)R.entries.set(t.target,t),this._listeners.get(t.target)?.(t)})))}}R.entries="WeakMap"in j?new WeakMap:void 0;let P,B=!1;function I(e,t){e.appendChild(t)}function q(e,t,n){const r=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!r.getElementById(t)){const e=U("style");e.id=t,e.textContent=n,function(e,t){I(e.head||e,t),t.sheet}(r,e)}}function M(e,t,n){e.insertBefore(t,n||null)}function F(e){e.parentNode&&e.parentNode.removeChild(e)}function D(e,t){for(let n=0;ne.removeEventListener(t,n,r)}function J(e){return function(t){return t.preventDefault(),e.call(this,t)}}function K(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function G(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function X(e,t){t=""+t,e.data!==t&&(e.data=t)}function Q(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function Z(e,t,n){e.classList.toggle(t,!!n)}function Y(){}function ee(e,t){for(const n in t)e[n]=t[n];return e}function te(e){return e()}function ne(){return Object.create(null)}function re(e){e.forEach(te)}function se(e){return"function"==typeof e}function oe(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function ie(e,...t){if(null==e){for(const e of t)e(void 0);return Y}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function le(e,t,n){e.$$.on_destroy.push(ie(t,n))}function ae(e,t,n,r){if(e){const s=ce(e,t,n,r);return e[0](s)}}function ce(e,t,n,r){return e[1]&&r?ee(n.ctx.slice(),e[1](r(t))):n.ctx}function ue(e,t,n,r){if(e[2]&&r){const s=e[2](r(n));if(void 0===t.dirty)return s;if("object"==typeof s){const e=[],n=Math.max(t.dirty.length,s.length);for(let r=0;r32){const t=[],n=e.ctx.length/32;for(let e=0;ee.call(this,t)))}new Map;const ve=[],be=[];let we=[];const Ee=[],xe=Promise.resolve();let Se=!1;function ke(e){we.push(e)}const _e=new Set;let Ce=0;function Oe(){if(0!==Ce)return;const e=P;do{try{for(;Ce{Te.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}function Ie(e){e&&e.c()}function qe(e,t,n){const{fragment:r,after_update:s}=e.$$;r&&r.m(t,n),ke((()=>{const t=e.$$.on_mount.map(te).filter(se);e.$$.on_destroy?e.$$.on_destroy.push(...t):re(t),e.$$.on_mount=[]})),s.forEach(ke)}function Me(e,t){const n=e.$$;null!==n.fragment&&(function(e){const t=[],n=[];we.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),we=t}(n.after_update),re(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Fe(e,t,n,r,s,o,i,l=[-1]){const a=P;me(e);const c=e.$$={fragment:null,ctx:[],props:o,update:Y,not_equal:s,bound:ne(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:ne(),dirty:l,skip_bound:!1,root:t.target||a.$$.root};i&&i(c.root);let u=!1;if(c.ctx=n?n(e,t.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return c.ctx&&s(c.ctx[t],c.ctx[t]=o)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](o),u&&function(e,t){-1===e.$$.dirty[0]&&(ve.push(e),Se||(Se=!0,xe.then(Oe)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{let t;return{c:function(){t=U("slot"),"default"!==e&&G(t,"name",e)},m:function(e,n){M(e,t,n)},d:function(e){e&&F(t)}}}}const t={},n=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const s of this.$$s)s in n&&(t[s]=[e(s)]);for(const o of this.attributes){const i=this.$$g_p(o.name);i in this.$$d||(this.$$d[i]=De(i,o.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const t=De(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const l in this.$$l)for(const a of this.$$l[l]){const c=this.$$c.$on(l,a);this.$$l_u.set(a,c)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=De(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class Ue{$$=void 0;$$set=void 0;$destroy(){Me(this,1),this.$destroy=Y}$on(e,t){if(!se(t))return Y;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function He(e){let t,n,r,s,o,i,l;return{c(){t=U("div"),n=U("div"),r=z(),s=U("div"),G(n,"class","ac-pointer-modal__arrow"),G(n,"data-pos",e[1]),G(s,"class","ac-pointer-modal__content"),G(t,"class",o="ac-pointer-modal -"+e[1]),G(t,"role","none")},m(o,a){M(o,t,a),I(t,n),I(t,r),I(t,s),s.innerHTML=e[0],i||(l=[W(t,"mouseenter",e[6]),W(t,"mouseleave",e[7])],i=!0)},p(e,[r]){2&r&&G(n,"data-pos",e[1]),1&r&&(s.innerHTML=e[0]),2&r&&o!==(o="ac-pointer-modal -"+e[1])&&G(t,"class",o)},i:Y,o:Y,d(e){e&&F(t),i=!1,re(l)}}}function ze(e,t,n){let{content:r=""}=t,{position:s=""}=t,o=!1,{closeHandler:i}=t;const l=()=>{n(2,o=!1),i()};return e.$$set=e=>{"content"in e&&n(0,r=e.content),"position"in e&&n(1,s=e.position),"closeHandler"in e&&n(4,i=e.closeHandler)},[r,s,o,l,i,()=>o,()=>n(2,o=!0),()=>l()]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const Ve=class extends Ue{constructor(e){super(),Fe(this,e,ze,He,oe,{content:0,position:1,closeHandler:4,isOnElement:5})}get isOnElement(){return this.$$.ctx[5]}};class We{constructor(e,t){var n,r;this.element=e,this.target=t,this.width=null!==(n=e.dataset.width)&&void 0!==n?n:null,this.position=null!==(r=e.dataset.pos)&&void 0!==r?r:"right",this.noClick=void 0!==e.dataset.noclick,this.waitingForClose=!1,this.initEvents()}initEvents(){"1"!==this.element.dataset.acTooltipInit&&(this.container=Je(),this.width&&(this.container.style.width=`${this.width}px`),this.attachModel(),this.element.dataset.acTooltipInit="1",this.element.addEventListener("mouseenter",(()=>{this.onScreen||(this.onScreen=!0,document.body.appendChild(this.container),this.container.style.width=`${this.width}px`,this.setPosition(),setTimeout((()=>{this.setPosition()}),100))})),this.element.addEventListener("mouseleave",(()=>{this.checkClose()})),this.element.addEventListener("click",(()=>{this.noClick||(this.waitingForClose=!0)})))}setPosition(){const e=document.body.getBoundingClientRect(),t=this.element.getBoundingClientRect();switch(this.container.style.top=t.top-e.top+this.element.offsetHeight-this.container.offsetHeight/2+20+"px",this.position){case"right_bottom":this.container.style.top=t.top-e.top-this.container.offsetHeight+100+"px",this.container.style.left=t.left-e.left+this.element.offsetWidth+14+"px";break;case"left":this.container.style.left=t.left-e.left-this.container.offsetWidth-12+"px";break;default:this.container.style.left=t.left-e.left+this.element.offsetWidth+10+"px"}}checkClose(){setTimeout((()=>{this.waitingForClose||this.closeHandler()}),50)}closeHandler(){this.onScreen&&(document.body.removeChild(this.container),this.onScreen=!1,this.waitingForClose=!1)}destroyComponent(){null!==this.component&&this.component.$destroy()}attachModel(){this.component=new Ve({target:this.container,props:{content:this.target.innerHTML,position:this.position,closeHandler:()=>this.closeHandler(),destroyHandler:()=>this.destroyComponent()}})}}const Je=()=>{const e=document.createElement("div");return e.classList.add("ac-pointer-modal-container"),e.style.position="absolute",e},Ke=(e=null)=>{e||(e=document.querySelectorAll(".ac-pointer")),e.forEach((e=>{var t;let n=document.querySelector(null!==(t=`#${e.getAttribute("rel")}`)&&void 0!==t?t:"#n");n&&new We(e,n)})),new S};function Ge(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xe}=Object.prototype,{getPrototypeOf:Qe}=Object,Ze=(Ye=Object.create(null),e=>{const t=Xe.call(e);return Ye[t]||(Ye[t]=t.slice(8,-1).toLowerCase())});var Ye;const et=e=>(e=e.toLowerCase(),t=>Ze(t)===e),tt=e=>t=>typeof t===e,{isArray:nt}=Array,rt=tt("undefined"),st=et("ArrayBuffer"),ot=tt("string"),it=tt("function"),lt=tt("number"),at=e=>null!==e&&"object"==typeof e,ct=e=>{if("object"!==Ze(e))return!1;const t=Qe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ut=et("Date"),dt=et("File"),pt=et("Blob"),ft=et("FileList"),ht=et("URLSearchParams");function mt(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,s;if("object"!=typeof e&&(e=[e]),nt(e))for(r=0,s=e.length;r0;)if(r=n[s],t===r.toLowerCase())return r;return null}const gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,yt=e=>!rt(e)&&e!==gt,vt=(bt="undefined"!=typeof Uint8Array&&Qe(Uint8Array),e=>bt&&e instanceof bt);var bt;const wt=et("HTMLFormElement"),Et=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=et("RegExp"),St=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mt(n,((n,s)=>{let o;!1!==(o=t(n,s,e))&&(r[s]=o||n)})),Object.defineProperties(e,r)},kt="abcdefghijklmnopqrstuvwxyz",_t="0123456789",Ct={DIGIT:_t,ALPHA:kt,ALPHA_DIGIT:kt+kt.toUpperCase()+_t},Ot=et("AsyncFunction"),At={isArray:nt,isArrayBuffer:st,isBuffer:function(e){return null!==e&&!rt(e)&&null!==e.constructor&&!rt(e.constructor)&&it(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||it(e.append)&&("formdata"===(t=Ze(e))||"object"===t&&it(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&st(e.buffer),t},isString:ot,isNumber:lt,isBoolean:e=>!0===e||!1===e,isObject:at,isPlainObject:ct,isUndefined:rt,isDate:ut,isFile:dt,isBlob:pt,isRegExp:xt,isFunction:it,isStream:e=>at(e)&&it(e.pipe),isURLSearchParams:ht,isTypedArray:vt,isFileList:ft,forEach:mt,merge:function e(){const{caseless:t}=yt(this)&&this||{},n={},r=(r,s)=>{const o=t&&$t(n,s)||s;ct(n[o])&&ct(r)?n[o]=e(n[o],r):ct(r)?n[o]=e({},r):nt(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e(mt(t,((t,r)=>{n&&it(t)?e[r]=Ge(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],r&&!r(i,e,t)||l[i]||(t[i]=e[i],l[i]=!0);e=!1!==n&&Qe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ze,kindOfTest:et,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(nt(e))return e;let t=e.length;if(!lt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:wt,hasOwnProperty:Et,hasOwnProp:Et,reduceDescriptors:St,freezeMethods:e=>{St(e,((t,n)=>{if(it(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];it(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return nt(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:$t,global:gt,isContextDefined:yt,ALPHABET:Ct,generateString:(e=16,t=Ct.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&it(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(at(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const s=nt(e)?[]:{};return mt(e,((e,t)=>{const o=n(e,r+1);!rt(o)&&(s[t]=o)})),t[r]=void 0,s}}return e};return n(e,0)},isAsyncFn:Ot,isThenable:e=>e&&(at(e)||it(e))&&it(e.then)&&it(e.catch)};function Tt(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}At.inherits(Tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:At.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Lt=Tt.prototype,Nt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Nt[e]={value:e}})),Object.defineProperties(Tt,Nt),Object.defineProperty(Lt,"isAxiosError",{value:!0}),Tt.from=(e,t,n,r,s,o)=>{const i=Object.create(Lt);return At.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Tt.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const jt=Tt;function Rt(e){return At.isPlainObject(e)||At.isArray(e)}function Pt(e){return At.endsWith(e,"[]")?e.slice(0,-2):e}function Bt(e,t,n){return e?e.concat(t).map((function(e,t){return e=Pt(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const It=At.toFlatObject(At,{},null,(function(e){return/^is[A-Z]/.test(e)})),qt=function(e,t,n){if(!At.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=At.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!At.isUndefined(t[e])}))).metaTokens,s=n.visitor||c,o=n.dots,i=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&At.isSpecCompliantForm(t);if(!At.isFunction(s))throw new TypeError("visitor must be a function");function a(e){if(null===e)return"";if(At.isDate(e))return e.toISOString();if(!l&&At.isBlob(e))throw new jt("Blob is not supported. Use a Buffer instead.");return At.isArrayBuffer(e)||At.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,s){let l=e;if(e&&!s&&"object"==typeof e)if(At.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(At.isArray(e)&&function(e){return At.isArray(e)&&!e.some(Rt)}(e)||(At.isFileList(e)||At.endsWith(n,"[]"))&&(l=At.toArray(e)))return n=Pt(n),l.forEach((function(e,r){!At.isUndefined(e)&&null!==e&&t.append(!0===i?Bt([n],r,o):null===i?n:n+"[]",a(e))})),!1;return!!Rt(e)||(t.append(Bt(s,n,o),a(e)),!1)}const u=[],d=Object.assign(It,{defaultVisitor:c,convertValue:a,isVisitable:Rt});if(!At.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!At.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),At.forEach(n,(function(n,o){!0===(!(At.isUndefined(n)||null===n)&&s.call(t,n,At.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function Mt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ft(e,t){this._pairs=[],e&&qt(e,this,t)}const Dt=Ft.prototype;Dt.append=function(e,t){this._pairs.push([e,t])},Dt.toString=function(e){const t=e?function(t){return e.call(this,t,Mt)}:Mt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Ut=Ft;function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zt(e,t,n){if(!t)return e;const r=n&&n.encode||Ht,s=n&&n.serialize;let o;if(o=s?s(t,n):At.isURLSearchParams(t)?t.toString():new Ut(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const Vt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){At.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Wt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ut,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},Kt=function(e){function t(e,n,r,s){let o=e[s++];const i=Number.isFinite(+o),l=s>=e.length;return o=!o&&At.isArray(r)?r.length:o,l?(At.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!i):(r[o]&&At.isObject(r[o])||(r[o]=[]),t(e,n,r[o],s)&&At.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r{t(function(e){return At.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},Gt={transitional:Wt,adapter:Jt.isNode?"http":"xhr",transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=At.isObject(e);if(s&&At.isHTMLForm(e)&&(e=new FormData(e)),At.isFormData(e))return r&&r?JSON.stringify(Kt(e)):e;if(At.isArrayBuffer(e)||At.isBuffer(e)||At.isStream(e)||At.isFile(e)||At.isBlob(e))return e;if(At.isArrayBufferView(e))return e.buffer;if(At.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return qt(e,new Jt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Jt.isNode&&At.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=At.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return qt(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),function(e,t,n){if(At.isString(e))try{return(0,JSON.parse)(e),At.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Gt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&At.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw jt.from(e,jt.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Jt.classes.FormData,Blob:Jt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};At.forEach(["delete","get","head","post","put","patch"],(e=>{Gt.headers[e]={}}));const Xt=Gt,Qt=At.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zt=Symbol("internals");function Yt(e){return e&&String(e).trim().toLowerCase()}function en(e){return!1===e||null==e?e:At.isArray(e)?e.map(en):String(e)}function tn(e,t,n,r,s){return At.isFunction(r)?r.call(this,t,n):(s&&(t=n),At.isString(t)?At.isString(r)?-1!==t.indexOf(r):At.isRegExp(r)?r.test(t):void 0:void 0)}class nn{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function s(e,t,n){const s=Yt(t);if(!s)throw new Error("header name must be a non-empty string");const o=At.findKey(r,s);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=en(e))}const o=(e,t)=>At.forEach(e,((e,n)=>s(e,n,t)));return At.isPlainObject(e)||e instanceof this.constructor?o(e,t):At.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),n=e.substring(0,s).trim().toLowerCase(),r=e.substring(s+1).trim(),!n||t[n]&&Qt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&s(t,e,n),this}get(e,t){if(e=Yt(e)){const n=At.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(At.isFunction(t))return t.call(this,e,n);if(At.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Yt(e)){const n=At.findKey(this,e);return!(!n||void 0===this[n]||t&&!tn(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function s(e){if(e=Yt(e)){const s=At.findKey(n,e);!s||t&&!tn(0,n[s],s,t)||(delete n[s],r=!0)}}return At.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const s=t[n];e&&!tn(0,this[s],s,e,!0)||(delete this[s],r=!0)}return r}normalize(e){const t=this,n={};return At.forEach(this,((r,s)=>{const o=At.findKey(n,s);if(o)return t[o]=en(r),void delete t[s];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(s):String(s).trim();i!==s&&delete t[s],t[i]=en(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return At.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&At.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Zt]=this[Zt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Yt(e);t[r]||(function(e,t){const n=At.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,s){return this[r].call(this,t,e,n,s)},configurable:!0})}))}(n,e),t[r]=!0)}return At.isArray(e)?e.forEach(r):r(e),this}}nn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),At.reduceDescriptors(nn.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),At.freezeMethods(nn);const rn=nn;function sn(e,t){const n=this||Xt,r=t||n,s=rn.from(r.headers);let o=r.data;return At.forEach(e,(function(e){o=e.call(n,o,s.normalize(),t?t.status:void 0)})),s.normalize(),o}function on(e){return!(!e||!e.__CANCEL__)}function ln(e,t,n){jt.call(this,null==e?"canceled":e,jt.ERR_CANCELED,t,n),this.name="CanceledError"}At.inherits(ln,jt,{__CANCEL__:!0});const an=ln,cn=Jt.isStandardBrowserEnv?{write:function(e,t,n,r,s,o){const i=[];i.push(e+"="+encodeURIComponent(t)),At.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),At.isString(r)&&i.push("path="+r),At.isString(s)&&i.push("domain="+s),!0===o&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function un(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const dn=Jt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=At.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function pn(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s,o=0,i=0;return t=void 0!==t?t:1e3,function(l){const a=Date.now(),c=r[i];s||(s=a),n[o]=l,r[o]=a;let u=i,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-s{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,a=r(l);n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:a||void 0,estimated:a&&i&&o<=i?(i-o)/a:void 0,event:s};c[t?"download":"upload"]=!0,e(c)}}const fn={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const s=rn.from(e.headers).normalize(),o=e.responseType;let i;function l(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}At.isFormData(r)&&(Jt.isStandardBrowserEnv||Jt.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let a=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(t+":"+n))}const c=un(e.baseURL,e.url);function u(){if(!a)return;const r=rn.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new jt("Request failed with status code "+n.status,[jt.ERR_BAD_REQUEST,jt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:o&&"text"!==o&&"json"!==o?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:r,config:e,request:a}),a=null}if(a.open(e.method.toUpperCase(),zt(c,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,"onloadend"in a?a.onloadend=u:a.onreadystatechange=function(){a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))&&setTimeout(u)},a.onabort=function(){a&&(n(new jt("Request aborted",jt.ECONNABORTED,e,a)),a=null)},a.onerror=function(){n(new jt("Network Error",jt.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Wt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new jt(t,r.clarifyTimeoutError?jt.ETIMEDOUT:jt.ECONNABORTED,e,a)),a=null},Jt.isStandardBrowserEnv){const t=(e.withCredentials||dn(c))&&e.xsrfCookieName&&cn.read(e.xsrfCookieName);t&&s.set(e.xsrfHeaderName,t)}void 0===r&&s.setContentType(null),"setRequestHeader"in a&&At.forEach(s.toJSON(),(function(e,t){a.setRequestHeader(t,e)})),At.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),o&&"json"!==o&&(a.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",pn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",pn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{a&&(n(!t||t.type?new an(null,e,a):t),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);d&&-1===Jt.protocols.indexOf(d)?n(new jt("Unsupported protocol "+d+":",jt.ERR_BAD_REQUEST,e)):a.send(r||null)}))}};At.forEach(fn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const hn=e=>{e=At.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;se instanceof rn?e.toJSON():e;function yn(e,t){t=t||{};const n={};function r(e,t,n){return At.isPlainObject(e)&&At.isPlainObject(t)?At.merge.call({caseless:n},e,t):At.isPlainObject(t)?At.merge({},t):At.isArray(t)?t.slice():t}function s(e,t,n){return At.isUndefined(t)?At.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!At.isUndefined(t))return r(void 0,t)}function i(e,t){return At.isUndefined(t)?At.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,s,o){return o in t?r(n,s):o in e?r(void 0,n):void 0}const a={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t)=>s(gn(e),gn(t),!0)};return At.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=a[r]||s,i=o(e[r],t[r],r);At.isUndefined(i)&&o!==l||(n[r]=i)})),n}const vn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{vn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const bn={};vn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.5.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,o)=>{if(!1===e)throw new jt(r(s," has been removed"+(t?" in "+t:"")),jt.ERR_DEPRECATED);return t&&!bn[s]&&(bn[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,o)}};const wn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new jt("options must be an object",jt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const t=e[o],n=void 0===t||i(t,o,e);if(!0!==n)throw new jt("option "+o+" must be "+n,jt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new jt("Unknown option "+o,jt.ERR_BAD_OPTION)}},validators:vn},En=wn.validators;class xn{constructor(e){this.defaults=e,this.interceptors={request:new Vt,response:new Vt}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=yn(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&wn.assertOptions(n,{silentJSONParsing:En.transitional(En.boolean),forcedJSONParsing:En.transitional(En.boolean),clarifyTimeoutError:En.transitional(En.boolean)},!1),null!=r&&(At.isFunction(r)?t.paramsSerializer={serialize:r}:wn.assertOptions(r,{encode:En.function,serialize:En.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&At.merge(s.common,s[t.method]);s&&At.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=rn.concat(o,s);const i=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const a=[];let c;this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)}));let u,d=0;if(!l){const e=[$n.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,a),u=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,s){n.reason||(n.reason=new an(e,r,s),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new kn((function(t){e=t})),cancel:e}}}const _n=kn,Cn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cn).forEach((([e,t])=>{Cn[t]=e}));const On=Cn,An=function e(t){const n=new Sn(t),r=Ge(Sn.prototype.request,n);return At.extend(r,Sn.prototype,n,{allOwnKeys:!0}),At.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(yn(t,n))},r}(Xt);An.Axios=Sn,An.CanceledError=an,An.CancelToken=_n,An.isCancel=on,An.VERSION="1.5.0",An.toFormData=qt,An.AxiosError=jt,An.Cancel=An.CanceledError,An.all=function(e){return Promise.all(e)},An.spread=function(e){return function(t){return e.apply(null,t)}},An.isAxiosError=function(e){return At.isObject(e)&&!0===e.isAxiosError},An.mergeConfig=yn,An.AxiosHeaders=rn,An.formToJSON=e=>Kt(At.isHTMLForm(e)?new FormData(e):e),An.getAdapter=hn,An.HttpStatusCode=On,An.default=An;const Tn=An;function Ln(e){let t,n;return{c(){t=U("h2"),n=H(e[4]),G(t,"title",e[4])},m(e,r){M(e,t,r),I(t,n)},p(e,r){16&r&&X(n,e[4]),16&r&&G(t,"title",e[4])},d(e){e&&F(t)}}}function Nn(e){let t,n,r=e[10].edit+"";return{c(){t=U("a"),n=H(r),G(t,"class","edit btn button"),G(t,"href",e[6])},m(e,r){M(e,t,r),I(t,n)},p(e,n){64&n&&G(t,"href",e[6])},d(e){e&&F(t)}}}function jn(e){let t,n,r=e[10].download+"";return{c(){t=U("a"),n=H(r),G(t,"class","edit btn button"),G(t,"href",e[7]),G(t,"download","")},m(e,r){M(e,t,r),I(t,n)},p(e,n){128&n&&G(t,"href",e[7])},d(e){e&&F(t)}}}function Rn(e){let t,n,r,s,o,i,l,a,c,u;return{c(){t=U("div"),n=U("button"),r=U("span"),o=z(),i=U("button"),l=U("span"),G(r,"class","dashicons dashicons-arrow-left-alt2"),G(n,"title","Previous"),G(n,"class","btn"),n.disabled=s=!e[9],G(l,"class","dashicons dashicons-arrow-right-alt2"),G(i,"title","Next"),G(i,"class","btn"),i.disabled=a=!e[8],G(t,"class","ac-value-modal__navigation")},m(s,a){M(s,t,a),I(t,n),I(n,r),I(t,o),I(t,i),I(i,l),c||(u=[W(n,"click",J(e[13])),W(i,"click",J(e[12]))],c=!0)},p(e,t){512&t&&s!==(s=!e[9])&&(n.disabled=s),256&t&&a!==(a=!e[8])&&(i.disabled=a)},d(e){e&&F(t),c=!1,re(u)}}}function Pn(e){let t,n,r,s,o,i,l,a,c,u,d,p,f,h,m,$,g,y,v,b,w,E,x,S,k=e[4]&&Ln(e),_=e[6]&&Nn(e),C=e[7]&&jn(e),O=e[1].length>1&&Rn(e);return{c(){t=U("div"),n=U("div"),n.innerHTML="",r=z(),s=U("div"),o=U("div"),i=U("div"),l=U("div"),k&&k.c(),a=z(),c=U("span"),u=H("#"),d=H(e[0]),p=z(),f=U("div"),h=U("button"),h.innerHTML='',m=z(),$=U("div"),g=z(),y=U("div"),v=U("div"),_&&_.c(),b=z(),C&&C.c(),w=z(),O&&O.c(),G(n,"class","ac-value-modal-background"),G(c,"class","ac-badge"),G(l,"class","ac-value-modal-title"),G(f,"class","ac-value-modal-actions"),G(i,"class","ac-value-modal-panel__header"),G($,"class","ac-value-modal-panel__body"),G(v,"class","ac-value-modal__edit"),G(y,"class","ac-value-modal-panel__footer"),G(o,"class","ac-value-modal-panel"),G(o,"role","none"),G(s,"class","ac-value-modal-container"),G(t,"class",E="ac-value-modal "+e[2]),G(t,"role","none")},m(E,A){M(E,t,A),I(t,n),I(t,r),I(t,s),I(s,o),I(o,i),I(i,l),k&&k.m(l,null),I(l,a),I(l,c),I(c,u),I(c,d),I(i,p),I(i,f),I(f,h),I(o,m),I(o,$),$.innerHTML=e[5],I(o,g),I(o,y),I(y,v),_&&_.m(v,null),I(v,b),C&&C.m(v,null),I(y,w),O&&O.m(y,null),e[16](t),x||(S=[W(h,"click",e[11]),W(o,"click",K(e[15])),W(o,"keypress",Bn),W(t,"click",e[11]),W(t,"keypress",In)],x=!0)},p(e,[n]){e[4]?k?k.p(e,n):(k=Ln(e),k.c(),k.m(l,a)):k&&(k.d(1),k=null),1&n&&X(d,e[0]),32&n&&($.innerHTML=e[5]),e[6]?_?_.p(e,n):(_=Nn(e),_.c(),_.m(v,b)):_&&(_.d(1),_=null),e[7]?C?C.p(e,n):(C=jn(e),C.c(),C.m(v,null)):C&&(C.d(1),C=null),e[1].length>1?O?O.p(e,n):(O=Rn(e),O.c(),O.m(y,null)):O&&(O.d(1),O=null),4&n&&E!==(E="ac-value-modal "+e[2])&&G(t,"class",E)},i:Y,o:Y,d(n){n&&F(t),k&&k.d(),_&&_.d(),C&&C.d(),O&&O.d(),e[16](null),x=!1,re(S)}}}const Bn=()=>{},In=()=>{};function qn(e,t,n){let r,s,o,i,l,a,c,u,d,p,{items:f}=t,{objectId:h}=t,{destroyHandler:m}=t,$="",g=AC_I18N;const y=Tn.CancelToken,v=e=>{"Escape"===e.key&&m(),"ArrowLeft"===e.key&&(S(),e.preventDefault()),"ArrowRight"===e.key&&(x(),e.preventDefault())},b=e=>(n(0,h=e.objectId),n(4,o=g.value_loading),n(5,i=`${g.value_loading}`),n(6,l=e.editLink),n(7,a=e.downloadLink),c&&c.cancel(),c=y.source(),Tn({method:"get",url:ajaxurl,cancelToken:c.token,params:{action:"ac_get_column_modal_value",layout:AC.layout,column_name:e.columnName,object_id:e.objectId,_ajax_nonce:AC.ajax_nonce}}).then((t=>{n(5,i=t.data),n(4,o=(e=>{var t;return null!==(t=e.title)&&void 0!==t?t:`${r} #${e.objectId}`})(e))}))),w=()=>{n(8,d=u+1{b(f[e])},x=()=>{d&&(u+=1,E(u),w())},S=()=>{p&&(u-=1,E(u),w())};var k;return ge((()=>{var e;let t=f.find((e=>e.objectId===h));u=f.findIndex((e=>e.objectId===h)),r=t.element.closest("td").dataset.colname,f.length>1&&document.addEventListener("keydown",v),n(2,$=t.element.dataset.modalClass),n(4,o=null!==(e=t.title)&&void 0!==e?e:`#${t.objectId}`),b(t),w()})),k=()=>{document.removeEventListener("keydown",v)},$e().$$.on_destroy.push(k),e.$$set=e=>{"items"in e&&n(1,f=e.items),"objectId"in e&&n(0,h=e.objectId),"destroyHandler"in e&&n(14,m=e.destroyHandler)},[h,f,$,s,o,i,l,a,d,p,g,()=>{m()},x,S,m,function(t){ye.call(this,e,t)},function(e){be[e?"unshift":"push"]((()=>{s=e,n(3,s)}))}]}const Mn=class extends Ue{constructor(e){super(),Fe(this,e,qn,Pn,oe,{items:1,objectId:0,destroyHandler:14})}};class Fn{constructor(e){this.links=e,this.component=null,this.initEventHandlers()}initEventHandlers(){this.links.forEach((e=>{e.element.addEventListener("click",(t=>{t.preventDefault(),this.displayModal(e.objectId)}))}))}destroyComponent(){null!==this.component&&this.component.$destroy()}displayModal(e){let t=document.createElement("div");document.body.appendChild(t),this.component=new Mn({target:t,props:{items:this.links,objectId:e,destroyHandler:()=>this.destroyComponent()}})}}const Dn=[];function Un(e,t){return{subscribe:Hn(e,t).subscribe}}function Hn(e,t=Y){let n;const r=new Set;function s(t){if(oe(e,t)&&(e=t,n)){const t=!Dn.length;for(const t of r)t[1](),Dn.push(t,e);if(t){for(let e=0;e{r.delete(a),0===r.size&&n&&(n(),n=null)}}}}var zn=Object.defineProperty,Vn=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,Kn=(e,t,n)=>t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gn=(e,t)=>{for(var n in t||(t={}))Wn.call(t,n)&&Kn(e,n,t[n]);if(Vn)for(var n of Vn(t))Jn.call(t,n)&&Kn(e,n,t[n]);return e};const Xn={};function Qn(e,t){const n=(r=Xn,$e().$$.context.get(r));var r;const s="function"==typeof e?e(n):e,o=Gn(Gn({},n),s);return(null==t?void 0:t.expandable)&&(o.isParentExpanded=o.expanded),function(e,t){$e().$$.context.set(e,t)}(Xn,o),n}function Zn(e){q(e,"svelte-1qd6nto",".container.svelte-1qd6nto{display:inline-block;transform:translate(calc(0px - var(--li-identation)), -50%);position:absolute;top:50%;padding-right:100%}.arrow.svelte-1qd6nto{transform-origin:25% 50%;position:relative;line-height:1.1em;font-size:0.75em;margin-left:0;transition:150ms;color:var(--arrow-color);user-select:none;font-family:'Courier New', Courier, monospace;display:block}.expanded.svelte-1qd6nto{transform:rotateZ(90deg) translateX(-3px)}")}function Yn(e){let t,n,r,s;return{c(){t=U("span"),n=U("span"),n.textContent="▶",G(n,"class","arrow svelte-1qd6nto"),Z(n,"expanded",e[2]),G(t,"class","container svelte-1qd6nto")},m(o,i){M(o,t,i),I(t,n),r||(s=W(t,"click",e[4]),r=!0)},p(e,t){4&t&&Z(n,"expanded",e[2])},d(e){e&&F(t),r=!1,s()}}}function er(e){let t,n=e[1]&&Yn(e);return{c(){n&&n.c(),t=V()},m(e,r){n&&n.m(e,r),M(e,t,r)},p(e,[r]){e[1]?n?n.p(e,r):(n=Yn(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:Y,o:Y,d(e){n&&n.d(e),e&&F(t)}}}function tr(e,t,n){let r,s,o=Y,i=()=>(o(),o=ie(c,(e=>n(2,s=e))),c);e.$$.on_destroy.push((()=>o()));const{expanded:l,expandable:a}=Qn();le(e,a,(e=>n(1,r=e)));let{expanded:c=l}=t;return i(),e.$$set=e=>{"expanded"in e&&i(n(0,c=e.expanded))},[c,r,s,a,e=>{e.stopPropagation(),he(c,s=!s,s)}]}class nr extends Ue{constructor(e){super(),Fe(this,e,tr,er,oe,{expanded:0},Zn)}}function rr(e){let t;const n=e[1].default,r=ae(n,e,e[0],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,[s]){r&&r.p&&(!t||1&s)&&de(r,n,e,e[0],t?ue(n,e[0],s,null):pe(e[0]),null)},i(e){t||(Pe(r,e),t=!0)},o(e){Be(r,e),t=!1},d(e){r&&r.d(e)}}}function sr(e,t,n){let{$$slots:r={},$$scope:s}=t;return Qn({displayMode:"summary"}),e.$$set=e=>{"$$scope"in e&&n(0,s=e.$$scope)},[s,r]}class or extends Ue{constructor(e){super(),Fe(this,e,sr,rr,oe,{})}}function ir(e){let t;const n=e[3].default,r=ae(n,e,e[2],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,[s]){r&&r.p&&(!t||4&s)&&de(r,n,e,e[2],t?ue(n,e[2],s,null):pe(e[2]),null)},i(e){t||(Pe(r,e),t=!0)},o(e){Be(r,e),t=!1},d(e){r&&r.d(e)}}}function lr(e,t,n){let{$$slots:r={},$$scope:s}=t,{expanded:o}=t,{key:i}=t;const l=Hn(!1);return Qn((({keyPath:e,level:t})=>("[[Entries]]"!==i&&(e=[...e,i],t+=1),{keyPath:e,level:t,expanded:o,expandable:l}))),e.$$set=e=>{"expanded"in e&&n(0,o=e.expanded),"key"in e&&n(1,i=e.key),"$$scope"in e&&n(2,s=e.$$scope)},[o,i,s,r]}class ar extends Ue{constructor(e){super(),Fe(this,e,lr,ir,oe,{expanded:0,key:1})}}function cr(e){q(e,"svelte-19drypg",".root.svelte-19drypg{display:inline-block;position:relative}.indent.svelte-19drypg{padding-left:var(--li-identation)}.label.svelte-19drypg{position:relative}")}function ur(e,t,n){const r=e.slice();return r[19]=t[n],r[21]=n,r}const dr=e=>({key:1&e}),pr=e=>({key:e[19],index:e[21]}),fr=e=>({key:1&e}),hr=e=>({key:e[19],index:e[21]}),mr=e=>({}),$r=e=>({}),gr=e=>({}),yr=e=>({});function vr(e){let t,n,r,s,o,i,l,a,c=e[6]&&function(e){let t,n;return t=new nr({props:{expanded:e[7]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p:Y,i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}(e);r=new or({props:{$$slots:{default:[wr]},$$scope:{ctx:e}}});let u=e[4]&&Er(e);return{c(){t=U("span"),c&&c.c(),n=z(),Ie(r.$$.fragment),s=z(),u&&u.c(),o=V(),G(t,"class","root svelte-19drypg")},m(d,p){M(d,t,p),c&&c.m(t,null),I(t,n),qe(r,t,null),M(d,s,p),u&&u.m(d,p),M(d,o,p),i=!0,l||(a=W(t,"click",e[9]),l=!0)},p(e,t){e[6]&&c.p(e,t);const n={};8192&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n),e[4]?u?(u.p(e,t),16&t&&Pe(u,1)):(u=Er(e),u.c(),Pe(u,1),u.m(o.parentNode,o)):u&&(je(),Be(u,1,1,(()=>{u=null})),Re())},i(e){i||(Pe(c),Pe(r.$$.fragment,e),Pe(u),i=!0)},o(e){Be(c),Be(r.$$.fragment,e),Be(u),i=!1},d(e){e&&F(t),c&&c.d(),Me(r),e&&F(s),u&&u.d(e),e&&F(o),l=!1,a()}}}function br(e){let t;const n=e[11].summary,r=ae(n,e,e[13],yr);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,s){r&&r.p&&(!t||8192&s)&&de(r,n,e,e[13],t?ue(n,e[13],s,gr):pe(e[13]),yr)},i(e){t||(Pe(r,e),t=!0)},o(e){Be(r,e),t=!1},d(e){r&&r.d(e)}}}function wr(e){let t;const n=e[11].preview,r=ae(n,e,e[13],$r);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,s){r&&r.p&&(!t||8192&s)&&de(r,n,e,e[13],t?ue(n,e[13],s,mr):pe(e[13]),$r)},i(e){t||(Pe(r,e),t=!0)},o(e){Be(r,e),t=!1},d(e){r&&r.d(e)}}}function Er(e){let t,n,r,s,o=e[0],i=[];for(let t=0;tBe(i[e],1,1,(()=>{i[e]=null}));return{c(){t=U("ul");for(let e=0;e{};function Or(e,t,n){let r,s,o,{$$slots:i={},$$scope:l}=t,{keys:a}=t,{shouldShowColon:c}=t,{expandKey:u=(e=>e)}=t,{defaultExpanded:d=!1}=t;const{isParentExpanded:p,displayMode:f,root:h,expanded:m,expandable:$,keyPath:g,level:y,shouldExpandNode:v}=Qn({root:!1},{expandable:!0});if(le(e,m,(e=>n(4,s=e))),le(e,$,(e=>n(14,o=e))),he($,o=!0,o),"summary"!==f){if(!d){const e=v({keyPath:g,level:y});void 0!==e&&(d=e)}ge((()=>p.subscribe((e=>{e?m.set(d):m.set(!1)}))))}return e.$$set=e=>{"keys"in e&&n(0,a=e.keys),"shouldShowColon"in e&&n(1,c=e.shouldShowColon),"expandKey"in e&&n(2,u=e.expandKey),"defaultExpanded"in e&&n(10,d=e.defaultExpanded),"$$scope"in e&&n(13,l=e.$$scope)},e.$$.update=()=>{1&e.$$.dirty&&n(3,r=a.map((()=>Hn(!1))))},[a,c,u,r,s,f,h,m,$,function(){he(m,s=!s,s)},d,i,e=>r[e].update((e=>!e)),l]}class Ar extends Ue{constructor(e){super(),Fe(this,e,Or,_r,oe,{keys:0,shouldShowColon:1,expandKey:2,defaultExpanded:10},cr)}}function Tr(e){q(e,"svelte-150ffaa",".comma.svelte-150ffaa{margin-left:-0.5em;margin-right:0.5em}")}function Lr(e,t,n){const r=e.slice();return r[7]=t[n],r[9]=n,r}const Nr=e=>({item:1&e}),jr=e=>({item:e[7],index:e[9]});function Rr(e){let t,n,r=e[2]&&Pr(e);return{c(){r&&r.c(),t=U("span"),n=H(e[3]),G(t,"class","operator")},m(e,s){r&&r.m(e,s),M(e,t,s),I(t,n)},p(e,s){e[2]?r?r.p(e,s):(r=Pr(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),8&s&&X(n,e[3])},d(e){r&&r.d(e),e&&F(t)}}}function Pr(e){let t,n;return{c(){t=U("span"),n=H(e[2]),G(t,"class","label")},m(e,r){M(e,t,r),I(t,n)},p(e,t){4&t&&X(n,e[2])},d(e){e&&F(t)}}}function Br(e){let t;return{c(){t=U("span"),t.textContent=",",G(t,"class","comma operator svelte-150ffaa")},m(e,n){M(e,t,n)},d(e){e&&F(t)}}}function Ir(e){let t,n,r;const s=e[6].item,o=ae(s,e,e[5],jr);let i=e[9]Be(a[e],1,1,(()=>{a[e]=null}));let u=e[1]&&qr(),d=e[4]&&Mr(e);return{c(){i&&i.c(),t=z();for(let e=0;e{"list"in e&&n(0,o=e.list),"hasMore"in e&&n(1,i=e.hasMore),"label"in e&&n(2,l=e.label),"prefix"in e&&n(3,a=e.prefix),"postfix"in e&&n(4,c=e.postfix),"$$scope"in e&&n(5,s=e.$$scope)},[o,i,l,a,c,s,r]}class Ur extends Ue{constructor(e){super(),Fe(this,e,Dr,Fr,oe,{list:0,hasMore:1,label:2,prefix:3,postfix:4},Tr)}}function Hr(e){let t;return{c(){t=U("span"),t.textContent="{…}",G(t,"class","label")},m(e,n){M(e,t,n)},p:Y,d(e){e&&F(t)}}}function zr(e){let t,n,r,s,o,i=e[4]+"";return s=new Yo({props:{value:e[0][e[4]]}}),{c(){t=U("span"),n=H(i),r=U("span"),r.textContent=": ",Ie(s.$$.fragment),G(t,"class","property"),G(r,"class","operator")},m(e,i){M(e,t,i),I(t,n),M(e,r,i),qe(s,e,i),o=!0},p(e,t){(!o||16&t)&&i!==(i=e[4]+"")&&X(n,i);const r={};17&t&&(r.value=e[0][e[4]]),s.$set(r)},i(e){o||(Pe(s.$$.fragment,e),o=!0)},o(e){Be(s.$$.fragment,e),o=!1},d(e){e&&F(t),e&&F(r),Me(s,e)}}}function Vr(e){let t,n;return t=new Ur({props:{list:e[2],hasMore:e[2].length({4:e}),({item:e})=>e?16:0]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.list=e[2]),6&n&&(r.hasMore=e[2].length({3:e}),({key:e})=>e?8:0],item_key:[Wr,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[Vr],summary:[Hr]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,[n]){const r={};2&n&&(r.keys=e[1]),47&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Gr(e,t,n){let r,s,{value:o}=t;return e.$$set=e=>{"value"in e&&n(0,o=e.value)},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=Object.getOwnPropertyNames(o)),2&e.$$.dirty&&n(2,s=r.slice(0,5))},[o,r,s]}class Xr extends Ue{constructor(e){super(),Fe(this,e,Gr,Kr,oe,{value:0})}}function Qr(e){let t,n,r,s,o=e[0].length+"";return{c(){t=U("span"),n=H("Array("),r=H(o),s=H(")"),G(t,"class","label")},m(e,o){M(e,t,o),I(t,n),I(t,r),I(t,s)},p(e,t){1&t&&o!==(o=e[0].length+"")&&X(r,o)},d(e){e&&F(t)}}}function Zr(e){let t,n;return t=new Yo({props:{value:e[4]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.value=e[4]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Yr(e){let t,n;return t=new Ur({props:{list:e[1],hasMore:e[1].length({4:e}),({item:e})=>e?16:0]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.list=e[1]),3&n&&(r.hasMore=e[1].length({3:e}),({key:e})=>e?8:0],item_key:[es,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[Yr],summary:[Qr]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,[n]){const r={};4&n&&(r.keys=e[2]),43&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function rs(e,t,n){let r,s,{value:o}=t;return e.$$set=e=>{"value"in e&&n(0,o=e.value)},e.$$.update=()=>{1&e.$$.dirty&&n(2,r=Object.getOwnPropertyNames(o)),1&e.$$.dirty&&n(1,s=o.slice(0,5))},[o,s,r]}class ss extends Ue{constructor(e){super(),Fe(this,e,rs,ns,oe,{value:0})}}function os(e){let t,n,r,s,o,i=e[3].length+"";return{c(){t=U("span"),n=H(e[1]),r=H("("),s=H(i),o=H(")"),G(t,"class","label")},m(e,i){M(e,t,i),I(t,n),I(t,r),I(t,s),I(t,o)},p(e,t){2&t&&X(n,e[1]),8&t&&i!==(i=e[3].length+"")&&X(s,i)},d(e){e&&F(t)}}}function is(e){let t,n;return t=new Yo({props:{value:e[8]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};256&n&&(r.value=e[8]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function ls(e){let t,n;return t=new Ur({props:{list:e[4],hasMore:e[4].length({8:e}),({item:e})=>e?256:0]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.list=e[4]),20&n&&(r.hasMore=e[4].length({7:e}),({key:e})=>e?128:0],item_key:[ds,({key:e})=>({7:e}),({key:e})=>e?128:0]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.keys=e[3]),644&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function ds(e){let t,n,r=e[7]+"";return{c(){t=U("span"),n=H(r),G(t,"class","property")},m(e,r){M(e,t,r),I(t,n)},p(e,t){128&t&&r!==(r=e[7]+"")&&X(n,r)},d(e){e&&F(t)}}}function ps(e){let t,n;return t=new Yo({props:{value:e[2][e[7]]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};132&n&&(r.value=e[2][e[7]]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function fs(e){let t,n,r,s;const o=[us,cs],i=[];function l(e,t){return e[6]===ms?0:1}return t=l(e),n=i[t]=o[t](e),{c(){n.c(),r=V()},m(e,n){i[t].m(e,n),M(e,r,n),s=!0},p(e,s){let a=t;t=l(e),t===a?i[t].p(e,s):(je(),Be(i[a],1,1,(()=>{i[a]=null})),Re(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),Pe(n,1),n.m(r.parentNode,r))},i(e){s||(Pe(n),s=!0)},o(e){Be(n),s=!1},d(e){i[t].d(e),e&&F(r)}}}function hs(e){let t,n;return t=new Ar({props:{keys:[ms,"size"],shouldShowColon:e[5],$$slots:{item_value:[fs,({key:e})=>({6:e}),({key:e})=>e?64:0],item_key:[as,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[ls],summary:[os]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,[n]){const r={};607&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}const ms="[[Entries]]";function $s(e,t,n){let r,{value:s}=t,{nodeType:o}=t,i=[],l=[];return e.$$set=e=>{"value"in e&&n(0,s=e.value),"nodeType"in e&&n(1,o=e.nodeType)},e.$$.update=()=>{if(1&e.$$.dirty){let e=[],t=[],r=0;for(const n of s)e.push(r++),t.push(n);n(3,i=e),n(2,l=t)}4&e.$$.dirty&&n(4,r=l.slice(0,5))},[s,o,l,i,r,e=>e!==ms]}class gs extends Ue{constructor(e){super(),Fe(this,e,$s,hs,oe,{value:0,nodeType:1})}}function ys(e){let t,n,r,s,o=e[2].length+"";return{c(){t=U("span"),n=H("Map("),r=H(o),s=H(")"),G(t,"color","label")},m(e,o){M(e,t,o),I(t,n),I(t,r),I(t,s)},p(e,t){4&t&&o!==(o=e[2].length+"")&&X(r,o)},d(e){e&&F(t)}}}function vs(e){let t,n,r,s;return t=new Yo({props:{value:e[10]}}),r=new Yo({props:{value:e[0].get(e[10])}}),{c(){Ie(t.$$.fragment),n=U("span"),n.textContent=" => ",Ie(r.$$.fragment),G(n,"class","operator")},m(e,o){qe(t,e,o),M(e,n,o),qe(r,e,o),s=!0},p(e,n){const s={};1024&n&&(s.value=e[10]),t.$set(s);const o={};1025&n&&(o.value=e[0].get(e[10])),r.$set(o)},i(e){s||(Pe(t.$$.fragment,e),Pe(r.$$.fragment,e),s=!0)},o(e){Be(t.$$.fragment,e),Be(r.$$.fragment,e),s=!1},d(e){Me(t,e),e&&F(n),Me(r,e)}}}function bs(e){let t,n;return t=new Ur({props:{list:e[4],hasMore:e[4].length({10:e}),({item:e})=>e?1024:0]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.list=e[4]),17&n&&(r.hasMore=e[4].length({8:e}),({key:e})=>e?256:0],item_key:[Ss,({key:e})=>({8:e}),({key:e})=>e?256:0]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.keys=e[1]),4&n&&(r.expandKey=e[5]),2316&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Ss(e){let t,n,r=e[8]+"";return{c(){t=U("span"),n=H(r),G(t,"class","property")},m(e,r){M(e,t,r),I(t,n)},p(e,t){256&t&&r!==(r=e[8]+"")&&X(n,r)},d(e){e&&F(t)}}}function ks(e){let t,n,r,s,o,i;return n=new Yo({props:{value:e[2][e[8]]}}),s=new Yo({props:{value:e[3][e[8]]}}),{c(){t=U("span"),t.textContent="{ ",Ie(n.$$.fragment),r=U("span"),r.textContent=" => ",Ie(s.$$.fragment),o=U("span"),o.textContent=" }",G(t,"class","operator"),G(r,"class","operator"),G(o,"class","operator")},m(e,l){M(e,t,l),qe(n,e,l),M(e,r,l),qe(s,e,l),M(e,o,l),i=!0},p(e,t){const r={};260&t&&(r.value=e[2][e[8]]),n.$set(r);const o={};264&t&&(o.value=e[3][e[8]]),s.$set(o)},i(e){i||(Pe(n.$$.fragment,e),Pe(s.$$.fragment,e),i=!0)},o(e){Be(n.$$.fragment,e),Be(s.$$.fragment,e),i=!1},d(e){e&&F(t),Me(n,e),e&&F(r),Me(s,e),e&&F(o)}}}function _s(e){let t,n,r=e[9]+"";return{c(){t=U("span"),n=H(r),G(t,"class","property")},m(e,r){M(e,t,r),I(t,n)},p(e,t){512&t&&r!==(r=e[9]+"")&&X(n,r)},d(e){e&&F(t)}}}function Cs(e){let t,n;return t=new Yo({props:{value:"key"===e[9]?e[2][e[8]]:e[3][e[8]]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};780&n&&(r.value="key"===e[9]?e[2][e[8]]:e[3][e[8]]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Os(e){let t,n;return t=new Ar({props:{keys:["key","value"],$$slots:{item_value:[Cs,({key:e})=>({9:e}),({key:e})=>e?512:0],item_key:[_s,({key:e})=>({9:e}),({key:e})=>e?512:0],preview:[ks]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};2828&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function As(e){let t,n,r,s;const o=[xs,Es],i=[];function l(e,t){return e[7]===Ls?0:1}return t=l(e),n=i[t]=o[t](e),{c(){n.c(),r=V()},m(e,n){i[t].m(e,n),M(e,r,n),s=!0},p(e,s){let a=t;t=l(e),t===a?i[t].p(e,s):(je(),Be(i[a],1,1,(()=>{i[a]=null})),Re(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),Pe(n,1),n.m(r.parentNode,r))},i(e){s||(Pe(n),s=!0)},o(e){Be(n),s=!1},d(e){i[t].d(e),e&&F(r)}}}function Ts(e){let t,n;return t=new Ar({props:{keys:[Ls,"size"],shouldShowColon:e[6],$$slots:{item_value:[As,({key:e})=>({7:e}),({key:e})=>e?128:0],item_key:[ws,({key:e})=>({7:e}),({key:e})=>e?128:0],preview:[bs],summary:[ys]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,[n]){const r={};2207&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}const Ls="[[Entries]]";function Ns(e,t,n){let r,{value:s}=t;Qn();let o=[],i=[],l=[];return e.$$set=e=>{"value"in e&&n(0,s=e.value)},e.$$.update=()=>{if(1&e.$$.dirty){let e=[],t=[],r=[],a=0;for(const n of s)e.push(a++),t.push(n[0]),r.push(n[1]);n(1,o=e),n(2,i=t),n(3,l=r)}1&e.$$.dirty&&n(4,r=Array.from(s.keys()).slice(0,5))},[s,o,i,l,r,e=>i[e],e=>e!==Ls]}class js extends Ue{constructor(e){super(),Fe(this,e,Ns,Ts,oe,{value:0})}}function Rs(e){q(e,"svelte-l95iub",".Date.svelte-l95iub{color:var(--date-color)}.BigInt.svelte-l95iub{color:var(--number-color)}.Number.svelte-l95iub{color:var(--number-color)}.Boolean.svelte-l95iub{color:var(--boolean-color)}.Null.svelte-l95iub{color:var(--null-color)}.Undefined.svelte-l95iub{color:var(--undefined-color)}.Symbol.svelte-l95iub{color:var(--symbol-color)}")}function Ps(e){let t,n,r;return{c(){t=U("span"),n=H(e[0]),G(t,"class",r=fe(e[1])+" svelte-l95iub")},m(e,r){M(e,t,r),I(t,n)},p(e,[s]){1&s&&X(n,e[0]),2&s&&r!==(r=fe(e[1])+" svelte-l95iub")&&G(t,"class",r)},i:Y,o:Y,d(e){e&&F(t)}}}function Bs(e,t,n){let{value:r,nodeType:s}=t;return e.$$set=e=>{"value"in e&&n(0,r=e.value),"nodeType"in e&&n(1,s=e.nodeType)},[r,s]}class Is extends Ue{constructor(e){super(),Fe(this,e,Bs,Ps,oe,{value:0,nodeType:1},Rs)}}function qs(e){q(e,"svelte-1u08yw6",".indent.svelte-1u08yw6{padding-left:var(--li-identation)}")}function Ms(e,t,n){const r=e.slice();r[6]=t[n],r[9]=n;const s=r[9]Be(s[e],1,1,(()=>{s[e]=null}));return{c(){for(let e=0;e0)},m(e,l){M(e,t,l),qe(n,t,null),I(t,r),I(r,s),M(e,o,l),i=!0},p(e,t){const r={};1&t&&(r.value=e[6]+(e[7]?"\\n":"")),n.$set(r),(!i||1&t)&&l!==(l=e[7]?" +":"")&&X(s,l)},i(e){i||(Pe(n.$$.fragment,e),i=!0)},o(e){Be(n.$$.fragment,e),i=!1},d(e){e&&F(t),Me(n),e&&F(o)}}}function Hs(e){let t,n,r,s,o,i;const l=[Ds,Fs],a=[];function c(e,t){return e[1]?0:1}return n=c(e),r=a[n]=l[n](e),{c(){t=U("span"),r.c()},m(r,l){M(r,t,l),a[n].m(t,null),s=!0,o||(i=W(t,"click",e[4]),o=!0)},p(e,[s]){let o=n;n=c(e),n===o?a[n].p(e,s):(je(),Be(a[o],1,1,(()=>{a[o]=null})),Re(),r=a[n],r?r.p(e,s):(r=a[n]=l[n](e),r.c()),Pe(r,1),r.m(t,null))},i(e){s||(Pe(r),s=!0)},o(e){Be(r),s=!1},d(e){e&&F(t),a[n].d(),o=!1,i()}}}function zs(e,t,n){let r,s,{stack:o}=t;const{expanded:i,expandable:l}=Qn();return le(e,i,(e=>n(1,s=e))),le(e,l,(e=>n(5,r=e))),he(l,r=!0,r),e.$$set=e=>{"stack"in e&&n(0,o=e.stack)},[o,s,i,l,()=>he(i,s=!s,s)]}class Vs extends Ue{constructor(e){super(),Fe(this,e,zs,Hs,oe,{stack:0},qs)}}function Ws(e){let t,n,r,s=String(e[0].message)+"";return{c(){t=U("span"),n=H("Error: "),r=H(s),G(t,"class","label")},m(e,s){M(e,t,s),I(t,n),I(t,r)},p(e,t){1&t&&s!==(s=String(e[0].message)+"")&&X(r,s)},d(e){e&&F(t)}}}function Js(e){let t,n,r,s=String(e[0].message)+"";return{c(){t=U("span"),n=H("Error: "),r=H(s),G(t,"class","label")},m(e,s){M(e,t,s),I(t,n),I(t,r)},p(e,t){1&t&&s!==(s=String(e[0].message)+"")&&X(r,s)},d(e){e&&F(t)}}}function Ks(e){let t,n,r=e[2]+"";return{c(){t=U("span"),n=H(r),G(t,"class","property")},m(e,r){M(e,t,r),I(t,n)},p(e,t){4&t&&r!==(r=e[2]+"")&&X(n,r)},d(e){e&&F(t)}}}function Gs(e){let t,n;return t=new Yo({props:{value:e[0][e[2]]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};5&n&&(r.value=e[0][e[2]]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Xs(e){let t,n;return t=new Vs({props:{stack:e[1]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.stack=e[1]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Qs(e){let t,n,r,s;const o=[Xs,Gs],i=[];function l(e,t){return"stack"===e[2]?0:1}return t=l(e),n=i[t]=o[t](e),{c(){n.c(),r=V()},m(e,n){i[t].m(e,n),M(e,r,n),s=!0},p(e,s){let a=t;t=l(e),t===a?i[t].p(e,s):(je(),Be(i[a],1,1,(()=>{i[a]=null})),Re(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),Pe(n,1),n.m(r.parentNode,r))},i(e){s||(Pe(n),s=!0)},o(e){Be(n),s=!1},d(e){i[t].d(e),e&&F(r)}}}function Zs(e){let t,n;return t=new Ar({props:{keys:["message","stack"],$$slots:{item_value:[Qs,({key:e})=>({2:e}),({key:e})=>e?4:0],item_key:[Ks,({key:e})=>({2:e}),({key:e})=>e?4:0],preview:[Js],summary:[Ws]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,[n]){const r={};15&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Ys(e,t,n){let r,{value:s}=t;return e.$$set=e=>{"value"in e&&n(0,s=e.value)},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=s.stack.split("\n"))},[s,r]}class eo extends Ue{constructor(e){super(),Fe(this,e,Ys,Zs,oe,{value:0})}}function to(e){q(e,"svelte-1fvwa9c","span.svelte-1fvwa9c{color:var(--string-color);word-break:break-all;word-wrap:break-word}")}function no(e){let t,n,r,s;return{c(){t=U("span"),n=H('"'),r=H(e[0]),s=H('"'),G(t,"class","svelte-1fvwa9c")},m(e,o){M(e,t,o),I(t,n),I(t,r),I(t,s)},p(e,t){1&t&&X(r,e[0])},d(e){e&&F(t)}}}function ro(e){let t,n,r,s,o=e[0].slice(0,30)+(e[0].length>30?"…":"");return{c(){t=U("span"),n=H('"'),r=H(o),s=H('"'),G(t,"class","svelte-1fvwa9c")},m(e,o){M(e,t,o),I(t,n),I(t,r),I(t,s)},p(e,t){1&t&&o!==(o=e[0].slice(0,30)+(e[0].length>30?"…":""))&&X(r,o)},d(e){e&&F(t)}}}function so(e){let t,n=("summary"===e[1]?ro:no)(e);return{c(){n.c(),t=V()},m(e,r){n.m(e,r),M(e,t,r)},p(e,[t]){n.p(e,t)},i:Y,o:Y,d(e){n.d(e),e&&F(t)}}}function oo(e,t,n){let r,{value:s}=t;const o={"\n":"\\n","\t":"\\t","\r":"\\r"},{displayMode:i}=Qn();return e.$$set=e=>{"value"in e&&n(2,s=e.value)},e.$$.update=()=>{4&e.$$.dirty&&n(0,r=s.replace(/[\n\t\r]/g,(e=>o[e])))},[r,i,s]}class io extends Ue{constructor(e){super(),Fe(this,e,oo,so,oe,{value:2},to)}}function lo(e){q(e,"svelte-1eamqdt",".i.svelte-1eamqdt{font-style:italic}.fn.svelte-1eamqdt,.i.svelte-1eamqdt{color:var(--function-color)}")}function ao(e){let t;return{c(){t=U("span"),t.textContent="ƒ",G(t,"class","i svelte-1eamqdt")},m(e,n){M(e,t,n)},d(e){e&&F(t)}}}function co(e){let t,n,r=wo(e[2])+"";return{c(){t=U("span"),n=H(r),G(t,"class","fn i svelte-1eamqdt")},m(e,r){M(e,t,r),I(t,n)},p(e,t){4&t&&r!==(r=wo(e[2])+"")&&X(n,r)},d(e){e&&F(t)}}}function uo(e){let t,n,r=Eo(e[2])+"";return{c(){t=U("span"),n=H(r),G(t,"class","i svelte-1eamqdt")},m(e,r){M(e,t,r),I(t,n)},p(e,t){4&t&&r!==(r=Eo(e[2])+"")&&X(n,r)},d(e){e&&F(t)}}}function po(e){let t,n,r=!e[2].isArrow&&co(e),s=!e[2].isClass&&uo(e);return{c(){r&&r.c(),t=V(),s&&s.c(),n=V()},m(e,o){r&&r.m(e,o),M(e,t,o),s&&s.m(e,o),M(e,n,o)},p(e,o){e[2].isArrow?r&&(r.d(1),r=null):r?r.p(e,o):(r=co(e),r.c(),r.m(t.parentNode,t)),e[2].isClass?s&&(s.d(1),s=null):s?s.p(e,o):(s=uo(e),s.c(),s.m(n.parentNode,n))},d(e){r&&r.d(e),e&&F(t),s&&s.d(e),e&&F(n)}}}function fo(e){let t,n,r,s=e[7]+"";return{c(){t=U("span"),n=H(s),G(t,"class",r=e[7]===vo||e[7]===bo?"internal":"property")},m(e,r){M(e,t,r),I(t,n)},p(e,o){128&o&&s!==(s=e[7]+"")&&X(n,s),128&o&&r!==(r=e[7]===vo||e[7]===bo?"internal":"property")&&G(t,"class",r)},d(e){e&&F(t)}}}function ho(e){let t,n;return t=new Yo({props:{value:e[3](e[7])}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};128&n&&(r.value=e[3](e[7])),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function mo(e){let t,n;return t=new Xr({props:{value:e[3](e[7])}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};128&n&&(r.value=e[3](e[7])),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function $o(e){let t,n;return{c(){t=U("span"),n=H(e[0]),G(t,"class","i svelte-1eamqdt")},m(e,r){M(e,t,r),I(t,n)},p(e,t){1&t&&X(n,e[0])},i:Y,o:Y,d(e){e&&F(t)}}}function go(e){let t,n,r,s;const o=[$o,mo,ho],i=[];function l(e,t){return e[7]===vo?0:"prototype"===e[7]?1:2}return t=l(e),n=i[t]=o[t](e),{c(){n.c(),r=V()},m(e,n){i[t].m(e,n),M(e,r,n),s=!0},p(e,s){let a=t;t=l(e),t===a?i[t].p(e,s):(je(),Be(i[a],1,1,(()=>{i[a]=null})),Re(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),Pe(n,1),n.m(r.parentNode,r))},i(e){s||(Pe(n),s=!0)},o(e){Be(n),s=!1},d(e){i[t].d(e),e&&F(r)}}}function yo(e){let t,n;return t=new Ar({props:{keys:e[1],$$slots:{item_value:[go,({key:e})=>({7:e}),({key:e})=>e?128:0],item_key:[fo,({key:e})=>({7:e}),({key:e})=>e?128:0],preview:[po],summary:[ao]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,[n]){const r={};2&n&&(r.keys=e[1]),389&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}const vo="[[Function]]",bo="[[Prototype]]";function wo({isGenerator:e,isAsync:t,isClass:n}){return n?`class ${n}`:(t?"async ":"")+"ƒ"+(e?"*":"")}function Eo({isAsync:e,isArrow:t,fnName:n,args:r}){return(t&&e?"async":"")+" "+(null!=n?n:"")+r+(t?" => …":"")}function xo(e,t,n){let r,s,o,{value:i}=t;function l(e){return e===bo?i.__proto__:i[e]}return e.$$set=e=>{"value"in e&&n(4,i=e.value)},e.$$.update=()=>{16&e.$$.dirty&&n(0,r=function(e){try{return e.toString()}catch{switch(e.constructor.name){case"AsyncFunction":return"async function () {}";case"AsyncGeneratorFunction":return"async function * () {}";case"GeneratorFunction:":return"function * () {}";default:return"function () {}"}}}(i)),1&e.$$.dirty&&n(2,s=function(e){const t=e.match(/^(?:(async)\s+)?(?:function)?(\*)?\s*([^(]+)?(\([^)]*\))\s*(=>)?/),n=null==t?void 0:t[1],r=null==t?void 0:t[2],s=null==t?void 0:t[3],o=null==t?void 0:t[4],i=null==t?void 0:t[5],l=e.match(/^class\s+([^\s]+)/);return{args:o,isAsync:n,isGenerator:r,fnName:s,isArrow:i,isClass:null==l?void 0:l[1]}}(r))},n(1,o=["length","name","prototype",vo,bo].filter((function(e){return e===vo||l(e)}))),[r,o,s,l,i]}class So extends Ue{constructor(e){super(),Fe(this,e,xo,yo,oe,{value:4},lo)}}function ko(e){let t,n,r,s,o,i=e[3]?"writable(":"readable(";return r=new Yo({props:{value:e[2]}}),{c(){t=U("span"),n=H(i),Ie(r.$$.fragment),s=H(")"),G(t,"class","label")},m(e,i){M(e,t,i),I(t,n),qe(r,t,null),I(t,s),o=!0},p(e,t){(!o||8&t)&&i!==(i=e[3]?"writable(":"readable(")&&X(n,i);const s={};4&t&&(s.value=e[2]),r.$set(s)},i(e){o||(Pe(r.$$.fragment,e),o=!0)},o(e){Be(r.$$.fragment,e),o=!1},d(e){e&&F(t),Me(r)}}}function _o(e){let t,n,r,s,o,i=e[9]+"";return s=new Yo({props:{value:e[0][e[9]]}}),{c(){t=U("span"),n=H(i),r=U("span"),r.textContent=": ",Ie(s.$$.fragment),G(t,"class","property"),G(r,"class","operator")},m(e,i){M(e,t,i),I(t,n),M(e,r,i),qe(s,e,i),o=!0},p(e,t){(!o||512&t)&&i!==(i=e[9]+"")&&X(n,i);const r={};513&t&&(r.value=e[0][e[9]]),s.$set(r)},i(e){o||(Pe(s.$$.fragment,e),o=!0)},o(e){Be(s.$$.fragment,e),o=!1},d(e){e&&F(t),e&&F(r),Me(s,e)}}}function Co(e){let t,n;return t=new Ur({props:{list:e[4],hasMore:e[4].length({9:e}),({item:e})=>e?512:0]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.list=e[4]),18&n&&(r.hasMore=e[4].length({8:e}),({key:e})=>e?256:0],item_key:[Oo,({key:e})=>({8:e}),({key:e})=>e?256:0],preview:[Co],summary:[ko]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,[n]){const r={};32&n&&(r.keys=e[5]),1311&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}const Lo="$value";function No(e,t,n){let r,s,o,i,l,a,c=Y,u=()=>(c(),c=ie(d,(e=>n(7,a=e))),d);e.$$.on_destroy.push((()=>c()));let{value:d}=t;return u(),e.$$set=e=>{"value"in e&&u(n(0,d=e.value))},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=Object.getOwnPropertyNames(d)),2&e.$$.dirty&&n(5,s=[Lo,...r]),2&e.$$.dirty&&n(4,o=r.slice(0,5)),128&e.$$.dirty&&n(2,i=a),1&e.$$.dirty&&n(3,l="function"==typeof d.set)},[d,r,i,l,o,s,function(e){return e===Lo?i:d[e]},a]}class jo extends Ue{constructor(e){super(),Fe(this,e,No,To,oe,{value:0})}}function Ro(e){let t,n,r,s,o,i=e[0].length+"";return{c(){t=U("span"),n=H(e[1]),r=H("("),s=H(i),o=H(")"),G(t,"class","label")},m(e,i){M(e,t,i),I(t,n),I(t,r),I(t,s),I(t,o)},p(e,t){2&t&&X(n,e[1]),1&t&&i!==(i=e[0].length+"")&&X(s,i)},d(e){e&&F(t)}}}function Po(e){let t,n;return t=new Yo({props:{value:e[7]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};128&n&&(r.value=e[7]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Bo(e){let t,n;return t=new Ur({props:{list:e[2],hasMore:e[2].length({7:e}),({item:e})=>e?128:0]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.list=e[2]),5&n&&(r.hasMore=e[2].length({6:e}),({key:e})=>e?64:0],item_key:[Io,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[Bo],summary:[Ro]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,[n]){const r={};8&n&&(r.keys=e[3]),327&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}const Fo="Symbol(Symbol.toStringTag)";function Do(e,t,n){let r,s,{value:o}=t,{nodeType:i}=t;const l=["buffer","byteLength","byteOffset","length",Fo];return e.$$set=e=>{"value"in e&&n(0,o=e.value),"nodeType"in e&&n(1,i=e.nodeType)},e.$$.update=()=>{1&e.$$.dirty&&n(3,r=[...Object.getOwnPropertyNames(o),...l]),1&e.$$.dirty&&n(2,s=o.slice(0,5))},[o,i,s,r,l,function(e){return e===Fo?o[Symbol.toStringTag]:o[e]}]}class Uo extends Ue{constructor(e){super(),Fe(this,e,Do,Mo,oe,{value:0,nodeType:1})}}function Ho(e){q(e,"svelte-17k1wqt",".regex.svelte-17k1wqt{color:var(--regex-color)}")}function zo(e){let t,n;return{c(){t=U("span"),n=H(e[1]),G(t,"class","regex svelte-17k1wqt")},m(e,r){M(e,t,r),I(t,n)},p(e,t){2&t&&X(n,e[1])},d(e){e&&F(t)}}}function Vo(e){let t,n;return{c(){t=U("span"),n=H(e[1]),G(t,"class","regex svelte-17k1wqt")},m(e,r){M(e,t,r),I(t,n)},p(e,t){2&t&&X(n,e[1])},d(e){e&&F(t)}}}function Wo(e){let t,n,r=String(e[3])+"";return{c(){t=U("span"),n=H(r),G(t,"class","internal")},m(e,r){M(e,t,r),I(t,n)},p(e,t){8&t&&r!==(r=String(e[3])+"")&&X(n,r)},d(e){e&&F(t)}}}function Jo(e){let t,n;return t=new Yo({props:{value:e[0][e[3]]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};9&n&&(r.value=e[0][e[3]]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Ko(e){let t,n;return t=new Ar({props:{keys:e[2],$$slots:{item_value:[Jo,({key:e})=>({3:e}),({key:e})=>e?8:0],item_key:[Wo,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[Vo],summary:[zo]},$$scope:{ctx:e}}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,[n]){const r={};27&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function Go(e,t,n){let r,{value:s}=t;return e.$$set=e=>{"value"in e&&n(0,s=e.value)},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=s.toString())},[s,r,["lastIndex","dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"]]}class Xo extends Ue{constructor(e){super(),Fe(this,e,Go,Ko,oe,{value:0},Ho)}}function Qo(e){let t,n,r;const s=[{value:e[0]},e[1]];var o=e[2];function i(e){let t={};for(let e=0;e{Me(e,1)})),Re()}o?(t=new o(i()),Ie(t.$$.fragment),Pe(t.$$.fragment,1),qe(t,n.parentNode,n)):t=null}else o&&t.$set(l)},i(e){r||(t&&Pe(t.$$.fragment,e),r=!0)},o(e){t&&Be(t.$$.fragment,e),r=!1},d(e){e&&F(n),t&&Me(t,e)}}}function Zo(e,t,n){let r,s,o,{value:i}=t;const l=Hn();return le(e,l,(e=>n(4,o=e))),e.$$set=e=>{"value"in e&&n(0,i=e.value)},e.$$.update=()=>{1&e.$$.dirty&&he(l,o=function(e){const t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t?"function"==typeof e[Symbol.iterator]?"Iterable":e.constructor.name:t}(i),o),17&e.$$.dirty&&n(2,[r,s]=function(e,t){switch(e){case"Object":return"function"==typeof t.subscribe?[jo]:[Xr];case"Error":return[eo];case"Array":return[ss];case"Map":return[js];case"Iterable":case"Set":return[gs,{nodeType:e}];case"Number":return[Is,{nodeType:e}];case"String":return[io];case"Boolean":return[Is,{nodeType:e,value:t?"true":"false"}];case"Date":return[Is,{nodeType:e,value:t.toISOString()}];case"Null":return[Is,{nodeType:e,value:"null"}];case"Undefined":return[Is,{nodeType:e,value:"undefined"}];case"Function":case"AsyncFunction":case"AsyncGeneratorFunction":case"GeneratorFunction":return[So];case"Symbol":return[Is,{nodeType:e,value:t.toString()}];case"BigInt":return[Is,{nodeType:e,value:String(t)+"n"}];case"ArrayBuffer":return[Is,{nodeType:e,value:`ArrayBuffer(${t.byteLength})`}];case"BigInt64Array":case"BigUint64Array":case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint8ClampedArray":case"Uint16Array":case"Uint32Array":return[Uo,{nodeType:e}];case"RegExp":return[Xo];default:return[Is,{nodeType:e,value:`<${e}>`}]}}(o,i),r,(n(1,s),n(4,o),n(0,i)))},[i,s,r,l,o]}class Yo extends Ue{constructor(e){super(),Fe(this,e,Zo,Qo,oe,{value:0})}}function ei(e){q(e,"svelte-16cw61f","ul.svelte-16cw61f{--string-color:var(--json-tree-string-color, #cb3f41);--symbol-color:var(--json-tree-symbol-color, #cb3f41);--boolean-color:var(--json-tree-boolean-color, #112aa7);--function-color:var(--json-tree-function-color, #112aa7);--number-color:var(--json-tree-number-color, #3029cf);--label-color:var(--json-tree-label-color, #871d8f);--property-color:var(--json-tree-property-color, #000000);--arrow-color:var(--json-tree-arrow-color, #727272);--operator-color:var(--json-tree-operator-color, #727272);--null-color:var(--json-tree-null-color, #8d8d8d);--undefined-color:var(--json-tree-undefined-color, #8d8d8d);--date-color:var(--json-tree-date-color, #8d8d8d);--internal-color:var(--json-tree-internal-color, grey);--regex-color:var(--json-tree-regex-color, var(--string-color));--li-identation:var(--json-tree-li-indentation, 1em);--li-line-height:var(--json-tree-li-line-height, 1.3);font-size:var(--json-tree-font-size, 12px);font-family:var(--json-tree-font-family, 'Courier New', Courier, monospace)}ul.svelte-16cw61f li{line-height:var(--li-line-height);display:var(--li-display, list-item);list-style:none}ul.svelte-16cw61f,ul.svelte-16cw61f ul{padding:0;margin:0}ul.svelte-16cw61f{margin-left:var(--li-identation)}ul.svelte-16cw61f{cursor:default}ul.svelte-16cw61f .label{color:var(--label-color)}ul.svelte-16cw61f .property{color:var(--property-color)}ul.svelte-16cw61f .internal{color:var(--internal-color)}ul.svelte-16cw61f .operator{color:var(--operator-color)}")}function ti(e){let t,n;return t=new Yo({props:{value:e[0]}}),{c(){Ie(t.$$.fragment)},m(e,r){qe(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.value=e[0]),t.$set(r)},i(e){n||(Pe(t.$$.fragment,e),n=!0)},o(e){Be(t.$$.fragment,e),n=!1},d(e){Me(t,e)}}}function ni(e){let t,n,r;return n=new ar({props:{key:"$",expanded:e[1],$$slots:{default:[ti]},$$scope:{ctx:e}}}),{c(){t=U("ul"),Ie(n.$$.fragment),G(t,"class","svelte-16cw61f")},m(e,s){M(e,t,s),qe(n,t,null),r=!0},p(e,[t]){const r={};33&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(Pe(n.$$.fragment,e),r=!0)},o(e){Be(n.$$.fragment,e),r=!1},d(e){e&&F(t),Me(n)}}}function ri(e,t,n){let r,{value:s}=t,{defaultExpandedPaths:o=[]}=t,{defaultExpandedLevel:i=0}=t;const l=Hn(!0);return Qn({expanded:l,isParentExpanded:Un(!0),root:!0,shouldExpandNode:e=>r(e),level:0,keyPath:[]}),e.$$set=e=>{"value"in e&&n(0,s=e.value),"defaultExpandedPaths"in e&&n(2,o=e.defaultExpandedPaths),"defaultExpandedLevel"in e&&n(3,i=e.defaultExpandedLevel)},e.$$.update=()=>{12&e.$$.dirty&&(r=function({defaultExpandedPaths:e,defaultExpandedLevel:t}){const n=e.map((e=>e.split(".")));return function({keyPath:e,level:r}){return r<=t||function(e){e:for(const t of n){if(e.length>t.length)continue;const n=Math.min(e.length,t.length);for(let r=0;r{"value"in e&&n(0,r=e.value),"level"in e&&n(1,s=e.level)},[r,s]}const li=class extends Ue{constructor(e){super(),Fe(this,e,ii,oi,oe,{value:0,level:1})}};class ai{constructor(e){var t;this.element=e,this.value=null!==(t=e.dataset.json)&&void 0!==t?t:"",this.level=e.dataset.level?parseInt(e.dataset.level):0,this.initEventHandlers()}initEventHandlers(){let e=document.createElement("div");this.element.innerText="",this.element.append(e),this.component=new li({target:e,props:{value:JSON.parse(this.value),level:this.level}})}}let ci=m();ci.registerService("Modals",new class{constructor(){this.modals={},this.number=0,this.defaults={modal:N},this.initGlobalEvents()}register(e,t=""){return t||(t="m"+this.number),this.modals[t]=e,this.number++,e}get(e){return this.modals.hasOwnProperty(e)?this.modals[e]:null}open(e){var t;null===(t=this.get(e))||void 0===t||t.open()}close(e){var t;null===(t=this.get(e))||void 0===t||t.close()}closeAll(){for(let e in this.modals)this.close(e)}initGlobalEvents(){document.addEventListener("click",(e=>{let t=e.target;t.dataset.acModal&&(e.preventDefault(),this.open(t.dataset.acModal))}))}}),ci.registerService("tooltips",w),ci.registerService("initPointers",Ke),document.addEventListener("DOMContentLoaded",(()=>{let e=(e=>{let t=document.querySelector(e);return t?"TABLE"===t.tagName?t:"TBODY"===t.tagName?t.closest("table"):t.querySelector("table.wp-list-table")?t.querySelector("table.wp-list-table"):null:null})(AC.table_id);if(Ke(),e){const t=new b(e,ci).init();ci.registerService("Table",t),ci.registerService("ScreenOptionsColumns",new k(t.Columns))}ci.registerService("Tooltips",new S),document.querySelectorAll(".ac-toggle-box-link").forEach((e=>{new C(e)})),A()(".wp-list-table").on("updated","tr",(function(){ci.getService("Table").addCellClasses(),T()}))})),ci.addListener(y,(e=>{T(),document.querySelectorAll(".cpac_use_icons").forEach((e=>{var t;null===(t=null==e?void 0:e.parentElement)||void 0===t||t.querySelectorAll(".row-actions a").forEach((e=>{new E(e,e.innerText)}))})),new MutationObserver((e=>{e.forEach((e=>{e.addedNodes.forEach((e=>{"TR"===e.tagName&&e.classList.contains("iedit")&&A()(e).trigger("updated",{id:$(e),row:e})}))}))})).observe(e.table.getElement(),{childList:!0,subtree:!0}),e.table.Cells.getAll().forEach((e=>{e.events.addListener("setValue",(()=>{T()}))}));let t={};e.table.getElement().querySelectorAll("td [data-modal-value]").forEach((n=>{var r,s,o,i;let l=e.table.Cells.getByElement(null!==(r=n.closest("td"))&&void 0!==r?r:document.createElement("td"));l&&(t.hasOwnProperty(l.getName())||(t[l.getName()]=[]),t[l.getName()].push({element:n,editLink:null!==(s=n.dataset.modalEditLink)&&void 0!==s?s:"",downloadLink:null!==(o=n.dataset.modalDownloadLink)&&void 0!==o?o:"",title:null!==(i=n.dataset.modalTitle)&&void 0!==i?i:null,columnName:l.getName(),objectId:l.getObjectID()}))})),Object.keys(t).forEach((e=>new Fn(t[e]))),document.querySelectorAll('[data-component="ac-json"]').forEach((e=>{new ai(e)}))}))})()})(); \ No newline at end of file diff --git a/classes/Admin/Asset/Columns.php b/classes/Admin/Asset/Columns.php index c19f74dac..4285ec9d0 100644 --- a/classes/Admin/Asset/Columns.php +++ b/classes/Admin/Asset/Columns.php @@ -49,6 +49,8 @@ public function register(): void 'original_columns' => [], 'uninitialized_list_screens' => [], 'i18n' => [ + 'value' => __('Value', 'codepress-admin-columns'), + 'label' => __('Label', 'codepress-admin-columns'), 'clone' => __('%s column is already present and can not be duplicated.', 'codepress-admin-columns'), 'error' => __('Invalid response.', 'codepress-admin-columns'), 'errors' => [ diff --git a/classes/Admin/Page/Columns.php b/classes/Admin/Page/Columns.php index b0481e0cb..17d53e815 100644 --- a/classes/Admin/Page/Columns.php +++ b/classes/Admin/Page/Columns.php @@ -157,6 +157,10 @@ public function render(): string $classes[] = 'show-list-screen-type'; } + $list_id = $this->list_screen->has_id() + ? (string)$this->list_screen->get_id() + : ''; + ob_start(); ?>

@@ -212,7 +216,7 @@ public function render(): string 'label_main' => $label_main, 'label_second' => $label_second, 'list_screen_key' => $this->list_screen->get_key(), - 'list_screen_id' => $this->list_screen->get_layout_id(), + 'list_screen_id' => $list_id, 'delete_confirmation_message' => $delete_confirmation_message, ]); @@ -281,7 +285,7 @@ public function render(): string $columns = new View([ 'class' => implode(' ', $classes), 'list_screen' => $this->list_screen->get_key(), - 'list_screen_id' => $this->list_screen->get_layout_id(), + 'list_screen_id' => $list_id, 'title' => $this->list_screen->get_title(), 'columns' => $this->list_screen->get_columns(), 'show_actions' => ! $this->list_screen->is_read_only(), diff --git a/classes/Admin/ScreenOption/ListScreenSource.php b/classes/Admin/ScreenOption/ListScreenSource.php new file mode 100644 index 000000000..5f9f4fb53 --- /dev/null +++ b/classes/Admin/ScreenOption/ListScreenSource.php @@ -0,0 +1,39 @@ +preference = $preference; + } + + public function is_active(): bool + { + return 1 === $this->preference->get(self::KEY); + } + + public function render(): string + { + ob_start(); + ?> + + + get(SetupFactory\AdminColumns::class)->create(SetupFactory::SITE)) ); + $request_ajax_handlers = new RequestAjaxHandlers(); + $request_ajax_handlers->add('ac-list-screen-delete', $container->get(ListScreenDelete::class)); + + $services->add( + new RequestAjaxParser($request_ajax_handlers) + ); + if ($container->get(Plugin::class)->is_network_active()) { $services->add( new Service\Setup($container->get(SetupFactory\AdminColumns::class)->create(SetupFactory::NETWORK)) @@ -116,13 +125,13 @@ private function create_container(): DI\Container Storage::class => static function (Database $database): Storage { $storage = new Storage(); $storage->set_repositories([ - 'acp-database' => new ListScreenRepository\Storage\ListScreenRepository($database, true), + Types::DATABASE => new ListScreenRepository\Storage\ListScreenRepository($database, true), ]); return $storage; }, RestoreSettingsRequest::class => static function (Storage $storage): RestoreSettingsRequest { - return new RestoreSettingsRequest($storage->get_repository('acp-database')); + return new RestoreSettingsRequest($storage->get_repository(Types::DATABASE)); }, Plugin::class => static function (): Plugin { return Plugin::create(AC_FILE, new Version(AC_VERSION)); diff --git a/classes/ArrayIterator.php b/classes/ArrayIterator.php index c17cb6dac..840c6721c 100644 --- a/classes/ArrayIterator.php +++ b/classes/ArrayIterator.php @@ -4,89 +4,101 @@ use Iterator; -class ArrayIterator implements Iterator { - - /** - * @var array - */ - protected $array; - - public function __construct( array $array = [] ) { - $this->array = $array; - } - - #[\ReturnTypeWillChange] - public function current() { - return current( $this->array ); - } - - #[\ReturnTypeWillChange] - public function next() { - return next( $this->array ); - } - - #[\ReturnTypeWillChange] - public function key() { - return key( $this->array ); - } - - #[\ReturnTypeWillChange] - public function valid() { - return $this->key() !== null; - } - - #[\ReturnTypeWillChange] - public function rewind() { - return reset( $this->array ); - } - - /** - * @param string $offset - * - * @return false|mixed - */ - public function get_offset( $offset ) { - if ( ! $this->has_offset( $offset ) ) { - return false; - } - - return $this->array[ $offset ]; - } - - /** - * @param string $offset - * - * @return bool - */ - public function has_offset( $offset ) { - return array_key_exists( $offset, $this->array ); - } - - /** - * @param mixed $value - * - * @return bool - */ - public function search( $value ) { - return false !== array_search( $value, $this->array, true ); - } - - /** - * @return int - */ - public function count() { - return count( $this->array ); - } - - /** - * @return array - */ - public function get_copy() { - $copy = $this->array; - - reset( $copy ); - - return $copy; - } +class ArrayIterator implements Iterator +{ + + /** + * @var array + */ + protected $array; + + public function __construct(array $array = []) + { + $this->array = $array; + } + + #[\ReturnTypeWillChange] + public function current() + { + return current($this->array); + } + + #[\ReturnTypeWillChange] + public function next() + { + return next($this->array); + } + + #[\ReturnTypeWillChange] + public function key() + { + return key($this->array); + } + + #[\ReturnTypeWillChange] + public function valid() + { + return $this->key() !== null; + } + + #[\ReturnTypeWillChange] + public function rewind() + { + return reset($this->array); + } + + /** + * @param string $offset + * + * @return false|mixed + */ + public function get_offset($offset) + { + if ( ! $this->has_offset($offset)) { + return false; + } + + return $this->array[$offset]; + } + + /** + * @param string $offset + * + * @return bool + */ + public function has_offset($offset) + { + return array_key_exists($offset, $this->array); + } + + /** + * @param mixed $value + * + * @return bool + */ + public function search($value) + { + return in_array($value, $this->array, true); + } + + /** + * @return int + */ + public function count() + { + return count($this->array); + } + + /** + * @return array + */ + public function get_copy() + { + $copy = $this->array; + + reset($copy); + + return $copy; + } } \ No newline at end of file diff --git a/classes/Column/Comment/AuthorName.php b/classes/Column/Comment/AuthorName.php index bf100b3be..14c1c4e46 100644 --- a/classes/Column/Comment/AuthorName.php +++ b/classes/Column/Comment/AuthorName.php @@ -4,24 +4,23 @@ use AC\Column; -/** - * @since 2.4.2 - */ -class AuthorName extends Column { - - public function __construct() { - $this->set_type( 'column-author_name' ); - $this->set_label( __( 'Author Name', 'codepress-admin-columns' ) ); - } - - public function get_value( $id ) { - return $this->get_raw_value( $id ); - } - - public function get_raw_value( $id ) { - $comment = get_comment( $id ); - - return $comment->comment_author; - } +class AuthorName extends Column +{ + + public function __construct() + { + $this->set_type('column-author_name'); + $this->set_label(__('Author Name', 'codepress-admin-columns')); + } + + public function get_value($id) + { + return $this->get_raw_value($id); + } + + public function get_raw_value($id) + { + return get_comment($id)->comment_author; + } } \ No newline at end of file diff --git a/classes/Column/Comment/Date.php b/classes/Column/Comment/Date.php index ae734f73c..6c1d8e777 100644 --- a/classes/Column/Comment/Date.php +++ b/classes/Column/Comment/Date.php @@ -4,18 +4,18 @@ use AC\Column; -/** - * @since 2.0 - */ -class Date extends Column { +class Date extends Column +{ - public function __construct() { - $this->set_original( true ) - ->set_type( 'date' ); - } + public function __construct() + { + $this->set_original(true) + ->set_type('date'); + } - public function register_settings() { - $this->get_setting( 'width' )->set_default( 14 ); - } + public function register_settings() + { + $this->get_setting('width')->set_default(14); + } } \ No newline at end of file diff --git a/classes/Column/Comment/Post.php b/classes/Column/Comment/Post.php index 002bea85e..05af7fd03 100644 --- a/classes/Column/Comment/Post.php +++ b/classes/Column/Comment/Post.php @@ -5,28 +5,29 @@ use AC; use AC\Column; -/** - * @since 2.4.7 - */ -class Post extends Column { - - public function __construct() { - $this->set_type( 'column-post' ); - $this->set_label( __( 'Post', 'codepress-admin-columns' ) ); - } - - public function get_raw_value( $id ) { - $comment = get_comment( $id ); - - if ( ! $comment ) { - return false; - } - - return $comment->comment_post_ID; - } - - public function register_settings() { - $this->add_setting( new AC\Settings\Column\Post( $this ) ); - } +class Post extends Column +{ + + public function __construct() + { + $this->set_type('column-post'); + $this->set_label(__('Post', 'codepress-admin-columns')); + } + + public function get_raw_value($id) + { + $comment = get_comment($id); + + if ( ! $comment) { + return false; + } + + return $comment->comment_post_ID; + } + + public function register_settings() + { + $this->add_setting(new AC\Settings\Column\Post($this)); + } } \ No newline at end of file diff --git a/classes/Column/Media/Album.php b/classes/Column/Media/Album.php index e45229df7..7916dd0f9 100644 --- a/classes/Column/Media/Album.php +++ b/classes/Column/Media/Album.php @@ -8,8 +8,6 @@ class Album extends Meta { public function __construct() { - parent::__construct(); - $this->set_type( 'column-meta_album' ) ->set_group( 'media-audio' ) ->set_label( __( 'Album', 'codepress-admin-columns' ) ); diff --git a/classes/Column/Media/Artist.php b/classes/Column/Media/Artist.php index d2374fb50..3f4dc5b0d 100644 --- a/classes/Column/Media/Artist.php +++ b/classes/Column/Media/Artist.php @@ -8,8 +8,6 @@ class Artist extends Meta { public function __construct() { - parent::__construct(); - $this->set_type( 'column-meta_artist' ) ->set_group( 'media-audio' ) ->set_label( __( 'Artist', 'codepress-admin-columns' ) ); diff --git a/classes/Column/Media/AvailableSizes.php b/classes/Column/Media/AvailableSizes.php index 3e1a91e09..b3a73686c 100644 --- a/classes/Column/Media/AvailableSizes.php +++ b/classes/Column/Media/AvailableSizes.php @@ -11,8 +11,6 @@ class AvailableSizes extends Column\Media\MetaValue { public function __construct() { - parent::__construct(); - $this->set_type( 'column-available_sizes' ) ->set_group( 'media-image' ) ->set_label( __( 'Available Sizes', 'codepress-admin-columns' ) ); diff --git a/classes/Column/Media/Dimensions.php b/classes/Column/Media/Dimensions.php index bdf3d3f67..09e1038d5 100644 --- a/classes/Column/Media/Dimensions.php +++ b/classes/Column/Media/Dimensions.php @@ -10,7 +10,6 @@ class Dimensions extends Meta { public function __construct() { - parent::__construct(); $this->set_type( 'column-dimensions' ) ->set_group( 'media-image' ) diff --git a/classes/Column/Media/ExifData.php b/classes/Column/Media/ExifData.php index e38da2b5a..828e3ad13 100644 --- a/classes/Column/Media/ExifData.php +++ b/classes/Column/Media/ExifData.php @@ -11,8 +11,6 @@ class ExifData extends Column\Media\MetaValue { public function __construct() { - parent::__construct(); - $this->set_type( 'column-exif_data' ) ->set_group( 'media-image' ) ->set_label( __( 'Image Meta (EXIF)', 'codepress-admin-columns' ) ); diff --git a/classes/Column/Media/FileMeta.php b/classes/Column/Media/FileMeta.php index cd6711d3e..0d47bdfb7 100644 --- a/classes/Column/Media/FileMeta.php +++ b/classes/Column/Media/FileMeta.php @@ -5,44 +5,54 @@ use AC\Column; use AC\Settings; -abstract class FileMeta extends Column\Meta { - - public function get_meta_key() { - return '_wp_attachment_metadata'; - } - - /** - * @return Settings\Column\FileMeta - */ - protected function get_media_setting() { - $setting = $this->get_setting( 'media_meta' ); - - return $setting instanceof Settings\Column\FileMeta - ? $setting - : null; - } - - /** - * @return array - */ - public function get_sub_keys() { - return $this->get_media_setting()->get_media_meta_keys(); - } - - protected function get_metadata_value( array $data, array $keys ) { - $data = ac_helper()->array->get_nested_value( $data, $keys ); - - return is_scalar( $data ) - ? $data - : null; - } - - public function get_raw_value( $id ) { - $data = $this->get_meta_value( $id, $this->get_meta_key() ); - - return is_array( $data ) - ? $this->get_metadata_value( $data, $this->get_sub_keys() ) - : null; - } +abstract class FileMeta extends Column\Meta +{ + + public function get_meta_key() + { + return '_wp_attachment_metadata'; + } + + /** + * @return Settings\Column\FileMeta + */ + protected function get_media_setting() + { + $setting = $this->get_setting('media_meta'); + + return $setting instanceof Settings\Column\FileMeta + ? $setting + : null; + } + + /** + * @return array + */ + public function get_sub_keys() + { + $media_settings = $this->get_media_setting(); + + return $media_settings + ? $media_settings->get_media_meta_keys() + : []; + } + + protected function get_metadata_value(array $data, array $keys) + { + $data = ac_helper()->array->get_nested_value($data, $keys); + + return is_scalar($data) + ? $data + : null; + } + + public function get_raw_value($id) + { + $data = $this->get_meta_value($id, $this->get_meta_key()); + + return is_array($data) + ? $this->get_metadata_value($data, $this->get_sub_keys()) + : null; + } } \ No newline at end of file diff --git a/classes/Column/Media/Height.php b/classes/Column/Media/Height.php index 3e34db6e5..f840ae4ec 100644 --- a/classes/Column/Media/Height.php +++ b/classes/Column/Media/Height.php @@ -10,8 +10,6 @@ class Height extends Column\Media\MetaValue { public function __construct() { - parent::__construct(); - $this->set_type( 'column-height' ) ->set_group( 'media-image' ) ->set_label( __( 'Height', 'codepress-admin-columns' ) ); diff --git a/classes/Column/Media/Meta.php b/classes/Column/Media/Meta.php index b7986db5e..d14f5af7e 100644 --- a/classes/Column/Media/Meta.php +++ b/classes/Column/Media/Meta.php @@ -6,10 +6,6 @@ abstract class Meta extends Column\Meta { - public function __construct() { - $this->set_serialized( true ); - } - public function get_meta_key() { return '_wp_attachment_metadata'; } diff --git a/classes/Column/Media/MimeType.php b/classes/Column/Media/MimeType.php index 44497d941..c0e144ad2 100644 --- a/classes/Column/Media/MimeType.php +++ b/classes/Column/Media/MimeType.php @@ -7,21 +7,25 @@ /** * @since 2.0 */ -class MimeType extends Column { - - public function __construct() { - $this->set_type( 'column-mime_type' ) - ->set_label( __( 'Mime Type', 'codepress-admin-columns' ) ); - } - - public function get_value( $id ) { - $value = $this->get_raw_value( $id ); - - return $value ?: $this->get_empty_char(); - } - - public function get_raw_value( $id ) { - return get_post_field( 'post_mime_type', $id ); - } +class MimeType extends Column +{ + + public function __construct() + { + $this->set_type('column-mime_type') + ->set_label(__('Mime Type', 'codepress-admin-columns')); + } + + public function get_value($id) + { + $value = $this->get_raw_value($id); + + return $value ?: $this->get_empty_char(); + } + + public function get_raw_value($id) + { + return get_post_field('post_mime_type', $id); + } } \ No newline at end of file diff --git a/classes/Column/Post/Slug.php b/classes/Column/Post/Slug.php index 49781737d..f8227a66e 100644 --- a/classes/Column/Post/Slug.php +++ b/classes/Column/Post/Slug.php @@ -3,29 +3,42 @@ namespace AC\Column\Post; use AC\Column; +use AC\Settings; /** * @since 2.0 */ -class Slug extends Column { - - public function __construct() { - $this->set_type( 'column-slug' ); - $this->set_label( __( 'Slug', 'codepress-admin-columns' ) ); - } - - function get_value( $post_id ) { - $slug = $this->get_raw_value( $post_id ); - - if ( ! $slug ) { - return $this->get_empty_char(); - } - - return $slug; - } - - function get_raw_value( $post_id ) { - return urldecode( get_post_field( 'post_name', $post_id, 'raw' ) ); - } +class Slug extends Column +{ + + public function __construct() + { + $this->set_type('column-slug'); + $this->set_label(__('Slug', 'codepress-admin-columns')); + } + + public function get_value($post_id) + { + $slug = $this->get_raw_value($post_id); + + if ( ! $slug) { + return $this->get_empty_char(); + } + + return $slug; + } + + public function get_raw_value($post_id) + { + return urldecode(get_post_field('post_name', $post_id, 'raw')); + } + + public function register_settings() + { + $setting_limit = new Settings\Column\CharacterLimit($this); + $setting_limit->set_default(null); + + $this->add_setting($setting_limit); + } } \ No newline at end of file diff --git a/classes/Column/Post/TitleRaw.php b/classes/Column/Post/TitleRaw.php index a8c4c6229..988a3a6a2 100644 --- a/classes/Column/Post/TitleRaw.php +++ b/classes/Column/Post/TitleRaw.php @@ -8,23 +8,32 @@ /** * @since 2.2.4 */ -class TitleRaw extends Column { - - public function __construct() { - $this->set_type( 'column-title_raw' ); - $this->set_label( __( 'Title Only', 'codepress-admin-columns' ) ); - } - - public function get_value( $id ) { - return sprintf( '%s', wp_kses_post( parent::get_value( $id ) ) ); - } - - function get_raw_value( $post_id ) { - return get_post_field( 'post_title', $post_id ); - } - - public function register_settings() { - $this->add_setting( new Settings\Column\PostLink( $this ) ); - } +class TitleRaw extends Column +{ + + public function __construct() + { + $this->set_type('column-title_raw'); + $this->set_label(__('Title Only', 'codepress-admin-columns')); + } + + public function get_value($id) + { + return sprintf('%s', wp_kses_post(parent::get_value($id))); + } + + public function get_raw_value($post_id) + { + return get_post_field('post_title', $post_id); + } + + public function register_settings() + { + $setting_limit = new Settings\Column\CharacterLimit($this); + $setting_limit->set_default(null); + + $this->add_setting($setting_limit); + $this->add_setting(new Settings\Column\PostLink($this)); + } } \ No newline at end of file diff --git a/classes/Column/User/Description.php b/classes/Column/User/Description.php index ecdd8d418..47b0e59ad 100644 --- a/classes/Column/User/Description.php +++ b/classes/Column/User/Description.php @@ -5,27 +5,29 @@ use AC\Column; use AC\Settings; -/** - * @since 2.0 - */ -class Description extends Column\Meta { - - public function __construct() { - $this->set_type( 'column-user_description' ); - $this->set_label( __( 'Description', 'codepress-admin-columns' ) ); - } - - public function get_meta_key() { - return 'description'; - } - - public function get_raw_value( $user_id ) { - return get_the_author_meta( 'user_description', $user_id ); - } - - public function register_settings() { - $this->add_setting( new Settings\Column\WordLimit( $this ) ); - $this->add_setting( new Settings\Column\BeforeAfter( $this ) ); - } +class Description extends Column\Meta +{ + + public function __construct() + { + $this->set_type('column-user_description'); + $this->set_label(__('Description', 'codepress-admin-columns')); + } + + public function get_meta_key() + { + return 'description'; + } + + public function get_raw_value($user_id) + { + return get_the_author_meta('user_description', $user_id); + } + + public function register_settings() + { + $this->add_setting(new Settings\Column\WordLimit($this)); + $this->add_setting(new Settings\Column\BeforeAfter($this)); + } } \ No newline at end of file diff --git a/classes/Column/User/FirstPost.php b/classes/Column/User/FirstPost.php index 3c50e455f..dc07331b5 100644 --- a/classes/Column/User/FirstPost.php +++ b/classes/Column/User/FirstPost.php @@ -57,7 +57,7 @@ protected function get_related_post_type() protected function register_settings() { - $this->add_setting(new Settings\Column\PostType($this)); + $this->add_setting(new Settings\Column\PostType($this, true)); $this->add_setting(new Settings\Column\PostStatus($this)); $this->add_setting(new Settings\Column\Post($this)); } diff --git a/classes/Column/User/LastPost.php b/classes/Column/User/LastPost.php index bdd55d6ba..a8bdc3545 100644 --- a/classes/Column/User/LastPost.php +++ b/classes/Column/User/LastPost.php @@ -58,7 +58,7 @@ public function get_related_post_stati() protected function register_settings() { - $this->add_setting(new Settings\Column\PostType($this)); + $this->add_setting(new Settings\Column\PostType($this, true)); $this->add_setting(new Settings\Column\PostStatus($this)); $this->add_setting(new Settings\Column\Post($this)); } diff --git a/classes/Column/User/PostCount.php b/classes/Column/User/PostCount.php index 40ae36535..32f2bfb49 100644 --- a/classes/Column/User/PostCount.php +++ b/classes/Column/User/PostCount.php @@ -5,68 +5,87 @@ use AC\Column; use AC\Settings; -/** - * @since 2.0 - */ -class PostCount extends Column { - - public function __construct() { - $this->set_type( 'column-user_postcount' ) - ->set_label( __( 'Post Count', 'codepress-admin-columns' ) ); - } - - public function get_value( $user_id ) { - $ids = $this->get_raw_value( $user_id ); - - if ( empty( $ids ) ) { - return $this->get_empty_char(); - } - - $value = number_format_i18n( count( $ids ) ); - - if ( post_type_exists( $this->get_selected_post_type() ) ) { - $link = add_query_arg( [ - 'post_type' => $this->get_selected_post_type(), - 'author' => $user_id, - ], admin_url( 'edit.php' ) ); - - $value = sprintf( '%s', $link, $value ); - } - - return $value; - } - - protected function get_selected_post_type() { - return $this->get_setting( 'post_type' )->get_post_type(); - } - - public function get_raw_value( $user_id ) { - $post_type = $this->get_selected_post_type(); - - if ( 'any' === $post_type ) { - // All post types, including the ones that are marked "exclude from search" - $post_type = get_post_types(); - } - - return get_posts( [ - 'fields' => 'ids', - 'author' => $user_id, - 'post_type' => $post_type, - 'posts_per_page' => -1, - 'post_status' => $this->get_selected_post_status(), - ] ); - } - - /** - * @return array - */ - public function get_selected_post_status() { - return $this->get_setting( 'post_status' )->get_value(); - } - - protected function register_settings() { - $this->add_setting( new Settings\Column\PostType( $this, true ) ); - $this->add_setting( new Settings\Column\PostStatus( $this ) ); - } +class PostCount extends Column +{ + + public function __construct() + { + $this->set_type('column-user_postcount') + ->set_label(__('Post Count', 'codepress-admin-columns')); + } + + public function get_value($user_id) + { + $user_id = (int)$user_id; + + $count = $this->get_post_count($user_id); + + if ($count < 1) { + return $this->get_empty_char(); + } + + $value = number_format_i18n($count); + + $post_types = $this->get_selected_post_types(); + + // single post type + if (1 === count($post_types)) { + $link = add_query_arg([ + 'post_type' => $post_types[0], + 'author' => $user_id, + ], admin_url('edit.php')); + + $value = sprintf('%s', $link, $value); + } + + return $value; + } + + private function get_post_count(int $user_id): int + { + return ac_helper()->post->count_user_posts( + $user_id, + $this->get_selected_post_types(), + $this->get_selected_post_status() + ); + } + + protected function get_selected_post_types(): array + { + $post_type = (string)$this->get_setting('post_type')->get_post_type(); + + if ('any' === $post_type) { + // All post types, including the ones that are marked "exclude from search" + return array_keys(get_post_types(['show_ui' => true])); + } + + if (post_type_exists($post_type)) { + return [$post_type]; + } + + return []; + } + + public function get_raw_value($user_id) + { + return $this->get_post_count((int)$user_id); + } + + protected function get_selected_post_status(): array + { + $post_status = $this->get_setting('post_status')->get_value(); + + if ('' === $post_status) { + return get_post_stati(['internal' => 0]); + } + + return $post_status; + } + + protected function register_settings() + { + $this->add_setting(new Settings\Column\PostType($this, true)); + $this->add_setting(new Settings\Column\PostStatus($this)); + } } \ No newline at end of file diff --git a/classes/Controller/AjaxRequestCustomFieldKeys.php b/classes/Controller/AjaxRequestCustomFieldKeys.php index 471f787de..90a23aee0 100644 --- a/classes/Controller/AjaxRequestCustomFieldKeys.php +++ b/classes/Controller/AjaxRequestCustomFieldKeys.php @@ -4,58 +4,67 @@ use AC\Ajax; use AC\Helper\Select; +use AC\Helper\Select\Generic\GroupFormatter\BlogSite; +use AC\Helper\Select\Generic\GroupFormatter\VisibilityType; +use AC\Helper\Select\Generic\Groups; +use AC\Meta\Query; use AC\Registerable; use AC\Request; use AC\Response; -class AjaxRequestCustomFieldKeys implements Registerable { +class AjaxRequestCustomFieldKeys implements Registerable +{ - public function register(): void + public function register(): void { - $this->get_ajax_handler()->register(); - } - - private function get_ajax_handler() { - $handler = new Ajax\Handler(); - $handler - ->set_action( 'ac_custom_field_options' ) - ->set_callback( [ $this, 'ajax_get_custom_fields' ] ); - - return $handler; - } - - public function ajax_get_custom_fields() { - $this->get_ajax_handler()->verify_request(); - - $request = new Request(); - $response = new Response\Json(); - - $args = [ - 'meta_type' => $request->get( 'meta_type' ), - ]; - - if ( $request->get( 'post_type' ) ) { - $args['post_type'] = $request->get( 'post_type' ); - } - - $entities = new Select\Entities\CustomFields( $args ); - - if ( is_multisite() ) { - $formatter = new Select\Group\CustomField\MultiSite( - new Select\Formatter\NullFormatter( $entities ) - ); - } else { - $formatter = new Select\Group\CustomField( - new Select\Formatter\NullFormatter( $entities ) - ); - } - - $options = new Select\Options\Paginated( $entities, $formatter ); - $select = new Select\Response( $options ); - - $response - ->set_parameters( $select() ) - ->success(); - } + $this->get_ajax_handler()->register(); + } + + private function get_ajax_handler(): Ajax\Handler + { + $handler = new Ajax\Handler(); + $handler + ->set_action('ac_custom_field_options') + ->set_callback([$this, 'ajax_get_custom_fields']); + + return $handler; + } + + public function ajax_get_custom_fields(): void + { + $this->get_ajax_handler()->verify_request(); + + $request = new Request(); + $response = new Response\Json(); + + $post_type = $request->get('post_type'); + + $query = new Query($request->get('meta_type')); + + $query->select('meta_key') + ->distinct() + ->order_by('meta_key'); + + if ($post_type) { + $query->where_post_type($post_type); + } + + $formatter = is_multisite() + ? new BlogSite() + : new VisibilityType(); + + $meta_keys = $query->get(); + + $options = Select\Options::create_from_array( + array_combine($meta_keys, $meta_keys) + ); + $options = new Groups($options, $formatter); + + $select = new Select\Response($options); + + $response + ->set_parameters($select()) + ->success(); + } } \ No newline at end of file diff --git a/classes/Controller/AjaxScreenOptions.php b/classes/Controller/AjaxScreenOptions.php index 873d7df8d..1b866a00a 100644 --- a/classes/Controller/AjaxScreenOptions.php +++ b/classes/Controller/AjaxScreenOptions.php @@ -6,41 +6,39 @@ use AC\Ajax; use AC\Registerable; -class AjaxScreenOptions implements Registerable { +class AjaxScreenOptions implements Registerable +{ - /** - * @var ScreenOptions - */ - private $preference; + private $preference; - public function __construct( ScreenOptions $preference ) { - $this->preference = $preference; - } + public function __construct(ScreenOptions $preference) + { + $this->preference = $preference; + } - public function register(): void + public function register(): void { - $this->get_ajax_handler()->register(); - } + $this->get_ajax_handler()->register(); + } - /** - * @return Ajax\Handler - */ - private function get_ajax_handler() { - $handler = new Ajax\Handler(); - $handler - ->set_action( 'ac_admin_screen_options' ) - ->set_callback( [ $this, 'handle_ajax_request' ] ); + private function get_ajax_handler(): Ajax\Handler + { + $handler = new Ajax\Handler(); + $handler + ->set_action('ac_admin_screen_options') + ->set_callback([$this, 'handle_ajax_request']); - return $handler; - } + return $handler; + } - public function handle_ajax_request() { - $this->get_ajax_handler()->verify_request(); + public function handle_ajax_request() + { + $this->get_ajax_handler()->verify_request(); - $name = filter_input( INPUT_POST, 'option_name', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); - $value = (int) filter_input( INPUT_POST, 'option_value', FILTER_SANITIZE_NUMBER_INT ); + $name = filter_input(INPUT_POST, 'option_name', FILTER_SANITIZE_FULL_SPECIAL_CHARS); + $value = (int)filter_input(INPUT_POST, 'option_value', FILTER_SANITIZE_NUMBER_INT); - $this->preference->set( $name, $value ); - } + $this->preference->set($name, $value); + } } \ No newline at end of file diff --git a/classes/Helper.php b/classes/Helper.php index 41af9fc7f..804be483a 100644 --- a/classes/Helper.php +++ b/classes/Helper.php @@ -3,6 +3,7 @@ namespace AC; use AC; +use InvalidArgumentException; /** * Class AC\Helper @@ -24,7 +25,7 @@ final class Helper { - public function __get($helper) + public function __get(string $helper) { switch ($helper) { // Hotfix @@ -42,7 +43,7 @@ public function __get($helper) } } - return false; + throw new InvalidArgumentException('Invalid helper.'); } } \ No newline at end of file diff --git a/classes/Helper/Html.php b/classes/Helper/Html.php index 7965ede97..126aa7561 100644 --- a/classes/Helper/Html.php +++ b/classes/Helper/Html.php @@ -155,13 +155,8 @@ public function get_ajax_toggle_box_link($id, $label, $column_name, $label_close /** * Display a modal which trigger an ajax event on click. The ajax callback calls AC\Column::get_ajax_value. - * - * @param string $label - * @param string|null $title - * - * @return string */ - public function get_ajax_modal_link($label, array $attributes = []) + public function get_ajax_modal_link(string $label, array $attributes = [], string $label_suffix = null): string { $attribute_markup = []; @@ -182,9 +177,10 @@ public function get_ajax_modal_link($label, array $attributes = []) } return sprintf( - '%s', + '%s%s', implode(' ', $attribute_markup), - $label + $label, + $label_suffix ); } diff --git a/classes/Helper/Image.php b/classes/Helper/Image.php index eef072b23..4c5d1722c 100644 --- a/classes/Helper/Image.php +++ b/classes/Helper/Image.php @@ -5,364 +5,399 @@ use DOMDocument; use DOMElement; -class Image { - - /** - * Resize image - * - * @param string $file - * @param int $max_w - * @param int $max_h - * @param bool $crop - * @param null|string $suffix - * @param null|string $dest_path - * @param int $jpeg_quality - * - * @return false|string - */ - public function resize( - $file, - $max_w, - $max_h, - $crop = false, - $suffix = null, - $dest_path = null, - $jpeg_quality = 90 - ) { - $editor = wp_get_image_editor( $file ); - - if ( is_wp_error( $editor ) ) { - return false; - } - - $editor->set_quality( $jpeg_quality ); - - $resized = $editor->resize( $max_w, $max_h, $crop ); - - if ( is_wp_error( $resized ) ) { - return false; - } - - $dest_file = $editor->generate_filename( $suffix, $dest_path ); - $saved = $editor->save( $dest_file ); - - if ( is_wp_error( $saved ) ) { - return false; - } - - return $dest_file; - } - - /** - * @param int[]|int $ids - * @param array|string $size - * - * @return string HTML Images - */ - public function get_images_by_ids( $ids, $size ) { - $images = []; - - $ids = is_array( $ids ) ? $ids : [ $ids ]; - foreach ( $ids as $id ) { - $images[] = $this->get_image_by_id( $id, $size ); - } - - return implode( $images ); - } - - /** - * @param int $id - * @param string|array $size - * - * @return string|false - */ - public function get_image_by_id( $id, $size ) { - if ( ! is_numeric( $id ) ) { - return false; - } - - $attributes = wp_get_attachment_image_src( $id, $size ); - - // Is Image - if ( $attributes ) { - [ $src, $width, $height ] = $attributes; - - if ( is_array( $size ) ) { - $image = $this->markup_cover( $src, $size[0], $size[1], $id ); - } else { - // In case of SVG - if ( 1 === (int) $width && 1 === (int) $height ) { - $_size = $this->get_image_sizes_by_name( $size ); - $width = $_size['width']; - $height = $_size['height']; - } - - $image = $this->markup( $src, $width, $height, $id ); - } - - return $image; - } - - $attributes = wp_get_attachment_image_src( $id, $size, true ); - - // Is File, use icon - if ( $attributes ) { - return $this->markup( $attributes[0], $this->scale_size( $attributes[1], 0.8 ), $this->scale_size( $attributes[2], 0.8 ), $id, true ); - } - - return false; - } - - /** - * @param $size - * @param int $scale - * - * @return float - */ - private function scale_size( $size, $scale = 1 ): float { - return round( absint( $size ) * $scale ); - } - - private function is_resized_image( $path ) { - $fileinfo = pathinfo( $path ); - - return preg_match( '/-[0-9]+x[0-9]+$/', $fileinfo['filename'] ); - } - - /** - * @param string $url - * @param array|string $size - * - * @return string - */ - public function get_image_by_url( $url, $size ) { - $dimensions = [ 60, 60 ]; - - if ( is_string( $size ) && ( $sizes = $this->get_image_sizes_by_name( $size ) ) ) { - $dimensions = [ $sizes['width'], $sizes['height'] ]; - } else if ( is_array( $size ) ) { - $dimensions = $size; - } - - $image_path = str_replace( WP_CONTENT_URL, WP_CONTENT_DIR, $url ); - - if ( is_file( $image_path ) ) { - // try to resize image if it is not already resized - if ( ! $this->is_resized_image( $image_path ) && ( $resized = $this->resize( $image_path, $dimensions[0], $dimensions[1], true ) ) ) { - $src = str_replace( WP_CONTENT_DIR, WP_CONTENT_URL, $resized ); - - return $this->markup( $src, $dimensions[0], $dimensions[1] ); - } - - return $this->markup( $url, $dimensions[0], $dimensions[1] ); - } - - // External image - return $this->markup_cover( $image_path, $dimensions[0], $dimensions[1] ); - } - - /** - * @param mixed $images - * @param array|string $size - * @param bool $skip_image_check Skips image check. Useful when the url does not have an image extension like jpg or gif (e.g. gravatar). - * - * @return array - */ - public function get_images( $images, $size = 'thumbnail', $skip_image_check = false ) { - $thumbnails = []; - - foreach ( (array) $images as $value ) { - if ( $skip_image_check && $value && is_string( $value ) ) { - $thumbnails[] = $this->get_image_by_url( $value, $size ); - } else if ( ac_helper()->string->is_image( $value ) ) { - $thumbnails[] = $this->get_image_by_url( $value, $size ); - } // Media Attachment - else if ( is_numeric( $value ) && wp_get_attachment_url( $value ) ) { - $thumbnails[] = $this->get_image_by_id( $value, $size ); - } - } - - return $thumbnails; - } - - /** - * @param int|string $image ID of Url - * @param string|array $size - * @param bool $skip_image_check - * - * @return string - */ - public function get_image( $image, $size = 'thumbnail', $skip_image_check = false ) { - return implode( $this->get_images( $image, $size, $skip_image_check ) ); - } - - /** - * @param string $name - * - * @return array Image sizes - */ - public function get_image_sizes_by_name( $name ) { - $available_sizes = wp_get_additional_image_sizes(); - - $defaults = [ 'thumbnail', 'medium', 'large' ]; - foreach ( $defaults as $key ) { - $available_sizes[ $key ] = [ - 'width' => get_option( $key . '_size_w' ), - 'height' => get_option( $key . '_size_h' ), - ]; - } - - $sizes = false; - - if ( is_scalar( $name ) && isset( $available_sizes[ $name ] ) ) { - $sizes = $available_sizes[ $name ]; - } - - return $sizes; - } - - /** - * @param int $attachment_id - * - * @return bool|string - */ - public function get_file_name( $attachment_id ) { - $file = get_post_meta( $attachment_id, '_wp_attached_file', true ); - - if ( ! $file ) { - return false; - } - - return basename( $file ); - } - - /** - * @param int $attachment_id - * - * @return string File extension - */ - public function get_file_extension( $attachment_id ) { - return pathinfo( $this->get_file_name( $attachment_id ), PATHINFO_EXTENSION ); - } - - private function get_file_tooltip_attr( $media_id ) { - return ac_helper()->html->get_tooltip_attr( $this->get_file_name( $media_id ) ); - } - - private function markup_cover( $src, $width, $height, $media_id = null ) { - ob_start(); ?> - - - +class Image +{ + + /** + * Resize image + * + * @param string $file + * @param int $max_w + * @param int $max_h + * @param bool $crop + * @param null|string $suffix + * @param null|string $dest_path + * @param int $jpeg_quality + * + * @return false|string + */ + public function resize( + $file, + $max_w, + $max_h, + $crop = false, + $suffix = null, + $dest_path = null, + $jpeg_quality = 90 + ) { + $editor = wp_get_image_editor($file); + + if (is_wp_error($editor)) { + return false; + } + + $editor->set_quality($jpeg_quality); + + $resized = $editor->resize($max_w, $max_h, $crop); + + if (is_wp_error($resized)) { + return false; + } + + $dest_file = $editor->generate_filename($suffix, $dest_path); + $saved = $editor->save($dest_file); + + if (is_wp_error($saved)) { + return false; + } + + return $dest_file; + } + + /** + * @param int[]|int $ids + * @param array|string $size + * + * @return string HTML Images + */ + public function get_images_by_ids($ids, $size) + { + $images = []; + + $ids = is_array($ids) ? $ids : [$ids]; + foreach ($ids as $id) { + $images[] = $this->get_image_by_id($id, $size); + } + + return implode($images); + } + + /** + * @param int $id + * @param string|array $size + * + * @return string|false + */ + public function get_image_by_id($id, $size) + { + if ( ! is_numeric($id)) { + return false; + } + + $attributes = wp_get_attachment_image_src($id, $size); + + // Is Image + if ($attributes) { + [$src, $width, $height] = $attributes; + + if (is_array($size)) { + $image = $this->markup_cover($src, $size[0], $size[1], $id); + } else { + // In case of SVG + if (1 === (int)$width && 1 === (int)$height) { + $_size = $this->get_image_sizes_by_name($size); + $width = $_size['width']; + $height = $_size['height']; + } + + $image = $this->markup($src, $width, $height, $id); + } + + return $image; + } + + $attributes = wp_get_attachment_image_src($id, $size, true); + + // Is File, use icon + if ($attributes) { + return $this->markup( + $attributes[0], + $this->scale_size($attributes[1], 0.8), + $this->scale_size($attributes[2], 0.8), + $id, + true + ); + } + + return false; + } + + /** + * @param $size + * @param int $scale + * + * @return float + */ + private function scale_size($size, $scale = 1): float + { + return round(absint($size) * $scale); + } + + private function is_resized_image($path) + { + $fileinfo = pathinfo($path); + + return preg_match('/-[0-9]+x[0-9]+$/', $fileinfo['filename']); + } + + /** + * @param string $url + * @param array|string $size + * + * @return string + */ + public function get_image_by_url($url, $size) + { + $dimensions = [60, 60]; + + if (is_string($size) && ($sizes = $this->get_image_sizes_by_name($size))) { + $dimensions = [$sizes['width'], $sizes['height']]; + } elseif (is_array($size)) { + $dimensions = $size; + } + + $image_path = str_replace(WP_CONTENT_URL, WP_CONTENT_DIR, $url); + + if (is_file($image_path)) { + // try to resize image if it is not already resized + if ( ! $this->is_resized_image($image_path) && ($resized = $this->resize( + $image_path, + $dimensions[0], + $dimensions[1], + true + ))) { + $src = str_replace(WP_CONTENT_DIR, WP_CONTENT_URL, $resized); + + return $this->markup($src, $dimensions[0], $dimensions[1]); + } + + return $this->markup($url, $dimensions[0], $dimensions[1]); + } + + // External image + return $this->markup_cover($image_path, $dimensions[0], $dimensions[1]); + } + + /** + * @param mixed $images + * @param array|string $size + * @param bool $skip_image_check Skips image check. Useful when the url does not have an image extension like jpg or gif (e.g. gravatar). + * + * @return array + */ + public function get_images($images, $size = 'thumbnail', $skip_image_check = false) + { + $thumbnails = []; + + foreach ((array)$images as $value) { + if ($skip_image_check && $value && is_string($value)) { + $thumbnails[] = $this->get_image_by_url($value, $size); + } elseif (ac_helper()->string->is_image($value)) { + $thumbnails[] = $this->get_image_by_url($value, $size); + } // Media Attachment + elseif (is_numeric($value) && wp_get_attachment_url($value)) { + $thumbnails[] = $this->get_image_by_id($value, $size); + } + } + + return $thumbnails; + } + + /** + * @param int|string $image ID of Url + * @param string|array $size + * @param bool $skip_image_check + * + * @return string + */ + public function get_image($image, $size = 'thumbnail', $skip_image_check = false) + { + return implode($this->get_images($image, $size, $skip_image_check)); + } + + /** + * @param string $name + * + * @return array Image sizes + */ + public function get_image_sizes_by_name($name) + { + $available_sizes = wp_get_additional_image_sizes(); + + $defaults = ['thumbnail', 'medium', 'large']; + foreach ($defaults as $key) { + $available_sizes[$key] = [ + 'width' => get_option($key . '_size_w'), + 'height' => get_option($key . '_size_h'), + ]; + } + + $sizes = false; + + if (is_scalar($name) && isset($available_sizes[$name])) { + $sizes = $available_sizes[$name]; + } + + return $sizes; + } + + /** + * @param int $attachment_id + * + * @return bool|string + */ + public function get_file_name($attachment_id) + { + $file = get_post_meta($attachment_id, '_wp_attached_file', true); + + if ( ! $file) { + return false; + } + + return basename($file); + } + + /** + * @param int $attachment_id + * + * @return string File extension + */ + public function get_file_extension($attachment_id) + { + return pathinfo($this->get_file_name($attachment_id), PATHINFO_EXTENSION); + } + + private function get_file_tooltip_attr($media_id) + { + return ac_helper()->html->get_tooltip_attr($this->get_file_name($media_id)); + } + + private function markup_cover($src, $width, $height, $media_id = null) + { + ob_start(); ?> + + + - - get_file_tooltip_attr( $media_id ); ?>> - - - - get_file_extension( $media_id ) ); ?> - + + get_file_tooltip_attr($media_id); ?>> + + + + get_file_extension($media_id)); ?> + - get_local_image_path( $url ); - - if ( ! $path ) { - return false; - } - - return getimagesize( $path ); - } - - /** - * @param string $url - * - * @return false|string - */ - public function get_local_image_path( $url ) { - $path = str_replace( WP_CONTENT_URL, WP_CONTENT_DIR, $url ); - - if ( ! file_exists( $path ) ) { - return false; - } - - return $path; - } - - /** - * @param string $url - * - * @return false|int - */ - public function get_local_image_size( $url ) { - $path = $this->get_local_image_path( $url ); - - if ( ! $path ) { - return false; - } - - return filesize( $path ); - } - - /** - * @param string $string - * - * @return array - */ - public function get_image_urls_from_string( $string ) { - if ( ! $string ) { - return []; - } - - if ( false === strpos( $string, 'loadHTML( $string ); - $dom->preserveWhiteSpace = false; - libxml_clear_errors(); - - $urls = []; - - $images = $dom->getElementsByTagName( 'img' ); - - foreach ( $images as $img ) { - - /** @var DOMElement $img */ - $urls[] = $img->getAttribute( 'src' ); - } - - return $urls; - } + get_local_image_path($url); + + if ( ! $path) { + return false; + } + + return getimagesize($path); + } + + /** + * @param string $url + * + * @return false|string + */ + public function get_local_image_path($url) + { + $path = str_replace(WP_CONTENT_URL, WP_CONTENT_DIR, $url); + + if ( ! file_exists($path)) { + return false; + } + + return $path; + } + + public function get_local_image_size($url): ?int + { + $path = $this->get_local_image_path($url); + + return $path + ? filesize($path) + : null; + } + + /** + * @param string $string + * + * @return array + */ + public function get_image_urls_from_string($string): array + { + if ( ! $string) { + return []; + } + + if (false === strpos($string, 'loadHTML($string); + $dom->preserveWhiteSpace = false; + libxml_clear_errors(); + + $urls = []; + + $images = $dom->getElementsByTagName('img'); + + foreach ($images as $img) { + /** @var DOMElement $img */ + $src = $img->getAttribute('src'); + + if ( ! $src) { + continue; + } + + $urls[] = $src; + } + + return $urls; + } } \ No newline at end of file diff --git a/classes/Helper/Network.php b/classes/Helper/Network.php index 8803542f8..9440dd783 100644 --- a/classes/Helper/Network.php +++ b/classes/Helper/Network.php @@ -18,8 +18,8 @@ public function get_site_option( $blog_id, $option ) { $table = $wpdb->get_blog_prefix( $blog_id ) . 'options'; $sql = " - SELECT {$table}.option_value - FROM {$table} + SELECT $table.option_value + FROM $table WHERE option_name = %s "; diff --git a/classes/Helper/Post.php b/classes/Helper/Post.php index a02e99bc8..81df1af8e 100644 --- a/classes/Helper/Post.php +++ b/classes/Helper/Post.php @@ -3,151 +3,164 @@ namespace AC\Helper; use WP_Post; -use WP_Post_Type; - -class Post { - - /** - * @param int $id - * - * @return bool - */ - public function exists( $id ) { - return $this->get_raw_field( 'ID', $id ) ? true : false; - } - - /** - * @param int $id Post ID - * - * @return false|string Post Title - */ - public function get_raw_post_title( $id ) { - return ac_helper()->post->get_raw_field( 'post_title', $id ); - } - - /** - * @param int $post_id Post ID - * @param int $words - * - * @return string Post Excerpt. - * @since 1.0 - */ - public function excerpt( $post_id, $words = 400 ) { - global $post; - - $save_post = $post; - $post = get_post( $post_id ); - - setup_postdata( $post ); - - $excerpt = get_the_excerpt(); - $post = $save_post; - - if ( $post ) { - setup_postdata( $post ); - } - - return ac_helper()->string->trim_words( $excerpt, $words ); - } - - /** - * @param string $post_type_name - * @param bool $plural - * - * @return bool - */ - public function get_post_type_label( $post_type_name, $plural = false ) { - $post_type = get_post_type_object( $post_type_name ); - - if ( ! $post_type instanceof WP_Post_Type ) { - return false; - } - - if ( $plural ) { - return $post_type->labels->name; - } - - return $post_type->labels->singular_name; - } - - /** - * @param string $field Field - * @param int $id Post ID - * - * @return string|false - */ - public function get_raw_field( $field, $id ) { - global $wpdb; - - if ( ! $id || ! is_numeric( $id ) ) { - return false; - } - - $sql = " - SELECT " . $wpdb->_real_escape( $field ) . " + +class Post +{ + + public function exists($id): bool + { + return $this->get_raw_field('ID', $id) ? true : false; + } + + private function esc_sql_array($array): string + { + return sprintf("'%s'", implode("','", array_map('esc_sql', $array))); + } + + public function count_user_posts(int $user_id, array $post_types, array $post_stati): int + { + global $wpdb; + + $where = [ + sprintf('post_author = %d', $user_id), + ]; + if ($post_stati) { + $where[] = sprintf('post_status IN (%s)', $this->esc_sql_array($post_stati)); + } + if ($post_types) { + $where[] = sprintf('post_type IN (%s)', $this->esc_sql_array($post_types)); + } + + $sql = sprintf("SELECT COUNT(*) FROM $wpdb->posts WHERE %s", implode(' AND ', $where)); + + return $wpdb->get_var($sql); + } + + /** + * @param int $post_id Post ID + * @param int $words + * + * @return string Post Excerpt. + * @since 1.0 + */ + public function excerpt($post_id, $words = 400) + { + global $post; + + $save_post = $post; + $post = get_post($post_id); + + setup_postdata($post); + + $excerpt = get_the_excerpt(); + $post = $save_post; + + if ($post) { + setup_postdata($post); + } + + return ac_helper()->string->trim_words($excerpt, $words); + } + + /** + * @param string $field Field + * @param int $id Post ID + * + * @return string|false + */ + public function get_raw_field($field, $id) + { + global $wpdb; + + if ( ! $id || ! is_numeric($id)) { + return false; + } + + $sql = " + SELECT " . $wpdb->_real_escape($field) . " FROM $wpdb->posts WHERE ID = %d LIMIT 1 "; - return $wpdb->get_var( $wpdb->prepare( $sql, $id ) ); - } - - /** - * Get Post Title or Media Filename - * - * @param int|WP_Post $post_id - * - * @return bool|string - */ - public function get_title( $post_id ) { - $post = get_post( $post_id ); - - if ( ! $post instanceof WP_Post ) { - return false; - } - - $title = $post->post_title; - - if ( 'attachment' === $post->post_type ) { - $title = ac_helper()->image->get_file_name( $post->ID ); - } - - return $title; - } - - /** - * @param WP_Post $post Post - * - * @return false|string Dash icon with tooltip - */ - public function get_status_icon( $post ) { - $icon = false; - - switch ( $post->post_status ) { - case 'private' : - $icon = ac_helper()->html->tooltip( ac_helper()->icon->dashicon( [ 'icon' => 'hidden', 'class' => 'gray' ] ), __( 'Private' ) ); - break; - case 'publish' : - $icon = ac_helper()->html->tooltip( ac_helper()->icon->dashicon( [ 'icon' => 'yes', 'class' => 'blue large' ] ), __( 'Published' ) ); - break; - case 'draft' : - $icon = ac_helper()->html->tooltip( ac_helper()->icon->dashicon( [ 'icon' => 'edit', 'class' => 'green' ] ), __( 'Draft' ) ); - break; - case 'pending' : - $icon = ac_helper()->html->tooltip( ac_helper()->icon->dashicon( [ 'icon' => 'backup', 'class' => 'orange' ] ), __( 'Pending for review' ) ); - break; - case 'future' : - $icon = ac_helper()->html->tooltip( ac_helper()->icon->dashicon( [ 'icon' => 'clock' ] ), __( 'Scheduled' ) . ': ' . ac_helper()->date->date( $post->post_date, 'wp_date_time' ) . '' ); - - // Missed schedule - if ( ( time() - mysql2date( 'G', $post->post_date_gmt ) ) > 0 ) { - $icon .= ac_helper()->html->tooltip( ac_helper()->icon->dashicon( [ 'icon' => 'flag', 'class' => 'gray' ] ), __( 'Missed schedule' ) ); - } - break; - } - - return $icon; - } + return $wpdb->get_var($wpdb->prepare($sql, $id)); + } + + /** + * Get Post Title or Media Filename + * + * @param int|WP_Post $post_id + * + * @return bool|string + */ + public function get_title($post_id) + { + $post = get_post($post_id); + + if ( ! $post instanceof WP_Post) { + return false; + } + + $title = $post->post_title; + + if ('attachment' === $post->post_type) { + $title = ac_helper()->image->get_file_name($post->ID); + } + + return $title; + } + + /** + * @param WP_Post $post Post + * + * @return false|string Dash icon with tooltip + */ + public function get_status_icon($post) + { + $icon = false; + + switch ($post->post_status) { + case 'private' : + $icon = ac_helper()->html->tooltip( + ac_helper()->icon->dashicon(['icon' => 'hidden', 'class' => 'gray']), + __('Private') + ); + break; + case 'publish' : + $icon = ac_helper()->html->tooltip( + ac_helper()->icon->dashicon(['icon' => 'yes', 'class' => 'blue large']), + __('Published') + ); + break; + case 'draft' : + $icon = ac_helper()->html->tooltip( + ac_helper()->icon->dashicon(['icon' => 'edit', 'class' => 'green']), + __('Draft') + ); + break; + case 'pending' : + $icon = ac_helper()->html->tooltip( + ac_helper()->icon->dashicon(['icon' => 'backup', 'class' => 'orange']), + __('Pending for review') + ); + break; + case 'future' : + $icon = ac_helper()->html->tooltip( + ac_helper()->icon->dashicon(['icon' => 'clock']), + __('Scheduled') . ': ' . ac_helper()->date->date($post->post_date, 'wp_date_time') . '' + ); + + // Missed schedule + if ((time() - mysql2date('G', $post->post_date_gmt)) > 0) { + $icon .= ac_helper()->html->tooltip( + ac_helper()->icon->dashicon(['icon' => 'flag', 'class' => 'gray']), + __('Missed schedule') + ); + } + break; + } + + return $icon; + } } \ No newline at end of file diff --git a/classes/Helper/Select/ArrayMapper.php b/classes/Helper/Select/ArrayMapper.php new file mode 100644 index 000000000..50207f63d --- /dev/null +++ b/classes/Helper/Select/ArrayMapper.php @@ -0,0 +1,27 @@ + $option->get_label(), + ]; + + if ( $option instanceof OptionGroup ) { + $item['children'] = self::map( new Options( $option->get_options() ) ); + } else { + $item['id'] = $option->get_value(); + } + + $items[] = $item; + } + + return $items; + } + +} \ No newline at end of file diff --git a/classes/Helper/Select/Entities.php b/classes/Helper/Select/Entities.php deleted file mode 100644 index 3cc763204..000000000 --- a/classes/Helper/Select/Entities.php +++ /dev/null @@ -1,20 +0,0 @@ -get_value( $entity ) ] = $entity; - } - - parent::__construct( $value_entity_map ); - } - -} \ No newline at end of file diff --git a/classes/Helper/Select/Entities/CustomFields.php b/classes/Helper/Select/Entities/CustomFields.php deleted file mode 100644 index 22cd4d1d9..000000000 --- a/classes/Helper/Select/Entities/CustomFields.php +++ /dev/null @@ -1,51 +0,0 @@ - 'post', - 'post_type' => false, - ], $args ); - - $query = new AC\Meta\Query( $args['meta_type'] ); - - $query->select( 'meta_key' ) - ->distinct() - ->order_by( 'meta_key' ); - - if ( $args['post_type'] ) { - $query->where_post_type( $args['post_type'] ); - } - - parent::__construct( $query->get(), $value ); - } - - public function get_total_pages() { - return 1; - } - - public function get_page() { - return 1; - } - - public function is_last_page() { - return true; - } - -} \ No newline at end of file diff --git a/classes/Helper/Select/Formatter.php b/classes/Helper/Select/Formatter.php deleted file mode 100644 index c70cb7a4e..000000000 --- a/classes/Helper/Select/Formatter.php +++ /dev/null @@ -1,114 +0,0 @@ -entities = $entities; - $this->value = $value; - - parent::__construct( $this->get_labels() ); - } - - /** - * @return Entities - */ - public function get_entities() { - return $this->entities; - } - - /** - * @param $value - * - * @return mixed - */ - public function get_entity( $value ) { - if ( ! $this->entities->has_offset( $value ) ) { - return false; - } - - return $this->entities->get_offset( $value ); - } - - /** - * @return Option[] - */ - protected function get_labels() { - $labels = []; - - foreach ( $this->entities as $value => $entity ) { - $labels[ $value ] = $this->get_label( $entity ); - } - - if ( $this->value ) { - $labels = $this->get_labels_unique( $labels ); - } - - return $this->get_options( $labels ); - } - - /** - * @param $entity - * - * @return string - */ - protected abstract function get_label( $entity ); - - /** - * @param array $labels - * - * @return array - */ - protected function get_labels_unique( array $labels ) { - $duplicates = array_diff_assoc( $labels, array_unique( $labels ) ); - - foreach ( $labels as $value => $label ) { - if ( ! in_array( $label, $duplicates ) ) { - continue; - } - - $labels[ $value ] = $this->get_label_unique( $label, $this->get_entity( $value ) ); - } - - return $labels; - } - - /** - * @param string $label - * @param mixed $entity - * - * @return string - */ - protected function get_label_unique( $label, $entity ) { - return $label . sprintf( ' (%s)', $this->value->get_value( $entity ) ); - } - - /** - * @param array $labels - * - * @return Option[] - */ - private function get_options( array $labels ): array { - $options = []; - - foreach ( $labels as $value => $label ) { - $options[] = new Option( $value, $label ); - } - - return $options; - } - -} \ No newline at end of file diff --git a/classes/Helper/Select/Formatter/NullFormatter.php b/classes/Helper/Select/Formatter/NullFormatter.php deleted file mode 100644 index 4adf14dcb..000000000 --- a/classes/Helper/Select/Formatter/NullFormatter.php +++ /dev/null @@ -1,26 +0,0 @@ -get_groups() as $key => $label) { + if (strpos($value, $key) === 0) { + return $label; + } + } + + return __('Default', 'codepress-admin-columns'); + } + + private function get_groups(): array + { + global $wpdb; + + static $groups; + + if (null === $groups) { + $groups = []; + + foreach (get_sites() as $site) { + $label = sprintf( + '%s %s', + __('Network Site:', 'codepress-admin-columns'), + ac_helper()->network->get_site_option($site->blog_id, 'blogname') + ); + + if (get_current_blog_id() === $site->blog_id) { + $label = sprintf('%s (%s)', $label, __('current', 'codepress-admin-columns')); + } + + $groups[$wpdb->get_blog_prefix($site->blog_id)] = $label; + } + + $groups = array_reverse($groups); + } + + return $groups; + } + +} \ No newline at end of file diff --git a/classes/Helper/Select/Generic/GroupFormatter/VisibilityType.php b/classes/Helper/Select/Generic/GroupFormatter/VisibilityType.php new file mode 100644 index 000000000..5d7f00362 --- /dev/null +++ b/classes/Helper/Select/Generic/GroupFormatter/VisibilityType.php @@ -0,0 +1,30 @@ +label = $label; + } + + public function format(string $value): string + { + return 0 === strpos($value, '_') + ? __('Hidden', 'codepress-admin-columns') + : $this->label; + } + +} \ No newline at end of file diff --git a/classes/Helper/Select/Generic/Groups.php b/classes/Helper/Select/Generic/Groups.php new file mode 100644 index 000000000..9a2d69973 --- /dev/null +++ b/classes/Helper/Select/Generic/Groups.php @@ -0,0 +1,43 @@ +create_groups($options, $formatter)); + } + + private function create_groups(Select\Options $options, GroupFormatter $formatter): array + { + $groups = []; + + foreach ($options as $option) { + $groups[$formatter->format((string)$option->get_value())][] = $option; + } + + $option_groups = []; + + foreach ($this->sort($groups) as $label => $_options) { + $option_groups[] = new OptionGroup($label, $_options); + } + + return $option_groups; + } + + protected function sort(array $groups): array + { + // sort natural by key + uksort($groups, 'strnatcmp'); + + return $groups; + } + +} \ No newline at end of file diff --git a/classes/Helper/Select/Generic/LabelFormatter.php b/classes/Helper/Select/Generic/LabelFormatter.php new file mode 100644 index 000000000..281849427 --- /dev/null +++ b/classes/Helper/Select/Generic/LabelFormatter.php @@ -0,0 +1,12 @@ +formatter = $formatter; - - parent::__construct( $this->get_group() ); - } - - /** - * @param array $groups - * - * @return array - */ - protected function sort( array $groups ) { - uksort( $groups, 'strnatcmp' ); - - return $groups; - } - - /** - * @return OptionGroup[] - */ - protected function get_group() { - $groups = []; - - foreach ( $this->formatter as $option ) { - $label = $this->get_label( - $this->formatter->get_entity( $option->get_value() ), - $option - ); - - $groups[ $label ][] = $option; - } - - return $this->get_option_groups( $this->sort( $groups ) ); - } - - /** - * @param array $groups - * - * @return OptionGroup[] - */ - protected function get_option_groups( array $groups ) { - $option_groups = []; - - foreach ( $groups as $label => $options ) { - $option_groups[] = new OptionGroup( $label, $options ); - } - - return $option_groups; - } - - /** - * @param $entity - * @param Option $option - * - * @return string - */ - protected abstract function get_label( $entity, Option $option ); - -} \ No newline at end of file diff --git a/classes/Helper/Select/Group/CustomField.php b/classes/Helper/Select/Group/CustomField.php deleted file mode 100644 index be278b802..000000000 --- a/classes/Helper/Select/Group/CustomField.php +++ /dev/null @@ -1,20 +0,0 @@ -groups = $this->get_groups(); - - parent::__construct( $formatter ); - } - - private function get_groups() { - global $wpdb; - - $groups = []; - - foreach ( get_sites() as $site ) { - $label = __( 'Network Site:', 'codepress-admin-columns' ) . ' ' . ac_helper()->network->get_site_option( $site->blog_id, 'blogname' ); - - if ( get_current_blog_id() == $site->blog_id ) { - $label .= ' (' . __( 'current', 'codepress-admin-columns' ) . ')'; - } - - $groups[ $wpdb->get_blog_prefix( $site->blog_id ) ] = $label; - } - - return array_reverse( $groups ); - } - - /** - * @param $entity - * @param Option $option - * - * @return string - */ - public function get_label( $entity, Option $option ) { - foreach ( $this->groups as $key => $label ) { - if ( strpos( $entity, $key ) === 0 ) { - return $label; - } - } - - return __( 'Default', 'codepress-admin-columns' ); - } - -} \ No newline at end of file diff --git a/classes/Helper/Select/Label.php b/classes/Helper/Select/Label.php deleted file mode 100644 index 374d3d5a6..000000000 --- a/classes/Helper/Select/Label.php +++ /dev/null @@ -1,9 +0,0 @@ -prepare( " - SELECT DISTINCT pm.meta_value - FROM $wpdb->postmeta AS pm - LEFT JOIN $wpdb->posts AS ps ON ps.ID = pm.post_id - WHERE pm.meta_key = %s - AND pm.meta_value != '' - AND ps.post_status != 'trash' - ", (string) $meta_key ); - - if ( $post_type ) { - $sql .= $wpdb->prepare( " AND ps.post_type = %s", (string) $post_type ); - } - - return $wpdb->get_col( $sql ); - - case MetaType::USER : - return $wpdb->get_col( $wpdb->prepare( " - SELECT DISTINCT um.meta_value - FROM $wpdb->usermeta AS um - LEFT JOIN $wpdb->users AS us ON us.ID = um.user_id - WHERE um.meta_key = %s - AND um.meta_value != '' - ; - ", $meta_key ) ); - - case MetaType::COMMENT : - return $wpdb->get_col( $wpdb->prepare( " - SELECT DISTINCT cm.meta_value - FROM $wpdb->commentmeta AS cm - LEFT JOIN $wpdb->comments AS cs ON cs.comment_ID = cm.comment_id - WHERE cm.meta_key = %s - AND cm.meta_value != '' - ; - ", $meta_key ) ); - - case MetaType::TERM : - return $wpdb->get_col( $wpdb->prepare( " - SELECT DISTINCT tm.meta_value - FROM $wpdb->termmeta AS tm - LEFT JOIN $wpdb->terms AS ts ON ts.term_id = tm.term_id - WHERE tm.meta_key = %s - AND tm.meta_value != '' - ; - ", $meta_key ) ); - - default : - return []; - - } - } - -} \ No newline at end of file diff --git a/classes/Helper/Select/OptionGroup.php b/classes/Helper/Select/OptionGroup.php index 07836046d..caec0f84a 100644 --- a/classes/Helper/Select/OptionGroup.php +++ b/classes/Helper/Select/OptionGroup.php @@ -2,53 +2,47 @@ namespace AC\Helper\Select; -final class OptionGroup { - - /** - * @var string - */ - private $label; - - /** - * @var Option[] - */ - private $options; - - /** - * @param string $label - * @param Option[] $options - */ - public function __construct( $label, array $options = [] ) { - $this->label = $label; - - foreach ( $options as $option ) { - $this->add_option( $option ); - } - } - - /** - * @return string - */ - public function get_label() { - return $this->label; - } - - /** - * @return Option[] - */ - public function get_options() { - return $this->options; - } - - /** - * @param Option $option - * - * @return $this - */ - protected function add_option( Option $option ) { - $this->options[] = $option; - - return $this; - } +final class OptionGroup +{ + + private $label; + + /** + * @var Option[] + */ + private $options; + + /** + * @param string $label + * @param Option[] $options + */ + public function __construct(string $label, array $options = []) + { + $this->label = $label; + + foreach ($options as $option) { + $this->add_option($option); + } + } + + public function get_label(): string + { + return $this->label; + } + + /** + * @return Option[] + */ + public function get_options(): array + { + return $this->options; + } + + protected function add_option(Option $option): self + { + $this->options[] = $option; + + return $this; + } } \ No newline at end of file diff --git a/classes/Helper/Select/Options.php b/classes/Helper/Select/Options.php index 698eba6d2..60125823e 100644 --- a/classes/Helper/Select/Options.php +++ b/classes/Helper/Select/Options.php @@ -5,6 +5,9 @@ use AC\ArrayIterator; use LogicException; +/** + * @property $array Option[]|OptionGroup[] + */ class Options extends ArrayIterator { public function __construct( array $options ) { diff --git a/classes/Helper/Select/Options/Paginated.php b/classes/Helper/Select/Options/Paginated.php index 1537b2187..4a6f90177 100644 --- a/classes/Helper/Select/Options/Paginated.php +++ b/classes/Helper/Select/Options/Paginated.php @@ -8,9 +8,6 @@ class Paginated extends Select\Options implements Select\Paginated { - /** - * @var Paginated - */ protected $paginated; public function __construct( Select\Paginated $paginated, ArrayIterator $options ) { @@ -19,15 +16,15 @@ public function __construct( Select\Paginated $paginated, ArrayIterator $options parent::__construct( $options->get_copy() ); } - public function get_total_pages() { + public function get_total_pages(): int { return $this->paginated->get_total_pages(); } - public function get_page() { + public function get_page(): int { return $this->paginated->get_page(); } - public function is_last_page() { + public function is_last_page(): bool { return $this->paginated->is_last_page(); } diff --git a/classes/Helper/Select/Paginated.php b/classes/Helper/Select/Paginated.php index 439f38e59..9e1631d29 100644 --- a/classes/Helper/Select/Paginated.php +++ b/classes/Helper/Select/Paginated.php @@ -4,19 +4,10 @@ interface Paginated { - /** - * @return int - */ - public function get_total_pages(); + public function get_total_pages(): int; - /** - * @return int - */ - public function get_page(); + public function get_page(): int; - /** - * @return bool - */ - public function is_last_page(); + public function is_last_page(): bool; } \ No newline at end of file diff --git a/classes/Helper/Select/Response.php b/classes/Helper/Select/Response.php index cfed3e828..495708a29 100644 --- a/classes/Helper/Select/Response.php +++ b/classes/Helper/Select/Response.php @@ -19,34 +19,9 @@ public function __construct( Options $options, bool $more = false ) { $this->more = $more; } - private function parse_options( array $options ): array { - $results = []; - - foreach ( $options as $option ) { - switch ( true ) { - case $option instanceof OptionGroup: - $results[] = [ - 'text' => $option->get_label(), - 'children' => $this->parse_options( $option->get_options() ), - ]; - - break; - case $option instanceof Option: - $results[] = [ - 'id' => $option->get_value(), - 'text' => $option->get_label(), - ]; - - break; - } - } - - return $results; - } - public function __invoke() { return [ - 'results' => $this->parse_options( $this->options->get_copy() ), + 'results' => ArrayMapper::map( $this->options ), 'pagination' => [ 'more' => $this->more, ], diff --git a/classes/Helper/Select/Value.php b/classes/Helper/Select/Value.php deleted file mode 100644 index e15c2ea2b..000000000 --- a/classes/Helper/Select/Value.php +++ /dev/null @@ -1,14 +0,0 @@ -html->link( $url, url_shorten( $url ), [ 'title' => $url ] ); - } - - public function contains( string $haystack, string $needle ): bool { - return '' === $needle || false !== strpos( $haystack, $needle ); - } - - public function starts_with( string $haystack, string $needle ): bool { - return '' === $needle || 0 === strpos( $haystack, $needle ); - } - - public function remove_prefix( string $string, string $prefix ): string { - return $this->starts_with( $string, $prefix ) - ? substr( $string, strlen( $prefix ) ) - : $string; - } - - public function ends_with( string $haystack, string $needle ): bool { - if ( '' === $haystack && '' !== $needle ) { - return false; - } - - $len = strlen( $needle ); - - return 0 === substr_compare( $haystack, $needle, -$len, $len ); - } - - /** - * @param $string - * - * @return string - * @since 1.3 - */ - public function strip_trim( $string ) { - return trim( strip_tags( $string ) ); - } - - /** - * @param string $content - * - * @return array - */ - public function get_shortcodes( $content ) { - global $shortcode_tags; - - if ( ! $shortcode_tags || ! $content ) { - return []; - } - - $shortcodes = []; - - $_shortcodes = array_keys( $shortcode_tags ); - asort( $_shortcodes ); - - foreach ( $_shortcodes as $shortcode ) { - - $count = substr_count( $content, '[' . $shortcode . ']' ); - $count += substr_count( $content, '[' . $shortcode . ' ' ); - - if ( $count ) { - $shortcodes[ $shortcode ] = $count; - } - } - - return $shortcodes; - } - - /** - * Count the number of words in a string (multibyte-compatible) - * - * @param $string - * - * @return int Number of words - * @since 3.0 - */ - public function word_count( $string ) { - if ( empty( $string ) ) { - return 0; - } - - $string = $this->strip_trim( $string ); - - if ( empty( $string ) ) { - return 0; - } - - $patterns = [ - 'strip' => '/<[a-zA-Z\/][^<>]*>/', - 'clean' => '/[0-9.(),;:!?%#$¿\'"_+=\\/-]+/', - 'w' => '/\S\s+/', - 'c' => '/\S/', - ]; - - $string = preg_replace( $patterns['strip'], ' ', $string ); - $string = preg_replace( '/ | /i', ' ', $string ); - $string = preg_replace( $patterns['clean'], '', $string ); - - if ( ! strlen( preg_replace( '/\s/', '', $string ) ) ) { - return 0; - } - - return preg_match_all( $patterns['w'], $string, $matches ) + 1; - } - - /** - * @param string $string - * @param int $num_words - * @param null $more - * - * @return false|string - * @see wp_trim_words(); - * @since 3.0 - */ - public function trim_words( $string = '', $num_words = 30, $more = null ) { - if ( $this->is_empty( $string ) ) { - return false; - } - - if ( ! $num_words ) { - return $string; - } - - return wp_trim_words( $string, $num_words, $more ); - } - - /** - * Trims a string and strips tags if there is any HTML - * - * @param string $string - * @param int $limit - * @param null $trail - * - * @return string - */ - public function trim_characters( $string, $limit = 10, $trail = null ) { - $limit = absint( $limit ); - - if ( 1 > $limit ) { - return $string; - } - - $string = wp_strip_all_tags( $string ); - - if ( mb_strlen( $string ) <= $limit ) { - return $string; - } - - if ( null === $trail ) { - $trail = __( '…' ); - } - - return trim( mb_substr( $string, 0, $limit ) ) . $trail; - } - - /** - * Formats a valid hex color to a 6 digit string, optionally prefixed with a # - * Example: #FF0 will be fff000 based on the $prefix parameter - * - * @param string $hex Valid hex color - * @param bool $prefix Prefix with a # or not - * - * @return string - */ - protected function hex_format( $hex, $prefix = false ) { - $hex = ltrim( $hex, '#' ); - - if ( strlen( $hex ) == 3 ) { - $hex = $hex[0] . $hex[0] . $hex[1] . $hex[1] . $hex[2] . $hex[2]; - } - - if ( $prefix ) { - $hex = '#' . $hex; - } - - return strtolower( $hex ); - } - - /** - * Get RGB values from a hex color string - * - * @param string $hex Valid hex color - * - * @return array - * @since 3.0 - */ - public function hex_to_rgb( $hex ) { - $hex = $this->hex_format( $hex ); - - return sscanf( $hex, '%2x%2x%2x' ); - } - - /** - * Get contrasting hex color based on given hex color - * - * @param string $hex Valid hex color - * - * @return string - * @since 3.0 - */ - public function hex_get_contrast( $hex ) { - $rgb = $this->hex_to_rgb( $hex ); - $contrast = ( $rgb[0] * 0.299 + $rgb[1] * 0.587 + $rgb[2] * 0.114 ) < 186 ? 'fff' : '333'; - - return $this->hex_format( $contrast, true ); - } - - /** - * @param string $url - * - * @return bool - * @since 1.2.0 - */ - public function is_image( $url ) { - if ( ! $url || ! is_string( $url ) ) { - return false; - } - - $ext = strtolower( pathinfo( strtok( $url, '?' ), PATHINFO_EXTENSION ) ); - - return in_array( $ext, [ 'jpg', 'jpeg', 'gif', 'png', 'bmp' ] ); - } - - /** - * @param string $string - * - * @return array - * @since 3.0 - */ - public function comma_separated_to_array( $string ) { - $array = []; - if ( is_scalar( $string ) ) { - if ( strpos( $string, ',' ) !== false ) { - $array = array_filter( explode( ',', ac_helper()->string->strip_trim( str_replace( ' ', '', $string ) ) ) ); - } else { - $array = [ $string ]; - } - } else if ( is_array( $string ) ) { - $array = $string; - } - - return $array; - } - - /** - * @param string $string - * - * @return array - * @since 3.0 - */ - public function string_to_array_integers( $string ) { - $integers = []; - - foreach ( $this->comma_separated_to_array( $string ) as $k => $value ) { - if ( is_numeric( trim( $value ) ) ) { - $integers[] = $value; - } - } - - return $integers; - } - - /** - * @param string $hex Color Hex Code - * - * @return string - * @since 3.0 - */ - public function get_color_block( $hex ) { - if ( ! $hex ) { - return false; - } - - return '
' . esc_html( $hex ) . '
'; - } - - /** - * @param $url - * - * @return bool - */ - public function is_valid_url( $url ) { - return filter_var( $url, FILTER_VALIDATE_URL ) || preg_match( '/[^\w.-]/', $url ); - } - - /** - * @return string Display empty value - */ - public function get_empty_char() { - _deprecated_function( __METHOD__, '3.0', 'AC\Column::get_empty_char' ); - - return '–'; - } - - /** - * @param string $string - * - * @return bool - */ - public function contains_html_only( $string ) { - return strlen( $string ) !== strlen( strip_tags( $string ) ); - } - - /** - * @param string $value - * - * @return bool - */ - public function is_empty( $value ) { - return ! $this->is_not_empty( $value ); - } - - /** - * @param string $value - * - * @return bool - */ - public function is_not_empty( $value ) { - return $value || 0 === $value || '0' === $value; - } - - /** - * Return an array into a comma separated sentence. For example [minute, hours, days] becomes: "minute, hours or days". - * - * @param array $words - * @param string $compound - * - * @return string - */ - public function enumeration_list( $words, $compound = 'or' ) { - if ( empty( $words ) || ! is_array( $words ) ) { - return false; - } - - if ( 'and' === $compound ) { - return wp_sprintf( '%l', $words ); - } - - if ( 'or' === $compound ) { - $compound = __( ' or ', 'codepress-admin-columns' ); - } - - $compound = sprintf( ' %s ', trim( $compound ) ); - - $last = end( $words ); - $delimiter = ', '; - - return str_replace( $delimiter . $last, $compound . $last, implode( $delimiter, $words ) ); - } +class Strings +{ + + /** + * @param $url + * + * @return bool|false|string + * @since 1.3.1 + */ + public function shorten_url($url) + { + if ( ! $url) { + return false; + } + + return ac_helper()->html->link($url, url_shorten($url), ['title' => $url]); + } + + public function contains(string $haystack, string $needle): bool + { + return '' === $needle || false !== strpos($haystack, $needle); + } + + public function starts_with(string $haystack, string $needle): bool + { + return '' === $needle || 0 === strpos($haystack, $needle); + } + + public function remove_prefix(string $string, string $prefix): string + { + return $this->starts_with($string, $prefix) + ? substr($string, strlen($prefix)) + : $string; + } + + public function ends_with(string $haystack, string $needle): bool + { + if ('' === $haystack && '' !== $needle) { + return false; + } + + $len = strlen($needle); + + return 0 === substr_compare($haystack, $needle, -$len, $len); + } + + /** + * @param $string + * + * @return string + * @since 1.3 + */ + public function strip_trim($string) + { + return trim(strip_tags($string)); + } + + /** + * @param string $content + * + * @return array + */ + public function get_shortcodes($content) + { + global $shortcode_tags; + + if ( ! $shortcode_tags || ! $content) { + return []; + } + + $shortcodes = []; + + $_shortcodes = array_keys($shortcode_tags); + asort($_shortcodes); + + foreach ($_shortcodes as $shortcode) { + $count = substr_count($content, '[' . $shortcode . ']'); + $count += substr_count($content, '[' . $shortcode . ' '); + + if ($count) { + $shortcodes[$shortcode] = $count; + } + } + + return $shortcodes; + } + + /** + * Count the number of words in a string (multibyte-compatible) + * + * @param $string + * + * @return int Number of words + * @since 3.0 + */ + public function word_count($string) + { + if (empty($string)) { + return 0; + } + + $string = $this->strip_trim($string); + + if (empty($string)) { + return 0; + } + + $patterns = [ + 'strip' => '/<[a-zA-Z\/][^<>]*>/', + 'clean' => '/[0-9.(),;:!?%#$¿\'"_+=\\/-]+/', + 'w' => '/\S\s+/', + 'c' => '/\S/', + ]; + + $string = preg_replace($patterns['strip'], ' ', $string); + $string = preg_replace('/ | /i', ' ', $string); + $string = preg_replace($patterns['clean'], '', $string); + + if ( ! strlen(preg_replace('/\s/', '', $string))) { + return 0; + } + + return preg_match_all($patterns['w'], $string, $matches) + 1; + } + + /** + * @param string $string + * @param int $num_words + * @param null $more + * + * @return false|string + * @see wp_trim_words(); + * @since 3.0 + */ + public function trim_words($string = '', $num_words = 30, $more = null) + { + if ($this->is_empty($string)) { + return false; + } + + if ( ! $num_words) { + return $string; + } + + return wp_trim_words($string, $num_words, $more); + } + + /** + * Trims a string and strips tags if there is any HTML + * + * @param string $string + * @param int $limit + * @param null $trail + * + * @return string + */ + public function trim_characters($string, $limit = 10, $trail = null) + { + $limit = absint($limit); + + if (1 > $limit) { + return $string; + } + + $string = wp_strip_all_tags($string); + + if (mb_strlen($string) <= $limit) { + return $string; + } + + if (null === $trail) { + $trail = __('…'); + } + + return trim(mb_substr($string, 0, $limit)) . $trail; + } + + /** + * Formats a valid hex color to a 6 digit string, optionally prefixed with a # + * Example: #FF0 will be fff000 based on the $prefix parameter + * + * @param string $hex Valid hex color + * @param bool $prefix Prefix with a # or not + * + * @return string + */ + protected function hex_format($hex, $prefix = false) + { + $hex = ltrim($hex, '#'); + + if (strlen($hex) == 3) { + $hex = $hex[0] . $hex[0] . $hex[1] . $hex[1] . $hex[2] . $hex[2]; + } + + if ($prefix) { + $hex = '#' . $hex; + } + + return strtolower($hex); + } + + /** + * Get RGB values from a hex color string + * + * @param string $hex Valid hex color + * + * @return array + * @since 3.0 + */ + public function hex_to_rgb($hex) + { + $hex = $this->hex_format($hex); + + return sscanf($hex, '%2x%2x%2x'); + } + + /** + * Get contrasting hex color based on given hex color + * + * @param string $hex Valid hex color + * + * @return string + * @since 3.0 + */ + public function hex_get_contrast($hex) + { + $rgb = $this->hex_to_rgb($hex); + $contrast = ($rgb[0] * 0.299 + $rgb[1] * 0.587 + $rgb[2] * 0.114) < 186 ? 'fff' : '333'; + + return $this->hex_format($contrast, true); + } + + /** + * @param string $url + * + * @return bool + * @since 1.2.0 + */ + public function is_image($url) + { + if ( ! $url || ! is_string($url)) { + return false; + } + + $ext = strtolower(pathinfo(strtok($url, '?'), PATHINFO_EXTENSION)); + + return in_array($ext, ['jpg', 'jpeg', 'gif', 'png', 'bmp', 'webp']); + } + + /** + * @param string $string + * + * @return array + * @since 3.0 + */ + public function comma_separated_to_array($string) + { + $array = []; + if (is_scalar($string)) { + if (strpos($string, ',') !== false) { + $array = array_filter(explode(',', ac_helper()->string->strip_trim(str_replace(' ', '', $string)))); + } else { + $array = [$string]; + } + } elseif (is_array($string)) { + $array = $string; + } + + return $array; + } + + /** + * @param string $string + * + * @return array + * @since 3.0 + */ + public function string_to_array_integers($string) + { + $integers = []; + + foreach ($this->comma_separated_to_array($string) as $k => $value) { + if (is_numeric(trim($value))) { + $integers[] = $value; + } + } + + return $integers; + } + + /** + * @param string $hex Color Hex Code + * + * @return string + * @since 3.0 + */ + public function get_color_block($hex) + { + if ( ! $hex) { + return false; + } + + return '
' . esc_html($hex) . '
'; + } + + /** + * @param $url + * + * @return bool + */ + public function is_valid_url($url) + { + return filter_var($url, FILTER_VALIDATE_URL) || preg_match('/[^\w.-]/', $url); + } + + /** + * @return string Display empty value + */ + public function get_empty_char() + { + _deprecated_function(__METHOD__, '3.0', 'AC\Column::get_empty_char'); + + return '–'; + } + + /** + * @param string $string + * + * @return bool + */ + public function contains_html_only($string) + { + return strlen($string) !== strlen(strip_tags($string)); + } + + /** + * @param string $value + * + * @return bool + */ + public function is_empty($value) + { + return ! $this->is_not_empty($value); + } + + /** + * @param string $value + * + * @return bool + */ + public function is_not_empty($value) + { + return $value || 0 === $value || '0' === $value; + } + + /** + * Return an array into a comma separated sentence. For example [minute, hours, days] becomes: "minute, hours or days". + * + * @param array $words + * @param string $compound + * + * @return string + */ + public function enumeration_list($words, $compound = 'or') + { + if (empty($words) || ! is_array($words)) { + return false; + } + + if ('and' === $compound) { + return wp_sprintf('%l', $words); + } + + if ('or' === $compound) { + $compound = __(' or ', 'codepress-admin-columns'); + } + + $compound = sprintf(' %s ', trim($compound)); + + $last = end($words); + $delimiter = ', '; + + return str_replace($delimiter . $last, $compound . $last, implode($delimiter, $words)); + } } \ No newline at end of file diff --git a/classes/Helper/User.php b/classes/Helper/User.php index 5acc8ff22..998bff755 100644 --- a/classes/Helper/User.php +++ b/classes/Helper/User.php @@ -15,7 +15,7 @@ class User { public function get_user_field( $field, $user_id ) { $user = get_user_by( 'id', $user_id ); - return isset( $user->{$field} ) ? $user->{$field} : false; + return $user->{$field} ?? false; } /** @@ -88,9 +88,7 @@ public function get_display_name( $user, $format = false ) { case 'roles' : return ac_helper()->string->enumeration_list( $this->get_roles_names( $user->roles ), 'and' ); default : - return isset( $user->{$format} ) - ? $user->{$format} - : $user->display_name; + return $user->{$format} ?? $user->display_name; } } diff --git a/classes/Integration/EventsCalendar.php b/classes/Integration/EventsCalendar.php index 30dff83f4..0f270651a 100644 --- a/classes/Integration/EventsCalendar.php +++ b/classes/Integration/EventsCalendar.php @@ -4,7 +4,6 @@ use AC\Integration; use AC\ListScreen; -use AC\ListScreenPost; use AC\Screen; use AC\Type\Url\Site; @@ -55,8 +54,7 @@ public function show_notice(Screen $screen): bool public function show_placeholder(ListScreen $list_screen): bool { - return $list_screen instanceof ListScreenPost - && in_array($list_screen->get_post_type(), $this->get_post_types()); + return in_array($list_screen->get_post_type(), $this->get_post_types()); } } \ No newline at end of file diff --git a/classes/Integration/Filter/IsActive.php b/classes/Integration/Filter/IsActive.php new file mode 100644 index 000000000..9bc6ff344 --- /dev/null +++ b/classes/Integration/Filter/IsActive.php @@ -0,0 +1,24 @@ +all(), [$this, 'is_active'])); + } + + private function is_active(Integration $integration): bool + { + return (bool)apply_filters('ac/integration/active', false, $integration); + } + +} \ No newline at end of file diff --git a/classes/Integration/WooCommerce.php b/classes/Integration/WooCommerce.php index af4b89aee..5caa4a80a 100644 --- a/classes/Integration/WooCommerce.php +++ b/classes/Integration/WooCommerce.php @@ -4,56 +4,63 @@ use AC\Integration; use AC\ListScreen; -use AC\ListScreenPost; use AC\Screen; use AC\Type\Url\Site; -final class WooCommerce extends Integration { - - public function __construct() { - parent::__construct( - 'ac-addon-woocommerce', - __( 'WooCommerce', 'codepress-admin-columns' ), - 'assets/images/addons/woocommerce-icon.png', - sprintf( - '%s %s', - sprintf( __( 'Integrates %s with Admin Columns.', 'codepress-admin-columns' ), __( 'WooCommerce', 'codepress-admin-columns' ) ), - __( 'Display, inline- and bulk-edit, smart filter and sort your Products, Variations, Orders and Customers', 'codepress-admin-columns' ) - ), - null, - new Site( Site::PAGE_ADDON_WOOCOMMERCE ) - ); - } - - public function is_plugin_active(): bool +final class WooCommerce extends Integration +{ + + public function __construct() + { + parent::__construct( + 'ac-addon-woocommerce', + __('WooCommerce', 'codepress-admin-columns'), + 'assets/images/addons/woocommerce-icon.png', + sprintf( + '%s %s', + sprintf( + __('Integrates %s with Admin Columns.', 'codepress-admin-columns'), + __('WooCommerce', 'codepress-admin-columns') + ), + __( + 'Display, inline- and bulk-edit, smart filter and sort your Products, Variations, Orders and Customers', + 'codepress-admin-columns' + ) + ), + null, + new Site(Site::PAGE_ADDON_WOOCOMMERCE) + ); + } + + public function is_plugin_active(): bool { - return class_exists( 'WooCommerce', false ); - } - - private function get_post_types() { - return [ - 'product', - 'shop_order', - 'shop_coupon', - ]; - } - - public function show_notice( Screen $screen ): bool + return class_exists('WooCommerce', false); + } + + private function get_post_types(): array + { + return [ + 'product', + 'shop_order', + 'shop_coupon', + ]; + } + + public function show_notice(Screen $screen): bool { - $is_user_screen = 'users' === $screen->get_id(); - $is_post_screen = 'edit' === $screen->get_base() - && in_array( $screen->get_post_type(), $this->get_post_types() ); + $is_user_screen = 'users' === $screen->get_id(); + $is_post_screen = 'edit' === $screen->get_base() + && in_array($screen->get_post_type(), $this->get_post_types()); - return $is_user_screen || $is_post_screen; - } + return $is_user_screen || $is_post_screen; + } - public function show_placeholder( ListScreen $list_screen ): bool + public function show_placeholder(ListScreen $list_screen): bool { - $is_user_screen = $list_screen instanceof ListScreen\User; - $is_post_screen = $list_screen instanceof ListScreenPost - && in_array( $list_screen->get_post_type(), $this->get_post_types() ); + $is_user_screen = $list_screen instanceof ListScreen\User; + $is_post_screen = in_array($list_screen->get_post_type(), $this->get_post_types()); - return $is_user_screen || $is_post_screen; - } + return $is_user_screen || $is_post_screen; + } } \ No newline at end of file diff --git a/classes/IntegrationRepository.php b/classes/IntegrationRepository.php index cbfe5ec55..dedd2a867 100644 --- a/classes/IntegrationRepository.php +++ b/classes/IntegrationRepository.php @@ -3,7 +3,6 @@ namespace AC; use AC\Integration\Filter; -use ACP\Integration\Filter\IsActive; class IntegrationRepository { @@ -27,7 +26,7 @@ public function find_all(): Integrations public function find_all_active(): Integrations { - return (new IsActive())->filter($this->find_all()); + return (new Filter\IsActive())->filter($this->find_all()); } public function find_all_by_active_plugins(): Integrations diff --git a/classes/ListScreen.php b/classes/ListScreen.php index 7ce7cb9f7..41c6ce976 100644 --- a/classes/ListScreen.php +++ b/classes/ListScreen.php @@ -11,7 +11,7 @@ use LogicException; use WP_User; -abstract class ListScreen +abstract class ListScreen implements PostType { /** @@ -59,9 +59,9 @@ abstract class ListScreen private $column_types; /** - * @var string|null + * @var ListScreenId */ - protected $layout_id; + protected $id; /** * @var array Column settings data @@ -88,15 +88,27 @@ abstract class ListScreen */ private $updated; + /** + * @var string + */ + protected $query_type; + + protected $post_type = ''; + public function __construct(string $key, string $screen_id) { $this->key = $key; $this->screen_id = $screen_id; } + public function get_post_type(): string + { + return $this->post_type; + } + public function has_id(): bool { - return ListScreenId::is_valid_id($this->layout_id); + return null !== $this->id; } public function get_id(): ListScreenId @@ -105,7 +117,7 @@ public function get_id(): ListScreenId throw new LogicException('ListScreen has no identity.'); } - return new ListScreenId($this->layout_id); + return $this->id; } abstract protected function register_column_types(): void; @@ -137,13 +149,6 @@ public function get_label(): ?string return $this->label; } - protected function set_label(string $label): self - { - $this->label = $label; - - return $this; - } - public function get_singular_label(): ?string { return $this->singular_label ?: $this->label; @@ -154,11 +159,9 @@ public function get_meta_type(): string return $this->meta_type ?: ''; } - protected function set_meta_type(string $meta_type): self + public function get_query_type(): string { - $this->meta_type = $meta_type; - - return $this; + return $this->query_type ?: $this->get_meta_type(); } public function get_screen_id(): string @@ -171,11 +174,9 @@ public function get_group(): string return $this->group; } - public function set_group(string $group): self + public function set_group(string $group): void { $this->group = $group; - - return $this; } public function get_title(): string @@ -183,28 +184,19 @@ public function get_title(): string return $this->title; } - public function set_title(string $title): self + public function set_title(string $title): void { $this->title = $title; - - return $this; } public function get_storage_key(): string { - return $this->key . $this->layout_id; + return $this->key . $this->id; } - public function get_layout_id(): ?string + public function set_id(ListScreenId $id): void { - return $this->layout_id; - } - - public function set_layout_id(string $layout_id): self - { - $this->layout_id = $layout_id; - - return $this; + $this->id = $id; } public function get_table_attr_id(): string @@ -217,18 +209,14 @@ public function is_read_only(): bool return $this->read_only; } - public function set_read_only(bool $read_only): self + public function set_read_only(bool $read_only): void { $this->read_only = $read_only; - - return $this; } - public function set_updated(DateTime $updated): self + public function set_updated(DateTime $updated): void { $this->updated = $updated; - - return $this; } public function get_updated(): DateTime @@ -240,7 +228,7 @@ abstract public function get_table_url(): Uri; public function get_editor_url(): Uri { - return new Url\EditorColumns($this->key, $this->has_id() ? $this->get_id() : null); + return new Url\EditorColumns($this->key, $this->id); } /** @@ -255,6 +243,35 @@ public function get_columns(): array return $this->columns; } + private function set_columns(): void + { + foreach ($this->get_settings() as $name => $data) { + $data['name'] = $name; + $column = $this->create_column($data); + + if ($column) { + $this->columns[$column->get_name()] = $column; + } + } + + // Nothing stored. Use WP default columns. + if (null === $this->columns) { + foreach ($this->get_original_columns() as $type => $label) { + $column = $this->create_column(['type' => $type, 'original' => true]); + + if ( ! $column) { + continue; + } + + $this->columns[$column->get_name()] = $column; + } + } + + if (null === $this->columns) { + $this->columns = []; + } + } + /** * @return Column[] */ @@ -267,6 +284,34 @@ public function get_column_types(): array return $this->column_types; } + private function set_column_types(): void + { + $this->column_types = []; + + foreach ($this->get_original_columns() as $type => $label) { + // Ignore the mandatory checkbox column + if ('cb' === $type) { + continue; + } + + $column = new Column(); + $column->set_type($type) + ->set_original(true); + + $this->register_column_type($column); + } + + // Load Custom columns + $this->register_column_types(); + + /** + * Register column types + * + * @param ListScreen $this + */ + do_action('ac/column_types', $this); + } + public function get_column_by_name($name): ?Column { foreach ($this->get_columns() as $column) { @@ -286,7 +331,7 @@ public function get_column_by_type(string $type): ?Column return $column_types[$type] ?? null; } - public function get_class_by_type(string $type): ?string + private function get_class_by_type(string $type): ?string { $column = $this->get_column_by_type($type); @@ -336,35 +381,6 @@ public function get_original_columns(): array return (new DefaultColumnsRepository())->get($this->get_key()); } - private function set_column_types(): void - { - $this->column_types = []; - - // Register default columns - foreach ($this->get_original_columns() as $type => $label) { - // Ignore the mandatory checkbox column - if ('cb' === $type) { - continue; - } - - $column = new Column(); - $column->set_type($type) - ->set_original(true); - - $this->register_column_type($column); - } - - // Load Custom columns - $this->register_column_types(); - - /** - * Register column types - * - * @param ListScreen $this - */ - do_action('ac/column_types', $this); - } - private function is_original_column(string $type): bool { $column = $this->get_column_by_type($type); @@ -372,11 +388,6 @@ private function is_original_column(string $type): bool return $column && $column->is_original(); } - public function deregister_column(string $column_name): void - { - unset($this->columns[$column_name]); - } - public function create_column(array $settings): ?Column { if ( ! isset($settings['type'])) { @@ -413,56 +424,9 @@ public function create_column(array $settings): ?Column return $column; } - protected function register_column(Column $column): void - { - $this->columns[$column->get_name()] = $column; - - /** - * Fires when a column is registered to a list screen, i.e. when it is created. Can be used - * to attach additional functionality to a column, such as exporting, sorting or filtering - * - * @param Column $column Column type object - * @param ListScreen $list_screen List screen object to which the column was registered - * - * @since 3.0.5 - */ - do_action('ac/list_screen/column_registered', $column, $this); - } - - public function set_settings(array $settings): self + public function set_settings(array $settings): void { $this->settings = $settings; - - return $this; - } - - private function set_columns(): void - { - foreach ($this->get_settings() as $name => $data) { - $data['name'] = $name; - $column = $this->create_column($data); - - if ($column) { - $this->register_column($column); - } - } - - // Nothing stored. Use WP default columns. - if (null === $this->columns) { - foreach ($this->get_original_columns() as $type => $label) { - $column = $this->create_column(['type' => $type, 'original' => true]); - - if ( ! $column) { - continue; - } - - $this->register_column($column); - } - } - - if (null === $this->columns) { - $this->columns = []; - } } public function get_settings(): array @@ -501,11 +465,14 @@ public function is_user_assigned(WP_User $user): bool return in_array($user->ID, $user_ids, true); } - public function set_preferences(array $preferences): self + public function set_preferences(array $preferences): void { $this->preferences = apply_filters('ac/list_screen/preferences', $preferences, $this); + } - return $this; + public function set_preference(string $key, $value): void + { + $this->preferences[$key] = $value; } public function get_preferences(): array @@ -518,6 +485,14 @@ public function get_preference(string $key) return $this->preferences[$key] ?? null; } + /** + * @deprecated NEWVERSION + */ + public function get_layout_id(): ?string + { + return (string)$this->id; + } + public function get_screen_link(): string { _deprecated_function(__METHOD__, '4.6.5', 'AC\ListScreen::get_table_url()'); @@ -532,4 +507,34 @@ public function get_edit_link(): string return (string)$this->get_editor_url(); } + protected function set_meta_type(string $meta_type): void + { + _deprecated_function(__METHOD__, 'NEWVERSION'); + + $this->meta_type = $meta_type; + } + + public function deregister_column(string $column_name): void + { + _deprecated_function(__METHOD__, 'NEWVERSION'); + + unset($this->columns[$column_name]); + } + + public function set_layout_id(string $layout_id): void + { + _deprecated_function(__METHOD__, 'NEWVERSION', 'AC\ListScreen::set_id()'); + + if (ListScreenId::is_valid_id($layout_id)) { + $this->id = new ListScreenId($layout_id); + } + } + + protected function set_label(string $label): void + { + _deprecated_function(__METHOD__, 'NEWVERSION'); + + $this->label = $label; + } + } \ No newline at end of file diff --git a/classes/ListScreen/Comment.php b/classes/ListScreen/Comment.php index e4a4eed4c..ebbc78481 100644 --- a/classes/ListScreen/Comment.php +++ b/classes/ListScreen/Comment.php @@ -19,8 +19,7 @@ public function __construct() $this->label = __('Comments'); $this->singular_label = __('Comments'); $this->group = 'comment'; - - $this->set_meta_type(MetaType::COMMENT); + $this->meta_type = MetaType::COMMENT; } public function get_table_url(): Uri diff --git a/classes/ListScreen/Media.php b/classes/ListScreen/Media.php index d6b4058eb..d3702768a 100644 --- a/classes/ListScreen/Media.php +++ b/classes/ListScreen/Media.php @@ -7,6 +7,7 @@ use AC; use AC\Column; use AC\ColumnRepository; +use AC\MetaType; use AC\Type\Uri; use AC\Type\Url; use AC\WpListTableFactory; @@ -16,8 +17,10 @@ class Media extends AC\ListScreenPost implements ManageValue, ListTable public function __construct() { - parent::__construct('attachment', 'wp-media', 'upload'); + parent::__construct('wp-media', 'upload'); + $this->meta_type = MetaType::POST; + $this->post_type = 'attachment'; $this->group = 'media'; $this->label = __('Media'); } @@ -39,9 +42,9 @@ public function get_table_url(): Uri protected function register_column_types(): void { - parent::register_column_types(); - $this->register_column_types_from_list([ + Column\CustomField::class, + Column\Actions::class, Column\Post\TitleRaw::class, Column\Post\Slug::class, Column\Post\TitleRaw::class, diff --git a/classes/ListScreen/Post.php b/classes/ListScreen/Post.php index 1a6879392..553acef88 100644 --- a/classes/ListScreen/Post.php +++ b/classes/ListScreen/Post.php @@ -5,13 +5,13 @@ use AC; use AC\Column; use AC\ColumnRepository; -use AC\ListScreenPost; +use AC\MetaType; use AC\Table; use AC\Type\Uri; use AC\Type\Url; use AC\WpListTableFactory; -class Post extends ListScreenPost implements ManageValue, ListTable +class Post extends AC\ListScreenPost implements ManageValue, ListTable { public function __construct(string $post_type, string $key = null, string $screen_id = null) @@ -23,8 +23,10 @@ public function __construct(string $post_type, string $key = null, string $scree if (null === $screen_id) { $screen_id = 'edit-' . $post_type; } - parent::__construct($post_type, $key, $screen_id); + parent::__construct($key, $screen_id); + $this->meta_type = MetaType::POST; + $this->post_type = $post_type; $this->group = 'post'; } @@ -62,9 +64,9 @@ public function get_singular_label(): ?string protected function register_column_types(): void { - parent::register_column_types(); - $this->register_column_types_from_list([ + Column\CustomField::class, + Column\Actions::class, Column\Post\Attachment::class, Column\Post\Author::class, Column\Post\AuthorName::class, diff --git a/classes/ListScreen/User.php b/classes/ListScreen/User.php index c84238b0c..72512bfc7 100644 --- a/classes/ListScreen/User.php +++ b/classes/ListScreen/User.php @@ -20,8 +20,7 @@ public function __construct() $this->group = 'user'; $this->label = __('Users'); $this->singular_label = __('User'); - - $this->set_meta_type(MetaType::USER); + $this->meta_type = MetaType::USER; } public function get_table_url(): Uri diff --git a/classes/ListScreenCollection.php b/classes/ListScreenCollection.php index 5d6147832..daa5ac67e 100644 --- a/classes/ListScreenCollection.php +++ b/classes/ListScreenCollection.php @@ -1,86 +1,82 @@ data[ $list_screen->get_layout_id() ] = $list_screen; - } - - public function remove( ListScreen $list_screen ) { - unset( $this->data[ $list_screen->get_layout_id() ] ); - } - - #[\ReturnTypeWillChange] - public function rewind() { - reset( $this->data ); - } - - /** - * @return ListScreen - */ - #[\ReturnTypeWillChange] - public function current() { - return current( $this->data ); - } - - public function get_first() { - return reset( $this->data ); - } - - #[\ReturnTypeWillChange] - public function key() { - return key( $this->data ); - } - - #[\ReturnTypeWillChange] - public function next() { - return next( $this->data ); - } - - #[\ReturnTypeWillChange] - public function valid() { - $key = $this->key(); - - return ( $key !== null && $key !== false ); - } - - /** - * @return int - */ - #[\ReturnTypeWillChange] - public function count() { - return count( $this->data ); - } - - /** - * @param ListScreen $list_screen - * - * @return bool - */ - public function contains( ListScreen $list_screen ) { - return isset( $this->data[ $list_screen->get_layout_id() ] ); - } - - public function get_copy(): array { - $copy = $this->data; - - reset( $copy ); - - return $copy; - } +final class ListScreenCollection implements Iterator, Countable +{ + + /** + * @var ListScreen[] + */ + private $data = []; + + public function __construct(array $list_screens = []) + { + array_map([$this, 'add'], $list_screens); + } + + public function add(ListScreen $list_screen): void + { + $this->data[(string)$list_screen->get_id()] = $list_screen; + } + + public function remove(ListScreen $list_screen): void + { + unset($this->data[(string)$list_screen->get_id()]); + } + + public function contains(ListScreen $list_screen): bool + { + return isset($this->data[(string)$list_screen->get_id()]); + } + + public function rewind(): void + { + reset($this->data); + } + + public function current(): ListScreen + { + return current($this->data); + } + + public function get_first(): ListScreen + { + return reset($this->data); + } + + public function key(): string + { + return key($this->data); + } + + public function next(): void + { + next($this->data); + } + + public function valid(): bool + { + return key($this->data) !== null; + } + + public function count(): int + { + return count($this->data); + } + + public function get_copy(): array + { + $copy = $this->data; + + reset($copy); + + return $copy; + } } \ No newline at end of file diff --git a/classes/ListScreenFactory/BaseFactory.php b/classes/ListScreenFactory/BaseFactory.php index cf810dc4a..f6366dc65 100644 --- a/classes/ListScreenFactory/BaseFactory.php +++ b/classes/ListScreenFactory/BaseFactory.php @@ -7,6 +7,7 @@ use AC\Exception\InvalidListScreenException; use AC\ListScreen; use AC\ListScreenFactory; +use AC\Type\ListScreenId; use DateTime; use WP_Screen; @@ -19,13 +20,17 @@ protected function add_settings(ListScreen $list_screen, array $settings): ListS $preferences = $settings['preferences'] ?? []; $group = $settings['group'] ?? ''; $date = $settings['date'] ?? new DateTime(); + $list_id = $settings['list_id'] ?? null; if (is_string($date)) { $date = DateTime::createFromFormat('Y-m-d H:i:s', $date); } + if (ListScreenId::is_valid_id($list_id)) { + $list_screen->set_id(new ListScreenId($list_id)); + } + $list_screen->set_title($settings['title'] ?? ''); - $list_screen->set_layout_id($settings['list_id'] ?? ''); $list_screen->set_preferences($preferences ?: []); $list_screen->set_settings($columns ?: []); $list_screen->set_updated($date); diff --git a/classes/ListScreenPost.php b/classes/ListScreenPost.php index f28c313ee..376ef4966 100644 --- a/classes/ListScreenPost.php +++ b/classes/ListScreenPost.php @@ -2,30 +2,10 @@ namespace AC; +/** + * @deprecated NEWVERSION + */ abstract class ListScreenPost extends ListScreen { - protected $post_type; - - public function __construct(string $post_type, string $key, string $screen_id) - { - parent::__construct( $key, $screen_id ); - - $this->post_type = $post_type; - $this->meta_type = MetaType::POST; - } - - public function get_post_type(): string - { - return $this->post_type; - } - - protected function register_column_types(): void - { - $this->register_column_types_from_list([ - Column\CustomField::class, - Column\Actions::class, - ]); - } - } \ No newline at end of file diff --git a/classes/ListScreenRepository/Database.php b/classes/ListScreenRepository/Database.php index c50db893b..ccc06dcbc 100644 --- a/classes/ListScreenRepository/Database.php +++ b/classes/ListScreenRepository/Database.php @@ -12,7 +12,7 @@ use AC\Type\ListScreenId; use LogicException; -final class Database implements ListScreenRepositoryWritable +class Database implements ListScreenRepositoryWritable { use ListScreenRepositoryTrait; @@ -88,8 +88,10 @@ public function save(ListScreen $list_screen): void throw MissingListScreenIdException::from_saving_list_screen(); } + $list_screen->set_preferences($this->save_preferences($list_screen)); + $args = [ - 'list_id' => $list_screen->get_layout_id(), + 'list_id' => (string)$list_screen->get_id(), 'list_key' => $list_screen->get_key(), 'title' => $list_screen->get_title(), 'columns' => $list_screen->get_settings() ? serialize($list_screen->get_settings()) : null, @@ -139,13 +141,29 @@ public function delete(ListScreen $list_screen): void ); } + /** + * Template method to add and remove preferences before save + */ + protected function save_preferences(ListScreen $list_screen): array + { + return $list_screen->get_preferences(); + } + + /** + * Template method to add and remove preferences before retrieval + */ + protected function get_preferences(ListScreen $list_screen): array + { + return $list_screen->get_preferences(); + } + private function create_list_screen(object $data): ?ListScreen { if ( ! $this->list_screen_factory->can_create($data->list_key)) { return null; } - return $this->list_screen_factory->create( + $list_screen = $this->list_screen_factory->create( $data->list_key, [ 'title' => $data->title, @@ -156,6 +174,10 @@ private function create_list_screen(object $data): ?ListScreen 'group' => null, ] ); + + $list_screen->set_preferences($this->get_preferences($list_screen)); + + return $list_screen; } private function create_list_screens(array $rows): ListScreenCollection diff --git a/classes/ListScreenRepository/Filter/ListId.php b/classes/ListScreenRepository/Filter/ListId.php deleted file mode 100644 index 53ea286cb..000000000 --- a/classes/ListScreenRepository/Filter/ListId.php +++ /dev/null @@ -1,29 +0,0 @@ -id = $id; - } - - public function filter( ListScreenCollection $list_screens ): ListScreenCollection { - $filtered = new ListScreenCollection(); - - foreach ( $list_screens as $list_screen ) { - if ( $list_screen->has_id() && $list_screen->get_id()->equals( $this->id ) ) { - $filtered->add( $list_screen ); - } - } - - return $filtered; - } - -} \ No newline at end of file diff --git a/classes/ListScreenRepository/Filter/ListKey.php b/classes/ListScreenRepository/Filter/ListKey.php deleted file mode 100644 index 8b3b84f7d..000000000 --- a/classes/ListScreenRepository/Filter/ListKey.php +++ /dev/null @@ -1,28 +0,0 @@ -key = $key; - } - - public function filter( ListScreenCollection $list_screens ): ListScreenCollection { - $collection = new ListScreenCollection(); - - foreach ( $list_screens as $list_screen ) { - if ( $this->key === $list_screen->get_key() ) { - $collection->add( $list_screen ); - } - } - - return $collection; - } - -} \ No newline at end of file diff --git a/classes/ListScreenRepository/Filter/ListKeys.php b/classes/ListScreenRepository/Filter/ListKeys.php deleted file mode 100644 index f1f8ac6d2..000000000 --- a/classes/ListScreenRepository/Filter/ListKeys.php +++ /dev/null @@ -1,28 +0,0 @@ -keys = $keys; - } - - public function filter( ListScreenCollection $list_screens ): ListScreenCollection { - $collection = new ListScreenCollection(); - - foreach ( $list_screens as $list_screen ) { - if ( in_array( $list_screen->get_key(), $this->keys, true ) ) { - $collection->add( $list_screen ); - } - } - - return $collection; - } - -} \ No newline at end of file diff --git a/classes/ListScreenRepository/Filter/ListScreenId.php b/classes/ListScreenRepository/Filter/ListScreenId.php new file mode 100644 index 000000000..c893b24b9 --- /dev/null +++ b/classes/ListScreenRepository/Filter/ListScreenId.php @@ -0,0 +1,34 @@ +id = $id; + } + + public function filter(ListScreenCollection $list_screens): ListScreenCollection + { + $filtered = new ListScreenCollection(); + + foreach ($list_screens as $list_screen) { + if ($list_screen->has_id() && $list_screen->get_id()->equals($this->id)) { + $filtered->add($list_screen); + } + } + + return $filtered; + } + +} \ No newline at end of file diff --git a/classes/ListScreenRepository/Filter/ListScreenKey.php b/classes/ListScreenRepository/Filter/ListScreenKey.php new file mode 100644 index 000000000..bc0dfb240 --- /dev/null +++ b/classes/ListScreenRepository/Filter/ListScreenKey.php @@ -0,0 +1,33 @@ +key = $key; + } + + public function filter(ListScreenCollection $list_screens): ListScreenCollection + { + $collection = new ListScreenCollection(); + + foreach ($list_screens as $list_screen) { + if ($this->key === $list_screen->get_key()) { + $collection->add($list_screen); + } + } + + return $collection; + } + +} \ No newline at end of file diff --git a/classes/ListScreenRepository/Sort/ListIds.php b/classes/ListScreenRepository/Sort/ListIds.php index e3992e75a..51169f22b 100644 --- a/classes/ListScreenRepository/Sort/ListIds.php +++ b/classes/ListScreenRepository/Sort/ListIds.php @@ -5,42 +5,47 @@ use AC\ListScreenCollection; use AC\ListScreenRepository\Sort; -class ListIds implements Sort { +class ListIds implements Sort +{ - private $list_ids; + private $list_ids; - public function __construct( array $list_ids = [] ) { - $this->list_ids = $list_ids; - } + public function __construct(array $list_ids = []) + { + $this->list_ids = $list_ids; + } - public function sort( ListScreenCollection $list_screens ): ListScreenCollection { - if ( ! $list_screens->count() ) { - return $list_screens; - } + public function sort(ListScreenCollection $list_screens): ListScreenCollection + { + if ( ! $list_screens->count()) { + return $list_screens; + } - $lists = []; + $lists = []; - foreach ( $list_screens as $list_screen ) { - $lists[ $list_screen->get_layout_id() ] = $list_screen; - } + foreach ($list_screens as $list_screen) { + if ($list_screen->has_id()) { + $lists[(string)$list_screen->get_id()] = $list_screen; + } + } - $ordered = new ListScreenCollection(); + $ordered = new ListScreenCollection(); - foreach ( array_unique( $this->list_ids ) as $list_id ) { - if ( ! isset( $lists[ $list_id ] ) ) { - continue; - } + foreach (array_unique($this->list_ids) as $list_id) { + if ( ! isset($lists[$list_id])) { + continue; + } - $ordered->add( $lists[ $list_id ] ); + $ordered->add($lists[$list_id]); - unset( $lists[ $list_id ] ); - } + unset($lists[$list_id]); + } - foreach ( $lists as $list_screen ) { - $ordered->add( $list_screen ); - } + foreach ($lists as $list_screen) { + $ordered->add($list_screen); + } - return $ordered; - } + return $ordered; + } } \ No newline at end of file diff --git a/classes/ListScreenRepository/Sort/ManualOrder.php b/classes/ListScreenRepository/Sort/ManualOrder.php index 3fe238c5a..ddcebbc31 100644 --- a/classes/ListScreenRepository/Sort/ManualOrder.php +++ b/classes/ListScreenRepository/Sort/ManualOrder.php @@ -6,44 +6,49 @@ use AC\ListScreenRepository\Sort; use AC\Storage; -class ManualOrder implements Sort { +class ManualOrder implements Sort +{ - private $list_screen_order; + private $list_screen_order; - public function __construct() { - $this->list_screen_order = new Storage\ListScreenOrder(); - } + public function __construct() + { + $this->list_screen_order = new Storage\ListScreenOrder(); + } - public function sort( ListScreenCollection $list_screens ): ListScreenCollection { - if ( ! $list_screens->count() ) { - return $list_screens; - } + public function sort(ListScreenCollection $list_screens): ListScreenCollection + { + if ( ! $list_screens->count()) { + return $list_screens; + } - $key = $list_screens->get_first()->get_key(); + $key = $list_screens->get_first()->get_key(); - $layouts = []; + $layouts = []; - foreach ( $list_screens as $list_screen ) { - $layouts[ $list_screen->get_layout_id() ] = $list_screen; - } + foreach ($list_screens as $list_screen) { + if ($list_screen->has_id()) { + $layouts[(string)$list_screen->get_id()] = $list_screen; + } + } - $ordered = new ListScreenCollection(); + $ordered = new ListScreenCollection(); - foreach ( $this->list_screen_order->get( $key ) as $layout_id ) { - if ( ! isset( $layouts[ $layout_id ] ) ) { - continue; - } + foreach ($this->list_screen_order->get($key) as $layout_id) { + if ( ! isset($layouts[$layout_id])) { + continue; + } - $ordered->add( $layouts[ $layout_id ] ); + $ordered->add($layouts[$layout_id]); - unset( $layouts[ $layout_id ] ); - } + unset($layouts[$layout_id]); + } - foreach ( $layouts as $list_screen ) { - $ordered->add( $list_screen ); - } + foreach ($layouts as $list_screen) { + $ordered->add($list_screen); + } - return $ordered; - } + return $ordered; + } } \ No newline at end of file diff --git a/classes/ListScreenRepository/SourceAware.php b/classes/ListScreenRepository/SourceAware.php deleted file mode 100644 index aa80b3afe..000000000 --- a/classes/ListScreenRepository/SourceAware.php +++ /dev/null @@ -1,14 +0,0 @@ -repositories as $repository) { - $list_screen = $repository->find($id); + $list_screen = $repository->get_list_screen_repository()->find($id); if ($list_screen) { + $list_screen->set_read_only(! $repository->is_writable()); + return $list_screen; } } @@ -72,8 +74,10 @@ protected function find_all_from_source(): ListScreenCollection $collection = new ListScreenCollection(); foreach ($this->repositories as $repository) { - foreach ($repository->find_all() as $list_screen) { + foreach ($repository->get_list_screen_repository()->find_all() as $list_screen) { if ( ! $collection->contains($list_screen)) { + $list_screen->set_read_only(! $repository->is_writable()); + $collection->add($list_screen); } } @@ -87,8 +91,10 @@ protected function find_all_by_key_from_source(string $key): ListScreenCollectio $collection = new ListScreenCollection(); foreach ($this->repositories as $repository) { - foreach ($repository->find_all_by_key($key) as $list_screen) { + foreach ($repository->get_list_screen_repository()->find_all_by_key($key) as $list_screen) { if ( ! $collection->contains($list_screen)) { + $list_screen->set_read_only(! $repository->is_writable()); + $collection->add($list_screen); } } @@ -116,11 +122,14 @@ public function delete(ListScreen $list_screen): void } } - public function get_writable_repository(ListScreen $list_screen): ?ListScreenRepositoryWritable + private function get_writable_repository(ListScreen $list_screen): ?ListScreenRepositoryWritable { return $this->get_writable_repositories($list_screen)[0] ?? null; } + /** + * @return ListScreenRepositoryWritable[] + */ private function get_writable_repositories(ListScreen $list_screen): array { $repositories = []; @@ -137,7 +146,7 @@ private function get_writable_repositories(ListScreen $list_screen): array } if ($match && $repository->is_writable()) { - $repositories[] = $repository; + $repositories[] = $repository->get_list_screen_repository(); } } diff --git a/classes/ListScreenRepository/Storage/ListScreenRepository.php b/classes/ListScreenRepository/Storage/ListScreenRepository.php index a32962476..c1154a285 100644 --- a/classes/ListScreenRepository/Storage/ListScreenRepository.php +++ b/classes/ListScreenRepository/Storage/ListScreenRepository.php @@ -5,67 +5,35 @@ namespace AC\ListScreenRepository\Storage; use AC; -use AC\Exception; -use AC\ListScreen; -use AC\ListScreenCollection; use AC\ListScreenRepository\Rules; -use AC\ListScreenRepository\SourceAware; -use AC\Type\ListScreenId; use LogicException; -class ListScreenRepository implements AC\ListScreenRepositoryWritable, SourceAware +final class ListScreenRepository { - use AC\ListScreenRepository\ListScreenRepositoryTrait; - - private $repository; + private $list_screen_repository; private $writable; private $rules; - public function __construct(AC\ListScreenRepository $repository, bool $writable = null, Rules $rules = null) - { + public function __construct( + AC\ListScreenRepository $list_screen_repository, + bool $writable = null, + Rules $rules = null + ) { if (null === $writable) { $writable = false; } - $this->repository = $repository; - $this->writable = $writable && $this->repository instanceof AC\ListScreenRepositoryWritable; + $this->list_screen_repository = $list_screen_repository; + $this->writable = $writable && $this->list_screen_repository instanceof AC\ListScreenRepositoryWritable; $this->rules = $rules; } - protected function find_from_source(ListScreenId $id): ?ListScreen - { - $list_screen = $this->repository->find($id); - - if ($list_screen && ! $this->is_writable()) { - $list_screen->set_read_only(true); - } - - return $list_screen; - } - - protected function find_all_from_source(): ListScreenCollection - { - $list_screens = $this->repository->find_all(); - - if ( ! $this->is_writable()) { - $this->set_all_read_only($list_screens); - } - - return $list_screens; - } - - protected function find_all_by_key_from_source(string $key): ListScreenCollection + public function get_list_screen_repository(): AC\ListScreenRepository { - $list_screens = $this->repository->find_all_by_key($key); - - if ( ! $this->is_writable()) { - $this->set_all_read_only($list_screens); - } - - return $list_screens; + return $this->list_screen_repository; } public function is_writable(): bool @@ -76,7 +44,7 @@ public function is_writable(): bool public function with_writable(bool $writable): self { return new self( - $this->repository, + $this->list_screen_repository, $writable, $this->rules ); @@ -96,44 +64,4 @@ public function has_rules(): bool return $this->rules !== null; } - private function set_all_read_only(ListScreenCollection $list_screens): void - { - foreach ($list_screens as $list_screen) { - $list_screen->set_read_only(true); - } - } - - public function exists(ListScreenId $id): bool - { - return $this->repository->exists($id); - } - - public function save(ListScreen $list_screen): void - { - if ($this->repository instanceof AC\ListScreenRepositoryWritable) { - $this->repository->save($list_screen); - } - } - - public function delete(ListScreen $list_screen): void - { - if ($this->repository instanceof AC\ListScreenRepositoryWritable) { - $this->repository->delete($list_screen); - } - } - - public function get_source(ListScreenId $id = null): string - { - if ( ! $this->has_source($id)) { - throw new Exception\SourceNotAvailableException(); - } - - return $this->repository->get_source($id); - } - - public function has_source(ListScreenId $id = null): bool - { - return $this->repository instanceof SourceAware && $this->repository->has_source($id); - } - } \ No newline at end of file diff --git a/classes/ListScreenRepository/Types.php b/classes/ListScreenRepository/Types.php new file mode 100644 index 000000000..c21dbb3ad --- /dev/null +++ b/classes/ListScreenRepository/Types.php @@ -0,0 +1,12 @@ +table = $table; } - public function get_column_value(string $column, int $id): string + public function get_column_value(string $column, $id): string { ob_start(); @@ -30,7 +30,7 @@ public function get_column_value(string $column, int $id): string return ob_get_clean(); } - public function render_row(int $id): string + public function render_row($id): string { ob_start(); diff --git a/classes/ListTable/Media.php b/classes/ListTable/Media.php index 3f9d9140e..a47030745 100644 --- a/classes/ListTable/Media.php +++ b/classes/ListTable/Media.php @@ -15,7 +15,7 @@ public function __construct(WP_Media_List_Table $table) $this->table = $table; } - public function get_column_value(string $column, int $id): string + public function get_column_value(string $column, $id): string { ob_start(); @@ -30,7 +30,7 @@ public function get_column_value(string $column, int $id): string return ob_get_clean(); } - public function render_row(int $id): string + public function render_row($id): string { // Author column depends on this global to be set. global $authordata; diff --git a/classes/ListTable/NetworkSite.php b/classes/ListTable/NetworkSite.php index 046eb6d96..e2b7e8d8f 100644 --- a/classes/ListTable/NetworkSite.php +++ b/classes/ListTable/NetworkSite.php @@ -15,7 +15,7 @@ public function __construct(WP_MS_Sites_List_Table $table) $this->table = $table; } - public function get_column_value(string $column, int $id): string + public function get_column_value(string $column, $id): string { ob_start(); @@ -36,7 +36,7 @@ public function get_column_value(string $column, int $id): string return ob_get_clean(); } - public function render_row(int $id): string + public function render_row($id): string { ob_start(); $this->table->single_row(get_site($id)); diff --git a/classes/ListTable/NetworkUser.php b/classes/ListTable/NetworkUser.php index 7ab37adf9..54385ab93 100644 --- a/classes/ListTable/NetworkUser.php +++ b/classes/ListTable/NetworkUser.php @@ -15,7 +15,7 @@ public function __construct(WP_MS_Users_List_Table $table) $this->table = $table; } - public function get_column_value(string $column, int $id): string + public function get_column_value(string $column, $id): string { ob_start(); @@ -30,7 +30,7 @@ public function get_column_value(string $column, int $id): string return ob_get_clean(); } - public function render_row(int $id): string + public function render_row($id): string { ob_start(); $this->table->single_row(get_userdata($id)); diff --git a/classes/ListTable/Post.php b/classes/ListTable/Post.php index 0d67df956..5ffc6b74d 100644 --- a/classes/ListTable/Post.php +++ b/classes/ListTable/Post.php @@ -15,7 +15,7 @@ public function __construct(WP_Posts_List_Table $table) $this->table = $table; } - public function get_column_value(string $column, int $id): string + public function get_column_value(string $column, $id): string { ob_start(); @@ -30,7 +30,7 @@ public function get_column_value(string $column, int $id): string return ob_get_clean(); } - public function render_row(int $id): string + public function render_row($id): string { ob_start(); diff --git a/classes/ListTable/Taxonomy.php b/classes/ListTable/Taxonomy.php index ee65043c9..d075c2343 100644 --- a/classes/ListTable/Taxonomy.php +++ b/classes/ListTable/Taxonomy.php @@ -19,12 +19,12 @@ public function __construct(WP_Terms_List_Table $table, string $taxonomy) $this->taxonomy = $taxonomy; } - public function get_column_value(string $column, int $id): string + public function get_column_value(string $column, $id): string { return (string)apply_filters("manage_{$this->taxonomy}_custom_column", '', $column, $id); } - public function render_row(int $id): string + public function render_row($id): string { $term = get_term_by('id', $id, $this->taxonomy); diff --git a/classes/ListTable/User.php b/classes/ListTable/User.php index 345d230bc..221fb7192 100644 --- a/classes/ListTable/User.php +++ b/classes/ListTable/User.php @@ -15,12 +15,12 @@ public function __construct(WP_Users_List_Table $table) $this->table = $table; } - public function get_column_value(string $column, int $id): string + public function get_column_value(string $column, $id): string { return (string)apply_filters('manage_users_custom_column', '', $column, $id); } - public function render_row(int $id): string + public function render_row($id): string { return $this->table->single_row(get_userdata($id)); } diff --git a/classes/Message.php b/classes/Message.php index 7043430f2..2e4788637 100644 --- a/classes/Message.php +++ b/classes/Message.php @@ -8,10 +8,10 @@ abstract class Message { - public const SUCCESS = 'updated'; - public const ERROR = 'notice-error'; - public const WARNING = 'notice-warning'; - public const INFO = 'notice-info'; + public const SUCCESS = 'updated'; // green + public const ERROR = 'notice-error'; // red + public const WARNING = 'notice-warning'; // yellow + public const INFO = 'notice-info'; // blue protected $message; diff --git a/classes/Meta/Query.php b/classes/Meta/Query.php index 6653f008b..a0e2953fb 100644 --- a/classes/Meta/Query.php +++ b/classes/Meta/Query.php @@ -4,497 +4,519 @@ use WP_Meta_Query; -class Query { - - /** - * @var WP_Meta_Query - */ - private $query; - - /** - * @var string - */ - private $sql; - - /** - * @var array - */ - private $select = []; - - /** - * @var string|false - */ - private $count = false; - - /** - * @var bool - */ - private $distinct = false; - - /** - * @var bool - */ - private $join = false; - - /** - * @var array - */ - private $join_where = []; - - /** - * @var array - */ - private $where = []; - - /** - * @var array - */ - private $group_by = []; - - /** - * @var array - */ - private $order_by = []; - - /** - * @var int|false - */ - private $limit = false; - - /** - * @param string $meta_type - */ - public function __construct( $meta_type ) { - $this->set_query( $meta_type ); - } - - /** - * Add a single field or multiple comma separated - * - * @param string $field e.g. id or id, meta_value - * - * @return $this - */ - public function select( $field ) { - $fields = explode( ',', $field ); - - foreach ( $fields as $_field ) { - $this->select[] = trim( $_field ); - } - - return $this; - } - - /** - * Add a COUNT clause AS count - * - * @param string $field - * - * @return $this - */ - public function count( $field ) { - $this->count = $field; - - return $this; - } - - /** - * Group by an aggregated column. - * Supports: count - * - * @param string $field - * - * @return $this - */ - public function group_by( $field ) { - $this->group_by = $field; - - return $this; - } - - public function join( $type = 'inner' ) { - $this->join = strtoupper( $type ); - - return $this; - } - - public function left_join() { - return $this->join( 'left' ); - } - - /** - * @param string $field - * @param string $operator - * @param string|int|array $value - * @param string $boolean - * - * @return $this - * @see get_where_clause() - */ - public function join_where( $field, $operator = null, $value = null, $boolean = 'AND' ) { - // set default join - if ( ! $this->join ) { - $this->join(); - } - - $this->join_where[] = $this->get_where_clause( $field, $operator, $value, $boolean ); - - return $this; - } - - public function order_by( $order_by, $order = 'asc' ) { - $parts = explode( ',', $order_by ); - - foreach ( $parts as $_order_by ) { - $this->order_by[] = [ - 'order_by' => trim( $_order_by ), - 'order' => strtoupper( $order ), - ]; - } - - return $this; - } - - public function limit( $limit ) { - $this->limit = absint( $limit ); - } - - public function distinct() { - $this->distinct = true; - - return $this; - } - - /** - * Set a where clause - * - * @param string|array $field - * @param string $operator - * @param string|int|array $value - * @param string $boolean - * - * @return array - */ - private function get_where_clause( $field, $operator = null, $value = null, $boolean = 'AND' ) { - // allows to omit operator - if ( null === $value ) { - $value = $operator; - $operator = '='; - } - - $where = [ - 'nested' => false, - 'boolean' => strtoupper( $boolean ), - 'field' => $field, - 'operator' => strtoupper( $operator ), - 'value' => $value, - ]; - - // set default join - if ( $field === 'post_type' && ! $this->join ) { - $this->join(); - } - - $nested = []; - - if ( is_array( $field ) ) { - $count = count( $field ); - for ( $i = 0; $i < $count; $i++ ) { - $nested[] = array_pop( $this->where ); - } - } - - if ( $nested ) { - $where['nested'] = true; - $where['field'] = array_reverse( $nested ); - } - - return $where; - } - - /** - * @param $field - * @param null $operator - * @param null $value - * @param string $boolean - * - * @return $this - * @see get_where_clause() - */ - public function remove_where( $field, $operator = null, $value = null, $boolean = 'AND' ) { - $where = $this->get_where_clause( $field, $operator, $value, $boolean ); - - foreach ( $this->where as $k => $v ) { - if ( $v == $where ) { - unset( $this->where[ $k ] ); - } - } - - return $this; - } - - /** - * @param $field - * @param null $operator - * @param null $value - * @param string $boolean - * - * @return $this - * @see get_where_clause() - */ - public function where( $field, $operator = null, $value = null, $boolean = 'AND' ) { - $this->where[] = $this->get_where_clause( $field, $operator, $value, $boolean ); - - return $this; - } - - /** - * @param $field - * @param null $operator - * @param null $value - * - * @return $this - * @see get_where_clause() - */ - public function or_where( $field, $operator = null, $value = null ) { - return $this->where( $field, $operator, $value, 'OR' ); - } - - /** - * @param array $in - * - * @return $this - */ - public function where_in( array $in ) { - return $this->where( 'id', 'in', $in ); - } - - public function where_is_null( $field ) { - return $this->where( $field, '', 'IS NULL' ); - } - - public function where_post_type( $post_type ) { - return $this->where( 'post_type', '=', $post_type ); - } - - private function parse_field( $field ) { - switch ( $field ) { - case 'id': - $field = $this->join ? 'pt.' . $this->query->primary_id_column : 'mt' . $this->query->meta_id_column; - - break; - case 'meta_key': - case 'meta_value': - $field = 'mt.' . $field; - - break; - case 'taxonomy': - case 'post_type': - $field = 'pt.' . $field; - - break; - } - - return $field; - } - - private function parse_where( $where, $clauses ) { - global $wpdb; - - foreach ( $clauses as $clause ) { - - if ( $clause['nested'] ) { - $clause['field'][0]['boolean'] = null; - - $where .= sprintf( ' %s ( %s ) ', $clause['boolean'], $this->parse_where( '', $clause['field'] ) ); - } else { - switch ( $clause['operator'] ) { - case 'IN': - $clause['value'] = sprintf( ' ( %s ) ', implode( ', ', array_map( 'intval', $clause['value'] ) ) ); - - break; - default: - $valid_raw = [ 'IS NULL', 'IS NOT NULL' ]; - - if ( ! in_array( $clause['value'], $valid_raw ) ) { - $clause['value'] = $wpdb->prepare( '%s', $clause['value'] ); - } - } - - $clause['field'] = $this->parse_field( $clause['field'] ); - - $where .= implode( ' ', $clause ); - } - - } +class Query +{ + + /** + * @var WP_Meta_Query + */ + private $query; + + /** + * @var string + */ + private $sql; + + /** + * @var array + */ + private $select = []; + + /** + * @var string|false + */ + private $count = false; + + /** + * @var bool + */ + private $distinct = false; + + /** + * @var bool + */ + private $join = false; + + /** + * @var array + */ + private $join_where = []; + + /** + * @var array + */ + private $where = []; + + /** + * @var array + */ + private $group_by = []; + + /** + * @var array + */ + private $order_by = []; + + /** + * @var int|false + */ + private $limit = false; + + public function __construct(string $meta_type) + { + $this->set_query($meta_type); + } + + /** + * Add a single field or multiple comma separated + * + * @param string $field e.g. id or id, meta_value + * + * @return $this + */ + public function select($field) + { + $fields = explode(',', $field); + + foreach ($fields as $_field) { + $this->select[] = trim($_field); + } + + return $this; + } + + /** + * Add a COUNT clause AS count + * + * @param string $field + * + * @return $this + */ + public function count($field) + { + $this->count = $field; + + return $this; + } + + /** + * Group by an aggregated column. + * Supports: count + * + * @param string $field + * + * @return $this + */ + public function group_by($field) + { + $this->group_by = $field; + + return $this; + } + + public function join($type = 'inner') + { + $this->join = strtoupper($type); + + return $this; + } + + public function left_join() + { + return $this->join('left'); + } + + /** + * @param string $field + * @param string $operator + * @param string|int|array $value + * @param string $boolean + * + * @return $this + * @see get_where_clause() + */ + public function join_where($field, $operator = null, $value = null, $boolean = 'AND'): self + { + // set default join + if ( ! $this->join) { + $this->join(); + } + + $this->join_where[] = $this->get_where_clause($field, $operator, $value, $boolean); + + return $this; + } + + public function order_by($order_by, $order = 'asc') + { + $parts = explode(',', $order_by); + + foreach ($parts as $_order_by) { + $this->order_by[] = [ + 'order_by' => trim($_order_by), + 'order' => strtoupper($order), + ]; + } + + return $this; + } + + public function limit($limit) + { + $this->limit = absint($limit); + } + + public function distinct() + { + $this->distinct = true; + + return $this; + } + + /** + * Set a where clause + * + * @param string|array $field + * @param string|null $operator + * @param string|int|array $value + * @param string $boolean + * + * @return array + */ + private function get_where_clause($field, string $operator = null, $value = null, string $boolean = 'AND') + { + // allows to omit operator + if (null === $value) { + $value = $operator; + $operator = '='; + } + + $where = [ + 'nested' => false, + 'boolean' => strtoupper($boolean), + 'field' => $field, + 'operator' => strtoupper($operator), + 'value' => $value, + ]; + + // set default join + if ($field === 'post_type' && ! $this->join) { + $this->join(); + } + + $nested = []; + + if (is_array($field)) { + $count = count($field); + for ($i = 0; $i < $count; $i++) { + $nested[] = array_pop($this->where); + } + } + + if ($nested) { + $where['nested'] = true; + $where['field'] = array_reverse($nested); + } + + return $where; + } + + /** + * @param $field + * @param null $operator + * @param null $value + * @param string $boolean + * + * @return $this + * @see get_where_clause() + */ + public function remove_where($field, $operator = null, $value = null, $boolean = 'AND') + { + $where = $this->get_where_clause($field, $operator, $value, $boolean); + + foreach ($this->where as $k => $v) { + if ($v == $where) { + unset($this->where[$k]); + } + } + + return $this; + } + + /** + * @param $field + * @param null $operator + * @param null $value + * @param string $boolean + * + * @return $this + * @see get_where_clause() + */ + public function where($field, $operator = null, $value = null, $boolean = 'AND') + { + $this->where[] = $this->get_where_clause($field, $operator, $value, $boolean); + + return $this; + } + + /** + * @param $field + * @param null $operator + * @param null $value + * + * @return $this + * @see get_where_clause() + */ + public function or_where($field, $operator = null, $value = null) + { + return $this->where($field, $operator, $value, 'OR'); + } + + /** + * @param array $in + * + * @return $this + */ + public function where_in(array $in) + { + return $this->where('id', 'in', $in); + } + + public function where_is_null($field) + { + return $this->where($field, '', 'IS NULL'); + } + + public function where_post_type($post_type): self + { + return $this->where('post_type', '=', $post_type); + } + + public function where_post_types(array $post_types): self + { + return $this->where('post_type', 'in', $post_types); + } + + private function parse_field($field) + { + switch ($field) { + case 'id': + $field = $this->join ? 'pt.' . $this->query->primary_id_column : 'mt' . $this->query->meta_id_column; + + break; + case 'meta_key': + case 'meta_value': + $field = 'mt.' . $field; + + break; + case 'taxonomy': + case 'post_type': + $field = 'pt.' . $field; + + break; + } + + return $field; + } + + private function parse_where(string $where, array $clauses): string + { + global $wpdb; + + foreach ($clauses as $clause) { + if ($clause['nested']) { + $clause['field'][0]['boolean'] = null; + + $where .= sprintf(' %s ( %s ) ', $clause['boolean'], $this->parse_where('', $clause['field'])); + } else { + switch ($clause['operator']) { + case 'IN': + $clause['value'] = sprintf(' ( %s ) ', implode(', ', array_map('intval', $clause['value']))); + + break; + default: + $valid_raw = ['IS NULL', 'IS NOT NULL']; + + if ( ! in_array($clause['value'], $valid_raw)) { + $clause['value'] = $wpdb->prepare('%s', $clause['value']); + } + } + + $clause['field'] = $this->parse_field($clause['field']); + + $where .= implode(' ', $clause); + } + } + + return $where; + } + + public function get(): array + { + global $wpdb; + + if ( ! $this->query) { + return []; + } + + // parse SELECT + $select = 'SELECT '; + $select .= $this->distinct ? 'DISTINCT ' : ''; + + if (empty($this->select)) { + $this->select('id'); + } + + $fields = []; + + foreach ($this->select as $field) { + $parsed = $this->parse_field($field); + + // output 'id' in the results + if ('id' === $field) { + $parsed .= ' AS id'; + } + + $fields[] = $parsed; + } - return $where; - } + if ($this->count) { + $fields[] = sprintf('COUNT(%s) AS count', $this->parse_field($this->count)); + } + + $select .= implode(', ', $fields); - /** - * @return array - */ - public function get() { - global $wpdb; + // parse FROM + $from_tpl = ' FROM %s AS %s'; - if ( ! $this->query ) { - return []; - } + $from = sprintf($from_tpl, $this->query->meta_table, 'mt'); + $join = ''; - // parse SELECT - $select = 'SELECT '; - $select .= $this->distinct ? 'DISTINCT ' : ''; + if ($this->join) { + $from = sprintf($from_tpl, $this->query->primary_table, 'pt'); + $join = sprintf( + ' %s JOIN %s AS mt ON mt.%s = pt.%s %s', + $this->join, + $this->query->meta_table, + $this->query->meta_id_column, + $this->query->primary_id_column, + $this->parse_where('', $this->join_where) + ); + } - if ( empty( $this->select ) ) { - $this->select( 'id' ); - } + // parse WHERE + $where = $this->parse_where(' WHERE 1=1', $this->where); - $fields = []; + // parse GROUP BY + $group_by = ''; - foreach ( $this->select as $field ) { - $parsed = $this->parse_field( $field ); + if ($this->group_by) { + $group_by = ' GROUP BY ' . $this->parse_field($this->group_by); + } - // output 'id' in the results - if ( 'id' === $field ) { - $parsed .= ' AS id'; - } + // parse ORDER BY + $order_by = ''; - $fields[] = $parsed; - } + if ( ! empty($this->order_by)) { + $order_by_clauses = []; - if ( $this->count ) { - $fields[] = sprintf( 'COUNT(%s) AS count', $this->parse_field( $this->count ) ); - } + foreach ($this->order_by as $order_by_clause) { + $order_by_clauses[] = $this->parse_field( + $order_by_clause['order_by'] + ) . ' ' . $order_by_clause['order']; + } - $select .= implode( ', ', $fields ); + $order_by = ' ORDER BY ' . implode(', ', $order_by_clauses); + } - // parse FROM - $from_tpl = ' FROM %s AS %s'; + $limit = ''; - $from = sprintf( $from_tpl, $this->query->meta_table, 'mt' ); - $join = ''; + if ($this->limit) { + $limit = ' LIMIT ' . $this->limit; + } - if ( $this->join ) { - $from = sprintf( $from_tpl, $this->query->primary_table, 'pt' ); - $join = sprintf( ' %s JOIN %s AS mt ON mt.%s = pt.%s %s', - $this->join, - $this->query->meta_table, - $this->query->meta_id_column, - $this->query->primary_id_column, - $this->parse_where( '', $this->join_where ) - ); - } + // build query and store it + $sql = $select . $from . $join . $where . $group_by . $order_by . $limit; - // parse WHERE - $where = $this->parse_where( ' WHERE 1=1', $this->where ); + $this->set_sql($sql); - // parse GROUP BY - $group_by = ''; + $results = $wpdb->get_results($sql); - if ( $this->group_by ) { - $group_by = ' GROUP BY ' . $this->parse_field( $this->group_by ); - } + if ( ! is_array($results)) { + return []; + } - // parse ORDER BY - $order_by = ''; + $return = $results; - if ( ! empty( $this->order_by ) ) { - $order_by_clauses = []; + if (count($fields) === 1) { + $return = []; + $field = $this->select[0]; - foreach ( $this->order_by as $order_by_clause ) { - $order_by_clauses[] = $this->parse_field( $order_by_clause['order_by'] ) . ' ' . $order_by_clause['order']; - } + foreach ($results as $result) { + $return[] = $result->$field; + } + } - $order_by = ' ORDER BY ' . implode( ', ', $order_by_clauses ); - } + return $return; + } - $limit = ''; + /** + * Return last sql that was queried + */ + public function get_sql(): string + { + $sql = preg_replace('/ +/', ' ', $this->sql); + $sql = preg_replace( + '/(SELECT|FROM|LEFT|INNER|WHERE|(AND|OR) \(|(AND|OR) (?!\()|ORDER BY|GROUP BY|LIMIT)/', + "\n$1", + $sql + ); - if ( $this->limit ) { - $limit = ' LIMIT ' . $this->limit; - } + return $sql . "\n"; + } + + private function set_sql(string $sql): void + { + $this->sql = $sql; + } - // build query and store it - $sql = $select . $from . $join . $where . $group_by . $order_by . $limit; + public function get_query(): WP_Meta_Query + { + return $this->query; + } + + private function set_query(string $type) + { + global $wpdb; + + switch ($type) { + case 'user': + $table = $wpdb->users; + $id = 'ID'; + + break; + case 'comment': + $table = $wpdb->comments; + $id = 'comment_ID'; + + break; + case 'post': + $table = $wpdb->posts; + $id = 'ID'; - $this->set_sql( $sql ); + break; + case 'term': + $table = $wpdb->terms; + $id = 'term_id'; - $results = $wpdb->get_results( $sql ); - - if ( ! is_array( $results ) ) { - return []; - } - - $return = $results; - - if ( count( $fields ) === 1 ) { - $return = []; - $field = $this->select[0]; - - foreach ( $results as $result ) { - $return[] = $result->$field; - } - } - - return $return; - } - - /** - * Return last sql that was queried - * @return string - */ - public function get_sql() { - $sql = preg_replace( '/ +/', ' ', $this->sql ); - $sql = preg_replace( '/(SELECT|FROM|LEFT|INNER|WHERE|(AND|OR) \(|(AND|OR) (?!\()|ORDER BY|GROUP BY|LIMIT)/', "\n$1", $sql ); - - return $sql . "\n"; - } - - private function set_sql( $sql ) { - $this->sql = $sql; - } - - /** - * @return WP_Meta_Query - */ - public function get_query() { - return $this->query; - } - - /** - * @param string $type - */ - private function set_query( $type ) { - global $wpdb; - - switch ( $type ) { - case 'user': - $table = $wpdb->users; - $id = 'ID'; - - break; - case 'comment': - $table = $wpdb->comments; - $id = 'comment_ID'; - - break; - case 'post': - $table = $wpdb->posts; - $id = 'ID'; - - break; - case 'term': - $table = $wpdb->terms; - $id = 'term_id'; - - break; - - default: - return; - } - - $this->query = new WP_Meta_Query(); - $this->query->get_sql( $type, $table, $id ); - } + break; + + default: + return; + } + + $this->query = new WP_Meta_Query(); + $this->query->get_sql($type, $table, $id); + } } \ No newline at end of file diff --git a/classes/Meta/QueryColumn.php b/classes/Meta/QueryColumn.php deleted file mode 100644 index 7b1540277..000000000 --- a/classes/Meta/QueryColumn.php +++ /dev/null @@ -1,23 +0,0 @@ -get_meta_type()); - - if ($column instanceof Column\Meta) { - $this->join_where('meta_key', $column->get_meta_key()); - } - - if ($column->get_post_type()) { - $this->where_post_type($column->get_post_type()); - } - } - -} \ No newline at end of file diff --git a/classes/Meta/QueryMeta.php b/classes/Meta/QueryMeta.php deleted file mode 100644 index 8bed38750..000000000 --- a/classes/Meta/QueryMeta.php +++ /dev/null @@ -1,17 +0,0 @@ -join_where( 'meta_key', (string) $meta_key ); - - if ( $post_type ) { - $this->where_post_type( $post_type ); - } - } - -} \ No newline at end of file diff --git a/classes/Meta/QueryMetaFactory.php b/classes/Meta/QueryMetaFactory.php new file mode 100644 index 000000000..4e9c7f486 --- /dev/null +++ b/classes/Meta/QueryMetaFactory.php @@ -0,0 +1,46 @@ +select('meta_value') + ->distinct() + ->join() + ->where('meta_value', '!=', '') + ->where('meta_key', $meta_key) + ->order_by('meta_value'); + + return $query; + } + + public function create_with_post_type(string $meta_key, string $post_type): Query + { + return $this->create($meta_key, MetaType::POST) + ->where_post_type($post_type); + } + + public function create_with_post_types(string $meta_key, array $post_types): Query + { + return $this->create($meta_key, MetaType::POST) + ->where_post_types($post_types); + } + + public function create_by_meta_column(Meta $column): Query + { + switch ($column->get_meta_type()) { + case MetaType::POST: + return $this->create_with_post_type($column->get_meta_key(), $column->get_post_type()); + default: + return $this->create($column->get_meta_key(), $column->get_meta_type()); + } + } + +} \ No newline at end of file diff --git a/classes/PostType.php b/classes/PostType.php new file mode 100644 index 000000000..43ec67fdc --- /dev/null +++ b/classes/PostType.php @@ -0,0 +1,10 @@ +request_handlers[$action] = $request_handler; + + return $this; + } + + /** + * @return RequestAjaxHandler[] + */ + public function all(): array + { + return $this->request_handlers; + } + +} \ No newline at end of file diff --git a/classes/RequestAjaxParser.php b/classes/RequestAjaxParser.php new file mode 100644 index 000000000..7d7400f22 --- /dev/null +++ b/classes/RequestAjaxParser.php @@ -0,0 +1,24 @@ +handlers = $handlers; + } + + public function register(): void + { + foreach ($this->handlers->all() as $action => $handler) { + (new Ajax\Handler())->set_action($action) + ->set_callback([$handler, 'handle']) + ->register(); + } + } + +} \ No newline at end of file diff --git a/classes/RequestHandler/Ajax/ListScreenDelete.php b/classes/RequestHandler/Ajax/ListScreenDelete.php new file mode 100644 index 000000000..7894c8eaa --- /dev/null +++ b/classes/RequestHandler/Ajax/ListScreenDelete.php @@ -0,0 +1,56 @@ +storage = $storage; + } + + public function handle(): void + { + if ( ! current_user_can(Capabilities::MANAGE)) { + return; + } + + $request = new Request(); + $response = new Response\Json(); + + if ( ! (new Nonce\Ajax())->verify($request)) { + $response->error(); + } + + $list_screen = $this->storage->find(new ListScreenId($request->get('list_id'))); + + if ( ! $list_screen) { + $response->error(); + } + + $this->storage->delete($list_screen); + + do_action('acp/list_screen/deleted', $list_screen); + + $response->set_message( + sprintf( + __('Table view %s successfully deleted.', 'codepress-admin-columns'), + sprintf('"%s"', esc_html($list_screen->get_title() ?: $list_screen->get_label())) + ) + )->success(); + } + +} \ No newline at end of file diff --git a/classes/Response/Json.php b/classes/Response/Json.php index a7e75627c..81b6200a9 100644 --- a/classes/Response/Json.php +++ b/classes/Response/Json.php @@ -16,31 +16,57 @@ class Json */ protected $parameters = []; + /** + * @var array + */ + protected $headers = []; + /** * @var int */ - protected $status_code; + protected $status_code = 200; - #[NoReturn] - public function send() + public function __construct() + { + $this->set_header('Content-Type', 'application/json'); + } + + public function send(): void { if (empty($this->parameters)) { throw new LogicException('Missing response body.'); } + $this->send_response($this->parameters); wp_send_json($this->parameters, $this->status_code); } - #[NoReturn] - public function error() + private function send_response($data): void { - wp_send_json_error($this->parameters, $this->status_code); + status_header($this->status_code); + + foreach ($this->headers as $header) { + header($header); + } + + echo json_encode($data); + exit; } - #[NoReturn] - public function success() + public function error(): void { - wp_send_json_success($this->parameters, $this->status_code); + $this->send_response([ + 'success' => false, + 'data' => $this->parameters, + ]); + } + + public function success(): void + { + $this->send_response([ + 'success' => true, + 'data' => $this->parameters, + ]); } /** @@ -49,19 +75,14 @@ public function success() * * @return $this */ - public function set_parameter($key, $value) + public function set_parameter($key, $value): self { $this->parameters[$key] = $value; return $this; } - /** - * @param array $values - * - * @return $this - */ - public function set_parameters(array $values) + public function set_parameters(array $values): self { foreach ($values as $key => $value) { $this->set_parameter($key, $value); @@ -70,24 +91,21 @@ public function set_parameters(array $values) return $this; } - /** - * @param string $message - * - * @return $this - */ - public function set_message($message) + public function set_header(string $name, string $value): self + { + $this->headers[] = sprintf('%s: %s', $name, $value); + + return $this; + } + + public function set_message(string $message): self { $this->set_parameter(self::MESSAGE, $message); return $this; } - /** - * @param int $code - * - * @return $this - */ - public function set_status_code($code) + public function set_status_code(int $code): self { $this->status_code = $code; diff --git a/classes/Settings/Column/CustomFieldType.php b/classes/Settings/Column/CustomFieldType.php index d842ff24d..69b6a828c 100644 --- a/classes/Settings/Column/CustomFieldType.php +++ b/classes/Settings/Column/CustomFieldType.php @@ -8,308 +8,328 @@ use AC\View; class CustomFieldType extends Settings\Column - implements Settings\FormatValue { - - public const NAME = 'field_type'; - - public const TYPE_DEFAULT = ''; - public const TYPE_ARRAY = 'array'; - public const TYPE_BOOLEAN = 'checkmark'; - public const TYPE_COLOR = 'color'; - public const TYPE_COUNT = 'count'; - public const TYPE_DATE = 'date'; - public const TYPE_IMAGE = 'image'; - public const TYPE_MEDIA = 'library_id'; - public const TYPE_NON_EMPTY = 'has_content'; - public const TYPE_NUMERIC = 'numeric'; - public const TYPE_POST = 'title_by_id'; - public const TYPE_TEXT = 'excerpt'; - public const TYPE_URL = 'link'; - public const TYPE_USER = 'user_by_id'; - - /** - * @var string - */ - private $field_type; - - protected function define_options() { - return [ self::NAME ]; - } - - public function get_dependent_settings() { - $settings = []; - - switch ( $this->get_field_type() ) { - case self::TYPE_DATE : - $settings[] = new Date( $this->column ); - - break; - case self::TYPE_IMAGE : - case self::TYPE_MEDIA : - $settings[] = new Image( $this->column ); - $settings[] = new MediaLink( $this->column ); - - break; - case self::TYPE_TEXT : - $settings[] = new StringLimit( $this->column ); - - break; - case self::TYPE_URL : - $settings[] = new LinkLabel( $this->column ); - - break; - case self::TYPE_NUMERIC : - $settings[] = new NumberFormat( $this->column ); - break; - } - - return $settings; - } - - public function create_view() { - $select = $this->create_element( 'select' ); - - $select->set_attribute( 'data-refresh', 'column' ) - ->set_options( $this->get_grouped_options() ) - ->set_description( $this->get_description() ); - - $tooltip = __( 'This will determine how the value will be displayed.', 'codepress-admin-columns' ); - - if ( ! in_array( $this->get_field_type(), [ null, '' ], true ) ) { - $tooltip .= '' . __( 'Type', 'codepress-admin-columns' ) . ': ' . $this->get_field_type() . ''; - } - - return new View( [ - 'label' => __( 'Field Type', 'codepress-admin-columns' ), - 'tooltip' => $tooltip, - 'setting' => $select, - ] ); - } - - private function get_description_object_ids( $input ) { - $description = sprintf( __( "Uses one or more %s IDs to display information about it.", 'codepress-admin-columns' ), '' . $input . '' ); - $description .= ' ' . __( "Multiple IDs should be separated by commas.", 'codepress-admin-columns' ); - - return $description; - } - - public function get_description() { - $description = false; - - switch ( $this->get_field_type() ) { - case self::TYPE_POST : - $description = $this->get_description_object_ids( __( "Post Type", 'codepress-admin-columns' ) ); - - break; - case self::TYPE_USER : - $description = $this->get_description_object_ids( __( "User", 'codepress-admin-columns' ) ); - - break; - } - - return $description; - } - - /** - * Get possible field types - * @return array - */ - protected function get_field_type_options() { - $grouped_types = [ - 'basic' => [ - self::TYPE_COLOR => __( 'Color', 'codepress-admin-columns' ), - self::TYPE_DATE => __( 'Date', 'codepress-admin-columns' ), - self::TYPE_TEXT => __( 'Text', 'codepress-admin-columns' ), - self::TYPE_IMAGE => __( 'Image', 'codepress-admin-columns' ), - self::TYPE_URL => __( 'URL', 'codepress-admin-columns' ), - self::TYPE_NUMERIC => __( 'Number', 'codepress-admin-columns' ), - ], - 'choice' => [ - self::TYPE_NON_EMPTY => __( 'Has Content', 'codepress-admin-columns' ), - self::TYPE_BOOLEAN => __( 'True / False', 'codepress-admin-columns' ), - ], - 'relational' => [ - self::TYPE_MEDIA => __( 'Media', 'codepress-admin-columns' ), - self::TYPE_POST => __( 'Post', 'codepress-admin-columns' ), - self::TYPE_USER => __( 'User', 'codepress-admin-columns' ), - ], - 'multiple' => [ - self::TYPE_COUNT => __( 'Number of Fields', 'codepress-admin-columns' ), - self::TYPE_ARRAY => sprintf( '%s / %s', __( 'Multiple Values', 'codepress-admin-columns' ), __( 'Serialized', 'codepress-admin-columns' ) ), - ], - ]; - - /** - * Filter the available custom field types for the meta (custom field) field - * - * @param array $field_types Available custom field types ([type] => [label]) - * - * @since 3.0 - */ - $grouped_types['custom'] = apply_filters( 'ac/column/custom_field/field_types', [] ); - - foreach ( $grouped_types as $k => $fields ) { - natcasesort( $grouped_types[ $k ] ); - } - - return $grouped_types; - } - - /** - * @return array - */ - private function get_grouped_options() { - $field_types = $this->get_field_type_options(); - - foreach ( $field_types as $fields ) { - asort( $fields ); - } - - $groups = [ - 'basic' => __( 'Basic', 'codepress-admin-columns' ), - 'relational' => __( 'Relational', 'codepress-admin-columns' ), - 'choice' => __( 'Choice', 'codepress-admin-columns' ), - 'multiple' => __( 'Multiple', 'codepress-admin-columns' ), - 'custom' => __( 'Custom', 'codepress-admin-columns' ), - ]; - - $grouped_options = []; - foreach ( $field_types as $group => $fields ) { - - if ( ! $fields ) { - continue; - } - - $grouped_options[ $group ]['title'] = $groups[ $group ]; - $grouped_options[ $group ]['options'] = $fields; - } - - // Default option comes first - $grouped_options = array_merge( [ '' => __( 'Default', 'codepress-admin-columns' ) ], $grouped_options ); - - return $grouped_options; - } - - /** - * @param string|array $string - * - * @return array - */ - private function get_values_from_array_or_string( $string ) { - $string = ac_helper()->array->implode_recursive( ',', $string ); - - return ac_helper()->string->comma_separated_to_array( $string ); - } - - /** - * @param string|array $mixed - * - * @return array - */ - private function get_ids_from_array_or_string( $mixed ): array { - $string = ac_helper()->array->implode_recursive( ',', $mixed ); - - return ac_helper()->string->string_to_array_integers( $string ); - } - - public function format( $value, $original_value ) { - - switch ( $this->get_field_type() ) { - - case self::TYPE_ARRAY : - if ( ac_helper()->array->is_associative( $value ) ) { - return sprintf( - '
', - esc_attr( json_encode( $value ) ) - ); - } - - return ac_helper()->array->implode_recursive( __( ', ' ), $value ); - case self::TYPE_DATE : - $timestamp = ac_helper()->date->strtotime( $value ); - if ( $timestamp ) { - return date( 'c', $timestamp ); - } - - return $value; - case self::TYPE_POST : - $values = []; - foreach ( $this->get_ids_from_array_or_string( $value ) as $id ) { - $post = get_post( $id ); - $values[] = ac_helper()->html->link( get_edit_post_link( $post ), $post->post_title ); - } - - return implode( ac_helper()->html->divider(), $values ); - case self::TYPE_USER : - $values = []; - foreach ( $this->get_ids_from_array_or_string( $value ) as $id ) { - $user = get_userdata( $id ); - $values[] = ac_helper()->html->link( get_edit_user_link( $id ), ac_helper()->user->get_display_name( $user ) ); - } - - return implode( ac_helper()->html->divider(), $values ); - case self::TYPE_IMAGE : - - return new Collection( $this->get_values_from_array_or_string( $value ) ); - case self::TYPE_MEDIA : - - return new Collection( $this->get_ids_from_array_or_string( $value ) ); - case self::TYPE_BOOLEAN : - $is_true = ! empty( $value ) && 'false' !== $value && '0' !== $value; - - if ( $is_true ) { - return ac_helper()->icon->dashicon( [ 'icon' => 'yes', 'class' => 'green' ] ); - } - - return ac_helper()->icon->dashicon( [ 'icon' => 'no-alt', 'class' => 'red' ] ); - case self::TYPE_COLOR : - - if ( $value && is_scalar( $value ) ) { - return ac_helper()->string->get_color_block( $value ); - } - - return false; - case self::TYPE_COUNT : - if ( $this->column instanceof AC\Column\Meta ) { - $value = $this->column->get_meta_value( $original_value, $this->column->get_meta_key(), false ); - - if ( $value ) { - if ( 1 === count( $value ) && is_array( $value[0] ) ) { - - // Value contains a single serialized array with multiple values - return count( $value[0] ); - } - - // Count multiple usage of meta keys - return count( $value ); - } - } - - return false; - case self::TYPE_NON_EMPTY : - - return ac_helper()->icon->yes_or_no( $value, $value ); - default : - return ac_helper()->array->implode_recursive( __( ', ' ), $value ); - } - } - - /** - * @return string - */ - public function get_field_type() { - return $this->field_type; - } - - /** - * @param string $field_type - * - * @return bool - */ - public function set_field_type( $field_type ) { - $this->field_type = $field_type; - - return true; - } + implements Settings\FormatValue +{ + + public const NAME = 'field_type'; + + public const TYPE_DEFAULT = ''; + public const TYPE_ARRAY = 'array'; + public const TYPE_BOOLEAN = 'checkmark'; + public const TYPE_COLOR = 'color'; + public const TYPE_COUNT = 'count'; + public const TYPE_DATE = 'date'; + public const TYPE_IMAGE = 'image'; + public const TYPE_MEDIA = 'library_id'; + public const TYPE_NON_EMPTY = 'has_content'; + public const TYPE_NUMERIC = 'numeric'; + public const TYPE_POST = 'title_by_id'; + public const TYPE_TEXT = 'excerpt'; + public const TYPE_URL = 'link'; + public const TYPE_USER = 'user_by_id'; + + /** + * @var string + */ + private $field_type; + + protected function define_options() + { + return [self::NAME]; + } + + public function get_dependent_settings() + { + $settings = []; + + switch ($this->get_field_type()) { + case self::TYPE_DATE : + $settings[] = new Date($this->column); + $settings[] = new DateFormat($this->column); + + break; + case self::TYPE_IMAGE : + case self::TYPE_MEDIA : + $settings[] = new Image($this->column); + $settings[] = new MediaLink($this->column); + + break; + case self::TYPE_TEXT : + $settings[] = new StringLimit($this->column); + + break; + case self::TYPE_URL : + $settings[] = new LinkLabel($this->column); + + break; + case self::TYPE_NUMERIC : + $settings[] = new NumberFormat($this->column); + break; + } + + return $settings; + } + + public function create_view() + { + $select = $this->create_element('select'); + + $select->set_attribute('data-refresh', 'column') + ->set_options($this->get_grouped_options()) + ->set_description($this->get_description()); + + $tooltip = __('This will determine how the value will be displayed.', 'codepress-admin-columns'); + + if ( ! in_array($this->get_field_type(), [null, ''], true)) { + $tooltip .= '' . __('Type', 'codepress-admin-columns') . ': ' . $this->get_field_type() . ''; + } + + return new View([ + 'label' => __('Field Type', 'codepress-admin-columns'), + 'tooltip' => $tooltip, + 'setting' => $select, + ]); + } + + private function get_description_object_ids($input) + { + $description = sprintf( + __("Uses one or more %s IDs to display information about it.", 'codepress-admin-columns'), + '' . $input . '' + ); + $description .= ' ' . __("Multiple IDs should be separated by commas.", 'codepress-admin-columns'); + + return $description; + } + + public function get_description() + { + $description = false; + + switch ($this->get_field_type()) { + case self::TYPE_POST : + $description = $this->get_description_object_ids(__("Post Type", 'codepress-admin-columns')); + + break; + case self::TYPE_USER : + $description = $this->get_description_object_ids(__("User", 'codepress-admin-columns')); + + break; + } + + return $description; + } + + /** + * Get possible field types + * @return array + */ + protected function get_field_type_options() + { + $grouped_types = [ + 'basic' => [ + self::TYPE_COLOR => __('Color', 'codepress-admin-columns'), + self::TYPE_DATE => __('Date', 'codepress-admin-columns'), + self::TYPE_TEXT => __('Text', 'codepress-admin-columns'), + self::TYPE_IMAGE => __('Image', 'codepress-admin-columns'), + self::TYPE_URL => __('URL', 'codepress-admin-columns'), + self::TYPE_NUMERIC => __('Number', 'codepress-admin-columns'), + ], + 'choice' => [ + self::TYPE_NON_EMPTY => __('Has Content', 'codepress-admin-columns'), + self::TYPE_BOOLEAN => __('True / False', 'codepress-admin-columns'), + ], + 'relational' => [ + self::TYPE_MEDIA => __('Media', 'codepress-admin-columns'), + self::TYPE_POST => __('Post', 'codepress-admin-columns'), + self::TYPE_USER => __('User', 'codepress-admin-columns'), + ], + 'multiple' => [ + self::TYPE_COUNT => __('Number of Fields', 'codepress-admin-columns'), + self::TYPE_ARRAY => sprintf( + '%s / %s', + __('Multiple Values', 'codepress-admin-columns'), + __('Serialized', 'codepress-admin-columns') + ), + ], + ]; + + /** + * Filter the available custom field types for the meta (custom field) field + * + * @param array $field_types Available custom field types ([type] => [label]) + * + * @since 3.0 + */ + $grouped_types['custom'] = apply_filters('ac/column/custom_field/field_types', []); + + foreach ($grouped_types as $k => $fields) { + natcasesort($grouped_types[$k]); + } + + return $grouped_types; + } + + /** + * @return array + */ + private function get_grouped_options() + { + $field_types = $this->get_field_type_options(); + + foreach ($field_types as $fields) { + asort($fields); + } + + $groups = [ + 'basic' => __('Basic', 'codepress-admin-columns'), + 'relational' => __('Relational', 'codepress-admin-columns'), + 'choice' => __('Choice', 'codepress-admin-columns'), + 'multiple' => __('Multiple', 'codepress-admin-columns'), + 'custom' => __('Custom', 'codepress-admin-columns'), + ]; + + $grouped_options = []; + foreach ($field_types as $group => $fields) { + if ( ! $fields) { + continue; + } + + $grouped_options[$group]['title'] = $groups[$group]; + $grouped_options[$group]['options'] = $fields; + } + + // Default option comes first + $grouped_options = array_merge(['' => __('Default', 'codepress-admin-columns')], $grouped_options); + + return $grouped_options; + } + + /** + * @param string|array $string + * + * @return array + */ + private function get_values_from_array_or_string($string) + { + $string = ac_helper()->array->implode_recursive(',', $string); + + return ac_helper()->string->comma_separated_to_array($string); + } + + /** + * @param string|array $mixed + * + * @return array + */ + private function get_ids_from_array_or_string($mixed): array + { + $string = ac_helper()->array->implode_recursive(',', $mixed); + + return ac_helper()->string->string_to_array_integers($string); + } + + public function format($value, $original_value) + { + switch ($this->get_field_type()) { + case self::TYPE_ARRAY : + if (ac_helper()->array->is_associative($value)) { + return sprintf( + '
', + esc_attr(json_encode($value)) + ); + } + + return ac_helper()->array->implode_recursive(__(', '), $value); + case self::TYPE_DATE : + $timestamp = ac_helper()->date->strtotime($value); + if ($timestamp) { + return date('c', $timestamp); + } + + return $value; + case self::TYPE_POST : + $values = []; + foreach ($this->get_ids_from_array_or_string($value) as $id) { + $post = get_post($id); + $values[] = ac_helper()->html->link(get_edit_post_link($post), $post->post_title); + } + + return implode(ac_helper()->html->divider(), $values); + case self::TYPE_USER : + $values = []; + foreach ($this->get_ids_from_array_or_string($value) as $id) { + $user = get_userdata($id); + $values[] = ac_helper()->html->link( + get_edit_user_link($id), + ac_helper()->user->get_display_name($user) + ); + } + + return implode(ac_helper()->html->divider(), $values); + case self::TYPE_IMAGE : + + return new Collection($this->get_values_from_array_or_string($value)); + case self::TYPE_MEDIA : + + return new Collection($this->get_ids_from_array_or_string($value)); + case self::TYPE_BOOLEAN : + $is_true = ! empty($value) && 'false' !== $value && '0' !== $value; + + if ($is_true) { + return ac_helper()->icon->dashicon(['icon' => 'yes', 'class' => 'green']); + } + + return ac_helper()->icon->dashicon(['icon' => 'no-alt', 'class' => 'red']); + case self::TYPE_COLOR : + + if ($value && is_scalar($value)) { + return ac_helper()->string->get_color_block($value); + } + + return false; + case self::TYPE_COUNT : + if ($this->column instanceof AC\Column\Meta) { + $value = $this->column->get_meta_value($original_value, $this->column->get_meta_key(), false); + + if ($value) { + if (1 === count($value) && is_array($value[0])) { + // Value contains a single serialized array with multiple values + return count($value[0]); + } + + // Count multiple usage of meta keys + return count($value); + } + } + + return false; + case self::TYPE_NON_EMPTY : + + return ac_helper()->icon->yes_or_no($value, $value); + default : + return ac_helper()->array->implode_recursive(__(', '), $value); + } + } + + /** + * @return string + */ + public function get_field_type() + { + return $this->field_type; + } + + /** + * @param string $field_type + * + * @return bool + */ + public function set_field_type($field_type) + { + $this->field_type = $field_type; + + return true; + } } \ No newline at end of file diff --git a/classes/Settings/Column/DateFormat.php b/classes/Settings/Column/DateFormat.php new file mode 100644 index 000000000..c6abc33e1 --- /dev/null +++ b/classes/Settings/Column/DateFormat.php @@ -0,0 +1,55 @@ + self::FORMAT_DATE, + ]; + } + + public function create_view() + { + $select = $this->create_element('select') + ->set_options([ + self::FORMAT_DATE => sprintf( + '%s (%s)', + __('Date', 'codepress-admin-columns'), + 'Y-m-d' + ), + self::FORMAT_DATETIME => __('Datetime (ISO)', 'codepress-admin-columns'), + self::FORMAT_UNIX_TIMESTAMP => __('Timestamp', 'codepress-admin-columns'), + ]); + + return new View([ + 'label' => __('Date Save Format', 'codepress-admin-columns'), + 'setting' => $select, + ]); + } + + public function set_date_save_format($format): void + { + $this->date_save_format = $format; + } + + public function get_date_save_format(): string + { + return $this->date_save_format; + } + +} \ No newline at end of file diff --git a/classes/Settings/Column/FileMetaAudio.php b/classes/Settings/Column/FileMetaAudio.php index d858ec29f..31ea0ec89 100644 --- a/classes/Settings/Column/FileMetaAudio.php +++ b/classes/Settings/Column/FileMetaAudio.php @@ -5,73 +5,83 @@ use AC\Column; use AC\Settings\FormatValue; -class FileMetaAudio extends FileMeta implements FormatValue { +class FileMetaAudio extends FileMeta implements FormatValue +{ - public function __construct( Column $column ) { - $types = [ - 'bitrate' => __( 'Bitrate', 'codepress-admin-columns' ), - 'bitrate_mode' => __( 'Bitrate Mode', 'codepress-admin-columns' ), - 'channelmode' => __( 'Channelmode', 'codepress-admin-columns' ), - 'channels' => __( 'Channels', 'codepress-admin-columns' ), - 'compression_ratio' => __( 'Compression Ratio', 'codepress-admin-columns' ), - 'created_timestamp' => __( 'Created Timestamp', 'codepress-admin-columns' ), - 'dataformat' => __( 'Data Format', 'codepress-admin-columns' ), - 'encoder_options' => __( 'Encoder Options', 'codepress-admin-columns' ), - 'fileformat' => __( 'Fileformat', 'codepress-admin-columns' ), - 'filesize' => __( 'Filesize', 'codepress-admin-columns' ), - 'length' => __( 'Length', 'codepress-admin-columns' ), - 'length_formatted' => __( 'Length Formatted', 'codepress-admin-columns' ), - 'lossless' => __( 'Losless', 'codepress-admin-columns' ), - 'mime_type' => __( 'Mime Type', 'codepress-admin-columns' ), - 'sample_rate' => __( 'Sample Rate', 'codepress-admin-columns' ), - ]; + public function __construct(Column $column) + { + $types = [ + 'bitrate' => __('Bitrate', 'codepress-admin-columns'), + 'bitrate_mode' => __('Bitrate Mode', 'codepress-admin-columns'), + 'channelmode' => __('Channelmode', 'codepress-admin-columns'), + 'channels' => __('Channels', 'codepress-admin-columns'), + 'compression_ratio' => __('Compression Ratio', 'codepress-admin-columns'), + 'created_timestamp' => __('Created Timestamp', 'codepress-admin-columns'), + 'dataformat' => __('Data Format', 'codepress-admin-columns'), + 'encoder_options' => __('Encoder Options', 'codepress-admin-columns'), + 'fileformat' => __('Fileformat', 'codepress-admin-columns'), + 'filesize' => __('Filesize', 'codepress-admin-columns'), + 'length' => __('Length', 'codepress-admin-columns'), + 'length_formatted' => __('Length Formatted', 'codepress-admin-columns'), + 'lossless' => __('Losless', 'codepress-admin-columns'), + 'mime_type' => __('Mime Type', 'codepress-admin-columns'), + 'sample_rate' => __('Sample Rate', 'codepress-admin-columns'), + ]; - natcasesort( $types ); + natcasesort($types); - parent::__construct( $column, $types, 'dataformat' ); - } + parent::__construct($column, $types, 'dataformat'); + } - public function format( $value, $original_value ) { - switch ( $this->get_media_meta_key() ) { - case 'bitrate': - if ( $value > 1000 ) { - $value = sprintf( '%s %s', number_format( $value / 1000 ), __( 'Kbps', 'codepress-admin-columns' ) ); - } + public function format($value, $original_value) + { + switch ($this->get_media_meta_key()) { + case 'bitrate': + if ($value > 1000) { + $value = sprintf('%s %s', number_format($value / 1000), __('Kbps', 'codepress-admin-columns')); + } - return $value; - case 'channels': - if ( $value > 0 ) { - $value = sprintf( '%s %s', number_format( $value ), _n( 'channels', 'channels', $value, 'codepress-admin-columns' ) ); - } + return $value; + case 'channels': + if ($value > 0) { + $value = sprintf( + '%s %s', + number_format($value), + _n('channel', 'channels', $value, 'codepress-admin-columns') + ); + } - return $value; - case 'compression_ratio': - if ( $value > 0 ) { - $value = number_format( $value, 4 ); - } + return $value; + case 'compression_ratio': + if ($value > 0) { + $value = number_format($value, 4); + } - return $value; - case 'created_timestamp': - return $value - ? ac_helper()->date->format_date( sprintf( '%s %s', get_option( 'date_format' ), get_option( 'time_format' ) ), $value ) - : ''; - case 'filesize': - return ac_helper()->file->get_readable_filesize( $value ); - case 'length': - if ( $value > 0 ) { - $value = sprintf( '%s %s', number_format( $value ), __( 'sec', 'codepress-admin-columns' ) ); - } + return $value; + case 'created_timestamp': + return $value + ? ac_helper()->date->format_date( + sprintf('%s %s', get_option('date_format'), get_option('time_format')), + $value + ) + : ''; + case 'filesize': + return ac_helper()->file->get_readable_filesize($value); + case 'length': + if ($value > 0) { + $value = sprintf('%s %s', number_format($value), __('sec', 'codepress-admin-columns')); + } - return $value; - case 'sample_rate': - if ( $value > 0 ) { - $value = sprintf( '%s %s', number_format( $value ), __( 'Hz', 'codepress-admin-columns' ) ); - } + return $value; + case 'sample_rate': + if ($value > 0) { + $value = sprintf('%s %s', number_format($value), __('Hz', 'codepress-admin-columns')); + } - return $value; - default: - return $value; - } - } + return $value; + default: + return $value; + } + } } \ No newline at end of file diff --git a/classes/Settings/Column/Post.php b/classes/Settings/Column/Post.php index eac46beba..f97a6c7f1 100644 --- a/classes/Settings/Column/Post.php +++ b/classes/Settings/Column/Post.php @@ -16,6 +16,7 @@ class Post extends Settings\Column public const PROPERTY_ID = 'id'; public const PROPERTY_TITLE = 'title'; public const PROPERTY_DATE = 'date'; + public const PROPERTY_STATUS = 'status'; /** * @var string @@ -51,6 +52,8 @@ public function get_dependent_settings() $settings[] = $setting; break; + case self::PROPERTY_STATUS : + $settings[] = new StatusIcon($this->column); } $settings[] = new Settings\Column\PostLink($this->column); @@ -88,6 +91,9 @@ public function format($id, $original_value) return ''; case self::PROPERTY_DATE : return ac_helper()->post->get_raw_field('post_date', $id); + case self::PROPERTY_STATUS: + return ac_helper()->post->get_raw_field('post_status', $id); + default : return $id; } @@ -115,6 +121,7 @@ protected function get_display_options() self::PROPERTY_AUTHOR => __('Author'), self::PROPERTY_FEATURED_IMAGE => _x('Featured Image', 'post'), self::PROPERTY_DATE => __('Date'), + self::PROPERTY_STATUS => __('Status'), ]; asort($options); diff --git a/classes/Settings/Column/PostLink.php b/classes/Settings/Column/PostLink.php index 529ce141c..315ff5eab 100644 --- a/classes/Settings/Column/PostLink.php +++ b/classes/Settings/Column/PostLink.php @@ -7,105 +7,112 @@ use AC\View; class PostLink extends Settings\Column - implements Settings\FormatValue { - - /** - * @var string - */ - protected $post_link_to; - - protected function define_options() { - return [ - 'post_link_to' => 'edit_post', - ]; - } - - public function format( $value, $original_value ) { - $id = $original_value; - - switch ( $this->get_post_link_to() ) { - case 'edit_post' : - $link = get_edit_post_link( $id ); - - break; - case 'view_post' : - $link = get_permalink( $id ); - - break; - case 'edit_author' : - $link = get_edit_user_link( ac_helper()->post->get_raw_field( 'post_author', $id ) ); - - break; - case 'view_author' : - $link = get_author_posts_url( ac_helper()->post->get_raw_field( 'post_author', $id ) ); - - break; - default : - $link = false; - } - - if ( $link ) { - $value = ac_helper()->html->link( $link, $value ); - } - - return $value; - } - - public function create_view() { - $select = $this->create_element( 'select' )->set_options( $this->get_display_options() ); - - $view = new View( [ - 'label' => __( 'Link To', 'codepress-admin-columns' ), - 'setting' => $select, - ] ); - - return $view; - } - - protected function get_display_options() { - // Default options - $options = [ - '' => __( 'None' ), - 'edit_post' => __( 'Edit Post' ), - 'view_post' => __( 'View Post' ), - 'edit_author' => __( 'Edit Post Author', 'codepress-admin-columns' ), - 'view_author' => __( 'View Public Post Author Page', 'codepress-admin-columns' ), - ]; - - if ( $this->column instanceof AC\Column\Relation ) { - $relation_options = [ - 'edit_post' => _x( 'Edit %s', 'post' ), - 'view_post' => _x( 'View %s', 'post' ), - 'edit_author' => _x( 'Edit %s Author', 'post', 'codepress-admin-columns' ), - 'view_author' => _x( 'View Public %s Author Page', 'post', 'codepress-admin-columns' ), - ]; - - $label = $this->column->get_relation_object()->get_labels()->singular_name; - - foreach ( $relation_options as $k => $option ) { - $options[ $k ] = sprintf( $option, $label ); - } - } - - return $options; - } - - /** - * @return string - */ - public function get_post_link_to() { - return $this->post_link_to; - } - - /** - * @param string $post_link_to - * - * @return bool - */ - public function set_post_link_to( $post_link_to ) { - $this->post_link_to = $post_link_to; - - return true; - } + implements Settings\FormatValue +{ + + /** + * @var string + */ + protected $post_link_to; + + protected function define_options() + { + return [ + 'post_link_to' => 'edit_post', + ]; + } + + public function format($value, $original_value) + { + $id = $original_value; + + switch ($this->get_post_link_to()) { + case 'edit_post' : + $link = get_edit_post_link($id); + + break; + case 'view_post' : + $link = get_permalink($id); + + break; + case 'edit_author' : + $link = get_edit_user_link(ac_helper()->post->get_raw_field('post_author', $id)); + + break; + case 'view_author' : + $link = get_author_posts_url(ac_helper()->post->get_raw_field('post_author', $id)); + + break; + default : + $link = false; + } + + if ($link) { + $value = ac_helper()->html->link($link, $value); + } + + return $value; + } + + public function create_view() + { + $select = $this->create_element('select')->set_options($this->get_display_options()); + + $view = new View([ + 'label' => __('Link To', 'codepress-admin-columns'), + 'setting' => $select, + ]); + + return $view; + } + + protected function get_display_options() + { + // Default options + $options = [ + '' => __('None'), + 'edit_post' => __('Edit Post'), + 'view_post' => __('View Post'), + 'edit_author' => __('Edit Post Author', 'codepress-admin-columns'), + 'view_author' => __('View Public Post Author Page', 'codepress-admin-columns'), + ]; + + if ($this->column instanceof AC\Column\Relation) { + $relation_options = [ + 'edit_post' => _x('Edit %s', 'post'), + 'view_post' => _x('View %s', 'post'), + 'edit_author' => _x('Edit %s Author', 'post', 'codepress-admin-columns'), + 'view_author' => _x('View Public %s Author Page', 'post', 'codepress-admin-columns'), + ]; + + $label = $this->column->get_relation_object()->get_labels()->singular_name; + + foreach ($relation_options as $k => $option) { + $options[$k] = sprintf($option, $label); + } + } + + return $options; + } + + /** + * @return string + */ + public function get_post_link_to() + { + return $this->post_link_to; + } + + /** + * @param string $post_link_to + * + * @return bool + */ + public function set_post_link_to($post_link_to) + { + $this->post_link_to = $post_link_to; + + return true; + } } \ No newline at end of file diff --git a/classes/Settings/Column/Type.php b/classes/Settings/Column/Type.php index c702bc639..d63104920 100644 --- a/classes/Settings/Column/Type.php +++ b/classes/Settings/Column/Type.php @@ -7,154 +7,167 @@ use AC\Settings\Column; use AC\View; -class Type extends Column { - - /** - * @var string - */ - private $read_more_url; - - /** - * @var string - */ - private $type; - - protected function define_options() { - return [ - 'type' => $this->column->get_type(), - ]; - } - - public function set_read_more( $url ) { - $this->read_more_url = $url; - } - - public function create_view() { - $type = $this - ->create_element( 'select' ) - ->set_options( $this->get_grouped_columns() ); - - // Tooltip - $tooltip = __( 'Choose a column type.', 'codepress-admin-columns' ); - - if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { - $tooltip .= '' . __( 'Type', 'codepress-admin-columns' ) . ': ' . $this->column->get_type() . ''; - - if ( $this->column->get_name() ) { - $tooltip .= '' . __( 'Name', 'codepress-admin-columns' ) . ': ' . $this->column->get_name() . ''; - } - } - - $args = [ - 'setting' => $type, - 'label' => __( 'Type', 'codepress-admin-columns' ), - 'tooltip' => $tooltip, - ]; - - if ( $this->read_more_url ) { - $args['read_more'] = $this->read_more_url; - } - - return new View( $args ); - } - - /** - * Returns the type label as human readable: no tags, underscores and capitalized. - * - * @param AC\Column|null $column - * - * @return string - */ - private function get_clean_label( AC\Column $column ) { - $label = $column->get_label(); - - if ( 0 === strlen( strip_tags( $label ) ) ) { - $label = ucfirst( str_replace( '_', ' ', $column->get_type() ) ); - } - - return strip_tags( $label ); - } - - /** - * @return Groups - */ - private function column_groups() { - return AC\ColumnGroups::get_groups(); - } - - /** - * @return array - */ - private function get_grouped_columns() { - $columns = []; - - $list_screen = $this->column->get_list_screen(); - - $columns_types = apply_filters( 'ac/column/settings/column_types', $list_screen->get_column_types(), $this->column, $list_screen ); - - // get columns and sort them - foreach ( $columns_types as $column ) { - - /** - * @param string $group Group slug - * @param Column $column - */ - $group = apply_filters( 'ac/column_group', $column->get_group(), $column ); - - // Labels with html will be replaced by its name. - $columns[ $group ][ $column->get_type() ] = $this->get_clean_label( $column ); - - if ( ! $column->is_original() ) { - natcasesort( $columns[ $group ] ); - } - } - - $grouped = []; - - // create select options - foreach ( $this->column_groups()->get_all() as $group ) { - $slug = $group['slug']; - - // hide empty groups - if ( ! isset( $columns[ $slug ] ) ) { - continue; - } - - if ( ! isset( $grouped[ $slug ] ) ) { - $grouped[ $slug ]['title'] = $group['label']; - } - - $grouped[ $slug ]['options'] = $columns[ $slug ]; - - unset( $columns[ $slug ] ); - } - - // Add columns to a "default" group when it has an invalid group assigned - foreach ( $columns as $_columns ) { - foreach ( $_columns as $name => $label ) { - $grouped['default']['options'][ $name ] = $label; - } - } - - return $grouped; - } - - /** - * @return string - */ - public function get_type() { - return $this->type; - } - - /** - * @param string $type - * - * @return bool - */ - public function set_type( $type ) { - $this->type = $type; - - return true; - } +class Type extends Column +{ + + /** + * @var string + */ + private $read_more_url; + + /** + * @var string + */ + private $type; + + protected function define_options() + { + return [ + 'type' => $this->column->get_type(), + ]; + } + + public function set_read_more($url) + { + $this->read_more_url = $url; + } + + public function create_view() + { + $type = $this + ->create_element('select') + ->set_options($this->get_grouped_columns()); + + // Tooltip + $tooltip = __('Choose a column type.', 'codepress-admin-columns'); + + if (defined('WP_DEBUG') && WP_DEBUG) { + $tooltip .= '' . __('Type', 'codepress-admin-columns') . ': ' . $this->column->get_type() . ''; + + if ($this->column->get_name()) { + $tooltip .= '' . __('Name', 'codepress-admin-columns') . ': ' . $this->column->get_name() . ''; + } + } + + $args = [ + 'setting' => $type, + 'label' => __('Type', 'codepress-admin-columns'), + 'tooltip' => $tooltip, + ]; + + if ($this->read_more_url) { + $args['read_more'] = $this->read_more_url; + } + + return new View($args); + } + + /** + * Returns the type label as human readable: no tags, underscores and capitalized. + * + * @param AC\Column|null $column + * + * @return string + */ + private function get_clean_label(AC\Column $column) + { + $label = (string)$column->get_label(); + + if (strip_tags($label) === '') { + $label = ucfirst(str_replace('_', ' ', $column->get_type())); + } + + return strip_tags($label); + } + + /** + * @return Groups + */ + private function column_groups() + { + return AC\ColumnGroups::get_groups(); + } + + /** + * @return array + */ + private function get_grouped_columns() + { + $columns = []; + + $list_screen = $this->column->get_list_screen(); + + $columns_types = apply_filters( + 'ac/column/settings/column_types', + $list_screen->get_column_types(), + $this->column, + $list_screen + ); + + // get columns and sort them + foreach ($columns_types as $column) { + /** + * @param string $group Group slug + * @param Column $column + */ + $group = apply_filters('ac/column_group', $column->get_group(), $column); + + // Labels with html will be replaced by its name. + $columns[$group][$column->get_type()] = $this->get_clean_label($column); + + if ( ! $column->is_original()) { + natcasesort($columns[$group]); + } + } + + $grouped = []; + + // create select options + foreach ($this->column_groups()->get_all() as $group) { + $slug = $group['slug']; + + // hide empty groups + if ( ! isset($columns[$slug])) { + continue; + } + + if ( ! isset($grouped[$slug])) { + $grouped[$slug]['title'] = $group['label']; + } + + $grouped[$slug]['options'] = $columns[$slug]; + + unset($columns[$slug]); + } + + // Add columns to a "default" group when it has an invalid group assigned + foreach ($columns as $_columns) { + foreach ($_columns as $name => $label) { + $grouped['default']['options'][$name] = $label; + } + } + + return $grouped; + } + + /** + * @return string + */ + public function get_type() + { + return $this->type; + } + + /** + * @param string $type + * + * @return bool + */ + public function set_type($type) + { + $this->type = $type; + + return true; + } } \ No newline at end of file diff --git a/classes/Table/Button.php b/classes/Table/Button.php index dd331a712..6e6c9a38a 100644 --- a/classes/Table/Button.php +++ b/classes/Table/Button.php @@ -2,201 +2,223 @@ namespace AC\Table; -class Button { - - /** @var string $slug */ - private $slug; - - /** @var string $label */ - private $label; - - /** @var string $text */ - private $text; - - /** @var string $dashicon */ - private $dashicon; - - /** @var array */ - protected $attributes = []; - - public function __construct( $slug ) { - $this->set_slug( $slug ); - $this->add_class( 'ac-table-button -' . $slug ); - } - - /** - * @return array - */ - public function get_attributes() { - return $this->attributes; - } - - /** - * @param string $class - * - * @return $this - */ - public function add_class( $class ) { - $this->set_attribute( 'class', $this->get_attribute( 'class' ) . ' ' . esc_attr( $class ) ); - - return $this; - } - - /** - * @param $key - * - * @return string|false - */ - public function get_attribute( $key ) { - if ( ! isset( $this->attributes[ $key ] ) ) { - return false; - } - - return trim( $this->attributes[ $key ] ); - } - - /** - * @param string $key - * @param string $value - * - * @return $this - */ - public function set_attribute( $key, $value ) { - $this->attributes[ $key ] = $value; - - return $this; - } - - /** - * Get attributes as string - * - * @param array $attributes - * - * @return string - */ - protected function get_attributes_as_string( array $attributes ) { - $output = []; - - foreach ( $attributes as $key => $value ) { - $output[] = $this->get_attribute_as_string( $key, $value ); - } - - return implode( ' ', $output ); - } - - /** - * Render an attribute - * - * @param string $key - * @param string $value - * - * @return string - */ - protected function get_attribute_as_string( $key, $value = null ) { - if ( null === $value ) { - $value = $this->get_attribute( $key ); - } - - return ac_helper()->html->get_attribute_as_string( $key, $value ); - } - - /** - * @return string - */ - public function get_slug() { - return $this->slug; - } - - /** - * @param string $slug - * - * @return $this - */ - public function set_slug( $slug ) { - $this->slug = $slug; - - return $this; - } - - /** - * @return string - */ - public function get_label() { - return $this->label; - } - - /** - * @param string $label - * - * @return $this - */ - public function set_label( $label ) { - $this->label = $label; - - return $this; - } - - /** - * @return string - */ - public function get_text() { - return $this->text; - } - - /** - * @param string $text - * - * @return Button - */ - public function set_text( $text ) { - $this->text = $text; - - return $this; - } - - /** - * @return string - */ - public function get_dashicon() { - if ( ! $this->dashicon ) { - return ''; - } - - return ac_helper()->icon->dashicon( [ - 'icon' => $this->dashicon, - ] ); - } - - /** - * @param $dashicon - * - * @return $this - */ - public function set_dashicon( $dashicon ) { - $this->dashicon = $dashicon; - - return $this; - } - - /** - * @param $url - * - * @return $this - */ - public function set_url( $url ) { - $this->set_attribute( 'href', esc_url( $url ) ); - - return $this; - } - - public function render() { - $attributes = $this->get_attributes(); - $attributes['data-ac-tip'] = $this->get_label(); - $attributes['data-slug'] = $this->get_slug(); - - $template = '%s%s'; - - echo sprintf( $template, $this->get_attributes_as_string( $attributes ), $this->get_dashicon(), $this->get_text() ); - } +class Button +{ + + /** @var string $slug */ + private $slug; + + /** @var string $label */ + private $label; + + /** @var string $text */ + private $text; + + /** @var string $dashicon */ + private $dashicon; + + /** @var array */ + protected $attributes = []; + + public function __construct($slug) + { + $this->set_slug($slug); + $this->add_class('ac-table-button -' . $slug); + } + + /** + * @return array + */ + public function get_attributes() + { + return $this->attributes; + } + + /** + * @param string $class + * + * @return $this + */ + public function add_class($class) + { + $this->set_attribute('class', $this->get_attribute('class') . ' ' . esc_attr($class)); + + return $this; + } + + /** + * @param $key + * + * @return string|false + */ + public function get_attribute($key) + { + if ( ! isset($this->attributes[$key])) { + return false; + } + + return trim($this->attributes[$key]); + } + + /** + * @param string $key + * @param string $value + * + * @return $this + */ + public function set_attribute($key, $value) + { + $this->attributes[$key] = $value; + + return $this; + } + + /** + * Get attributes as string + * + * @param array $attributes + * + * @return string + */ + protected function get_attributes_as_string(array $attributes) + { + $output = []; + + foreach ($attributes as $key => $value) { + $output[] = $this->get_attribute_as_string($key, $value); + } + + return implode(' ', $output); + } + + /** + * Render an attribute + * + * @param string $key + * @param string $value + * + * @return string + */ + protected function get_attribute_as_string($key, $value = null) + { + if (null === $value) { + $value = $this->get_attribute($key); + } + + return ac_helper()->html->get_attribute_as_string($key, $value); + } + + /** + * @return string + */ + public function get_slug() + { + return $this->slug; + } + + /** + * @param string $slug + * + * @return $this + */ + public function set_slug($slug) + { + $this->slug = $slug; + + return $this; + } + + /** + * @return string + */ + public function get_label() + { + return $this->label; + } + + /** + * @param string $label + * + * @return $this + */ + public function set_label($label) + { + $this->label = $label; + + return $this; + } + + /** + * @return string + */ + public function get_text() + { + return $this->text; + } + + /** + * @param string $text + * + * @return Button + */ + public function set_text($text) + { + $this->text = $text; + + return $this; + } + + /** + * @return string + */ + public function get_dashicon() + { + if ( ! $this->dashicon) { + return ''; + } + + return ac_helper()->icon->dashicon([ + 'icon' => $this->dashicon, + ]); + } + + /** + * @param $dashicon + * + * @return $this + */ + public function set_dashicon($dashicon) + { + $this->dashicon = $dashicon; + + return $this; + } + + /** + * @param $url + * + * @return $this + */ + public function set_url($url) + { + $this->set_attribute('href', esc_url($url)); + + return $this; + } + + public function render() + { + $attributes = $this->get_attributes(); + $label = $this->get_label(); + + if ($label) { + $attributes['data-ac-tip'] = $label; + } + $attributes['data-slug'] = $this->get_slug(); + + $template = '%s%s'; + + echo sprintf($template, $this->get_attributes_as_string($attributes), $this->get_dashicon(), $this->get_text()); + } } \ No newline at end of file diff --git a/classes/Table/InlineStyle/ColumnSize.php b/classes/Table/InlineStyle/ColumnSize.php index b59fd6c73..b363556bc 100644 --- a/classes/Table/InlineStyle/ColumnSize.php +++ b/classes/Table/InlineStyle/ColumnSize.php @@ -38,14 +38,14 @@ private function render_style($column_name, ColumnWidth $column_width, $type) $css_width = $column_width->get_value() . $column_width->get_unit(); $css = sprintf( - '.ac-%s .wrap table th.column-%s { width: %s !important; }', + '.ac-%1$s .wrap table th.column-%2$s, .ac-%1$s .wrap table td.column-%2$s { width: %3$s !important; }', esc_attr($this->list_screen->get_key()), esc_attr($column_name), $css_width ); $css .= sprintf( - 'body.acp-overflow-table.ac-%s .wrap th.column-%s { min-width: %s !important; }', + 'body.acp-overflow-table.ac-%1$s .wrap th.column-%2$s, body.acp-overflow-table.ac-%1$s .wrap td.column-%2$s { min-width: %3$s !important; max-width: %3$s !important }', esc_attr($this->list_screen->get_key()), esc_attr($column_name), $css_width diff --git a/classes/Table/ManageValue.php b/classes/Table/ManageValue.php index 7f9157e39..706f9f445 100644 --- a/classes/Table/ManageValue.php +++ b/classes/Table/ManageValue.php @@ -19,7 +19,7 @@ public function __construct(ColumnRepository $column_repository) $this->column_repository = $column_repository; } - public function render_cell(string $column_name, int $id, string $fallback_value = null): ?string + public function render_cell(string $column_name, $id, string $fallback_value = null): ?string { $column = $this->column_repository->find($column_name); diff --git a/classes/Table/Screen.php b/classes/Table/Screen.php index 19a5d02e8..98d131064 100644 --- a/classes/Table/Screen.php +++ b/classes/Table/Screen.php @@ -70,11 +70,13 @@ public function register(): void $controller = new ScreenController($this->list_screen); $controller->register(); - $render = new TableFormView( - $this->list_screen->get_meta_type(), - sprintf('', $this->list_screen->get_layout_id()) - ); - $render->register(); + if ($this->list_screen->has_id()) { + $render = new TableFormView( + $this->list_screen->get_meta_type(), + sprintf('', $this->list_screen->get_id()) + ); + $render->register(); + } (new AdminHeadStyle())->register(); @@ -168,9 +170,10 @@ public function admin_scripts() ->add_inline_variable('AC', [ 'assets' => $this->location->with_suffix('assets/')->get_url(), 'list_screen' => $this->list_screen->get_key(), - 'layout' => $this->list_screen->get_layout_id(), + 'layout' => $this->list_screen->has_id() ? (string)$this->list_screen->get_id() : '', 'column_types' => $this->get_column_types_mapping(), 'ajax_nonce' => wp_create_nonce('ac-ajax'), + 'read_only' => $this->list_screen->is_read_only(), 'table_id' => $this->list_screen->get_table_attr_id(), 'screen' => $this->get_current_screen_id(), 'meta_type' => $this->list_screen->get_meta_type(), @@ -228,7 +231,7 @@ private function get_list_screen_clear_link(): string } foreach ($query_args_whitelist as $query_arg) { - if (isset($_GET[$query_arg])) { + if (isset($_GET[$query_arg]) && is_string($_GET[$query_arg])) { $url = $url->with_arg($query_arg, $_GET[$query_arg]); } } diff --git a/classes/ThirdParty/MediaLibraryAssistant/ListScreen/MediaLibrary.php b/classes/ThirdParty/MediaLibraryAssistant/ListScreen/MediaLibrary.php index 56f4b1f56..eb792ce6c 100644 --- a/classes/ThirdParty/MediaLibraryAssistant/ListScreen/MediaLibrary.php +++ b/classes/ThirdParty/MediaLibraryAssistant/ListScreen/MediaLibrary.php @@ -5,19 +5,22 @@ use AC; use AC\Column; use AC\ColumnRepository; +use AC\MetaType; use AC\ThirdParty\MediaLibraryAssistant\ManageValue; use AC\ThirdParty\MediaLibraryAssistant\WpListTableFactory; use AC\Type\Uri; use AC\Type\Url; use MLACore; -class MediaLibrary extends AC\ListScreenPost implements AC\ListScreen\ListTable +class MediaLibrary extends AC\ListScreenPost implements AC\ListScreen\ListTable, AC\ListScreen\ManageValue { public function __construct() { - parent::__construct('attachment', 'mla-media-assistant', 'media_page_' . MLACore::ADMIN_PAGE_SLUG); + parent::__construct('mla-media-assistant', 'media_page_' . MLACore::ADMIN_PAGE_SLUG); + $this->meta_type = MetaType::POST; + $this->post_type = 'attachment'; $this->group = 'media'; $this->label = __('Media Library Assistant', 'codepress-admin-columns'); $this->singular_label = __('Assistant', 'codepress-admin-columns'); @@ -43,9 +46,9 @@ public function list_table(): AC\ListTable public function register_column_types(): void { - parent::register_column_types(); - $this->register_column_types_from_list([ + Column\CustomField::class, + Column\Actions::class, Column\Post\Slug::class, Column\Post\TitleRaw::class, Column\Media\Album::class, diff --git a/classes/ThirdParty/MediaLibraryAssistant/ListTable.php b/classes/ThirdParty/MediaLibraryAssistant/ListTable.php index 23272f97d..d4c90d533 100644 --- a/classes/ThirdParty/MediaLibraryAssistant/ListTable.php +++ b/classes/ThirdParty/MediaLibraryAssistant/ListTable.php @@ -18,7 +18,7 @@ public function __construct(MLA_List_Table $table) $this->table = $table; } - public function get_column_value(string $column, int $id): string + public function get_column_value(string $column, $id): string { $item = (object)MLAData::mla_get_attachment_by_id($id); @@ -40,7 +40,7 @@ public function get_total_items(): int return $this->table->get_pagination_arg('total_items'); } - public function render_row(int $id): string + public function render_row($id): string { ob_start(); diff --git a/classes/Type/Uri.php b/classes/Type/Uri.php index 375f24179..f9f26829f 100644 --- a/classes/Type/Uri.php +++ b/classes/Type/Uri.php @@ -19,14 +19,20 @@ protected function add_arg(string $key, string $value): void $this->url = add_query_arg($key, $value, $this->url); } - protected function remove_arg(string $key): void + public function with_arg(string $key, string $value): self { - $this->url = remove_query_arg($key, $this->url); + return new self(add_query_arg($key, $value, $this->url)); } - public function with_arg(string $key, string $value): self + public function with_args(array $args): self { - return new self(add_query_arg($key, $value, $this->url)); + $url = new self($this->url); + + foreach ($args as $key => $value) { + $url = $this->with_arg($key, $value); + } + + return $url; } public function get_url(): string diff --git a/codepress-admin-columns.php b/codepress-admin-columns.php index b9acc5753..f7d9e3056 100644 --- a/codepress-admin-columns.php +++ b/codepress-admin-columns.php @@ -1,12 +1,13 @@ = 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11 && n % 100 <= 99) ? 4 : 5))));\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: ar\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-bg_BG.mo b/languages/codepress-admin-columns-bg_BG.mo index 0fb705262..4d11844b9 100644 Binary files a/languages/codepress-admin-columns-bg_BG.mo and b/languages/codepress-admin-columns-bg_BG.mo differ diff --git a/languages/codepress-admin-columns-bg_BG.po b/languages/codepress-admin-columns-bg_BG.po index 7d8453823..8a393418e 100644 --- a/languages/codepress-admin-columns-bg_BG.po +++ b/languages/codepress-admin-columns-bg_BG.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: bg\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-da_DK.mo b/languages/codepress-admin-columns-da_DK.mo index b267e6ff2..2a19226ab 100644 Binary files a/languages/codepress-admin-columns-da_DK.mo and b/languages/codepress-admin-columns-da_DK.mo differ diff --git a/languages/codepress-admin-columns-da_DK.po b/languages/codepress-admin-columns-da_DK.po index c400d8617..36322be5d 100644 --- a/languages/codepress-admin-columns-da_DK.po +++ b/languages/codepress-admin-columns-da_DK.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: da_DK\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-de_DE.mo b/languages/codepress-admin-columns-de_DE.mo index 5418f8c90..62c5968ed 100644 Binary files a/languages/codepress-admin-columns-de_DE.mo and b/languages/codepress-admin-columns-de_DE.mo differ diff --git a/languages/codepress-admin-columns-de_DE.po b/languages/codepress-admin-columns-de_DE.po index 659717ab6..2b3aea790 100644 --- a/languages/codepress-admin-columns-de_DE.po +++ b/languages/codepress-admin-columns-de_DE.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: de\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-en_NZ.mo b/languages/codepress-admin-columns-en_NZ.mo index 725d2ac6c..9e4ffbc19 100644 Binary files a/languages/codepress-admin-columns-en_NZ.mo and b/languages/codepress-admin-columns-en_NZ.mo differ diff --git a/languages/codepress-admin-columns-en_NZ.po b/languages/codepress-admin-columns-en_NZ.po index df66a491a..bc3ee01f4 100644 --- a/languages/codepress-admin-columns-en_NZ.po +++ b/languages/codepress-admin-columns-en_NZ.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: en_NZ\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-es_ES.mo b/languages/codepress-admin-columns-es_ES.mo index 6928730ea..ab7cd11dc 100644 Binary files a/languages/codepress-admin-columns-es_ES.mo and b/languages/codepress-admin-columns-es_ES.mo differ diff --git a/languages/codepress-admin-columns-es_ES.po b/languages/codepress-admin-columns-es_ES.po index ec7046ca5..1ec047210 100644 --- a/languages/codepress-admin-columns-es_ES.po +++ b/languages/codepress-admin-columns-es_ES.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: es\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-fa_IR.mo b/languages/codepress-admin-columns-fa_IR.mo index 97b700a06..3b29e26e3 100644 Binary files a/languages/codepress-admin-columns-fa_IR.mo and b/languages/codepress-admin-columns-fa_IR.mo differ diff --git a/languages/codepress-admin-columns-fa_IR.po b/languages/codepress-admin-columns-fa_IR.po index bc148eb1e..be3b45c5b 100644 --- a/languages/codepress-admin-columns-fa_IR.po +++ b/languages/codepress-admin-columns-fa_IR.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: fa\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-fr_FR.mo b/languages/codepress-admin-columns-fr_FR.mo index bd96da9d9..0a559c8b6 100644 Binary files a/languages/codepress-admin-columns-fr_FR.mo and b/languages/codepress-admin-columns-fr_FR.mo differ diff --git a/languages/codepress-admin-columns-fr_FR.po b/languages/codepress-admin-columns-fr_FR.po index b849f7e94..6c0609687 100644 --- a/languages/codepress-admin-columns-fr_FR.po +++ b/languages/codepress-admin-columns-fr_FR.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: fr\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-he_IL.mo b/languages/codepress-admin-columns-he_IL.mo index acedc42a2..cb1d747b2 100644 Binary files a/languages/codepress-admin-columns-he_IL.mo and b/languages/codepress-admin-columns-he_IL.mo differ diff --git a/languages/codepress-admin-columns-he_IL.po b/languages/codepress-admin-columns-he_IL.po index 5682e0651..0fce4ca1b 100644 --- a/languages/codepress-admin-columns-he_IL.po +++ b/languages/codepress-admin-columns-he_IL.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: he_IL\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-hu_HU.mo b/languages/codepress-admin-columns-hu_HU.mo index 8790bcfcf..0d9a4917d 100644 Binary files a/languages/codepress-admin-columns-hu_HU.mo and b/languages/codepress-admin-columns-hu_HU.mo differ diff --git a/languages/codepress-admin-columns-hu_HU.po b/languages/codepress-admin-columns-hu_HU.po index af1cdb54b..39b1c85fb 100644 --- a/languages/codepress-admin-columns-hu_HU.po +++ b/languages/codepress-admin-columns-hu_HU.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: hu\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-it_IT.mo b/languages/codepress-admin-columns-it_IT.mo index f6462c700..8c3943af6 100644 Binary files a/languages/codepress-admin-columns-it_IT.mo and b/languages/codepress-admin-columns-it_IT.mo differ diff --git a/languages/codepress-admin-columns-it_IT.po b/languages/codepress-admin-columns-it_IT.po index 50432d1bc..def875469 100644 --- a/languages/codepress-admin-columns-it_IT.po +++ b/languages/codepress-admin-columns-it_IT.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: it\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-ja_JA.mo b/languages/codepress-admin-columns-ja_JA.mo index b46497f35..729bb47f9 100644 Binary files a/languages/codepress-admin-columns-ja_JA.mo and b/languages/codepress-admin-columns-ja_JA.mo differ diff --git a/languages/codepress-admin-columns-ja_JA.po b/languages/codepress-admin-columns-ja_JA.po index eb51dfb0b..b5e0f7ed5 100644 --- a/languages/codepress-admin-columns-ja_JA.po +++ b/languages/codepress-admin-columns-ja_JA.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: ja_JP\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-nb_NO.mo b/languages/codepress-admin-columns-nb_NO.mo index 8079dc6cd..84271d8e0 100644 Binary files a/languages/codepress-admin-columns-nb_NO.mo and b/languages/codepress-admin-columns-nb_NO.mo differ diff --git a/languages/codepress-admin-columns-nb_NO.po b/languages/codepress-admin-columns-nb_NO.po index 40f9cba2f..a1cf03701 100644 --- a/languages/codepress-admin-columns-nb_NO.po +++ b/languages/codepress-admin-columns-nb_NO.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: nb_NO\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-nl_NL.mo b/languages/codepress-admin-columns-nl_NL.mo index ca7a1824a..356149eba 100644 Binary files a/languages/codepress-admin-columns-nl_NL.mo and b/languages/codepress-admin-columns-nl_NL.mo differ diff --git a/languages/codepress-admin-columns-nl_NL.po b/languages/codepress-admin-columns-nl_NL.po index 5187fe582..940adaf4a 100644 --- a/languages/codepress-admin-columns-nl_NL.po +++ b/languages/codepress-admin-columns-nl_NL.po @@ -2,12 +2,12 @@ # This file is distributed under the same license as the Plugins - Admin Columns - Stable (latest release) package. msgid "" msgstr "" -"PO-Revision-Date: 2023-03-21 12:00:52+0000\n" +"PO-Revision-Date: 2023-12-01 08:14:28+0000\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: nl\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" @@ -152,7 +152,7 @@ msgstr "Kbps" #: classes/Settings/Column/FileMetaAudio.php:26 #: classes/Settings/Column/FileMetaVideo.php:30 msgid "Sample Rate" -msgstr "Sample rate" +msgstr "Steekproef percentage" #: classes/Settings/Column/FileMetaAudio.php:24 #: classes/Settings/Column/FileMetaVideo.php:29 @@ -310,7 +310,7 @@ msgstr "Lijsttabel aanpassen" #: templates/admin/page/settings-section-pro-cta.php:118 msgid "And of course, all network sites can use Admin Columns." -msgstr "En natuurlijk kunnen alle netwerksites beheer-kolommen gebruiken." +msgstr "En natuurlijk kunnen alle netwerksites Admin Columns gebruiken." #: templates/admin/page/settings-section-pro-cta.php:117 msgid "Get insights about your entire network of sites." @@ -798,7 +798,7 @@ msgstr "Om te beginnen met inline bewerken, toggle je de knop \"Inline bewerken\ #: templates/tooltip/inline-editing.php:10 msgid "With Inline Edit, you can update your content quick and easy, without having to open each %s one at the time." -msgstr "Met inline bewerken kan je je inhoud snel en gemakkelijk bijwerken, zonder dat je elke %s een voor een hoeft te openen." +msgstr "Met inline bewerken kan je je inhoud snel en gemakkelijk updaten, zonder dat je elke %s één voor één hoeft te openen." #: templates/admin/modal-pro.php:26 msgid "Create multiple list table views with different columns." @@ -857,7 +857,7 @@ msgstr "Kolommen aan het laden" #: templates/admin/edit-submenu.php:10 msgid "Column Sets" -msgstr "Kolomsets" +msgstr "Kolom sets" #: classes/PluginActionLinks.php:66 msgid "Go Pro" @@ -1061,7 +1061,7 @@ msgstr "Dit bepaalt hoe de tijd getoond wordt." #: classes/Settings/Column/Time.php:12 msgid "Time Format" -msgstr "Tijdformat" +msgstr "Tijd format" #: classes/Settings/Column/StringLimit.php:35 msgid "No limit" @@ -1084,7 +1084,7 @@ msgstr "Download" #: classes/Settings/Column/PostLink.php:80 msgctxt "post" msgid "View Public %s Author Page" -msgstr "Bekijk publieke %s auteurpagina" +msgstr "Bekijk publieke %s auteur pagina" #: classes/Settings/Column/PostLink.php:79 msgctxt "post" @@ -1332,7 +1332,7 @@ msgstr "Nieuwe regel" #: classes/Settings/Column/Separator.php:26 msgid "Comma Separated" -msgstr "Kommagescheiden" +msgstr "Komma gescheiden" #: classes/Settings/Column/Password.php:24 msgid "Plain text" @@ -1525,7 +1525,7 @@ msgstr "Toon %s knop bij tabel scherm." #: classes/Admin/Tooltip.php:26 msgid "Notice" -msgstr "Melding" +msgstr "Bericht" #: classes/Admin/Tooltip.php:27 msgid "Instructions" @@ -1661,7 +1661,7 @@ msgstr "Bekijk %s scherm" #: classes/Admin/Asset/Columns.php:62 msgid "Invalid response." -msgstr "Ongeldige respons." +msgstr "Ongeldige reactie." #: classes/Settings/Column/LinkLabel.php:24 msgid "Leave blank to display the URL" @@ -1700,7 +1700,7 @@ msgstr "Upgraden" #: classes/Controller/ListScreen/Save.php:51 msgid "Settings for %s updated successfully." -msgstr "Instellingen voor %s succesvol bijgewerkt." +msgstr "Instellingen voor %s succesvol geüpdatet." #: classes/ListScreen/User.php:15 classes/ListScreenGroups.php:14 msgid "Users" @@ -1830,7 +1830,7 @@ msgstr "Overige" #: classes/Admin/Asset/Script/SettingsFactory.php:26 msgid "Warning! ALL saved admin columns data will be deleted. This cannot be undone. 'OK' to delete, 'Cancel' to stop" -msgstr "Waarschuwing! ALLE gegevens van de opgeslagen beheerderskolommen zullen worden verwijderd. Dit kan niet ongedaan gemaakt worden. 'OK' om te verwijderen, 'Annuleren' om te stoppen" +msgstr "Waarschuwing! ALLE gegevens van opgeslagen Admin Columns zullen worden verwijderd. Dit kan niet ongedaan gemaakt worden. 'OK' om te verwijderen, 'Annuleren' om te stoppen" #: classes/Admin/Section/Restore.php:21 msgid "Delete all column settings and restore the default settings." @@ -1867,7 +1867,7 @@ msgstr "Gebruikersnaam" #: templates/admin/help-tab/custom-fields.php:19 msgid "Value: Can be unix time stamp or a date format as described in the Codex. You can change the outputted date format at the general settings page." -msgstr "Waarde: kan een unix tijdstempel zijn, of een datumformat, zoals beschreven in de Codex. Je kan de uitgestuurde datumformat wijzigen in de pagina met algemene instellingen." +msgstr "Waarde: kan een Unix tijdstempel zijn, of een datum format, zoals beschreven in de Codex. Je kunt de uitgestuurde datum format wijzigen in de pagina met algemene instellingen." #: templates/admin/help-tab/custom-fields.php:43 msgid "Value: Integers only.
If you have the 'sorting addon' this will be used for sorting, so you can sort your posts on numeric (custom field) values." @@ -1899,7 +1899,7 @@ msgstr "Verander kolom breedte" #: templates/admin/help-tab/basics.php:8 msgid "By clicking on the triangle you will see the column options. Here you can change each label of the columns heading." -msgstr "Door op het driehoekje te klikken zie je de kolomopties. Hier kan je elk label van de kolomkoptekst wijzigen." +msgstr "Door op het driehoekje te klikken zie je de kolom opties. Hier kun je elk label van de kolom koptekst wijzigen." #: templates/admin/help-tab/basics.php:6 msgid "Change label" @@ -1915,7 +1915,7 @@ msgstr "Verander volgorde" #: templates/admin/help-tab/introduction.php:2 msgid "This plugin is for adding and removing additional columns to the administration screens for post(types), pages, media library, comments, links and users. Change the column's label and reorder them." -msgstr "Met deze plugin kan je bijkomende kolommen toevoegen en verwijderen van uit de beheerder schermen van berichten, berichttypes, pagina's, mediabibliotheken, reacties, links en gebruikers. Wijzig en herschik de kolomlabels." +msgstr "Met deze plugin kun je bijkomende kolommen toevoegen en verwijderen van uit de beheerder schermen van berichten, berichttypes, pagina's, mediabibliotheken, reacties, links en gebruikers. Wijzig en herschik de kolom labels." #: classes/Controller/RestoreSettingsRequest.php:47 msgid "Default settings successfully restored." @@ -2060,7 +2060,7 @@ msgstr "Aangepast" #: classes/Settings/Column/DateTimeFormat.php:63 msgid "This will determine how the date will be displayed." -msgstr "Dit bepaald hoe de datum wordt getoond." +msgstr "Dit bepaalt hoe de datum wordt getoond." #: classes/Settings/Column/DateTimeFormat.php:62 msgid "Date Format" @@ -2245,7 +2245,7 @@ msgstr "Bekijk gebruiker berichten" #: classes/Settings/Column/UserLink.php:78 msgid "Edit User Profile" -msgstr "Gebruikersprofiel aanpassen" +msgstr "Gebruikersprofiel bewerken" #: classes/Settings/Column/CommentLink.php:65 #: classes/Settings/Column/MediaLink.php:62 @@ -2502,7 +2502,7 @@ msgstr "Avatar" #: classes/Column/Comment/Approved.php:14 classes/Column/Comment/Status.php:34 #: classes/Settings/Column/CommentCount.php:56 msgid "Approved" -msgstr "Goedgekeurd" +msgstr "Toegestaan" #: classes/Column/Comment/Agent.php:14 msgid "Agent" diff --git a/languages/codepress-admin-columns-pl_PL.mo b/languages/codepress-admin-columns-pl_PL.mo index 6aff9188d..bbec94bf5 100644 Binary files a/languages/codepress-admin-columns-pl_PL.mo and b/languages/codepress-admin-columns-pl_PL.mo differ diff --git a/languages/codepress-admin-columns-pl_PL.po b/languages/codepress-admin-columns-pl_PL.po index 24d4e6150..baa478120 100644 --- a/languages/codepress-admin-columns-pl_PL.po +++ b/languages/codepress-admin-columns-pl_PL.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n == 1) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: pl\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-pt_BR.mo b/languages/codepress-admin-columns-pt_BR.mo index 6d3e217fc..1ec7d19d8 100644 Binary files a/languages/codepress-admin-columns-pt_BR.mo and b/languages/codepress-admin-columns-pt_BR.mo differ diff --git a/languages/codepress-admin-columns-pt_BR.po b/languages/codepress-admin-columns-pt_BR.po index fc4c50c7c..7c5b612d7 100644 --- a/languages/codepress-admin-columns-pt_BR.po +++ b/languages/codepress-admin-columns-pt_BR.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: pt_BR\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-pt_PT.mo b/languages/codepress-admin-columns-pt_PT.mo index 0a97fbd8a..922194617 100644 Binary files a/languages/codepress-admin-columns-pt_PT.mo and b/languages/codepress-admin-columns-pt_PT.mo differ diff --git a/languages/codepress-admin-columns-pt_PT.po b/languages/codepress-admin-columns-pt_PT.po index 14e216807..b37c05a52 100644 --- a/languages/codepress-admin-columns-pt_PT.po +++ b/languages/codepress-admin-columns-pt_PT.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: pt\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-ro_RO.mo b/languages/codepress-admin-columns-ro_RO.mo index 7f7f8e03d..63d6056d6 100644 Binary files a/languages/codepress-admin-columns-ro_RO.mo and b/languages/codepress-admin-columns-ro_RO.mo differ diff --git a/languages/codepress-admin-columns-ro_RO.po b/languages/codepress-admin-columns-ro_RO.po index c1e190898..d6642d12b 100644 --- a/languages/codepress-admin-columns-ro_RO.po +++ b/languages/codepress-admin-columns-ro_RO.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n == 1) ? 0 : ((n == 0 || n % 100 >= 2 && n % 100 <= 19) ? 1 : 2);\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: ro\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-ru_RU.mo b/languages/codepress-admin-columns-ru_RU.mo index e8fbd1770..eae3137d5 100644 Binary files a/languages/codepress-admin-columns-ru_RU.mo and b/languages/codepress-admin-columns-ru_RU.mo differ diff --git a/languages/codepress-admin-columns-ru_RU.po b/languages/codepress-admin-columns-ru_RU.po index 5338c5d54..44c24094d 100644 --- a/languages/codepress-admin-columns-ru_RU.po +++ b/languages/codepress-admin-columns-ru_RU.po @@ -2,12 +2,12 @@ # This file is distributed under the same license as the Plugins - Admin Columns - Stable (latest release) package. msgid "" msgstr "" -"PO-Revision-Date: 2023-07-21 17:06:04+0000\n" +"PO-Revision-Date: 2023-09-30 17:59:29+0000\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: ru\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" @@ -846,7 +846,7 @@ msgstr "" #: classes/Settings/Column/PostType.php:35 msgid "All Post Types" -msgstr "Все типы сообщений" +msgstr "Все типы записи" #: templates/admin/modal-pro.php:23 msgid "Bulk edit any content, including custom fields." diff --git a/languages/codepress-admin-columns-sv_SE.mo b/languages/codepress-admin-columns-sv_SE.mo index 99a700218..687bfd73b 100644 Binary files a/languages/codepress-admin-columns-sv_SE.mo and b/languages/codepress-admin-columns-sv_SE.mo differ diff --git a/languages/codepress-admin-columns-sv_SE.po b/languages/codepress-admin-columns-sv_SE.po index 9d108da23..c41b12423 100644 --- a/languages/codepress-admin-columns-sv_SE.po +++ b/languages/codepress-admin-columns-sv_SE.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: sv_SE\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-tr_TR.mo b/languages/codepress-admin-columns-tr_TR.mo index b12e84b5e..17abfe24d 100644 Binary files a/languages/codepress-admin-columns-tr_TR.mo and b/languages/codepress-admin-columns-tr_TR.mo differ diff --git a/languages/codepress-admin-columns-tr_TR.po b/languages/codepress-admin-columns-tr_TR.po index f6cf0801a..dc918101e 100644 --- a/languages/codepress-admin-columns-tr_TR.po +++ b/languages/codepress-admin-columns-tr_TR.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: tr\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns-zh_CN.mo b/languages/codepress-admin-columns-zh_CN.mo index 0c1a3a19c..db7c39f30 100644 Binary files a/languages/codepress-admin-columns-zh_CN.mo and b/languages/codepress-admin-columns-zh_CN.mo differ diff --git a/languages/codepress-admin-columns-zh_CN.po b/languages/codepress-admin-columns-zh_CN.po index 5def8f5d9..365366151 100644 --- a/languages/codepress-admin-columns-zh_CN.po +++ b/languages/codepress-admin-columns-zh_CN.po @@ -7,7 +7,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: GlotPress/4.0.0-alpha.7\n" +"X-Generator: GlotPress/4.0.0-alpha.11\n" "Language: zh_CN\n" "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n" diff --git a/languages/codepress-admin-columns.pot b/languages/codepress-admin-columns.pot index 4cce19aa1..060e300ae 100644 --- a/languages/codepress-admin-columns.pot +++ b/languages/codepress-admin-columns.pot @@ -8,7 +8,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Language-Team: Admin Columns \n" "Last-Translator: Codepress visit the Admin Columns website." msgstr "" -#: templates/settings/setting-label-icons.php:24 +#: templates/settings/setting-label-icons.php:33 msgid "Select Icon" msgstr "" -#: templates/settings/setting-label-icons.php:34 +#: templates/settings/setting-label-icons.php:43 msgid "Admin Menu" msgstr "" -#: templates/settings/setting-label-icons.php:35 +#: templates/settings/setting-label-icons.php:72 msgid "Welcome Screen" msgstr "" -#: templates/settings/setting-label-icons.php:36 +#: templates/settings/setting-label-icons.php:80 msgid "Post Formats" msgstr "" -#: templates/settings/setting-label-icons.php:37, classes/Settings/Column/CustomFieldType.php:132, templates/admin/help-tab/custom-fields.php:34 +#: templates/settings/setting-label-icons.php:97, classes/Settings/Column/CustomFieldType.php:143, templates/admin/help-tab/custom-fields.php:34 msgid "Media" msgstr "" -#: templates/settings/setting-label-icons.php:38 +#: templates/settings/setting-label-icons.php:119 msgid "Image Editing" msgstr "" -#: templates/settings/setting-label-icons.php:39 +#: templates/settings/setting-label-icons.php:130 msgid "Databases" msgstr "" -#: templates/settings/setting-label-icons.php:40 +#: templates/settings/setting-label-icons.php:138 msgid "Block Editor" msgstr "" -#: templates/settings/setting-label-icons.php:41 +#: templates/settings/setting-label-icons.php:172 msgid "TinyMCE" msgstr "" -#: templates/settings/setting-label-icons.php:42 +#: templates/settings/setting-label-icons.php:207 msgid "Posts Screen" msgstr "" -#: templates/settings/setting-label-icons.php:44 +#: templates/settings/setting-label-icons.php:245 msgid "Social" msgstr "" -#: templates/settings/setting-label-icons.php:45 +#: templates/settings/setting-label-icons.php:271 msgid "WordPress.org" msgstr "" -#: templates/settings/setting-label-icons.php:46 +#: templates/settings/setting-label-icons.php:288 msgid "Buddicons" msgstr "" -#: templates/settings/setting-label-icons.php:47 +#: templates/settings/setting-label-icons.php:301 msgid "Products" msgstr "" -#: templates/settings/setting-label-icons.php:48 +#: templates/settings/setting-label-icons.php:314 msgid "Taxonomies" msgstr "" -#: templates/settings/setting-label-icons.php:49 +#: templates/settings/setting-label-icons.php:315 msgid "Widgets" msgstr "" -#: templates/settings/setting-label-icons.php:50 +#: templates/settings/setting-label-icons.php:316 msgid "Notifications" msgstr "" -#: templates/settings/setting-label-icons.php:51 -msgid "Misc" +#: templates/settings/setting-label-icons.php:334 +msgid "Miscellaneous" msgstr "" #: templates/tooltip/bulk-editing.php:7, templates/admin/page/settings-section-pro-cta.php:81, classes/Settings/Column/Pro/BulkEditing.php:11 @@ -876,15 +880,23 @@ msgstr "" msgid "The Add-on %s is activated." msgstr "" -#: classes/Admin/Asset/Columns.php:53 -msgid "Invalid response." +#: classes/Admin/Asset/Columns.php:52 +msgid "Value" +msgstr "" + +#: classes/Admin/Asset/Columns.php:53, classes/Settings/Column/Label.php:31 +msgid "Label" msgstr "" #: classes/Admin/Asset/Columns.php:55 +msgid "Invalid response." +msgstr "" + +#: classes/Admin/Asset/Columns.php:57 msgid "There was an error during saving the column settings." msgstr "" -#: classes/Admin/Asset/Columns.php:59 +#: classes/Admin/Asset/Columns.php:61 msgid "The column could not be loaded because of an unknown error" msgstr "" @@ -916,11 +928,11 @@ msgstr "" msgid "I'm using Admin Columns for WordPress!" msgstr "" -#: classes/Admin/Page/Columns.php:182 +#: classes/Admin/Page/Columns.php:186 msgid "Store settings" msgstr "" -#: classes/Admin/Page/Columns.php:203 +#: classes/Admin/Page/Columns.php:207 msgid "Warning! The %s columns data will be deleted. This cannot be undone. 'OK' to delete, 'Cancel' to stop" msgstr "" @@ -978,6 +990,10 @@ msgstr "" msgid "List Screen ID" msgstr "" +#: classes/Admin/ScreenOption/ListScreenSource.php:33 +msgid "List Screen Source" +msgstr "" + #: classes/Admin/ScreenOption/ListScreenType.php:33 msgid "List Screen Key" msgstr "" @@ -1018,7 +1034,7 @@ msgstr "" msgid "Author IP" msgstr "" -#: classes/Column/Comment/AuthorName.php:14 +#: classes/Column/Comment/AuthorName.php:13 msgid "Author Name" msgstr "" @@ -1038,7 +1054,7 @@ msgstr "" msgid "Content" msgstr "" -#: classes/Column/Comment/Post.php:15, classes/Settings/Column/CustomFieldType.php:133, templates/admin/help-tab/custom-fields.php:46 +#: classes/Column/Comment/Post.php:14, classes/Settings/Column/CustomFieldType.php:144, templates/admin/help-tab/custom-fields.php:46 msgid "Post" msgstr "" @@ -1050,7 +1066,7 @@ msgstr "" msgid "Status" msgstr "" -#: classes/Column/Comment/User.php:15, classes/Settings/Column/CustomFieldType.php:105, classes/Settings/Column/CustomFieldType.php:134, templates/admin/help-tab/custom-fields.php:58 +#: classes/Column/Comment/User.php:15, classes/Settings/Column/CustomFieldType.php:115, classes/Settings/Column/CustomFieldType.php:145, templates/admin/help-tab/custom-fields.php:58 msgid "User" msgstr "" @@ -1058,7 +1074,7 @@ msgstr "" msgid "Word Count" msgstr "" -#: classes/Column/Media/Album.php:15 +#: classes/Column/Media/Album.php:13 msgid "Album" msgstr "" @@ -1066,7 +1082,7 @@ msgstr "" msgid "Alternative Text" msgstr "" -#: classes/Column/Media/Artist.php:15 +#: classes/Column/Media/Artist.php:13 msgid "Artist" msgstr "" @@ -1078,15 +1094,15 @@ msgstr "" msgid "No support for audio player" msgstr "" -#: classes/Column/Media/AvailableSizes.php:18 +#: classes/Column/Media/AvailableSizes.php:16 msgid "Available Sizes" msgstr "" -#: classes/Column/Media/AvailableSizes.php:39 +#: classes/Column/Media/AvailableSizes.php:37 msgid "original" msgstr "" -#: classes/Column/Media/AvailableSizes.php:57 +#: classes/Column/Media/AvailableSizes.php:55 msgid "Missing image file for size %s." msgstr "" @@ -1094,23 +1110,23 @@ msgstr "" msgid "Caption" msgstr "" -#: classes/Column/Media/Description.php:13, classes/Column/User/Description.php:15 +#: classes/Column/Media/Description.php:13, classes/Column/User/Description.php:14 msgid "Description" msgstr "" -#: classes/Column/Media/Dimensions.php:17 +#: classes/Column/Media/Dimensions.php:16 msgid "Dimensions" msgstr "" -#: classes/Column/Media/Dimensions.php:29 +#: classes/Column/Media/Dimensions.php:28 msgid "Width : %s px" msgstr "" -#: classes/Column/Media/Dimensions.php:29 +#: classes/Column/Media/Dimensions.php:28 msgid "Height : %s px" msgstr "" -#: classes/Column/Media/ExifData.php:18 +#: classes/Column/Media/ExifData.php:16 msgid "Image Meta (EXIF)" msgstr "" @@ -1134,11 +1150,11 @@ msgstr "" msgid "Path" msgstr "" -#: classes/Column/Media/Height.php:17, classes/Settings/Column/FileMetaVideo.php:15, classes/Settings/Column/Image.php:47 +#: classes/Column/Media/Height.php:15, classes/Settings/Column/FileMetaVideo.php:15, classes/Settings/Column/Image.php:47 msgid "Height" msgstr "" -#: classes/Column/Media/MimeType.php:14, classes/Settings/Column/FileMetaAudio.php:25 +#: classes/Column/Media/MimeType.php:16, classes/Settings/Column/FileMetaAudio.php:27 msgid "Mime Type" msgstr "" @@ -1250,7 +1266,7 @@ msgstr "" msgid "Shortlink" msgstr "" -#: classes/Column/Post/Slug.php:14 +#: classes/Column/Post/Slug.php:17 msgid "Slug" msgstr "" @@ -1258,7 +1274,7 @@ msgstr "" msgid "Sticky" msgstr "" -#: classes/Column/Post/TitleRaw.php:15 +#: classes/Column/Post/TitleRaw.php:17 msgid "Title Only" msgstr "" @@ -1306,7 +1322,7 @@ msgstr "" msgid "Nickname" msgstr "" -#: classes/Column/User/PostCount.php:15 +#: classes/Column/User/PostCount.php:14 msgid "Post Count" msgstr "" @@ -1350,6 +1366,10 @@ msgstr "" msgid "Original" msgstr "" +#: classes/RequestHandler/Ajax/ListScreenDelete.php:50 +msgid "Table view %s successfully deleted." +msgstr "" + #: classes/Settings/Column/ActionIcons.php:27 msgid "Use icons?" msgstr "" @@ -1422,7 +1442,7 @@ msgstr "" msgid "Total" msgstr "" -#: classes/Settings/Column/CommentLink.php:56, classes/Settings/Column/MediaLink.php:52, classes/Settings/Column/PostLink.php:58, classes/Settings/Column/TermLink.php:30, classes/Settings/Column/UserLink.php:69 +#: classes/Settings/Column/CommentLink.php:56, classes/Settings/Column/MediaLink.php:52, classes/Settings/Column/PostLink.php:62, classes/Settings/Column/TermLink.php:30, classes/Settings/Column/UserLink.php:69 msgid "Link To" msgstr "" @@ -1438,75 +1458,75 @@ msgstr "" msgid "Field" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:76 +#: classes/Settings/Column/CustomFieldType.php:81 msgid "This will determine how the value will be displayed." msgstr "" -#: classes/Settings/Column/CustomFieldType.php:83 +#: classes/Settings/Column/CustomFieldType.php:88 msgid "Field Type" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:90 +#: classes/Settings/Column/CustomFieldType.php:97 msgid "Uses one or more %s IDs to display information about it." msgstr "" -#: classes/Settings/Column/CustomFieldType.php:91 +#: classes/Settings/Column/CustomFieldType.php:100 msgid "Multiple IDs should be separated by commas." msgstr "" -#: classes/Settings/Column/CustomFieldType.php:120, templates/admin/help-tab/custom-fields.php:10 +#: classes/Settings/Column/CustomFieldType.php:131, templates/admin/help-tab/custom-fields.php:10 msgid "Color" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:121, templates/admin/help-tab/custom-fields.php:18 +#: classes/Settings/Column/CustomFieldType.php:132, classes/Settings/Column/DateFormat.php:32, templates/admin/help-tab/custom-fields.php:18 msgid "Date" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:122 +#: classes/Settings/Column/CustomFieldType.php:133 msgid "Text" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:124, templates/admin/help-tab/custom-fields.php:54 +#: classes/Settings/Column/CustomFieldType.php:135, templates/admin/help-tab/custom-fields.php:54 msgid "URL" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:125, templates/admin/help-tab/custom-fields.php:42 +#: classes/Settings/Column/CustomFieldType.php:136, templates/admin/help-tab/custom-fields.php:42 msgid "Number" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:128, templates/admin/help-tab/custom-fields.php:26 +#: classes/Settings/Column/CustomFieldType.php:139, templates/admin/help-tab/custom-fields.php:26 msgid "Has Content" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:129, templates/admin/help-tab/custom-fields.php:50 +#: classes/Settings/Column/CustomFieldType.php:140, templates/admin/help-tab/custom-fields.php:50 msgid "True / False" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:137 +#: classes/Settings/Column/CustomFieldType.php:148 msgid "Number of Fields" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:138, templates/admin/help-tab/custom-fields.php:38 +#: classes/Settings/Column/CustomFieldType.php:151, templates/admin/help-tab/custom-fields.php:38 msgid "Multiple Values" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:138 +#: classes/Settings/Column/CustomFieldType.php:152 msgid "Serialized" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:169 +#: classes/Settings/Column/CustomFieldType.php:185 msgid "Basic" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:170 +#: classes/Settings/Column/CustomFieldType.php:186 msgid "Relational" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:171 +#: classes/Settings/Column/CustomFieldType.php:187 msgid "Choice" msgstr "" -#: classes/Settings/Column/CustomFieldType.php:172 +#: classes/Settings/Column/CustomFieldType.php:188 msgid "Multiple" msgstr "" @@ -1534,6 +1554,18 @@ msgstr "" msgid "in %s" msgstr "" +#: classes/Settings/Column/DateFormat.php:35 +msgid "Datetime (ISO)" +msgstr "" + +#: classes/Settings/Column/DateFormat.php:36, classes/Settings/Column/ExifData.php:76 +msgid "Timestamp" +msgstr "" + +#: classes/Settings/Column/DateFormat.php:40 +msgid "Date Save Format" +msgstr "" + #: classes/Settings/Column/DateTimeFormat.php:43 msgid "The %s can be changed in %s." msgstr "" @@ -1570,10 +1602,6 @@ msgstr "" msgid "Camera" msgstr "" -#: classes/Settings/Column/ExifData.php:76 -msgid "Timestamp" -msgstr "" - #: classes/Settings/Column/ExifData.php:77 msgid "Copyright" msgstr "" @@ -1602,77 +1630,77 @@ msgstr "" msgid "Keywords" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:12 +#: classes/Settings/Column/FileMetaAudio.php:14 msgid "Bitrate" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:13 +#: classes/Settings/Column/FileMetaAudio.php:15 msgid "Bitrate Mode" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:14, classes/Settings/Column/FileMetaVideo.php:25 +#: classes/Settings/Column/FileMetaAudio.php:16, classes/Settings/Column/FileMetaVideo.php:25 msgid "Channelmode" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:15, classes/Settings/Column/FileMetaVideo.php:26 +#: classes/Settings/Column/FileMetaAudio.php:17, classes/Settings/Column/FileMetaVideo.php:26 msgid "Channels" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:16 +#: classes/Settings/Column/FileMetaAudio.php:18 msgid "Compression Ratio" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:17, classes/Settings/Column/FileMetaVideo.php:12 +#: classes/Settings/Column/FileMetaAudio.php:19, classes/Settings/Column/FileMetaVideo.php:12 msgid "Created Timestamp" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:18 +#: classes/Settings/Column/FileMetaAudio.php:20 msgid "Data Format" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:19 +#: classes/Settings/Column/FileMetaAudio.php:21 msgid "Encoder Options" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:20, classes/Settings/Column/FileMetaVideo.php:14 +#: classes/Settings/Column/FileMetaAudio.php:22, classes/Settings/Column/FileMetaVideo.php:14 msgid "Fileformat" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:21 +#: classes/Settings/Column/FileMetaAudio.php:23 msgid "Filesize" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:22, classes/Settings/Column/FileMetaVideo.php:16 +#: classes/Settings/Column/FileMetaAudio.php:24, classes/Settings/Column/FileMetaVideo.php:16 msgid "Length" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:23, classes/Settings/Column/FileMetaVideo.php:17 +#: classes/Settings/Column/FileMetaAudio.php:25, classes/Settings/Column/FileMetaVideo.php:17 msgid "Length Formatted" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:24, classes/Settings/Column/FileMetaVideo.php:29 +#: classes/Settings/Column/FileMetaAudio.php:26, classes/Settings/Column/FileMetaVideo.php:29 msgid "Losless" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:26, classes/Settings/Column/FileMetaVideo.php:30 +#: classes/Settings/Column/FileMetaAudio.php:28, classes/Settings/Column/FileMetaVideo.php:30 msgid "Sample Rate" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:38 +#: classes/Settings/Column/FileMetaAudio.php:41 msgid "Kbps" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:44, classes/Settings/Column/FileMetaVideo.php:61 -msgid "channels" +#: classes/Settings/Column/FileMetaAudio.php:50 +msgid "channel" msgid_plural "channels" msgstr[0] "" msgstr[1] "" -#: classes/Settings/Column/FileMetaAudio.php:62, classes/Settings/Column/FileMetaVideo.php:55 +#: classes/Settings/Column/FileMetaAudio.php:72, classes/Settings/Column/FileMetaVideo.php:55 msgid "sec" msgstr "" -#: classes/Settings/Column/FileMetaAudio.php:68, classes/Settings/Column/FileMetaVideo.php:67 +#: classes/Settings/Column/FileMetaAudio.php:78, classes/Settings/Column/FileMetaVideo.php:67 msgid "Hz" msgstr "" @@ -1696,6 +1724,12 @@ msgstr "" msgid "px" msgstr "" +#: classes/Settings/Column/FileMetaVideo.php:61 +msgid "channels" +msgid_plural "channels" +msgstr[0] "" +msgstr[1] "" + #: classes/Settings/Column/Image.php:42 msgid "Width in pixels" msgstr "" @@ -1732,10 +1766,6 @@ msgstr "" msgid "Custom Size" msgstr "" -#: classes/Settings/Column/Label.php:31 -msgid "Label" -msgstr "" - #: classes/Settings/Column/Label.php:32 msgid "This is the name which will appear as the column header." msgstr "" @@ -1764,7 +1794,7 @@ msgstr "" msgid "Public" msgstr "" -#: classes/Settings/Column/Meta.php:131 +#: classes/Settings/Column/Meta.php:131, classes/Helper/Select/Generic/GroupFormatter/VisibilityType.php:26 msgid "Hidden" msgstr "" @@ -1772,11 +1802,11 @@ msgstr "" msgid "Site Options" msgstr "" -#: classes/Settings/Column/Meta.php:138, classes/Helper/Select/Group/CustomField/MultiSite.php:28 +#: classes/Settings/Column/Meta.php:138, classes/Helper/Select/Generic/GroupFormatter/BlogSite.php:35 msgid "Network Site:" msgstr "" -#: classes/Settings/Column/Meta.php:142, classes/Helper/Select/Group/CustomField/MultiSite.php:31 +#: classes/Settings/Column/Meta.php:142, classes/Helper/Select/Generic/GroupFormatter/BlogSite.php:40 msgid "current" msgstr "" @@ -1840,11 +1870,11 @@ msgstr "" msgid "Part of the file path to display" msgstr "" -#: classes/Settings/Column/Post.php:73 +#: classes/Settings/Column/Post.php:76 msgid "No author" msgstr "" -#: classes/Settings/Column/Post.php:83 +#: classes/Settings/Column/Post.php:86 msgid "No title" msgstr "" @@ -1860,20 +1890,20 @@ msgstr "" msgid "Standard" msgstr "" -#: classes/Settings/Column/PostLink.php:71 +#: classes/Settings/Column/PostLink.php:76 msgid "Edit Post Author" msgstr "" -#: classes/Settings/Column/PostLink.php:72 +#: classes/Settings/Column/PostLink.php:77 msgid "View Public Post Author Page" msgstr "" -#: classes/Settings/Column/PostLink.php:79 +#: classes/Settings/Column/PostLink.php:84 msgctxt "post" msgid "Edit %s Author" msgstr "" -#: classes/Settings/Column/PostLink.php:80 +#: classes/Settings/Column/PostLink.php:85 msgctxt "post" msgid "View Public %s Author Page" msgstr "" @@ -1954,7 +1984,7 @@ msgstr "" msgid "WordPress Time Format" msgstr "" -#: classes/Settings/Column/Type.php:38 +#: classes/Settings/Column/Type.php:42 msgid "Choose a column type." msgstr "" @@ -2274,7 +2304,7 @@ msgstr "" msgid "Show %s button on table screen." msgstr "" -#: classes/ThirdParty/MediaLibraryAssistant/ListScreen/MediaLibrary.php:23 +#: classes/ThirdParty/MediaLibraryAssistant/ListScreen/MediaLibrary.php:26 msgid "Assistant" msgstr "" diff --git a/readme.txt b/readme.txt index a47fe1d48..ce3aac33b 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, Requires at least: 4.7.1 Tested up to: 6.3.1 Requires PHP: 7.2 -Stable tag: 4.6.9 +Stable tag: 4.7 Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface. @@ -209,6 +209,14 @@ You can find a list of the available actions and filters (and examples on how to == Changelog == += 4.7 = +Release Date: December 6th, 2023 + +* [Improved] It is now possible to choose how dates are stored in the Custom Field column +* [Improved] Webp images are not recognized for the custom field column +* [Fixed] Fixed an issue where non-existing terms could cause an error on the column settings page + + = 4.6.9 = Release Date: October 2nd, 2023 @@ -222,7 +230,7 @@ Release Date: September 19th, 2023 = 4.6.7 = Release Date: August 25th, 2023 -* [Fixed] Error when adding the 'Last Modified Author' column +* [Fixed] Error when adding the 'Last Modified Author' column = 4.6.6 = Release Date: August 21st, 2023 diff --git a/settings/translations/global.php b/settings/translations/global.php index f3a141a2c..13d209d0e 100644 --- a/settings/translations/global.php +++ b/settings/translations/global.php @@ -5,4 +5,7 @@ 'ok' => __( 'Ok', 'codepress-admin-columns' ), 'cancel' => __( 'Cancel', 'codepress-admin-columns' ), ], + 'table' => [ + 'filter' => __( 'Filter', 'codepress-admin-columns' ), + ], ]; \ No newline at end of file diff --git a/src/js/admin-page-columns.ts b/src/js/admin-page-columns.ts index 2bd370091..1745c7752 100644 --- a/src/js/admin-page-columns.ts +++ b/src/js/admin-page-columns.ts @@ -14,6 +14,7 @@ import {Column} from "./admin/columns/column"; import {LocalizedAcColumnSettings} from "./types/admin-columns"; declare let AC: LocalizedAcColumnSettings +declare const jQuery: any; let AcServices = initAcServices(); AcServices.registerService('Modals', new Modals()); @@ -35,14 +36,46 @@ document.addEventListener('DOMContentLoaded', () => { }); } + const matchStart = (params: any, data: any) => { + if (jQuery.trim(params.term) === '') { + return data; + } + + if (typeof data.children === 'undefined') { + return null; + } + + let filteredChildren: any[] = []; + + jQuery.each(data.children, (idx: any, child: any) => { + if (child.text.toUpperCase().indexOf(params.term.toUpperCase()) > -1) { + filteredChildren.push(child); + } + }); + + if (filteredChildren.length) { + let d = Object.assign({}, data); + d.children = filteredChildren; + + return d; + } + + return null; + } document.querySelectorAll('#ac_list_screen').forEach(select => { - select.addEventListener('change', () => { + (jQuery(select)).ac_select2({ + theme: 'acs2', + matcher: matchStart, + width: '250px', + dropdownCssClass: '-listkeys', + }).on('select2:select', () => { document.querySelectorAll('.view-link').forEach(link => link.style.display = 'none'); select.closest('form')?.submit(); select.disabled = true; (select.nextElementSibling as HTMLElement).style.display = 'inline-block'; }); + }) document.querySelectorAll('#direct-feedback').forEach(feedbackElement => new Feedback(feedbackElement)); diff --git a/src/js/admin/columns/ajax.ts b/src/js/admin/columns/ajax.ts index 6624cea75..61483c573 100644 --- a/src/js/admin/columns/ajax.ts +++ b/src/js/admin/columns/ajax.ts @@ -3,8 +3,7 @@ import {keyStringPair} from "../../helpers/types"; import AcServices from "../../modules/ac-services"; import {Form} from "./form"; import {ListScreenStorageType, LocalizedAcColumnSettings} from "../../types/admin-columns"; - -const axios = require('axios'); +import axios from "axios"; declare const ajaxurl: string; declare const AC: LocalizedAcColumnSettings; diff --git a/src/js/admin/columns/column-configurator.ts b/src/js/admin/columns/column-configurator.ts index b21696e0e..0db251e96 100644 --- a/src/js/admin/columns/column-configurator.ts +++ b/src/js/admin/columns/column-configurator.ts @@ -18,6 +18,7 @@ import {initCustomFieldSelector} from "./settings/custom-field"; import {initSubSettings} from "./settings/sub-setting-toggle"; import {initMultiSelectFields} from "./settings/multi-select"; import AcServices from "../../modules/ac-services"; +import {initSelectOptions} from "./settings/select-options"; export default class ColumnConfigurator { @@ -43,6 +44,7 @@ export default class ColumnConfigurator { initProSetting(column); initCustomFieldSelector(column); initSubSettings(column); + initSelectOptions(column) }); } diff --git a/src/js/admin/columns/column.ts b/src/js/admin/columns/column.ts index e1cd58936..0ea61d759 100644 --- a/src/js/admin/columns/column.ts +++ b/src/js/admin/columns/column.ts @@ -193,7 +193,7 @@ export class Column { if (response.data.success) { this.reinitColumnFromElement(createElementFromString(response.data.data.trim()).firstChild as HTMLFormElement); this.services.emitEvent(EventConstants.SETTINGS.COLUMN.REFRESHED, this); - if( this.isOpen() ){ + if (this.isOpen()) { this.open(); } } else { diff --git a/src/js/admin/columns/events/label.ts b/src/js/admin/columns/events/label.ts index 21a5cdf26..b1ec0398c 100644 --- a/src/js/admin/columns/events/label.ts +++ b/src/js/admin/columns/events/label.ts @@ -6,8 +6,9 @@ export const initLabel = (column: Column) => { select.addEventListener('change', () => { let labelSetting = column.getElement().querySelector('input.ac-setting-input_label'); let option = select.selectedOptions.length > 0 ? select.selectedOptions[0] : null; + let isCustom = (labelSetting !== null && labelSetting.value !== labelSetting.getAttribute('placeholder')); - if (labelSetting && option) { + if (labelSetting && option && !isCustom) { labelSetting.value = option.innerHTML; labelSetting.dispatchEvent(new Event('change')); } diff --git a/src/js/admin/columns/form.ts b/src/js/admin/columns/form.ts index 68c862a6f..9066da077 100644 --- a/src/js/admin/columns/form.ts +++ b/src/js/admin/columns/form.ts @@ -169,7 +169,7 @@ export class Form { } }).catch(() => { - this.showMessage(AC.i18n.error.save_settings); + this.showMessage(AC.i18n.errors.save_settings); }).finally(() => { this.services.emitEvent(EventConstants.SETTINGS.FORM.SAVED, this); }); diff --git a/src/js/admin/columns/helper/translation.ts b/src/js/admin/columns/helper/translation.ts new file mode 100644 index 000000000..fe1b8ca39 --- /dev/null +++ b/src/js/admin/columns/helper/translation.ts @@ -0,0 +1,7 @@ +import {LocalizedAcColumnSettings, LocalizedAcColumnSettingsI18n} from "../../../types/admin-columns"; + +declare const AC: LocalizedAcColumnSettings; + +export const getSettingsTranslations = (): LocalizedAcColumnSettingsI18n => { + return AC.i18n; +} \ No newline at end of file diff --git a/src/js/admin/columns/listscreen-initialize.ts b/src/js/admin/columns/listscreen-initialize.ts index 752a6a0a5..198fdf260 100644 --- a/src/js/admin/columns/listscreen-initialize.ts +++ b/src/js/admin/columns/listscreen-initialize.ts @@ -2,7 +2,7 @@ import Nanobus from "nanobus"; import {AxiosPromise, AxiosResponse} from "axios"; import {LocalizedAcColumnSettings, UninitializedListScreen, UninitializedListScreens} from "../../types/admin-columns"; -const axios = require('axios'); +import axios from "axios"; declare const AC: LocalizedAcColumnSettings diff --git a/src/js/admin/columns/settings/component/SelectOptions.svelte b/src/js/admin/columns/settings/component/SelectOptions.svelte new file mode 100644 index 000000000..ae4dcb862 --- /dev/null +++ b/src/js/admin/columns/settings/component/SelectOptions.svelte @@ -0,0 +1,161 @@ + + +
+ {#each activeOptions as option, index(option.id)} +
+
+ +
+
+ +
+
+ +
+
+ + +
+
+ {/each} +
+ + \ No newline at end of file diff --git a/src/js/admin/columns/settings/custom-field.ts b/src/js/admin/columns/settings/custom-field.ts index c2e7456d0..38e8f6a4c 100644 --- a/src/js/admin/columns/settings/custom-field.ts +++ b/src/js/admin/columns/settings/custom-field.ts @@ -5,7 +5,7 @@ import $ from 'jquery'; import {AxiosPromise, AxiosResponse} from "axios"; import {LocalizedAcColumnSettings} from "../../../types/admin-columns"; -const axios = require('axios'); +import axios from "axios"; declare const AC: LocalizedAcColumnSettings; declare const ajaxurl: string; @@ -27,7 +27,7 @@ class CustomField { constructor(column: Column, setting: HTMLElement) { this.column = column; this.setting = setting; - this.select = setting.querySelector('.custom_field')!; + this.select = setting.querySelector('.custom_field')!; this.bindEvents(); } diff --git a/src/js/admin/columns/settings/date.ts b/src/js/admin/columns/settings/date.ts index d7c6b6c14..c8bae9896 100644 --- a/src/js/admin/columns/settings/date.ts +++ b/src/js/admin/columns/settings/date.ts @@ -1,7 +1,7 @@ import {Column} from "../column"; import {AxiosResponse} from "axios"; -const axios = require('axios'); +import axios from "axios"; declare const ajaxurl: string; diff --git a/src/js/admin/columns/settings/number-format.ts b/src/js/admin/columns/settings/number-format.ts index 47c89c669..359ac4a0e 100644 --- a/src/js/admin/columns/settings/number-format.ts +++ b/src/js/admin/columns/settings/number-format.ts @@ -1,7 +1,7 @@ import {Column} from "../column"; import {AxiosResponse} from "axios"; -const axios = require('axios'); +import axios from "axios"; declare const ajaxurl: string; diff --git a/src/js/admin/columns/settings/select-options.ts b/src/js/admin/columns/settings/select-options.ts new file mode 100644 index 000000000..80d72f61f --- /dev/null +++ b/src/js/admin/columns/settings/select-options.ts @@ -0,0 +1,33 @@ +import {Column} from "../column"; +import SelectOptions from "./component/SelectOptions.svelte"; + + +export const initSelectOptions = (column: Column) => { + column.getElement().querySelectorAll('[data-setting="select_options"]').forEach(setting => + new SelectOption(column, setting, setting.querySelector('input[name="select_options"]')!) + ); +} + +class SelectOption { + + private component: SelectOptions | null; + + constructor(private column: Column, private setting: HTMLElement, private input: HTMLInputElement) { + this.column = column; + this.setting = setting; + + input.type = 'hidden'; + + const componentContainer = setting.querySelector('[data-component="ac-select-options"]'); + this.component = componentContainer + ? new SelectOptions({ + target: componentContainer, + props: { + options: this.input.value ? JSON.parse(this.input.value) : [], + input: this.input + } + }) + : null; + } + +} \ No newline at end of file diff --git a/src/js/admin/columns/settings/type.ts b/src/js/admin/columns/settings/type.ts index dd438a706..d9f1a156d 100644 --- a/src/js/admin/columns/settings/type.ts +++ b/src/js/admin/columns/settings/type.ts @@ -26,6 +26,8 @@ class TypeSelector { const column = this.column; if (select) { + + select.removeAttribute('id'); select.removeAttribute('data-select2-id'); this.setting.querySelectorAll('.select2').forEach(el => { @@ -46,7 +48,11 @@ class TypeSelector { text += `PRO`; } - return initAcServices().filters.applyFilters('column_type_templates', text, {setting: setting, column: column, result: result}); + return initAcServices().filters.applyFilters('column_type_templates', text, { + setting: setting, + column: column, + result: result + }); }, matcher: excludeGroupsMather }); diff --git a/src/js/components/ConfirmationModal.svelte b/src/js/components/ConfirmationModal.svelte index e7e7a60fc..b19ae71cc 100644 --- a/src/js/components/ConfirmationModal.svelte +++ b/src/js/components/ConfirmationModal.svelte @@ -42,7 +42,7 @@
- {message} + {@html message}