Duplicate Post - Version 1.1.9

Version Description

  • Plugin translation-ready
  • Updated styles
  • Added performance checks for individual servers
  • Added logs for last 50 copy processes
  • Added new notices
Download this release

Release Info

Developer iclyde
Plugin Icon wp plugin Duplicate Post
Version 1.1.9
Comparing to
See all releases

Code changes from version 1.1.8 to 1.1.9

assets/css/cdp.min.css CHANGED
@@ -1 +1 @@
1
- [contenteditable]{-webkit-user-select: text;user-select: text}.cdp-preloader{width: 90%;height: 4px;background: linear-gradient(to right,#429388,#429388);background-color: #ccc;position: absolute;margin-top: 3px;padding-top: 2px;top: 60px;left: 0;right: 0;margin: auto;border-radius: 4px;background-size: 20%;background-repeat: repeat-y;background-position: -25% 0;animation: cdpscroll 1.2s ease-in-out infinite}@keyframes cdpscroll{50%{background-size: 80%}100%{background-position: 125% 0}}.cdp-content *{outline: 0;font-weight: 300}.cdp-preloader-c{padding: 30px!important}.cdp-container,.cdp-preloader-c{width: calc(100% - 40px);padding: 0 20px;max-width: 1286px;margin: 0 auto;-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none}.cdp-f20{font-size: 20px;padding-bottom: 10px}.cdp-box{border-radius: 3px;margin-top: 23px}.cdp-cf::after{content: '';clear: both;display: block}.cdp-bg-green{background: #e1efd8}.cdp-bg-green-title{background: #00b050;border-bottom: 1px solid #31538f;color: white}.cdp-nm{margin: 0!important}.cdp-center{text-align: center}.cdp-left{float: left}.cdp-right{float: right}.cdp-text-left{text-align: left}.cdp-text-right{text-align: right}.cdp-inline{display: inline-block}.cdp-showcase-3{width: calc(100% / 3 - 37px - 32px);margin-right: 37px}.cdp-showcase-3:first-child{margin-left: 67px}.cdp-showcase-3:last-child{margin-right: 0}.cfg-img-sc-3{width: 100%;object-fit: cover;object-position: center}.cfg-img-sc-3-special{width: 93%!important;object-fit: cover;object-position: center}.cdp-font-heading{font-size: 24px;line-height: 1;padding-top: 50px;padding-left: 67px;padding-bottom: 66px}.cdp-font-title{color: black;padding-bottom: 25px}.cdp-font-footer{font-size: 18px;color: black;padding-top: calc(42px + 20px);padding-bottom: 26px}.cdp-ff-i{font-weight: 400;font-style: italic}.cdp-ff-b1{font-weight: 200}.cdp-ff-b2{font-weight: 400}.cdp-ff-b3{font-weight: 500}.cdp-ff-b4{font-weight: 600}.cdp-ff-b5{font-weight: 700}.cdp-ff-b6{font-weight: 800}.cdp-welcome-title{padding-top: 35px;padding-bottom: 10px}.cdp-welcome-title-after{padding: 0;margin: 0;padding-top: 40px;line-height: 53px}.cdp-welcome-title-after h1{padding: 0;margin: 0;line-height: normal}.cdp-intro{font-family: 'Montserrat',sans-serif!important;margin-bottom: 70px}.cdp-intro-options{padding-bottom: 50px}.cdp-intro-button{background: #50b6a8;border: 0;color: white;font-size: 24px;padding: 17px 117px;border-radius: 30px;transition: .3s;cursor: pointer}.cdp-button{background: #50b6a8!important;border: 0!important;color: white!important;font-size: 23px;padding: 12px 66px;font-weight: 600;border-radius: 29px;height: 58px;width: 317px;transition: .3s!important;cursor: pointer!important}.cdp-intro-button:hover,.cdp-button:hover{background: #48a598!important}.cdp-intro-button:active,.cdp-button:active{background: #429388!important;transition: 0s!important}.cdp-pointer{cursor: pointer}.cdp-manager-btns{line-height: 2}.cdp-arrow{border: solid #50b6a8;display: inline-block;border-width: 0 4px 4px 0;padding: 5px;border-radius: 2px;transition: all .3s;display: block}.cdp-arrow-down{transform: rotate(135deg);-webkit-transform: rotate(135deg);margin-top: 2px}.cdp-arrow-right{transform: rotate(-135deg);-webkit-transform: rotate(-135deg);margin-right: 3px}.cdp-arrow-left{transform: rotate(45deg);-webkit-transform: rotate(45deg)}.cdp-collapsibles{padding: 20px 0}.cdp-collapsible{margin-bottom: 15px}.cdp-collapsible-title{border: 0;font-size: 21px;background-color: #fff;padding: 24px 44px;color: black;transition: all .2s;cursor: pointer;border-radius: 3px}.cdp-collapsible-title:hover{background-color: #48a598;color: white}.cdp-collapsible-title:hover *{border-color: white}.cdp-collapsible-title:active{transition: all 0s;background-color: #429388}.cdpp-more-filters-wrapper{overflow: hidden}.cdp-collapsible-content{transition: height .3s ease-out,max-height .5s ease-out,border-bottom .5s .3s,padding .3s;border-bottom: 0!important;overflow: hidden;padding: 0 10px;border-top: 0;max-height: 0;background: #fff}.cdp-collapsible-content.cdp-active{padding: 10px;max-height: unset;border-bottom: 0!important}.cdp-collapsible-title.cdp-active *{border-color: white}.cdp-collapsible-title.cdp-active{background: #50b6a8;color: white}.cdp-collapsible:last-child{margin-bottom: 0}.cdp-supports{padding: 10px 0}.cdp-support-box{border: 1px solid #31538f;background: #ddeaf6;padding: 10px;color: black;min-height: 84px}.cdp-s-i-a{line-height: 53px}.cdp-third{width: calc(100% / 3 - 29px);margin-right: 10px}.cdp-third:not(.cdp-ignore):last-child{margin-right: 0}.cdp-fourth{width: calc(100% / 4 - 30px);margin-right: 10px}.cdp-fourth:not(.cdp-ignore):last-child{margin-right: 0}.cdp-projects{background: #fff;border: 1px solid #44546a;color: black;padding: 25px 30px;padding-top: 5px;margin-top: 10px}.cdp-project-box{padding: 10px;border: 1px solid #44546a;min-height: 261.78125px}.cdp-support-title{position: absolute;top: 50%;transform: translateY(-50%);width: calc(100% - 50px - 20px);padding: 0px 10px;margin-left: 50px}.cdp-support-header{position: relative}.cdp-support-img{height: 50px;width: 50px;object-position: center;object-fit: cover}.cdp-support-img-rd{height: 50px;width: 50px;object-position: center;object-fit: cover}.cdp-support-desc{padding: 5px 0}.cdp-tool{position: relative}.cdp-animated{transition: .3s all}.cdp-half-opacity{opacity: .5}span.cdp-green,.cdp-green{color: #50b6a8;transition: color .3s}.cdp-green.cdp-hover:hover{color: #48a598}.cdp-green.cdp-hover:active{transition: all 0s;color: #429388}.cdp-table{width: 100%;border-spacing: 0px;color: black}.cdp-table tr td:nth-child(1),.cdp-table tr th:nth-child(1),.cdp-table tr th:nth-child(2),.cdp-table tr th:nth-child(3),.cdp-table tr td:nth-child(2),.cdp-table tr td:nth-child(3){padding: 3px 20px}.cdp-table tr td:nth-child(1),.cdp-table tr th:nth-child(1){min-width: 192px;text-align: left;padding-left: 44px!important}.cdp-table tr td:nth-child(3),.cdp-table tr th:nth-child(3){padding-right: 44px!important}.cdp-table tr th:nth-child(2),.cdp-table tr th:nth-child(3),.cdp-table tr td:nth-child(2),.cdp-table tr td:nth-child(3){width: 50%;text-align: left}.cdp-table tr th:nth-child(2),.cdp-table tr td:nth-child(2){width: 50%;text-align: left;padding-right:}.cdp-table tr:nth-child(1) td{padding-top: 35px!important}.cdp-table tr td{padding: 16px 20px!important;line-height: 24px}.cdp-table .cdp-thead{background: #f7f7f7}.cdp-table tr th{border-bottom: 1px solid #e1e1e1;font-weight: 400;height: 33px;padding: 5px 10px;height: 58px}.cdp-padding{padding: 15px 20px}.cdp-nbp{padding-bottom: 0!important}.cdp-ntp{padding-top: 0!important}.cdp-padding-10{padding: 10px}.cdp-padding-10-h{padding-top: 10px;padding-bottom: 10px}.cdp-np{padding: 0!important}.cdp-nlh{line-height: inherit!important}.cdp-green-bg{background: #f7f7f7}.cdp-shadow{-moz-box-shadow: 3px 3px 15px 10px #eee!important;-webkit-box-shadow: 3px 3px 15px 10px #eee!important;box-shadow: 3px 3px 15px 10px #eee!important}.cdp-white-bg{background: #fff}.cdp-names-input{width: calc(50% - 97.5px)}.cdp-names-input input{width: 100%}.cdp-names-divider{font-size: 16px;line-height: 49px;padding: 0 10px;width: 175px;color: black;margin-top: 14px}.cdp-name-box{background-color: #50b6a8;width: 165px;padding: 5px;font-weight: 200;border-radius: 1px;text-align: center;color: white;font-size: 18px;cursor: pointer;transition: background-color .3s;height: 29px;line-height: 29px;border-radius: 3px}.cdp-name-box:hover{background-color: #48a598;cursor: pointer}.cdp-name-box-small{background: #50b6a8;font-size: 18px;font-weight: 200;border-radius: 1px;text-align: left;display: inline-block;position: relative;cursor: pointer;pointer-events: none;color: white;padding: 0px 19px!important;padding-right: 63px!important;margin-left: 1px;margin-right: 1px;height: 38px;border-radius: 3px}.cdp-name-box-small[data-cdp-val="0"]{width: 68px}.cdp-name-box-small[data-cdp-val="1"]{width: 108px}.cdp-name-box-small[data-cdp-val="2"]{width: 109px}.cdp-name-box-small::after{content: '\00d7';position: absolute;right: 0px;top: 0px;height: 100%;width: 22px;font-size: 28px;line-height: 38px;padding-right: 3px;padding-left: 9px;pointer-events: auto;background: #42a89a;border-top-right-radius: 3px;border-bottom-right-radius: 3px}.cdp-names-text-info{padding-left: 30px;line-height: 40px}.cdp-magic-input{text-align: left;line-height: 39px;font-size: 17px;box-shadow: 0 0 0 transparent;border-radius: 1px;background-color: #fff;color: #32373c;overflow-x: hidden;word-wrap: unset;white-space: nowrap;resize: none;padding: 6px;min-height: 39px;width: 100%;width: calc(100% - 12px);margin: 0 auto;margin-top: 14px;margin-bottom: 14px;border-radius: 3px}.cdp-magic-input br{display: none!important}.cdp-magic-input *:not(.cdp-drag){display: inline;white-space: nowrap}.cdp-magic-input i{font-style: normal}.cdp-magic-input:focus{border-color: #50b6a8;box-shadow: 0 0 0 1px #50b6a8;outline: 2px solid transparent}.cdp-novis{visibility: hidden}.tb-close-icon,.tb-close-icon:focus{outline: 0!important;outline-style: none}.cdp-gray-button{background: #f2f2f2;border: 1px solid #31538f;color: #000;padding: 5px 40px}.cdp-gray{color: #666}.cdp-h2{font-size: 16px;margin: 10px 0}.cdp-white{color: #fff!important}.cdp-error-span-tooltip{display: none;color: #991111;font-size: 10px}.tooltipster-box{border-color: #888!important;-webkit-box-shadow: 0px 0px 10px 3px rgba(0,0,0,.2);-moz-box-shadow: 0px 0px 10px 3px rgba(0,0,0,.2);box-shadow: 0px 0px 10px 3px rgba(0,0,0,.2)}.cdp-spinner{position: absolute;left: calc(50% - 40px);top: calc(50% - 120px);height: 60px;width: 60px;margin: 0px auto;-webkit-animation: cdp-rotation .9s infinite linear;-moz-animation: cdp-rotation .9s infinite linear;-o-animation: cdp-rotation .9s infinite linear;animation: cdp-rotation .9s infinite linear;border-left: 6px solid rgba(55,190,190,0.48);border-right: 6px solid rgba(55,190,190,0.48);border-bottom: 6px solid rgba(74,255,255,0.77);border-top: 6px solid rgba(74,255,255,0.77);border-radius: 100%;z-index: 200000}@-webkit-keyframes cdp-rotation{from {-webkit-transform: rotate(0deg)} to {-webkit-transform: rotate(359deg)}}@-moz-keyframes cdp-rotation{from {-moz-transform: rotate(0deg)} to {-moz-transform: rotate(359deg)}}@-o-keyframes cdp-rotation{from {-o-transform: rotate(0deg)} to {-o-transform: rotate(359deg)}}@keyframes cdp-rotation{from {transform: rotate(0deg)} to {transform: rotate(359deg)}}.cdp-blue-circle{background: #50b6a8;color: white;font-weight: 400;font-size: 14px;border-radius: 50%;width: 27px;height: 27px;text-align: center;margin-bottom: 20px;margin-right: 7px;line-height: 27px}.cdp-low-margin-bot{margin-bottom: 5px}.cdp-margin-left{margin-left: 5px}.cdp-margin-left-25{margin-left: 25px}.cdp-red-bg{background: #bf0000}.cdp-button.cdp-red-bg:hover{background: #ae0000}.cdp-button.cdp-red-bg:active{background: #9d0000}.cdp-d-header{font-size: 16px;font-weight: 600;margin-top: 13px;margin-bottom: 0px}.cdp-d-header-2{font-size: 14px;margin-top: 33px;margin-bottom: 18px}.cdp-delete-table{border-spacing: 0;padding-bottom: 20px!important}.cdp-delete-table tbody td{}.cdp-delete-table .cdp-h-tbe{padding-top: 15px;min-height: 15px;background: rgb(245,245,245)}.cdp-delete-table tbody td,.cdp-delete-table thead th{padding-bottom: 20px!important;padding-top: 20px;padding-left: 20px!important;padding-right: 10px;font-size: 19px!important;text-align: left!important}.cdp-delete-table thead th{padding: 20px!important;border-bottom: 2px solid rgb(223,223,223)!important;font-weight: 600}.cdp-delete-table tbody td{background: rgb(245,245,245)!important}.cdp-delete-table tbody td:nth-child(1),.cdp-delete-table thead th:nth-child(1){padding-left: 40px!important;width: 32px}.cdp-delete-table tbody td:nth-child(2),.cdp-delete-table thead th:nth-child(2){text-align: left!important}.cdp-delete-table tbody td:nth-child(3),.cdp-delete-table thead th:nth-child(3){text-align: left!important}.cdp-delete-table tbody td:nth-child(4),.cdp-delete-table thead th:nth-child(4){min-width: 110px;width: 110px}.cdp-delete-table tbody td:nth-child(5),.cdp-delete-table thead th:nth-child(5){min-width: 165px;width: 165px}.cdp-delete-table tbody td:nth-child(6),.cdp-delete-table thead th:nth-child(6){min-width: 104px;width: 104px;padding-right: 40px!important}.cdp-delete-table tbody{background: rgb(245,245. 245)!important}.cdp-delete-table tbody td:nth-child(2),.cdp-delete-table thead th:nth-child(2){padding-left: 7px!important}.cdp-delete-table tbody td:nth-child(1),.cdp-delete-table thead th:nth-child(1){padding-right: 0px!important}.cdp-table-cont{overflow-x: auto;max-width: 100%;width: 100%;overflow-y: hidden!important}.cdp-table-cont table{width: 100%}.cdp-multiple-tooltip-count{opacity: 0}.cdp-hide{display: none}.cdp-no-style{list-style: none}.pagination-link,.pagination-next,.pagination-previous{border-color:#dbdbdb;color:#363636}.pagination-link:hover,.pagination-next:hover,.pagination-previous:hover{border-color:#b5b5b5;color:#363636}.pagination-link:focus,.pagination-next:focus,.pagination-previous:focus{border-color:#3273dc}.pagination-link:active,.pagination-next:active,.pagination-previous:active{box-shadow:inset 0 1px 2px rgba(10,10,10,.2)}.pagination-link[disabled],.pagination-next[disabled],.pagination-previous[disabled]{background-color:#dbdbdb;border-color:#dbdbdb;box-shadow:none;color:#7a7a7a;opacity:.5}.pagination-next,.pagination-previous{white-space:nowrap}.pagination-link.is-current{background-color:#3273dc;border-color:#3273dc;color:#fff}.pagination-ellipsis{color:#b5b5b5;pointer-events:none}.pagination-list{flex-wrap:wrap}.cdp-pagination .page-btn.active a{transition: background-color .3s,color .3s;color: white}.cdp-pagination .page-btn{transition: background-color .3s,color .3s}.cdp-pagination .page-btn.active{transition: background-color .3s,color .3s;border-color: #50b6a8;background: #50b6a8;color: white}#cdp-d-table-tbody tr,#cdp-d-table-tbody td{word-break: break-word}#cdp-d-table-tbody tr.cdp-del td:not(td:nth-child(1)),#cdp-d-table-tbody tr.cdp-del td:not(td:nth-child(1)) a{color: #c50000!important;text-decoration: none!important;text-decoration: line-through!important}.cdp-del td,.cdp-del a{text-decoration: line-through!important;color: red!important}.cdp-tab-list{width: 100%;margin: 0 auto;text-align: center;margin-top: 10px}.cdp-tab-element:not(:last-child){border-right: 0!important}.cdp-tab-element{width: calc(100% / 3 - 16px);color: black;background: #f6f6f6;padding: 8px;text-align: center;border-bottom: 4px solid #50b6a8;cursor: pointer;transition: all .3s;height: 25px;line-height: 25px;font-size: 20px}.cdp-tab-element span{font-weight: 500}.cdp-tab-element:hover:not(.cdp-tab-active):not([data-disabled="true"]){background: #eee}.cdp-tab-element[data-disabled="true"]{cursor: not-allowed}.cdp-tab-element:first-child{border-top-left-radius: 3px}.cdp-tab-element:last-child{border-top-right-radius: 3px}.cdp-tab-active{background: #50b6a8;color: white}.cdp-content *:not(.cdp-normal-font),.cdp-tooltip-content *:not(.cdp-normal-font){font-family: 'Montserrat',sans-serif!important}.cdp-content b{font-weight: 600}.cdp-content a{color: #50b6a8}.cdp-content a:hover{color: #48a598}.cdp-content a:active{color: #429388}.cdp-profile-bar{margin-bottom: 24px;margin-top: 16px}.cdp-select-styled,.cdp-select{font-size: 14px;color: #666;border-color: rgb(198,201,206);background: #fff}.cdp-select-padding{padding: 0 45px 0 20px!important;height: 48px;line-height: 48px!important;margin: 0 13px}.cdp-content [type="checkbox"],.cdp-other-inputs[type="checkbox"],.cdp-checkbox,input[type="checkbox"].cdp-data-set{color: #555;clear: none;cursor: pointer;display: inline-block;margin: -.25rem .25rem 0 0;outline: 0;padding: 0;text-align: center;vertical-align: middle;-webkit-appearance: none;box-shadow: inset 0 1px 2px rgba(0,0,0,.1);border: 1px solid #50b6a8;height: 29px;width: 29px;margin-right: 5px;margin-top: -2px;background: #fff;transition: all .3s;border-radius: 6px;margin-right: 12px}.cdp-content [type="checkbox"]:checked,.cdp-other-inputs[type="checkbox"]:checked,.cdp-checkbox:checked,input[type="checkbox"].cdp-data-set:checked{background: #50b6a8}.cdp-content [type="checkbox"]:checked::before,.cdp-other-inputs[type="checkbox"]:checked::before,.cdp-checkbox:checked::before,input[type="checkbox"].cdp-data-set:checked::before{content: '';border-top: 2px solid white;border-left: 2px solid white;height: 13px!important;width: 7px!important;margin: -.1875rem 0 0 -.25rem;margin-top: 4px;margin-left: 9px;transform: rotate(220deg);float: left;display: inline-block;vertical-align: middle}.cdp-table tbody td{color: gray}.cdp-table tbody td:nth-child(1){font-weight: 300}.cdp-table tbody td:nth-child(3){color: black;font-weight: 500}tr.cdp-selected-tr-opt td:nth-child(2){color: black!important;font-weight: 500!important}tr.cdp-selected-tr-opt td:nth-child(2) span{font-weight: 500!important}tr.cdp-selected-tr-opt td:nth-child(3){color: gray!important;font-weight: 300!important}tr.cdp-selected-tr-opt td:nth-child(1) span{font-weight: 500!important;color: black!important}.cdp-d-search{height: 110px;width: 644px;font-size: 30px}.cdp-d-searchbox-c{line-height: 30px!important;margin-left: 3px;padding-left: 15px!important;position: relative!important;background: url('../imgs/search.png');background-position: calc(100% - 13px) center;background-repeat: no-repeat;width: 193px;height: 42px;padding-right: 28px;background-size: 16px;font-size: 18px!important;border-radius: 3px!important;border-color: rgb(198,201,206)!important}.cdp-d-searchbox-c:focus,.cdp-content input:focus{border-color: #50b6a8!important;box-shadow: none!important;outline: 0!important}.cdp-padding-23{padding: 23px}.cdp-padding-23-h{padding-top: 23px;padding-bottom: 23px}.cdp-padding-15-h{padding-top: 15px;padding-bottom: 15px}.cdp-pad-lin{padding: 28px 44px}.cdp-curr-cont{padding-left: 3px;text-align: center;width: 90%;margin: 0 auto;margin-top: 7px!important}.cdp-con-cen{margin: 0 auto;text-align: center}.cdp-select-centered{width: 100%!important;max-width: 637px;text-align: center!important;margin: 0 auto;margin-bottom: 5px}.cdp-c-x-a-v{max-width: 661px!important}.cdp-special-cb-p label{margin-right: 60px;display: inline-block;line-height: 44px}.cdp-special-cb-p input[type="checkbox"]{margin-right: 8px!important}.cdp-special-cb-p label:last-child{margin-right: 0px!important}.cdp-special-cb-p h2{margin-bottom: 5px}.cdp-cont-d-box-tabed{background: #f9f9f9}.cdp-radio{border: 1px solid #50b6a8!important;transition: all .3s;margin-right: 15px;width: 25px!important;height: 25px!important}.cdp-radio:checked::before{margin: 0;content: "";border-radius: 50%;width: 13px!important;height: 13px!important;background-color: #1e8cbe;line-height: 1.14285714;margin-top: 5px!important;margin-left: 5px!important}.cdp-radio:checked::before{background-color: #50b6a8!important}.cdp-sm-d{font-size: 12px}.cdp-ff-20{font-size: 20px}.cdp-d-sel-all-con{display: inline-block;width: 305px;max-width: 305px;line-height: 30px}.cdp-d-pagi-cent{display: inline-block;padding-right: 334px;width: calc(100% - 394px - 245px)}.pagination-pages-section{margin: 0;margin-bottom: 25px;width: auto;float: right!important}.pagination-next{margin: 0;float: right!important}.pagination-previous{margin: 0;float: left;margin: 0 1px}.pagination-pages{display: inline-block;text-align: center;margin: 0 1px}#cdp-d-table-pagi{text-align: center}.page-btn{border: 1px solid #aaa;font-size: 18px;background: #fff;top: -0.5px;font-weight: 400;float: left;margin: 0 1px;min-width: 28px!important;text-align: center;height: 28px;line-height: 29px;color: #969696;cursor: not-allowed}.page-btn:not(.active){cursor: pointer!important}.page-btn:not(.active):hover{border: 1px solid #48a598;background: #48a598}.page-btn:not(.active):active{border: 1px solid #429388;background: #429388}.page-btn:not(.active):hover a{color: white!important}.page-btn:not(.active):active a{color: white!important}.page-btn a{color: #555;padding: 3px 10px!important}.cdp-pagi-arrows{width: 28px!important;border: 1px solid #aaa!important;height: 28px!important;font-size: 40px!important;position: relative!important;background: #fff;font-weight: 400!important;line-height: 26px!important;margin-left: 1px}.cdp-pagi-arrows a{position: absolute!important;right: 0!important;left: 0px!important;top: -2px!important;bottom: 0!important;color: #969696;height: 28px!important;width: 28px!important}.cdp-separator-dis{pointer-events: none;float: left;width: 28px;border: 1px solid #b8b8b8!important;height: 28px!important;font-size: 33px;position: relative;background: #fff;top: 0px;font-weight: 400;margin: 0 1px;line-height: 27px;cursor: not-allowed!important}.cdp-separator-dis a{color: #b8b8b8!important;position: absolute;right: 0;left: 2px;top: -2px;bottom: 0;height: 19px;width: 19px}.cdp-pagi-arrows .prev_page{left: 0px!important}.cdp-pagi-arrows .next_page{left: 1px!important}.cdp-width-166{width: 68px!important}.cdp-vtop-pad{vertical-align: top;padding-top: 15px;min-width: 230px;padding-left: 13px}.cdp-d-tp-pad{padding-top: 15px;padding-bottom: 45px}.cdp-even-more-th-info{padding-top: 7px}.cdp-number-field-styled{width: 70px!important;text-align: center;font-family: 'Montserrat',sans-serif;box-shadow: 0 0 0 transparent;padding: 5px 7px;appearance: none!important;-webkit-appearance: none!important;-moz-appearance: textfield!important}.cdp-number-field-styled::-webkit-inner-spin-button{-webkit-appearance: none!important;-moz-appearance: textfield!important}.cdp-number-field-styled::-webkit-outer-spin-button{-webkit-appearance: none!important;-moz-appearance: textfield!important}.cdp-custom-date-picking{border-color: rgb(198,201,206)!important;line-height: 48px!important;border-radius: 3px!important;height: 48px;font-size: 18px;width: 160px;margin-left: 15px}.cdp-color-p-i{}.cdp-p-hh{padding-bottom: 25px;padding-top: 25px}.cdp-p-25-40{padding-top: 25px;padding-bottom: 40px}.cdp-p-40-b{padding-bottom: 40px}.cdp-p-10-b{padding-bottom: 10px}.cdp-p-20-b{padding-bottom: 20px}.cdp-p-25-t{padding-top: 25px}.cdp-p-15-25{padding-top: 15px}.cdp-p-10-h{padding-top: 10px;padding-bottom: 10px}.cdp-p-15-h{padding-top: 15px;padding-bottom: 15px}.cdp-p-20-h{padding-top: 20px;padding-bottom: 20px}.cdp-p-30-h{padding-top: 30px;padding-bottom: 30px}.cdp-max-600{max-width: 637px!important;min-width: 637px!important;margin-left: 49px}.cdp-per-page-select-show{width: 96px!important;height: 42px;font-size: 17px!important;padding-right: 44px!important;padding: 0 45px 0 20px!important;line-height: 42px!important;text-align: left;margin-left: 10px;margin-right: 10px}.cdp-d-pad-sp{padding: 0 40px}.cdp-hr{border: 1px solid #dfdfdf!important;margin-bottom: 20px}.cdp-d-throttling-count{width: 85px!important;height: 42px!important;line-height: 40px!important;color: #32373c;border-color: rgb(198,201,206)!important;font-size: 17px!important}.cdp-date-picked{margin-right: 0px!important}.cdp-option-premium .option[data-value="3"],.cdp-premium-in-select .option[data-value="premium"],.cdp-premium-in-select-m [data-value="2"]{position: relative}.cdp-option-premium .option[data-value="3"]::after,.cdp-premium-in-select .option[data-value="premium"]::after,.cdp-premium-in-select-m [data-value="2"]::after{content: '';display: inline-block;position: absolute;width: 19px;height: 19px;top: calc(50% - 10px);background: url('../imgs/premium.png');display: inline-block;line-height: 19px;background-repeat: no-repeat;background-position: center;background-size: cover;padding: 0;margin-left: 7px;cursor: pointer}.cdp-cont-d-box-tabed{display: none;overflow: hidden}.cdp-tbody-of-settings a{text-decoration: none}.cdp-tbody-of-settings a:hover,.cdp-tbody-of-settings a:hover span{color: #429388!important}.cdp-content ::placeholder{color: #ddd!important;opacity: 1}.cdp-content ::-moz-placeholder{color: #ddd!important;opacity: 1}.cdp-content :-moz-placeholder{color: #ddd!important;opacity: 1}.cdp-content ::-webkit-input-placeholder{color: #ddd!important;opacity: 1}.cdp-content ::-ms-input-placeholder{color: #ddd!important;opacity: 1}.cdp-content :-ms-input-placeholder{color: #ddd!important;opacity: 1}.cdp-backup-alert{background: #fcecec;color: black;border-radius: 1px;text-align: center;line-height: 23px;padding: 38px;font-size: 14px;border-radius: 3px}.cdp-delete-btn{margin-top: 10px;border: 0;border-radius: 7px}.cdp-delete-info b{font-weight: 500}.cdp-final-ask{background: #fbe4d4;line-height: 1.9;margin-top: 10px;margin-bottom: 0px;padding: 1px 5px;cursor: default}.cdp-small-btn{border: 0;border-radius: 2px}.cdp-delete-info{background: #e2edf7;text-align: center;padding: 10px;color: black;margin: 0 auto;font-weight: 300;width: 663px!important;height: 33px!important;line-height: 33px}.cdp-intro-image{width: 100%;border-radius: 6px;transition: all .3s;cursor: zoom-in}.cdp-intro-image:hover{-ms-transform: scale(2);-webkit-transform: scale(2);transform: scale(2)}.cdp-intro-img-1:hover{margin-left: calc(6vw + 5px)}.cdp-intro-img-1{background-image: url('../imgs/intro_1.gif');background-position: 41% 61%;background-size: 120% auto}.cdp-intro-img-2{background-image: url('../imgs/intro_2.gif');background-position: 44% 61%;background-size: 120% auto}.cdp-intro-img-3:hover{margin-left: calc(-6vw - 5px)}.cdp-intro-img-3{background-image: url('../imgs/intro_3.gif');background-position: 45% 15%;background-size: 102% auto}.cdp-no-vis{visibility: hidden}.cdp-togglable-name-b{cursor: pointer}.cdp-tooltip-premium-spc-2{margin-bottom: 0;padding-bottom: 0;max-height: 32px}.label_e50._bottom_ea7{border-top-left-radius: 8px!important;border-top-right-radius: 34px!important;min-width: 300px}.label_e50{position: fixed;z-index: 2147483648;-webkit-backface-visibility: hidden;backface-visibility: hidden;height: 40px;box-shadow: 0 12px 14px 8px rgba(0,0,0,.17);filter: blur(0)}jdiv{-webkit-animation: 0s none;animation: 0s none;-webkit-backface-visibility: visible;backface-visibility: visible;background: none;border: 0;box-shadow: none;box-sizing: content-box;bottom: auto;caption-side: top;clear: none;clip: auto;cursor: auto;display: inline;direction: ltr;flex: none;height: auto;-webkit-hyphens: manual;-ms-hyphens: manual;hyphens: manual;image-rendering: auto;justify-content: flex-start;left: auto;letter-spacing: normal;line-height: normal;margin: 0;max-height: none;max-width: none;min-height: 0;min-width: 0;-o-object-fit: fill;object-fit: fill;opacity: 1;order: 1;orphans: 2;outline: 0 none;overflow: visible;padding: 0;perspective: none;position: static;resize: none;right: auto;text-align: left;text-decoration: none;text-indent: 0;text-overflow: clip;text-shadow: none;text-transform: none;top: auto;transform: none;transition: all 0s ease 0s;unicode-bidi: normal;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;vertical-align: baseline;white-space: normal;width: auto;word-break: normal;word-spacing: normal;word-wrap: normal;z-index: auto;zoom: normal;filter: none!important;font-weight: 400;-webkit-text-size-adjust: inherit;-webkit-font-smoothing: antialiased;-webkit-text-fill-color: currentColor}.hoverl_bc6 {cursor: pointer}.label_e50._bottom_ea7 .text_468._noAd_b4d,.label_e50._left_bba .text_468._noAd_b4d,.label_e50._right_56b .text_468._noAd_b4d{margin: 0 33px 0 16px}.label_e50._bottom_ea7 .text_468,.label_e50._left_bba .text_468,.label_e50._right_56b .text_468{transform: translateZ(0);margin: 0 37px 0 16px;min-width: 160px;visibility: visible}.label_e50 .text_468{font: inherit;text-indent: 0;line-height: 40px;vertical-align: top;white-space: nowrap;-webkit-font-smoothing: antialiased;visibility: visible;-webkit-backface-visibility: hidden;backface-visibility: hidden}.contentTransitionWrap_c73{-webkit-animation-name: fadeIn_d9b;animation-name: fadeIn_d9b;-webkit-animation-duration: .15s;animation-duration: .15s;-webkit-animation-fill-mode: backwards;animation-fill-mode: backwards;-webkit-animation-timing-function: ease;animation-timing-function: ease}.leaf_2cc{position: absolute;width: 32px;height: 33px;z-index: 6;overflow: hidden}.leaf_2cc._bottom_afb,.leaf_2cc._left_7af,.leaf_2cc._right_ff0{right: 0;top: 0;width: 33px;border-radius: 0 24px 0 0!important}.cssLeaf_464 {background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2240%22%20viewBox%3D%220%200%2032%2040%22%3E%0A%20%20%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%23424867%22%20d%3D%22M0%200h9.02L32%2033.196V40H0z%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%2318C139%22%20d%3D%22M9%200c3.581.05%2023%205.426%2023%2033.08v.03C18.922%2030.751%209%2019.311%209%205.554V0z%22%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A);position: absolute;height: 33px;width: 33px;left: 1px}#cdp_jvlabelWrap-fake * {cursor: pointer!important;font-family: Arial!important}#cdp_jvlabelWrap-fake {cursor: pointer!important;opacity: 1;transition: .3s all}#cdp_jvlabelWrap-fake:hover {opacity: .9}
1
+ [contenteditable]{-webkit-user-select: text;user-select: text}.cdp-preloader{width: 90%;height: 4px;background: linear-gradient(to right,#429388,#429388);background-color: #ccc;position: absolute;margin-top: 3px;padding-top: 2px;top: 60px;left: 0;right: 0;margin: auto;border-radius: 4px;background-size: 20%;background-repeat: repeat-y;background-position: -25% 0;animation: cdpscroll 1.2s ease-in-out infinite}@keyframes cdpscroll{50%{background-size: 80%}100%{background-position: 125% 0}}.cdp-content *{outline: 0;font-weight: 300}.cdp-preloader-c{padding: 30px!important}.cdp-container,.cdp-preloader-c{width: calc(100% - 40px);padding: 0 20px;max-width: 1286px;margin: 0 auto;-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none}.cdp-f20{font-size: 20px;padding-bottom: 10px}.cdp-box{border-radius: 3px;margin-top: 23px}.cdp-cf::after{content: '';clear: both;display: block}.cdp-bg-green{background: #e1efd8}.cdp-bg-green-title{background: #00b050;border-bottom: 1px solid #31538f;color: white}.cdp-nm{margin: 0!important}.cdp-center{text-align: center}.cdp-left{float: left}.cdp-right{float: right}.cdp-text-left{text-align: left}.cdp-text-right{text-align: right}.cdp-inline{display: inline-block}.cdp-showcase-3{width: calc(100% / 3 - 37px - 32px);margin-right: 37px}.cdp-showcase-3:first-child{margin-left: 67px}.cdp-showcase-3:last-child{margin-right: 0}.cfg-img-sc-3{width: 100%;object-fit: cover;object-position: center}.cfg-img-sc-3-special{width: 93%!important;object-fit: cover;object-position: center}.cdp-font-heading{font-size: 24px;line-height: 1;padding-top: 50px;padding-left: 67px;padding-bottom: 66px}.cdp-font-title{color: black;padding-bottom: 25px}.cdp-font-footer{font-size: 18px;color: black;padding-top: calc(42px + 20px);padding-bottom: 26px}.cdp-ff-i{font-weight: 400;font-style: italic}.cdp-ff-b1{font-weight: 200}.cdp-ff-b2{font-weight: 400}.cdp-ff-b3{font-weight: 500}.cdp-ff-b4{font-weight: 600}.cdp-ff-b5{font-weight: 700}.cdp-ff-b6{font-weight: 800}.cdp-welcome-title{padding-top: 35px;padding-bottom: 10px}.cdp-welcome-title-after{padding: 0;margin: 0;padding-top: 40px;line-height: 53px}.cdp-welcome-title-after h1{padding: 0;margin: 0;line-height: normal}.cdp-intro{font-family: 'Montserrat',sans-serif!important;margin-bottom: 70px}.cdp-intro-options{padding-bottom: 50px}.cdp-intro-button{background: #50b6a8;border: 0;color: white;font-size: 24px;padding: 17px 117px;border-radius: 30px;transition: .3s;cursor: pointer}.cdp-button{background: #50b6a8!important;border: 0!important;color: white!important;font-size: 23px;padding: 12px 66px;font-weight: 600;border-radius: 29px;height: 58px;width: 317px;transition: .3s!important;cursor: pointer!important}.cdp-intro-button:hover,.cdp-button:hover{background: #48a598!important}.cdp-intro-button:active,.cdp-button:active{background: #429388!important;transition: 0s!important}.cdp-pointer{cursor: pointer}.cdp-manager-btns{line-height: 2}.cdp-arrow{border: solid #50b6a8;display: inline-block;border-width: 0 4px 4px 0;padding: 5px;border-radius: 2px;transition: all .3s;display: block}.cdp-arrow-down{transform: rotate(135deg);-webkit-transform: rotate(135deg);margin-top: 2px}.cdp-arrow-right{transform: rotate(-135deg);-webkit-transform: rotate(-135deg);margin-right: 3px}.cdp-arrow-left{transform: rotate(45deg);-webkit-transform: rotate(45deg)}.cdp-collapsibles{padding: 20px 0}.cdp-collapsible{margin-bottom: 15px}.cdp-collapsible-title{border: 0;font-size: 21px;background-color: #fff;padding: 24px 44px;color: black;transition: all .2s;cursor: pointer;border-radius: 3px}.cdp-collapsible-title:hover{background-color: #48a598;color: white}.cdp-collapsible-title:hover *{border-color: white}.cdp-collapsible-title:active{transition: all 0s;background-color: #429388}.cdpp-more-filters-wrapper{overflow: hidden}.cdp-collapsible-content{transition: height .3s ease-out,max-height .5s ease-out,border-bottom .5s .3s,padding .3s;border-bottom: 0!important;overflow: hidden;padding: 0 10px;border-top: 0;max-height: 0;background: #fff}.cdp-collapsible-content.cdp-active{padding: 10px;max-height: unset;border-bottom: 0!important}.cdp-collapsible-title.cdp-active *{border-color: white}.cdp-collapsible-title.cdp-active{background: #50b6a8;color: white}.cdp-collapsible:last-child{margin-bottom: 0}.cdp-supports{padding: 10px 0}.cdp-support-box{border: 1px solid #31538f;background: #ddeaf6;padding: 10px;color: black;min-height: 84px}.cdp-s-i-a{line-height: 53px}.cdp-third{width: calc(100% / 3 - 29px);margin-right: 10px}.cdp-third:not(.cdp-ignore):last-child{margin-right: 0}.cdp-fourth{width: calc(100% / 4 - 30px);margin-right: 10px}.cdp-fourth:not(.cdp-ignore):last-child{margin-right: 0}.cdp-projects{background: #fff;border: 1px solid #44546a;color: black;padding: 25px 30px;padding-top: 5px;margin-top: 10px}.cdp-project-box{padding: 10px;border: 1px solid #44546a;min-height: 261.78125px}.cdp-support-title{position: absolute;top: 50%;transform: translateY(-50%);width: calc(100% - 50px - 20px);padding: 0px 10px;margin-left: 50px}.cdp-support-header{position: relative}.cdp-support-img{height: 50px;width: 50px;object-position: center;object-fit: cover}.cdp-support-img-rd{height: 50px;width: 50px;object-position: center;object-fit: cover}.cdp-support-desc{padding: 5px 0}.cdp-tool{position: relative}.cdp-animated{transition: .3s all}.cdp-half-opacity{opacity: .5}span.cdp-green,.cdp-green{color: #50b6a8;transition: color .3s}.cdp-green.cdp-hover:hover{color: #48a598}.cdp-green.cdp-hover:active{transition: all 0s;color: #429388}.cdp-table{width: 100%;border-spacing: 0px;color: black}.cdp-table tr td:nth-child(1),.cdp-table tr th:nth-child(1),.cdp-table tr th:nth-child(2),.cdp-table tr th:nth-child(3),.cdp-table tr td:nth-child(2),.cdp-table tr td:nth-child(3){padding: 3px 20px}.cdp-table tr td:nth-child(1),.cdp-table tr th:nth-child(1){min-width: 192px;text-align: left;padding-left: 44px!important}.cdp-table tr td:nth-child(3),.cdp-table tr th:nth-child(3){padding-right: 44px!important}.cdp-table tr th:nth-child(2),.cdp-table tr th:nth-child(3),.cdp-table tr td:nth-child(2),.cdp-table tr td:nth-child(3){width: 50%;text-align: left}.cdp-table tr th:nth-child(2),.cdp-table tr td:nth-child(2){width: 50%;text-align: left;padding-right:}.cdp-table tr:nth-child(1) td{padding-top: 35px!important}.cdp-table tr td{padding: 16px 20px!important;line-height: 24px}.cdp-table .cdp-thead{background: #f7f7f7}.cdp-table tr th{border-bottom: 1px solid #e1e1e1;font-weight: 400;height: 33px;padding: 5px 10px;height: 58px}.cdp-padding{padding: 15px 20px}.cdp-nbp{padding-bottom: 0!important}.cdp-ntp{padding-top: 0!important}.cdp-padding-10{padding: 10px}.cdp-padding-10-h{padding-top: 10px;padding-bottom: 10px}.cdp-np{padding: 0!important}.cdp-nlh{line-height: inherit!important}.cdp-green-bg{background: #f7f7f7}.cdp-shadow{-moz-box-shadow: 3px 3px 15px 10px #eee!important;-webkit-box-shadow: 3px 3px 15px 10px #eee!important;box-shadow: 3px 3px 15px 10px #eee!important}.cdp-white-bg{background: #fff}.cdp-names-input{width: calc(50% - 97.5px)}.cdp-names-input input{width: 100%}.cdp-names-divider{font-size: 16px;line-height: 49px;padding: 0 10px;width: 175px;color: black;margin-top: 14px}.cdp-name-box{background-color: #50b6a8;width: 165px;padding: 5px;font-weight: 200;border-radius: 1px;text-align: center;color: white;font-size: 18px;cursor: pointer;transition: background-color .3s;height: 29px;line-height: 29px;border-radius: 3px}.cdp-name-box:hover{background-color: #48a598;cursor: pointer}.cdp-name-box-small{background: #50b6a8;font-size: 18px;font-weight: 200;border-radius: 1px;text-align: left;display: inline-block;position: relative;cursor: pointer;pointer-events: none;color: white;padding: 0px 19px!important;padding-right: 63px!important;margin-left: 1px;margin-right: 1px;height: 38px;border-radius: 3px}.cdp-name-box-small[data-cdp-val="0"]{width: 68px}.cdp-name-box-small[data-cdp-val="1"]{width: 108px}.cdp-name-box-small[data-cdp-val="2"]{width: 109px}.cdp-name-box-small::after{content: '\00d7';position: absolute;right: 0px;top: 0px;height: 100%;width: 22px;font-size: 28px;line-height: 38px;padding-right: 3px;padding-left: 9px;pointer-events: auto;background: #42a89a;border-top-right-radius: 3px;border-bottom-right-radius: 3px}.cdp-names-text-info{padding-left: 30px;line-height: 40px}.cdp-magic-input{text-align: left;line-height: 39px;font-size: 17px;box-shadow: 0 0 0 transparent;border-radius: 1px;background-color: #fff;color: #32373c;overflow-x: hidden;word-wrap: unset;white-space: nowrap;resize: none;padding: 6px;min-height: 39px;width: 100%;width: calc(100% - 12px);margin: 0 auto;margin-top: 14px;margin-bottom: 14px;border-radius: 3px}.cdp-magic-input br{display: none!important}.cdp-magic-input *:not(.cdp-drag){display: inline;white-space: nowrap}.cdp-magic-input i{font-style: normal}.cdp-magic-input:focus{border-color: #50b6a8;box-shadow: 0 0 0 1px #50b6a8;outline: 2px solid transparent}.cdp-novis{visibility: hidden}.tb-close-icon,.tb-close-icon:focus{outline: 0!important;outline-style: none}.cdp-gray-button{background: #f2f2f2;border: 1px solid #31538f;color: #000;padding: 5px 40px}.cdp-gray{color: #666}.cdp-h2{font-size: 16px;margin: 10px 0}.cdp-white{color: #fff!important}.cdp-error-span-tooltip{display: none;color: #991111;font-size: 10px}.tooltipster-box{border-color: #888!important;-webkit-box-shadow: 0px 0px 10px 3px rgba(0,0,0,.2);-moz-box-shadow: 0px 0px 10px 3px rgba(0,0,0,.2);box-shadow: 0px 0px 10px 3px rgba(0,0,0,.2)}.cdp-spinner{position: absolute;left: calc(50% - 40px);top: calc(50% - 120px);height: 60px;width: 60px;margin: 0px auto;-webkit-animation: cdp-rotation .9s infinite linear;-moz-animation: cdp-rotation .9s infinite linear;-o-animation: cdp-rotation .9s infinite linear;animation: cdp-rotation .9s infinite linear;border-left: 6px solid rgba(55,190,190,0.48);border-right: 6px solid rgba(55,190,190,0.48);border-bottom: 6px solid rgba(74,255,255,0.77);border-top: 6px solid rgba(74,255,255,0.77);border-radius: 100%;z-index: 200000}@-webkit-keyframes cdp-rotation{from {-webkit-transform: rotate(0deg)} to {-webkit-transform: rotate(359deg)}}@-moz-keyframes cdp-rotation{from {-moz-transform: rotate(0deg)} to {-moz-transform: rotate(359deg)}}@-o-keyframes cdp-rotation{from {-o-transform: rotate(0deg)} to {-o-transform: rotate(359deg)}}@keyframes cdp-rotation{from {transform: rotate(0deg)} to {transform: rotate(359deg)}}.cdp-blue-circle{background: #50b6a8;color: white;font-weight: 400;font-size: 14px;border-radius: 50%;width: 27px;height: 27px;text-align: center;margin-bottom: 20px;margin-right: 7px;line-height: 27px}.cdp-low-margin-bot{margin-bottom: 5px}.cdp-margin-left{margin-left: 5px}.cdp-margin-left-25{margin-left: 25px}.cdp-red-bg{background: #bf0000}.cdp-button.cdp-red-bg:hover{background: #ae0000}.cdp-button.cdp-red-bg:active{background: #9d0000}.cdp-d-header{font-size: 16px;font-weight: 600;margin-top: 13px;margin-bottom: 0px}.cdp-d-header-2{font-size: 14px;margin-top: 33px;margin-bottom: 18px}.cdp-delete-table{border-spacing: 0;padding-bottom: 20px!important}.cdp-delete-table tbody td{}.cdp-delete-table .cdp-h-tbe{padding-top: 15px;min-height: 15px;background: rgb(245,245,245)}.cdp-delete-table tbody td,.cdp-delete-table thead th{padding-bottom: 20px!important;padding-top: 20px;padding-left: 20px!important;padding-right: 10px;font-size: 19px!important;text-align: left!important}.cdp-delete-table thead th{padding: 20px!important;border-bottom: 2px solid rgb(223,223,223)!important;font-weight: 600}.cdp-delete-table tbody td{background: rgb(245,245,245)!important}.cdp-delete-table tbody td:nth-child(1),.cdp-delete-table thead th:nth-child(1){padding-left: 40px!important;width: 32px}.cdp-delete-table tbody td:nth-child(2),.cdp-delete-table thead th:nth-child(2){text-align: left!important}.cdp-delete-table tbody td:nth-child(3),.cdp-delete-table thead th:nth-child(3){text-align: left!important}.cdp-delete-table tbody td:nth-child(4),.cdp-delete-table thead th:nth-child(4){min-width: 110px;width: 110px}.cdp-delete-table tbody td:nth-child(5),.cdp-delete-table thead th:nth-child(5){min-width: 165px;width: 165px}.cdp-delete-table tbody td:nth-child(6),.cdp-delete-table thead th:nth-child(6){min-width: 104px;width: 104px;padding-right: 40px!important}.cdp-delete-table tbody{background: rgb(245,245. 245)!important}.cdp-delete-table tbody td:nth-child(2),.cdp-delete-table thead th:nth-child(2){padding-left: 7px!important}.cdp-delete-table tbody td:nth-child(1),.cdp-delete-table thead th:nth-child(1){padding-right: 0px!important}.cdp-table-cont{overflow-x: auto;max-width: 100%;width: 100%;overflow-y: hidden!important}.cdp-table-cont table{width: 100%}.cdp-multiple-tooltip-count{opacity: 0}.cdp-hide{display: none}.cdp-no-style{list-style: none}.pagination-link,.pagination-next,.pagination-previous{border-color:#dbdbdb;color:#363636}.pagination-link:hover,.pagination-next:hover,.pagination-previous:hover{border-color:#b5b5b5;color:#363636}.pagination-link:focus,.pagination-next:focus,.pagination-previous:focus{border-color:#3273dc}.pagination-link:active,.pagination-next:active,.pagination-previous:active{box-shadow:inset 0 1px 2px rgba(10,10,10,.2)}.pagination-link[disabled],.pagination-next[disabled],.pagination-previous[disabled]{background-color:#dbdbdb;border-color:#dbdbdb;box-shadow:none;color:#7a7a7a;opacity:.5}.pagination-next,.pagination-previous{white-space:nowrap}.pagination-link.is-current{background-color:#3273dc;border-color:#3273dc;color:#fff}.pagination-ellipsis{color:#b5b5b5;pointer-events:none}.pagination-list{flex-wrap:wrap}.cdp-pagination .page-btn.active a{transition: background-color .3s,color .3s;color: white}.cdp-pagination .page-btn{transition: background-color .3s,color .3s}.cdp-pagination .page-btn.active{transition: background-color .3s,color .3s;border-color: #50b6a8;background: #50b6a8;color: white}#cdp-d-table-tbody tr,#cdp-d-table-tbody td{word-break: break-word}#cdp-d-table-tbody tr.cdp-del td:not(td:nth-child(1)),#cdp-d-table-tbody tr.cdp-del td:not(td:nth-child(1)) a{color: #c50000!important;text-decoration: none!important;text-decoration: line-through!important}.cdp-del td,.cdp-del a{text-decoration: line-through!important;color: red!important}.cdp-tab-list{width: 100%;margin: 0 auto;text-align: center;margin-top: 10px}.cdp-tab-element:not(:last-child){border-right: 0!important}.cdp-tab-element{width: calc(100% / 3 - 16px);color: black;background: #f6f6f6;padding: 8px;text-align: center;border-bottom: 4px solid #50b6a8;cursor: pointer;transition: all .3s;height: 25px;line-height: 25px;font-size: 20px}.cdp-tab-element span{font-weight: 500}.cdp-tab-element:hover:not(.cdp-tab-active):not([data-disabled="true"]){background: #eee}.cdp-tab-element[data-disabled="true"]{cursor: not-allowed}.cdp-tab-element:first-child{border-top-left-radius: 3px}.cdp-tab-element:last-child{border-top-right-radius: 3px}.cdp-tab-active{background: #50b6a8;color: white}.cdp-content *:not(.cdp-normal-font),.cdp-tooltip-content *:not(.cdp-normal-font){font-family: 'Montserrat',sans-serif!important}.cdp-content b{font-weight: 600}.cdp-content a{color: #50b6a8}.cdp-content a:hover{color: #48a598}.cdp-content a:active{color: #429388}.cdp-profile-bar{margin-bottom: 24px;margin-top: 16px}.cdp-select-styled,.cdp-select{font-size: 14px;color: #666;border-color: rgb(198,201,206);background: #fff}.cdp-select-padding{padding: 0 45px 0 20px!important;height: 48px;line-height: 48px!important;margin: 0 13px}.cdp-content [type="checkbox"],.cdp-other-inputs[type="checkbox"],.cdp-checkbox,input[type="checkbox"].cdp-data-set{color: #555;clear: none;cursor: pointer;display: inline-block;margin: -.25rem .25rem 0 0;outline: 0;padding: 0;text-align: center;vertical-align: middle;-webkit-appearance: none;box-shadow: inset 0 1px 2px rgba(0,0,0,.1);border: 1px solid #50b6a8;height: 29px;width: 29px;margin-right: 5px;margin-top: -2px;background: #fff;transition: all .3s;border-radius: 6px;margin-right: 12px}.cdp-content [type="checkbox"]:checked,.cdp-other-inputs[type="checkbox"]:checked,.cdp-checkbox:checked,input[type="checkbox"].cdp-data-set:checked{background: #50b6a8}.cdp-content [type="checkbox"]:checked::before,.cdp-other-inputs[type="checkbox"]:checked::before,.cdp-checkbox:checked::before,input[type="checkbox"].cdp-data-set:checked::before{content: '';border-top: 2px solid white;border-left: 2px solid white;height: 13px!important;width: 7px!important;margin: -.1875rem 0 0 -.25rem;margin-top: 4px;margin-left: 9px;transform: rotate(220deg);float: left;display: inline-block;vertical-align: middle}.cdp-table tbody td{color: gray}.cdp-table tbody td:nth-child(1){font-weight: 300}.cdp-table tbody td:nth-child(3){color: black;font-weight: 500}tr.cdp-selected-tr-opt td:nth-child(2){color: black!important;font-weight: 500!important}tr.cdp-selected-tr-opt td:nth-child(2) span{font-weight: 500!important}tr.cdp-selected-tr-opt td:nth-child(3){color: gray!important;font-weight: 300!important}tr.cdp-selected-tr-opt td:nth-child(1) span{font-weight: 500!important;color: black!important}.cdp-d-search{height: 110px;width: 644px;font-size: 30px}.cdp-d-searchbox-c{line-height: 30px!important;margin-left: 3px;padding-left: 15px!important;position: relative!important;background: url('../imgs/search.png');background-position: calc(100% - 13px) center;background-repeat: no-repeat;width: 193px;height: 42px;padding-right: 28px;background-size: 16px;font-size: 18px!important;border-radius: 3px!important;border-color: rgb(198,201,206)!important}.cdp-d-searchbox-c:focus,.cdp-content input:focus{border-color: #50b6a8!important;box-shadow: none!important;outline: 0!important}.cdp-padding-23{padding: 23px}.cdp-padding-23-h{padding-top: 23px;padding-bottom: 23px}.cdp-padding-15-h{padding-top: 15px;padding-bottom: 15px}.cdp-pad-lin{padding: 28px 44px}.cdp-curr-cont{padding-left: 3px;text-align: center;width: 90%;margin: 0 auto;margin-top: 7px!important}.cdp-con-cen{margin: 0 auto;text-align: center}.cdp-select-centered{width: 100%!important;max-width: 637px;text-align: center!important;margin: 0 auto;margin-bottom: 5px}.cdp-c-x-a-v{max-width: 661px!important}.cdp-special-cb-p label{margin-right: 60px;display: inline-block;line-height: 44px}.cdp-special-cb-p input[type="checkbox"]{margin-right: 8px!important}.cdp-special-cb-p label:last-child{margin-right: 0px!important}.cdp-special-cb-p h2{margin-bottom: 5px}.cdp-cont-d-box-tabed{background: #f9f9f9}.cdp-radio{border: 1px solid #50b6a8!important;transition: all .3s;margin-right: 15px;width: 25px!important;height: 25px!important}.cdp-radio:checked::before{margin: 0;content: "";border-radius: 50%;width: 13px!important;height: 13px!important;background-color: #1e8cbe;line-height: 1.14285714;margin-top: 5px!important;margin-left: 5px!important}.cdp-radio:checked::before{background-color: #50b6a8!important}.cdp-sm-d{font-size: 12px}.cdp-ff-20{font-size: 20px}.cdp-d-sel-all-con{display: inline-block;width: 305px;max-width: 305px;line-height: 30px}.cdp-d-pagi-cent{display: inline-block;padding-right: 334px;width: calc(100% - 394px - 245px)}.pagination-pages-section{margin: 0;margin-bottom: 25px;width: auto;float: right!important}.pagination-next{margin: 0;float: right!important}.pagination-previous{margin: 0;float: left;margin: 0 1px}.pagination-pages{display: inline-block;text-align: center;margin: 0 1px}#cdp-d-table-pagi{text-align: center}.page-btn{border: 1px solid #aaa;font-size: 18px;background: #fff;top: -0.5px;font-weight: 400;float: left;margin: 0 1px;min-width: 28px!important;text-align: center;height: 28px;line-height: 29px;color: #969696;cursor: not-allowed}.page-btn:not(.active){cursor: pointer!important}.page-btn:not(.active):hover{border: 1px solid #48a598;background: #48a598}.page-btn:not(.active):active{border: 1px solid #429388;background: #429388}.page-btn:not(.active):hover a{color: white!important}.page-btn:not(.active):active a{color: white!important}.page-btn a{color: #555;padding: 3px 10px!important}.cdp-pagi-arrows{width: 28px!important;border: 1px solid #aaa!important;height: 28px!important;font-size: 40px!important;position: relative!important;background: #fff;font-weight: 400!important;line-height: 26px!important;margin-left: 1px}.cdp-pagi-arrows a{position: absolute!important;right: 0!important;left: 0px!important;top: -2px!important;bottom: 0!important;color: #969696;height: 28px!important;width: 28px!important}.cdp-separator-dis{pointer-events: none;float: left;width: 28px;border: 1px solid #b8b8b8!important;height: 28px!important;font-size: 33px;position: relative;background: #fff;top: 0px;font-weight: 400;margin: 0 1px;line-height: 27px;cursor: not-allowed!important}.cdp-separator-dis a{color: #b8b8b8!important;position: absolute;right: 0;left: 2px;top: -2px;bottom: 0;height: 19px;width: 19px}.cdp-pagi-arrows .prev_page{left: 0px!important}.cdp-pagi-arrows .next_page{left: 1px!important}.cdp-width-166{width: 68px!important}.cdp-vtop-pad{vertical-align: top;padding-top: 15px;min-width: 230px;padding-left: 13px}.cdp-d-tp-pad{padding-top: 15px;padding-bottom: 45px}.cdp-even-more-th-info{padding-top: 7px}.cdp-number-field-styled{width: 70px!important;text-align: center;font-family: 'Montserrat',sans-serif;box-shadow: 0 0 0 transparent;padding: 5px 7px;appearance: none!important;-webkit-appearance: none!important;-moz-appearance: textfield!important}.cdp-number-field-styled::-webkit-inner-spin-button{-webkit-appearance: none!important;-moz-appearance: textfield!important}.cdp-number-field-styled::-webkit-outer-spin-button{-webkit-appearance: none!important;-moz-appearance: textfield!important}.cdp-custom-date-picking{border-color: rgb(198,201,206)!important;line-height: 48px!important;border-radius: 3px!important;height: 48px;font-size: 18px;width: 160px;margin-left: 15px}.cdp-color-p-i{}.cdp-p-hh{padding-bottom: 25px;padding-top: 25px}.cdp-p-25-40{padding-top: 25px;padding-bottom: 40px}.cdp-p-40-b{padding-bottom: 40px}.cdp-p-10-b{padding-bottom: 10px}.cdp-p-20-b{padding-bottom: 20px}.cdp-p-25-t{padding-top: 25px}.cdp-p-15-25{padding-top: 15px}.cdp-p-10-h{padding-top: 10px;padding-bottom: 10px}.cdp-p-15-h{padding-top: 15px;padding-bottom: 15px}.cdp-p-20-h{padding-top: 20px;padding-bottom: 20px}.cdp-p-30-h{padding-top: 30px;padding-bottom: 30px}.cdp-max-600{max-width: 637px!important;min-width: 637px!important;margin-left: 49px}.cdp-per-page-select-show{width: 96px!important;height: 42px;font-size: 17px!important;padding-right: 44px!important;padding: 0 45px 0 20px!important;line-height: 42px!important;text-align: left;margin-left: 10px;margin-right: 10px}.cdp-d-pad-sp{padding: 0 40px}.cdp-hr{border: 1px solid #dfdfdf!important;margin-bottom: 20px}.cdp-d-throttling-count{width: 85px!important;height: 42px!important;line-height: 40px!important;color: #32373c;border-color: rgb(198,201,206)!important;font-size: 17px!important}.cdp-date-picked{margin-right: 0px!important}.cdp-option-premium .option[data-value="3"],.cdp-premium-in-select .option[data-value="premium"],.cdp-premium-in-select-m [data-value="2"]{position: relative}.cdp-option-premium .option[data-value="3"]::after,.cdp-premium-in-select .option[data-value="premium"]::after,.cdp-premium-in-select-m [data-value="2"]::after{content: '';display: inline-block;position: absolute;width: 19px;height: 19px;top: calc(50% - 10px);background: url('../imgs/premium.png');display: inline-block;line-height: 19px;background-repeat: no-repeat;background-position: center;background-size: cover;padding: 0;margin-left: 7px;cursor: pointer}.cdp-cont-d-box-tabed{display: none;overflow: hidden}.cdp-tbody-of-settings a{text-decoration: none}.cdp-tbody-of-settings a:hover,.cdp-tbody-of-settings a:hover span{color: #429388!important}.cdp-content ::placeholder{color: #ddd!important;opacity: 1}.cdp-content ::-moz-placeholder{color: #ddd!important;opacity: 1}.cdp-content :-moz-placeholder{color: #ddd!important;opacity: 1}.cdp-content ::-webkit-input-placeholder{color: #ddd!important;opacity: 1}.cdp-content ::-ms-input-placeholder{color: #ddd!important;opacity: 1}.cdp-content :-ms-input-placeholder{color: #ddd!important;opacity: 1}.cdp-backup-alert{background: #fcecec;color: black;border-radius: 1px;text-align: center;line-height: 23px;padding: 38px;font-size: 14px;border-radius: 3px}.cdp-delete-btn{margin-top: 10px;border: 0;border-radius: 7px}.cdp-delete-info b{font-weight: 500}.cdp-final-ask{background: #fbe4d4;line-height: 1.9;margin-top: 10px;margin-bottom: 0px;padding: 1px 5px;cursor: default}.cdp-small-btn{border: 0;border-radius: 2px}.cdp-delete-info{background: #e2edf7;text-align: center;padding: 10px;color: black;margin: 0 auto;font-weight: 300;width: 663px!important;height: 33px!important;line-height: 33px}.cdp-intro-image{width: 100%;border-radius: 6px;transition: all .3s;cursor: zoom-in}.cdp-intro-image:hover{-ms-transform: scale(2);-webkit-transform: scale(2);transform: scale(2)}.cdp-intro-img-1:hover{margin-left: calc(6vw + 5px)}.cdp-intro-img-1{background-image: url('../imgs/intro_1.gif');background-position: 41% 61%;background-size: 120% auto}.cdp-intro-img-2{background-image: url('../imgs/intro_2.gif');background-position: 44% 61%;background-size: 120% auto}.cdp-intro-img-3:hover{margin-left: calc(-6vw - 5px)}.cdp-intro-img-3{background-image: url('../imgs/intro_3.gif');background-position: 45% 15%;background-size: 102% auto}.cdp-no-vis{visibility: hidden}.cdp-togglable-name-b{cursor: pointer}.cdp-tooltip-premium-spc-2{margin-bottom: 0;padding-bottom: 0;max-height: 32px}.label_e50._bottom_ea7{border-top-left-radius: 8px!important;border-top-right-radius: 34px!important;min-width: 300px}.label_e50{position: fixed;z-index: 2147483648;-webkit-backface-visibility: hidden;backface-visibility: hidden;height: 40px;box-shadow: 0 12px 14px 8px rgba(0,0,0,.17);filter: blur(0)}jdiv{-webkit-animation: 0s none;animation: 0s none;-webkit-backface-visibility: visible;backface-visibility: visible;background: none;border: 0;box-shadow: none;box-sizing: content-box;bottom: auto;caption-side: top;clear: none;clip: auto;cursor: auto;display: inline;direction: ltr;flex: none;height: auto;-webkit-hyphens: manual;-ms-hyphens: manual;hyphens: manual;image-rendering: auto;justify-content: flex-start;left: auto;letter-spacing: normal;line-height: normal;margin: 0;max-height: none;max-width: none;min-height: 0;min-width: 0;-o-object-fit: fill;object-fit: fill;opacity: 1;order: 1;orphans: 2;outline: 0 none;overflow: visible;padding: 0;perspective: none;position: static;resize: none;right: auto;text-align: left;text-decoration: none;text-indent: 0;text-overflow: clip;text-shadow: none;text-transform: none;top: auto;transform: none;transition: all 0s ease 0s;unicode-bidi: normal;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;vertical-align: baseline;white-space: normal;width: auto;word-break: normal;word-spacing: normal;word-wrap: normal;z-index: auto;zoom: normal;filter: none!important;font-weight: 400;-webkit-text-size-adjust: inherit;-webkit-font-smoothing: antialiased;-webkit-text-fill-color: currentColor}.hoverl_bc6 {cursor: pointer}.label_e50._bottom_ea7 .text_468._noAd_b4d,.label_e50._left_bba .text_468._noAd_b4d,.label_e50._right_56b .text_468._noAd_b4d{margin: 0 33px 0 16px}.label_e50._bottom_ea7 .text_468,.label_e50._left_bba .text_468,.label_e50._right_56b .text_468{transform: translateZ(0);margin: 0 37px 0 16px;min-width: 160px;visibility: visible}.label_e50 .text_468{font: inherit;text-indent: 0;line-height: 40px;vertical-align: top;white-space: nowrap;-webkit-font-smoothing: antialiased;visibility: visible;-webkit-backface-visibility: hidden;backface-visibility: hidden}.contentTransitionWrap_c73{-webkit-animation-name: fadeIn_d9b;animation-name: fadeIn_d9b;-webkit-animation-duration: .15s;animation-duration: .15s;-webkit-animation-fill-mode: backwards;animation-fill-mode: backwards;-webkit-animation-timing-function: ease;animation-timing-function: ease}.leaf_2cc{position: absolute;width: 32px;height: 33px;z-index: 6;overflow: hidden}.leaf_2cc._bottom_afb,.leaf_2cc._left_7af,.leaf_2cc._right_ff0{right: 0;top: 0;width: 33px;border-radius: 0 24px 0 0!important}.cssLeaf_464 {background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2240%22%20viewBox%3D%220%200%2032%2040%22%3E%0A%20%20%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%23424867%22%20d%3D%22M0%200h9.02L32%2033.196V40H0z%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%2318C139%22%20d%3D%22M9%200c3.581.05%2023%205.426%2023%2033.08v.03C18.922%2030.751%209%2019.311%209%205.554V0z%22%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A);position: absolute;height: 33px;width: 33px;left: 1px}#cdp_jvlabelWrap-fake * {cursor: pointer!important;font-family: Arial!important}#cdp_jvlabelWrap-fake {cursor: pointer!important;opacity: 1;transition: .3s all}#cdp_jvlabelWrap-fake:hover {opacity: .9}#cdp_notice_error{background: rgb(228,112,111);color: white;font-size: 14px;border-radius: 2px;min-width: calc(100% - 30px)}#cdp_notice_error .cdp_notice_heading{position: relative;padding: 15px}#cdp_notice_error *{font-weight: 500!important}#cdp_notice_error a{font-weight: 600!important;color: white!important;opacity: 1;transition: .3s all}#cdp_notice_error a:hover{opacity: .7}#cdp_notice_error .cdp_warning_icon{background-image: url('../imgs/alert_warning.png');height: 24px;width: 24px;top: 50%;transform: translate(0,-50%);position: absolute;left: 15px;background-size: cover}#cdp_notice_error .cdp_notice_content{width: calc(100% - 30px - 38px - 20px);padding-left: 38px;padding-right: 20px}#cdp_notice_error .cdp_notice_perf_close{font-size: 24px;cursor: pointer;opacity: 1;transition: .3s all}#cdp_notice_error .cdp_notice_perf_close:hover{opacity: .7}#cdp_notice_error .cdp_notice_perf_close:active{transition: 0s all;opacity: .5}#cdp_notice_error .cdp_notice_logs{border-left: 1px solid rgb(228,112,111);border-bottom: 1px solid rgb(228,112,111);border-right: 1px solid rgb(228,112,111);background: white;color: #777;padding: 15px;max-height: 150px;overflow: auto;resize: none;outline: none;position: relative;margin: 0;display: block}#cdp_notice_error .cdp_notice_logs:focus,#cdp_notice_error .cdp_notice_logs:active{border-top: none;box-shadow: none;resize: none;outline: none}#cdp_notice_error .cdp-textarea-wr-notice{position: relative}#cdp_notice_error .cdp-please-big{font-size: 18px;font-weight: 700!important}#cdp_notice_error .cdp-copy-notice-logs{font-size: 16px;font-weight: 600!important;position: absolute;right: 25px;top: 10px;border: 1px solid rgb(228,112,111);background: rgba(228,112,111,0.05);padding: 4px;border-radius: 5px;color: #555;cursor: pointer;transition: .3s all;opacity: 1}#cdp_notice_error .cdp-copy-notice-logs:hover{opacity: 0.7}#cdp_notice_error .cdp-copy-notice-logs:active{transition: 0 all;opacity: 0.5}
assets/js/cdp.min.js CHANGED
@@ -1 +1 @@
1
- function cdp_tooltips_update_content(){if(jQuery("select").niceSelect("update"),!(void 0!==jQuery.cdp&&void 0!==jQuery.cdp.isPremium)||!jQuery.cdp.isPremium()){jQuery(".cdp-premium-in-select").find('.option[data-value="premium"]').addClass("cdp-tooltip-premium disabled"),jQuery(".cdp-option-premium").find('.option[data-value="3"]').addClass("cdp-tooltip-premium disabled"),$prems=jQuery(".cdp-tooltip-premium");for(let t=0;t<$prems.length;t++){let e=$prems[t],i=-15;isNaN(parseInt(jQuery(e).attr("data-top")))||(i=parseInt(jQuery(e).attr("data-top"))),jQuery(e).tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:i,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0})}jQuery(".cdp-tooltip-premium-dc").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0})}}function cdp_totally_know_what_i_am_doing(t){if("really"!=t)return cdpJS.strAreYouSure;console.log(cdpJS.strYouAreCrazy);let e=jQuery;e("#cdp-purl").val();e.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"debug_function"}).done(t=>{console.log(t),console.log(cdpJS.strDebugOutputEnd)})}jQuery(document).ready(function(t){t("#cdp-purl").val();let e=null,i="default",o=null,c=null,d=null,n=null,p=null,s=null,a=null;const l=void 0!==t.cdp&&void 0!==t.cdp.isPremium;function r(e=null,i=!1){let o=this;"string"==typeof e&&(o=`.${e}`),0!=i&&(o=i),$parent=t(t(o).parents(".cdp-collapsible")[0]),$arrow=$parent.find(".cdp-arrow"),$body=$parent.find(".cdp-collapsible-content"),$title=$parent.find(".cdp-collapsible-title"),$titles=t(".cdp-collapsible-title"),group=$parent.attr("data-cdp-group"),height=$body.prop("scrollHeight"),$oArrows=t(`.cdp-collapsible[data-cdp-group="${group}"]`).not($parent).find(".cdp-arrow"),$oBodies=t(`.cdp-collapsible[data-cdp-group="${group}"]`).not($parent).find(".cdp-collapsible-content"),$body.hasClass("cdp-active")?($body.removeClass("cdp-active"),$titles.removeClass("cdp-active"),$oBodies.removeClass("cdp-active"),$arrow.removeClass("cdp-arrow-down").addClass("cdp-arrow-left"),$body.css({"max-height":""})):($titles.removeClass("cdp-active"),$body.addClass("cdp-active"),$title.addClass("cdp-active"),$oBodies.removeClass("cdp-active"),$arrow.removeClass("cdp-arrow-left").addClass("cdp-arrow-down"),$oArrows.removeClass("cdp-arrow-down").addClass("cdp-arrow-left"),$body.css({"max-height":`${height+30}px`}),$oBodies.css({"max-height":""}))}function u(){let e=t(".cdp-names-prefix").text(),i=t(".cdp-names-suffix").text(),o={year:(c=new Date).getFullYear(),month:("0"+(c.getMonth()+1)).slice(-2),day:c.getDate()<=9?"0"+c.getDate():c.getDate(),hour:c.getHours()<=9?"0"+c.getHours():c.getHours(),minute:c.getMinutes()<=9?"0"+c.getMinutes():c.getMinutes(),second:c.getSeconds()<=9?"0"+c.getSeconds():c.getSeconds(),week:c.getDay()};var c;let d="(blank)"==t(".cdp-togglable-name-b").text()?"":cdpJS.strTogglableName,n=`${e.trim()} ${d} ${i.trim()}`;n=n.replace(/\[Counter\]/g,"2");let p=t(".cdp-date-picked").val();"1"==p?n=n.replace(/\[CurrentDate\]/g,`${o.month}/${o.day}/${o.year}`):"2"==p?n=n.replace(/\[CurrentDate\]/g,`${o.day}/${o.month}/${o.year}`):"3"==p&&function(e){let i=t(".cdp-custom-date-picking").val();t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"get_formatted_time",format:i}).done(t=>{e(t)}).fail(()=>{e(!1)})}(e=>{n=n.replace(/\[CurrentDate\]/g,`${e}`),t(".cdp-example-name").text(n),n=(n=n.replace(/\[CurrentTime\]/g,`${o.hour}:${o.minute}:${o.second}`)).replace(/\s+/gim," "),t(".cdp-example-name").text(n)}),"3"!=p&&(n=(n=n.replace(/\[CurrentTime\]/g,`${o.hour}:${o.minute}:${o.second}`)).replace(/\s+/gim," "),t(".cdp-example-name").text(n))}function m(e=""){before=t(e).html(),text=t(e).html(),$picks=['<div class="cdp-name-box-small cdp-drag" data-cdp-val="0" contenteditable="false"><i class="cdp-novis">[</i>Counter<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="1" contenteditable="false"><i class="cdp-novis">[</i>CurrentTime<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="2" contenteditable="false"><i class="cdp-novis">[</i>CurrentDate<i class="cdp-novis">]</i></div>'],text=text.replace(/\[Counter\]/g,$picks[0]),text=text.replace(/\[CurrentDate\]/g,$picks[2]),text=text.replace(/\[CurrentTime\]/g,$picks[1]),text!=before&&t(e).html(text)}function h(){val=t('.cdp-other-options[name="after_copy"]').val(),2==val?t(".cdp-if-edit-page-selected").show(300):t(".cdp-if-edit-page-selected").is(":hidden")||t(".cdp-if-edit-page-selected").hide(300),setTimeout(()=>{jQuery(".cdp-oth-section").css({"max-height":""}),jQuery(".cdp-oth-section").css({"max-height":jQuery(".cdp-oth-section").height()})},310)}function f(o=!1){let c=t(this).attr("data-cdp-btn");1==o&&(c="copy-quick");let d=["copy-quick","copy-custom","copy-custom-link"],n=t(".cdp-modal-checkboxes").find(".cdp-input-dynamic");if(d.includes(c)){let o={type:c};if(c==d[0]){if(o.times=t(".cdp-modal-input-times-tooltip").val(),o.site=t('.cdp-input-dynamic[name="tooltip-which-site-first"]').val(),o.profile=t('.cdp-input-dynamic[name="tooltip-which-profile-first"]').val(),o.swap="2"==t(".cdp-swap").val()?"true":"false",!o.profile||"custom"==o.profile)return t.cdpNotification("warning","Please select settings for this copy."),void x()}else if(c==d[1]||c==d[2]){o.times=t('.cdp-modal-input-times[name="tooltip-which-times-second"]').val(),o.site=t('.cdp-input-dynamic[name="tooltip-which-site-second"]').val(),o.profile=t('.cdp-input-dynamic[name="tooltip-which-profile-second"]').val(),o.swap="2"==t(".cdp-swap").val()?"true":"false",o.custom={};for(let e=0;e<n.length;++e)o.custom[t(n[e]).attr("name")]=t(n[e]).is(":checked")}if(isNaN(parseInt(o.times))||parseInt(o.times)<=0)return void t.cdpNotification("warning",cdpJS.strCopyNumIssue);o.profile&&!["custom","clear","custom_named"].includes(o.profile)||(o.profile=i),O(),function(e=(()=>{})){window.onbeforeunload=(()=>cdpJS.strCopyInProgress),$e=t(".cdp-copy-loader-overlay"),$e.is(":hidden")&&($e.show(),$e.animate({opacity:1},300,function(){e(!0)}))}(()=>{t.ajax({type:"POST",url:ajaxurl,data:{action:"cdp_action_handling",token:"cdp",f:"copy_post",origin:"tooltip",id:[e],data:o},timeout:0}).done(function(e){x(),t.isJsonString(e)&&(e=t.cdpParse(e)),"error"==e.status?t.cdpNotification("error",cdpJS.strCopyPostIssue):c==d[2]||void 0!==e.link&&e.link.length>0?"pConv"==e.link?(t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"delete_success_img"}),"-28"==t(".cdp-copy-alert-success").position().top&&t(".cdp-copy-alert-success").animate({top:"32px",opacity:1},300),setTimeout(()=>{"32"==t(".cdp-copy-alert-success").position().top&&t(".cdp-copy-alert-success").animate({top:"-28px",opacity:0},300)},3e3)):window.location.href=e.link:location.reload()}).fail(function(e){t.cdpNotification("error",cdpJS.strCopyPostIssueConsInfo),x(),console.log(e),console.log(e.responseText)})})}else t.cdpNotification(cdpJS.strTooltipBtnIssue)}function g(e,o=!1){let c=t('.cdp-input-dynamic[name="tooltip-which-profile-second"]'),d=t(".cdp-modal-checkboxes").find(".cdp-input-dynamic"),n=c.length>1?t(t(c[1])):t(t(c[0]));t(c[1])&&t(c[1])||(null==t(c[1])&&t(c[0])?n=t(t(c[0])):null==t(c[0])&&t(c[1])&&(n=t(t(c[1]))));let p=n.val();0==e&&(p=o),"custom_named"==p?c.val("custom_named"):"custom"==p||null==p||null==p?c.val("custom"):"clear"==p?(0!=e&&e.preventDefault(),d.prop("checked",!1),c.val("custom")):!["clear","custom","custom_named"].includes(p)&&p.length>=1?y(p,function(e){for(let i in e)"object"!=typeof i&&t(`.cdp-input-dynamic[name="${i}"]`).prop("checked",v(e[i]))}):(0!=e&&e.preventDefault(),t.cdpNotification("warning",cdpJS.strSelectedProfIssue)),0==e&&c.val(p),["clear","custom","custom_named"].includes(p)||(i=p),cdp_tooltips_update_content()}function v(t){return"string"==typeof t&&"true"==t.trim().toLowerCase()}function y(e="default",i){t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"get_settings",profile:e}).done(e=>{if(t.isJsonString(e)&&(e=t.cdpParse(e)),e.status&&"error_no_exists"==e.status){t.cdpNotification("warning",cdpJS.strSelectedProfEmpty);let e={},o=t(".cdp-modal-option-r");for(let i=0;i<o.length;i++)e[t(o[i]).attr("name")]=t(o[i]).is(":checked");i(!1)}else i(e)}).fail(e=>{t.cdpNotification("error",cdpJS.strSelectedProfGetIssue),console.log(cdpJS.strConsLogErr),console.log(e),console.log("––––––––––––––––––––––––––"),i(!1)})}function b(){t(this).attr("class");let e=parseInt(t(this).val());e<=0&&(e=1),e>9999&&(e=9999),isNaN(e)&&(e=1),e||(e=1),t(".cdp-modal-input-times").val(e),t(".cdp-modal-input-times-tooltip").val(e),e>50?(t(".cdp-error-span-tooltip").show(300),t(".cdp-tooltip-before").attr("style","height: calc(225px - 20px - 16px) !important")):(t(".cdp-error-span-tooltip").hide(300),t(".cdp-tooltip-before").attr("style","")),e>1?(t(".cdp-multiple-tooltip-count").animate({opacity:1},200),t('.cdp-tooltip-btn-copy[data-cdp-btn="copy-custom-link"]').hide()):(t(".cdp-multiple-tooltip-count").animate({opacity:0},200),t('.cdp-tooltip-btn-copy[data-cdp-btn="copy-custom-link"]').show()),setTimeout(()=>{H()},310)}function x(e=(()=>{})){window.onbeforeunload=null,$e=t(".cdp-copy-loader-overlay"),$e.is(":hidden")||$e.animate({opacity:0},300,function(){$e.hide(),e(!0)})}function w(){let e=t(".cdp-profile-selected").val();var i,o;y(e,c=>{if(t.isJsonString(c)||"object"==typeof c){"object"!=typeof c&&(c=JSON.parse(c));let d=["usmplugin","yoast","woo"];for(k in c)"names"==k?(t(".cdp-names-prefix").html(c[k].prefix),t(".cdp-names-suffix").html(c[k].suffix),"3"!=c[k].format||l||(c[k].format="1"),t(".cdp-date-picked").val(c[k].format),t(".cdp-custom-date-picking").val(c[k].custom)):(!d.includes(k)||d.includes(k)&&l&&t.cdp.isPremium())&&t(`.cdp-data-set[data-cdp-opt="${k}"]`).prop("checked","true"==c[k]);cdp_tooltips_update_content(),u(),h(),l&&t.cdp.isPremium()&&t.cdp.premium.detectChangeOfCustom(),C(),m(".cdp-names-prefix"),m(".cdp-names-suffix"),i=e,o=(()=>{}),t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"set_default_profile",selection:i}).done(t=>{o(t)}).fail(()=>{o(!1)})}else t.cdpNotification("warning",cdpJS.strServerDataIssue)})}function $(){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return;let e=t(".cdp-input-d-id").length,i=t(".cdp-input-d-id:checked").length;i==e?t(".cdp-d-select-all").text("Deselect all"):t(".cdp-d-select-all").text("Select all"),t(".cdp-t-d-ct").text(i),$visible=t(".cdp-input-d-id:visible").length,$visible_checked=t(".cdp-input-d-id:checked:visible").length,$visible==$visible_checked?t(".cdp-d-checkbox-all").prop("checked",!0):t(".cdp-d-checkbox-all").prop("checked",!1),function(){let e=t(".cdp-input-d-id").parents("tr"),i=t(".cdp-input-d-id:checked").parents("tr");e.removeClass("cdp-del"),i.addClass("cdp-del")}()}function _(e){t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"give_me_current_tasks"}).done(i=>{t.isJsonString(i)&&(i=t.cdpParse(i)),"success"==i.status&&e(i.tasks)})}function S(e){let i=0,o=+new Date/1e3,c=t(".cdp-dd-item");for(let o=0;o<c.length;++o){e[t(c[o]).attr("data-token")]||t(c[o]).remove(),i++}for(task in e){let c=e[task],d=t(t(`.cdp-dd-item[data-token="${task}"]`)[0]);if(0==c.done){if(d.hasClass("cdp-dd-ud"))continue;{d.remove();let e=o-c.done>=86400;t(".cdp-dd-undone-list").append(I(c.shown,task,e,c.f)),i++}}else{if(d.hasClass("cdp-dd-d"))continue;d.remove(),t(".cdp-dd-done-list").append(N(c.data,c.shown,task,c.f)),i++}}(i>0||0==c.length)&&function(){let e=t(".cdp-dd-item").length,i=t(".cdp-dd-d").length,o=t(".cdp-dd-ud").length;i<=0?(t(".cdp-done-notis, .cdp-done-notis").addClass("cdp-noti-hide"),t(".cdp-done-hr, .cdp-done-notis").hide()):(t(".cdp-done-notis, .cdp-done-notis").removeClass("cdp-noti-hide"),t(".cdp-done-hr, .cdp-done-notis").show()),o<=0?(t(".cdp-undone-notis, .cdp-undone-notis").addClass("cdp-noti-hide"),t(".cdp-undone-hr, .cdp-undone-notis").hide()):(t(".cdp-undone-notis, .cdp-undone-notis").removeClass("cdp-noti-hide"),t(".cdp-undone-hr, .cdp-undone-notis").show()),e<=0?t(".cdp-admin-bar-noti").addClass("cdp-noti-hide"):t(".cdp-admin-bar-noti").removeClass("cdp-noti-hide"),t(".cdp-notis-counter").text(t(".cdp-bnew-notis").length)}()}function C(){$trs=t(".cdp-table tbody.cdp-ff-b1").find("tr");for(let e=0;e<$trs.length;e++){let i=t($trs[e]);i.find("input").is(":checked")?i.addClass("cdp-selected-tr-opt"):i.removeClass("cdp-selected-tr-opt")}}function T(e){if(t(".cdp-modal").is(":visible"))return;let i=window;0!=t("#wpbody").scrollTop()&&(i="#wpbody");let o=t(i).scrollTop()+2;o<=0&&(o=2),"click"!=e.type&&t(".nice-select, .nice-select .list").css({transition:"all 0s"}),t(".nice-select .list").css({"margin-top":`${-o}px`}),t("#cdpp-af-author").length>0&&(t(".ui-autocomplete").css({top:`${t("#cdpp-af-author").offset().top+40}px`}),t(".cdp-cool-datepicker").css({top:`${t(".cdpp-input-a").offset().top+40}px`})),clearTimeout(n),n=setTimeout(()=>{t(".nice-select .list").css({transition:""})},100),clearTimeout(d),d=setTimeout(()=>{let o=t(i).scrollTop()+2;o<=0&&(o=2),"click"!=e.type&&t(".nice-select .list").css({transition:"all 0s !important"}),t(".nice-select .list").css({"margin-top":`${-o}px`}),t("#cdpp-af-author").length>0&&(t(".ui-autocomplete").css({top:`${t("#cdpp-af-author").offset().top+40}px`}),t(".cdp-cool-datepicker").css({top:`${t(".cdpp-input-a").offset().top+40}px`})),clearTimeout(n),n=setTimeout(()=>{t(".nice-select .list").css({transition:""})},100)},100)}function j(){let e=t('.cdp-d-option[name="cdp-d-b-title"]').is(":checked"),i=t('.cdp-d-option[name="cdp-d-b-slug"]').is(":checked");e||i?t(".cdp-no-empty-text").html(cdpJS.strIncludingHtml):t(".cdp-no-empty-text").html(cdpJS.strIncludingHtml2)}function J(e){e.preventDefault(),$parent=t(this).parents(".cdp-collapsible"),$col=t(t($parent[0]).find(".cdp-collapsible-title")[0]),r("true",$col)}t(".cdp-intro-button").on("click",function(){let e=t(".cdp-intro").height();t(".cdp-intro").css({height:e+"px"}),t(".cdp-intro").animate({opacity:0,height:0},300,function(){t(".cdp-intro").hide(10),t("#cdp-never-intro").is(":checked")&&t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"no_intro"}).done(e=>{"error"==e&&t.cdpNotification("error",cdpJS.strIntroSaveIssue)}).fail(e=>{t.cdpNotification("error",cdpJS.strIntroSaveIssue2)})}),t(".cdp-s-i-a").show(),t(".cdp-s-i-a").animate({opacity:1},300)}),t(".cdp-save-options").on("click",function(){let e=t(".cdp-data-set"),i=t(".cdp-other-inputs"),o=t(".cdp-profile-selected").val(),c=t(".cdp-names-prefix").text().replace(/\s+/g," ").trim(),d=t(".cdp-names-suffix").text().replace(/\s+/g," ").trim(),n={names:{prefix:c,suffix:d,format:t(".cdp-date-picked").val(),custom:t(".cdp-custom-date-picking").val(),display:t(t(`option[value="${t(".cdp-profile-selected").val()}"]`)[0]).text()}},p={afterCopy:t('.cdp-other-options[name="after_copy"]').val(),postConverter:t('.cdp-other-options[name="post_converter"]').val(),others:{}},s={},a=t(".cdp-other-roles");for(let e=0;e<a.length;e++)s[t(a[e]).attr("name")]=t(a[e]).is(":checked");p.roles=s;for(let i=0;i<e.length;i++)n[t(e[i]).attr("data-cdp-opt")]=!!t(e[i]).is(":checked");for(let e=0;e<i.length;e++)p.others[t(i[e]).attr("name")]=!!t(i[e]).is(":checked");t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"save_options",options:n,profile:o,entire:p}).done(e=>{"success"==e?t.cdpNotification("success",cdpJS.strSettingsSaved,2e3):"error"==e?t.cdpNotification("error",cdpJS.strSettingsSaveIssue):t.cdpNotification("success",cdpJS.strSettingsSaved,2e3)}).fail(e=>{t.cdpNotification("error",cdpJS.strSettingsSaveIssue2),console.log(e)})}),t("#cdp-show-into-again").on("click",function(){t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"intro_again"}).done(e=>{"error"==e&&t.cdpNotification("error",cdpJS.strIntroUpdateIssue)}).fail(e=>{t.cdpNotification("error",cdpJS.strIntroUpdateIssue2)}),t(".cdp-s-i-a").animate({opacity:0},300,function(){t(".cdp-s-i-a").hide()}),function(){t(".cdp-intro").show().css({height:""});let e=t(".cdp-intro").height();t(".cdp-intro").css({height:"0px"}),t(".cdp-intro").animate({opacity:1,height:e+"px"},300,function(){})}()}),t(".cdp-show-projects").on("click",function(){t(".cdp-projects").is(":hidden")&&t(".cdp-projects").show(300);t(".cdp-show-projects").removeClass("cdp-pointer").animate({opacity:.5},300)}),t(".cdp-project-box").on("mouseenter",function(){t(".cdp-project-box").not(t(this)).addClass("cdp-half-opacity")}),t(".cdp-project-box").on("mouseleave",function(){t(".cdp-project-box").removeClass("cdp-half-opacity")}),t(".cdp-collapsible-title").on("click",r),t(".cdp-magic-input").on("keyup change",function(){before=t(this).html(),text=t(this).html(),$picks=['<div class="cdp-name-box-small cdp-drag" data-cdp-val="0" contenteditable="false"><i class="cdp-novis">[</i>Counter<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="1" contenteditable="false"><i class="cdp-novis">[</i>CurrentTime<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="2" contenteditable="false"><i class="cdp-novis">[</i>CurrentDate<i class="cdp-novis">]</i></div>'],text=text.replace(/\[Counter\]/g,$picks[0]),text=text.replace(/\[CurrentDate\]/g,$picks[2]),text=text.replace(/\[CurrentTime\]/g,$picks[1]),text!=before&&t(this).html(text)}),t(".cdp-magic-input").on("focus",function(e,i){if(i)return;let o=t(this).text();" "!=o[0]&&(o="&nbsp;"+o);" "!=o[o.length-1]&&(o+="&nbsp;");t(this).html(o),m(this)}),t(".cdp-magic-input").on("mouseup",".cdp-name-box-small",function(){t(this).hide(300),setTimeout(()=>{t(this).remove(),u()},300)}),t(".cdp-support-animated").on("mouseenter",function(){t(".cdp-support-animated").not(t(this)).addClass("cdp-half-opacity")}),t(".cdp-name-clickable").on("mouseup",function(e){if(e.preventDefault(),$picks=['<div class="cdp-name-box-small cdp-drag" data-cdp-val="0" contenteditable="false"><i class="cdp-novis">[</i>Counter<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="1" contenteditable="false"><i class="cdp-novis">[</i>CurrentTime<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="2" contenteditable="false"><i class="cdp-novis">[</i>CurrentDate<i class="cdp-novis">]</i></div>'],$box={1:".cdp-names-prefix",2:".cdp-names-real-input",3:".cdp-names-suffix"},t($box[e.which]).append($picks[t(this).attr("data-cdp-val")]),u(),e.which==e)return!1}),t(".cdp-support-animated").on("mouseleave",function(){t(".cdp-support-animated").removeClass("cdp-half-opacity")}),t(".cdp-f-einput-n").on("click","button",function(){let e=t(t(this).parents(".cdp-cf")[0]).find("input"),i=t(this).text(),o="12";"V"==i[0]?o="-51":"D"==i[0]&&(o="23");if(e.val().trim().length<=0)return void t.cdpNotification("warning",cdpJS.strLicenseKeyEmpty);t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"i_love_squirrels",rat:e.val(),m:o}).done(i=>{t.isJsonString(i)&&(i=t.cdpParse(i)),"success"==i.status?"valid"==i.data.license?(t.cdpNotification("success",cdpJS.strLicenseActiveReloading),setTimeout(()=>{window.location.reload()},2e3)):"site_inactive"==i.data.license?(t.cdpNotification("success",cdpJS.strLicenseValidPressBtn),e.prop("disabled",!0),t(this).text("Activate")):void 0!==i.data&&void 0!==i.data.msg?(t.cdpNotification("success",i.data.msg),setTimeout(()=>{window.location.reload()},2e3)):t.cdpNotification("warning",cdpJS.strUnknownRespRefreshPage):"fail"==i.status?t.cdpNotification(i.fail.type,i.fail.msg):t.cdpNotification("error",cdpJS.strSendRequestIssue)}).fail(e=>{t.cdpNotification("error",cdpJS.strSendRequestIssue2)})}),t(".cdp-names-real-input, .cdp-date-picked").on("keyup change",u),t('.cdp-other-options[name="after_copy"]').on("change",h),t("body").on("change keyup",".cdp-input-dynamic",function(){$input=t(t(".cdp-tooltip-content, .cdp-modal-content").find(`[name="${t(this).attr("name")}"]`)),"checkbox"==t(this).attr("type")?$input.prop("checked",t(this).is(":checked")):t($input).is("select")?($input.val(t(this).val()),t($input).hasClass("cdp-modal-input-profiles-r")&&g(!1,t(this).val())):$input.val(t(this).val());if(cdp_tooltips_update_content(),t($input).is("select")&&t($input).hasClass("cdp-premium-modal-dropdown")){let e=t("div.cdp-premium-modal-dropdown"),i=t(t(this).parents("div")[0]).find("div.cdp-premium-modal-dropdown");"2"==i.find("li.selected").data("value")?(e.find("span.current").addClass("cdp-relative"),e.find("span.current").html(cdpJS.strChangeTypeOfCopy)):e.find("span.current").removeClass("cdp-relative")}}),t("body").on("click",".cdp-tooltip-before-button",function(){let e=t('.cdp-input-dynamic[name="tooltip-which-profile-first"]').val();"custom"!=e&&g(!1,e);t(".cdp-tooltip-before-options").hide(200),setTimeout(()=>{t(".cdp-tooltip-full-options").show(200),setTimeout(()=>{H()},200)},200)}),t("body").on("click",".cdp-tooltip-btn-copy",f),t("body").on("change",'.cdp-input-dynamic[name="tooltip-which-profile-second"]',g),t("body").on("change",'.cdp-input-dynamic[name="tooltip-which-profile-first"]',function(){g(!1,t(this).val())}),t("body").on("change",".cdp-modal-checkboxes .cdp-input-dynamic",function(){t('.cdp-input-dynamic[name="tooltip-which-profile-second"]').val("custom_named"),cdp_tooltips_update_content(),g(!1,"custom_named")}),t("body").on("change",".cdp-modal-input-times-tooltip",b),t("body").on("change",".cdp-modal-input-times",b),t("body").on("click",".cdp-modal-times, .cdp-modal",t.cdpModalClose),t("body").on("click",".cdp-modal-open",t.cdpModal),t("body").on("change",".cdp-profile-selected",w),t("body").on("click",".cdp-show-more-d-title",function(e){e.preventDefault(),t(".cdp-d-section").css({"max-height":"",height:""}),t(".cdp-more-d-title").is(":hidden")?(t(".cdp-more-d-title").show(300),t(this).text("(hide more options)")):(t(".cdp-more-d-title").hide(300),t(this).text("(show more options)"));setTimeout(()=>{t(".cdp-d-section").css({"max-height":t(".cdp-d-section").height()})},310)}),t("body").on("change",".cdp-d-first-chapter-cb",function(){t(".cdp-d-section").css({"max-height":"",height:""});let e=t('.cdp-d-option[name="cdp-d-a-posts"]').is(":checked")+0,i=t('.cdp-d-option[name="cdp-d-a-pages"]').is(":checked")+0,o=t('.cdp-d-option[name="cdp-d-a-customs"]').is(":checked")+0;e+i+o>1?t(".cdp-d-option-select-parent").show(300):t(".cdp-d-option-select-parent").hide(300);setTimeout(()=>{t(".cdp-d-section").css({"max-height":t(".cdp-d-section").height()})},310)}),t("body").on("click",".cdp-d-search",function(){let e=t('.cdp-d-option[name="cdp-d-a-posts"]').is(":checked")?1:0,i=t('.cdp-d-option[name="cdp-d-a-pages"]').is(":checked")?1:0,d=t('.cdp-d-option[name="cdp-d-a-customs"]').is(":checked")?1:0;e+i+d<=0?t.cdpNotification("error",cdpJS.strCheckDuplicatesSearch):null==c?function(e=function(){}){t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"get_all_posts"}).done(i=>{t.isJsonString(i)&&(i=t.cdpParse(i)),e(i)}).fail(i=>{t.cdpNotification("error",cdpJS.strPostListIssue),console.log(i),e(!1)})}(t=>{0!=t&&p(t)}):p(c);function n(t,e){let i=parseInt(e[e.length-1]);for(let o=e.length;o>0&&(i=parseInt(e[o-1]),ext=!1,t.posts.findIndex(t=>t.ID==i)>=0?ext=!0:t.pages.findIndex(t=>t.ID==i)>=0?ext=!0:t.custom.findIndex(t=>t.ID==i)>=0?ext=!0:i=!1,1!=ext);--o);return i}function p(e){let i={posts:[],pages:[],custom:[]},d={},p={};null!=c&&(i=c);let m=!!t('.cdp-d-option[name="cdp-d-a-posts"]').is(":checked"),h=!!t('.cdp-d-option[name="cdp-d-a-pages"]').is(":checked"),f=!!t('.cdp-d-option[name="cdp-d-a-customs"]').is(":checked"),g=!!t('.cdp-d-option[name="cdp-d-b-title"]').is(":checked"),v=!!t('.cdp-d-option[name="cdp-d-b-slug"]').is(":checked"),y=!!t('.cdp-d-option[name="cdp-d-c-excerpt"]').is(":checked"),b=!!t('.cdp-d-option[name="cdp-d-c-count"]').is(":checked"),x=t('.cdp-d-option-select[name="cdp-d-d-sel-which"]').val(),k=null,w=null;if(m+h+f>1&&(k=t('.cdp-d-option-select[name="cdp-d-sels-diftyp"]').val()),1==g&&(w="1"==t('.cdp-d-option[name="cdp-radio-btn-dtitles"]:checked').val()),null==c)for(post_type in e)if("meta"!=post_type)for(post in e[post_type]){post=e[post_type][post],post.post_type=post.post_type[0].toUpperCase()+post.post_type.slice(1);let o=e.meta[post.ID]._cdp_origin,c=e.meta[post.ID]._cdp_counter,d=e.meta[post.ID]._cdp_origin_title,s=r(post.post_content),a={id:post.ID,url:post.guid,slug:post.post_name,type:post.post_type,date:post.post_date,title:post.post_title,status:post.post_status,edit:post.post_modified,excerpt:post.post_excerpt,words:u(s),origin:"object"==typeof o&&n(e,o),counter:"object"==typeof c&&c[c.length-1],origin_title:"object"==typeof d&&d[0]};if(l&&t.cdp.isPremium()&&(a.content=t.cdp.premium.prepareAdvanced(s),a.author=t.cdp.premium.prepareAdvanced(post.post_author)),"object"==typeof o){let t=parseInt(o[o.length-1]);void 0===p[t]?p[t]=1:p[t]++}i[post_type].push(a)}i=function(t){let e=JSON.parse(JSON.stringify(t));return e.posts.sort((t,e)=>!1===t.origin?-1:!1===e.origin?1:0),e.pages.sort((t,e)=>!1===t.origin?-1:!1===e.origin?1:0),e.custom.sort((t,e)=>!1===t.origin?-1:!1===e.origin?1:0),e}(i),null==c&&(c=i);let _=[],S=[],C=!1,T=0,j=0,J=[],I=[],N=[];if("2"==k){T=1;let t=[],e=[],o=[];1==m&&(t=i.posts),1==h&&(e=i.pages),1==f&&(o=i.custom),_=(_=[].concat(t,e,o)).sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0),S=P(_)}else{let t=[],e=[],o=[];1==m&&(T+=1),1==h&&(T+=1),1==f&&(T+=1),i.posts=i.posts.sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0),1==m&&(t=P(i.posts)),i.pages=i.pages.sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0),1==h&&(e=P(i.pages)),i.custom=i.custom.sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0),1==f&&(o=P(i.custom)),S=[].concat(t,e,o)}function Q(e){1==++j&&(J=e),2==j&&(I=e),3==j&&(N=e),j==T&&function(e){for(post in $tbody=t("#cdp-d-table-tbody"),$tbody.html(""),e)$tbody.append((i=e[post],t(`<tr data-id="${i.id}">\n <td><input type="checkbox" id="cdp_in_${i.id}" class="cdp-input-d-id" name="${i.id}"/></td>\n <td><label for="cdp_in_${i.id}">${i.title}</label></td>\n <td><a href="${i.url}" target="_blank">${""!=i.slug?i.slug:i.url}</a></td>\n <td>${i.type}</td>\n <td>${i.date.slice(0,-8)}</td>\n <td>${i.words}</td>\n </tr>`)));var i;if("1"==x)for(parent in d)for(child in d[parent])t(`.cdp-input-d-id[name="${d[parent][child]}"]`).prop("checked",!0);else if("2"==x)for(parent in d){t(`.cdp-input-d-id[name="${parent}"]`).prop("checked",!0);let e=Math.max(...d[parent]);for(child in d[parent])d[parent][child]!=e&&t(`.cdp-input-d-id[name="${d[parent][child]}"]`).prop("checked",!0)}else"3"==x&&t(".cdp-input-d-id").prop("checked",!0);s=d,a=x;let c=!(g||v||y||b),n=t('.cdp-d-option[name="cdp-d-a-posts"]').is(":checked")+0,p=t('.cdp-d-option[name="cdp-d-a-pages"]').is(":checked")+0,l=t('.cdp-d-option[name="cdp-d-a-customs"]').is(":checked")+0;c&&n+p+l>0&&e.length>0?(t("#cdp-d-table-tbody").find("tr").attr("data-ignore",!0),o.refresh(),t(".cdp-delete-info").hide(300),t('[data-empty-info="true"]').find("div").html(cdpJS.strFilterNotSelected),t('[data-empty-info="true"]').addClass("cdp-customized")):o.refresh();t(".cdp-d-searchbox-c").val(""),$(),0==e.length?(t.cdpNotification("warning",cdpJS.strNoDataForFilter),t(".cdp-delete-info").hide(300)):t(".cdp-not-yet-search").is(":visible")||(t(".cdp-d-section").css({"max-height":"",height:""}),t(".cdp-not-yet-search").show(300),t('[data-empty-info="true"]').hasClass("cdp-customized")||t(".cdp-delete-info").show(300),setTimeout(()=>{t(".cdp-d-section").css({"max-height":"",height:""}),t(".cdp-d-section").css({"max-height":`${t(".cdp-d-section").height()}px`})},320))}(S=[].concat(J,I,N))}function P(e){let i=[],o=[],c=!(g||v||y||b);if(!e)return i;function n(t,e){if(t.id==e.origin&&0!=e.origin_title){let t=e.origin_title.replace(/\[Counter\]/g,e.counter);if(e.title==t)return!0}return!1}function p(t){for(let e=0;e<t.length;e++){let i=t[e];if(!o.includes(i.id))for(let d=c?0:e;d<t.length;d++){if(!t[d])continue;if(o.includes(t[d].id))continue;if(d==e)continue;let p=1==g&&(i.title==t[d].title||1==w&&n(i,t[d])),a=1==v&&D(i.slug,t[d].slug)>=.85,l=!1;l=1==p||1==a?1==y&&(""==i.excerpt||i.excerpt==t[d].excerpt):1==y&&""!=i.excerpt&&i.excerpt==t[d].excerpt;let r=1==b&&i.words==t[d].words,u=1==c&&i.id==t[d].origin&&t.findIndex(e=>e.origin==t[d].id)<=-1;!p&&g||!a&&v||!l&&y||!r&&b||!u&&c||(s(i,!0,!1),s(t[d],!1,i.id))}}Q(i)}function s(t,e=!1,c=!1){o.includes(t.id)||(1==e?d[t.id]=[]:0!=c&&d[c].push(t.id),o.push(t.id),i.push(t))}l&&t.cdp.isPremium()?t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"get_authors"}).done(i=>{if(t.isJsonString(i)&&(i=t.cdpParse(i)),"success"===i.status){let o=i.users;p(e=t.cdp.premium.advancedfilter(e,o))}else!1===C&&(t.cdpNotification("info",cdpJS.strServerConnectIssue),C=!0),p(e)}).fail(()=>{!1===C&&(t.cdpNotification("info",cdpJS.strServerConnectIssue),C=!0),p(e)}):p(e)}}function r(t){return(t=(t=(t=t.replace(/\<\!\-\-(.*?)\-\-\>/gim,"")).replace(/<[^>]*>/gim," ")).replace(/\s+/gim," ")).trim()}function u(t){return(t=t.split(" ")).length}}),t("body").on("change",".cdp-input-d-id",function(){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return;let e=parseInt(t("#cdp-d-table-pagi-ilosc-wynikow").text()),i=parseInt(t(".cdp-t-d-ct").text());t(this).is(":checked")?(i++,t(this).parents("tr").addClass("cdp-del")):(i--,t(this).parents("tr").removeClass("cdp-del"));if(t(".cdp-t-d-ct").text(i),i==e)t(".cdp-d-select-all").text("Deselect all"),t(".cdp-d-checkbox-all").prop("checked",!0);else{t(".cdp-d-select-all").text("Select all");let e=t(".cdp-input-d-id:visible");for(let i=0;i<e.length;++i){if(!t(e[i]).is(":checked")){t(".cdp-d-checkbox-all").prop("checked",!1);break}i==e.length-1&&t(".cdp-d-checkbox-all").prop("checked",!0)}}}),t("body").on("change",".cdp-d-checkbox-all",function(e){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return e.preventDefault(),void t(this).prop("checked",!1);let i=parseInt(t("#cdp-d-table-pagi-ilosc-wynikow").text()),o=t(".cdp-d-checkbox-all").is(":checked"),c=t(".cdp-input-d-id:visible"),d=0;for(let e=0;e<c.length;++e)t(c[e]).is(":checked")&&!o?d--:!t(c[e]).is(":checked")&&o&&d++,t(c[e]).prop("checked",o);let n=parseInt(t(".cdp-t-d-ct").text())+d;t(".cdp-t-d-ct").text(n),n==i?t(".cdp-d-select-all").text("Deselect all"):t(".cdp-d-select-all").text("Select all");let p=t(".cdp-input-d-id:visible").parents("tr"),s=t(".cdp-input-d-id:visible:checked").parents("tr");p.removeClass("cdp-del"),s.addClass("cdp-del")}),t("body").on("click",".cdp-d-select-all",function(){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return;let e=parseInt(t("#cdp-d-table-pagi-ilosc-wynikow").text()),i=parseInt(t(".cdp-t-d-ct").text()),o=!0;e==i&&(o=!1);$chbs=t(".cdp-input-d-id");for(let e=0;e<$chbs.length;++e)t($chbs[e]).prop("checked",o);t(".cdp-t-d-ct").text(1==o?e:"0"),0==o?(t(".cdp-d-select-all").text("Select all"),t(".cdp-d-checkbox-all").prop("checked",!1),t(".cdp-input-d-id").parents("tr").removeClass("cdp-del")):(t(".cdp-d-checkbox-all").prop("checked",!0),t(".cdp-d-select-all").text("Deselect all"),t(".cdp-input-d-id").parents("tr").addClass("cdp-del"))}),t("body").on("click",".prev_page, .next_page, .page_link",function(){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return;t(".cdp-input-d-id:visible:checked").length==t(".cdp-input-d-id:visible").length?t(".cdp-d-checkbox-all").prop("checked",!0):t(".cdp-d-checkbox-all").prop("checked",!1)}),t("body").on("click",".cdp-d-real-delete",function e(i=!1,d=null,n=0){if(!t(".cdp-d-just-check-it").is(":checked"))return void t.cdpNotification("warning",cdpJS.strCheckSteps);let p=[];if(null===d){let e=t(".cdp-input-d-id:checked");for(let i=0;i<e.length;++i)p.push(parseInt(t(e[i]).attr("name")));if(0==p.length)return void t.cdpNotification("warning",cdpJS.strSelectPostToDel)}else p=d;let u=t(".cdp-d-throttling").val(),m=t(".cdp-d-throttling-count").val(),h=t(".cdp-p-redirections").val(),f=!!t(".cdp-p-just-trash-them").is(":checked"),g=null,v="1"==t('.cdp-dis-en-opt[name="cdp-redirections"]').val();if("1"==u&&(!m||0==m||""==m))return void t.cdpNotification("warning",cdpJS.strFieldWrongCount);l&&t.cdp.isPremium()&&(g=t.cdp.premium.auitd(a,s));if(p.length>801&&!0!==i){let t=Math.ceil(p.length/800);for(let i=0,o=!0;i<t;++i)i==t-1&&(o=!1),e(o,p.slice(800*i,800*i+800),i);return}t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"delete_them",ids:p,throttling:u,thc:m,redi:h,thrs:f,auit:v,auitd:g}).done(e=>{if(t.isJsonString(e)&&(e=t.cdpParse(e)),"success"==e.status){t("#cdp-d-table-tbody").find(".cdp-del").remove();let e=c.posts.filter(t=>!p.includes(t.id)),d=c.pages.filter(t=>!p.includes(t.id)),s=c.custom.filter(t=>!p.includes(t.id));c={posts:e,pages:d,custom:s},!0!==i&&o.refresh(),$(),0==n&&t.cdpNotification("success",cdpJS.strDeletionProcessStarted),_(S),!0!==i&&($parent=t(".cdp-d-section").parents(".cdp-collapsible"),$col=t(t($parent[0]).find(".cdp-collapsible-title")[0]),r("true",$col))}else!0!==i&&t.cdpNotification("error",`${cdpJS.strDeletionTaskStart} ${"1"==u?cdpJS.strDeletionTaskEnd:""}`)}).fail(e=>{!0!==i&&t.cdpNotification("error",cdpJS.strDeletionTaskConsInfo),console.log(e)})}),t("body").on("change",".cdp-d-throttling",function(){t(".cdp-d-section").css({"max-height":"",height:""}),"1"==t(this).val()?t(".cdp-d-throttling-count-p, .cdp-even-more-th-info").show(300):t(".cdp-d-throttling-count-p, .cdp-even-more-th-info").hide(300);setTimeout(()=>{t(".cdp-d-section").css({"max-height":t(".cdp-d-section").height()})},310)}),t("body").on("change",".cdp-d-throttling-count",function(){let e=parseInt(t(this).val());isNaN(e)?t(this).val(1):e>=1&&e<=10240?e>=1&&e<=1&&t(this).val(1):e<1?t(this).val(1):t(this).val(10240)}),t("body").on("change",".cdp-custom-date-picking",u),t("body").on("mouseover",".cdp-tooltip-copy",function(){t(this).hasClass("tooltipstered")||(t(this).tooltipster({delay:100,timer:400,debug:!1,delayTouch:[100,200],interactive:!0,distance:4,side:"bottom",contentAsHTML:!0,content:t(".cdp-tooltip-content").html(),repositionOnScroll:!0,selfDestruction:!1,trigger:"custom",triggerOpen:{mouseenter:!0,touchstart:!0},triggerClose:{mouseleave:!0,click:!0,tap:!0},functionBefore:Q,functionReady:P,functionAfter:M,functionFormat:A}),t(this).tooltipster("open"),t("#cdp-hideTT").length>0&&t(".tooltipster-base").hide())}),t("body").on("keyup",".cdp-d-searchbox-c",function(){if(t('[data-empty-info="true"].cdp-customized').length>0)return;let e=t(this).val();e.length>100&&(e=e.substr(0,100));if(e=(e=e.trim().replace(/\s+/gim," ").toLowerCase()).split(" "),$trs=t("#cdp-d-table-tbody").find("tr"),$trs.length<=0)return;$trs.removeAttr("data-ignore");for(let i=0;i<$trs.length;++i){$tr=t($trs[i]),$title=t($tr.find("td")[1]).text().toLowerCase(),$url=t($tr.find("td")[2]).text().toLowerCase();let o=!1;for(let t=0;t<e.length;++t)if($title.includes(e[t]))o=!0;else{if(!$url.includes(e[t])){o=!1;break}o=!0}0==o&&$tr.attr("data-ignore","true")}clearTimeout(p),p=setTimeout(()=>{o.refresh()},20)}),t("body").on("change",".cdp-data-set",C),t("#wpbody").on("scroll",T),t(window).on("scroll",T),t("body").on("click",".nice-select",T),t("body").on("click",".cdp-show-the-copies",function(e){e.preventDefault(),t(".cdp-d-section").css({"max-height":"",height:""}),t("#cdp-d-table-tbody").find("tr").not('[data-empty-info="true"]').removeAttr("data-ignore"),t(".cdp-d-searchbox-c").val(""),t('[data-empty-info="true"]').addClass("cdp-customized"),o.refresh(),$(),t(".cdp-d-section").css({"max-height":"",height:""}),parseInt(t("#cdp-d-table-pagi-ilosc-wynikow").text())>0&&t(".cdp-delete-info").show(300);t(".cdp-not-yet-search").is(":visible")||(t(".cdp-not-yet-search").show(300),t('[data-empty-info="true"]').hasClass("cdp-customized")||t(".cdp-delete-info").show(300));setTimeout(()=>{t(".cdp-d-section").css({"max-height":t(".cdp-d-section").height()})},310)}),t("body").on("change",".cdp-per-page-select-show",function(){let e=t(this).val();o.changePageSize(e)}),t("body").on("change",'.cdp-d-option[name="cdp-d-b-title"]',j),t("body").on("change",'.cdp-d-option[name="cdp-d-b-slug"]',j),t("body").on("click",".cdp-tab-element",function(){if(t(this).hasClass("cdp-tab-active"))return;if("true"==t(this).attr("data-disabled"))return;let e=t(t(`#${t(this).attr("data-box")}`)[0]),i=t(t(`#${t(".cdp-tab-active").attr("data-box")}`)[0]);if(!e||e.length<=0)return;t(".cdp-tab-active").removeClass("cdp-tab-active"),t(this).addClass("cdp-tab-active"),e.show(),e.css({"max-height":"",height:""});let o=e.height();e.css({"max-height":"0px",opacity:0}),e.animate({"max-height":o+"px",opacity:1},500,function(){let e=t(".cdp-d-section").height();t(".cdp-d-section").css({height:e+"px","max-height":e+"px"})}),t(".cdp-d-section").css({height:"","max-height":""}),i.css({"max-height":i.height()+"px",opacity:1}),i.animate({"max-height":"0px",opacity:0},500,function(){i.hide()}),setTimeout(()=>{i.css({"max-height":"",height:""}),e.css({"max-height":"",height:""})},510);let c=parseInt(t(window).height()/8);t("#wpbody").animate({scrollTop:jQuery(".cdp-d-section")[0].offsetTop-c},500)}),t("body").on("click",".cdp-premium-element",function(t){t.preventDefault()}),t("body").on("click",".cdp-go-to-names-chapter",function(e){e.preventDefault(),O(),r("cdp-name-section-cnx"),setTimeout(()=>{let e=parseInt(t(window).height()/4);t("#wpbody").animate({scrollTop:t(".cdp-name-section-cnx")[0].offsetTop-e},500)},400)}),t("body").on("click",".cdp-close-chapter",J),t("body").on("click",".cdp-save-options",J),t("body").on("click",".cdp-togglable-name-b",function(){"(Name of original)"==t(".cdp-togglable-name-b").text()?(t(".cdp-togglable-name-b").text("(blank)"),t(".cdp-togglable-name-b").tooltipster("content",cdpJS.strTogglableNameChange)):(t(".cdp-togglable-name-b").text(cdpJS.strTogglableName),t(".cdp-togglable-name-b").tooltipster("content",cdpJS.strTogglableNameChangeBlank));u()}),t("#cdp_jvlabelWrap-fake").on("click",function(){if(0===t("#support-cdp").length){t(t(".cdp-container")[0]).append('<script id="support-cdp" src="//code.jivosite.com/widget/MoP3Jphzts" async><\/script>'),setTimeout(function(){t("#cdp_jvlabelWrap-fake").hide()},100);var e=!1;let i=setInterval(function(){1==e&&clearInterval(i),void 0!==window.jivo_api&&(window.jivo_api.open(),e=!0)},30)}}),t(".cdp-select").niceSelect(),t(".cdp-tooltip").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:4,side:"top",contentAsHTML:!0,maxWidth:600,triggerOpen:{mouseenter:!0,touchstart:!0},triggerClose:{mouseleave:!0,click:!0,tap:!0},theme:["tooltipster-noir","tooltipster-noir-customized"],repositionOnScroll:!0,functionReady:H}),t("#cdp-d-table").length>0&&(o=new IcPagination(t("#cdp-d-table"),"#cdp-d-table-pagi",{itemsOnPage:25,useParams:!1,emptylist:'<div class="cdp-center">'+cdpJS.strNoItems+"</div>"})),t(".cdp-copy-button").on("mouseup",function(){f(!0)});let I=(e,i,o,c)=>t(`<a class="ab-item cdp-dropdown-menu cdp-dd-item cdp-dd-ud${0==e?" cdp-bnew-notis":""}" data-token="${i}">\n <div style="display: block; width: calc(100% - 3px);">\n <div class="cdp-dropdown-left${1==o?" cdp-red":""}">${"delete"==c?cdpJS.strDeletingPosts:cdpJS.strAutoCleanPosts}</div>\n <div class="cdp-dropdown-right cdp-noti-kill-btn">`+cdpJS.strKill+"</div>\n </div>\n </a>"),N=(e,i,o,c)=>{let d="",n="";return void 0!==e&&(void 0!==e["formated-date"]&&(d=e["formated-date"]),void 0!==e.text&&(n=e.text),""!=n&&(n='data-ftext="'+n+'" '),""!=d&&(d='data-fdate="Completed at '+d+'" ')),t(`<a ${d}${n}class="ab-item cdp-dropdown-menu cdp-dd-item cdp-dd-d${0==i?" cdp-bnew-notis":""}" data-token="${o}">\n <div style="display: block; width: calc(100% - 3px);">\n <div class="cdp-dropdown-left">${"delete"==c?cdpJS.strDeletedPosts:cdpJS.strAutoCleanedPosts}</div>\n <div class="cdp-dropdown-right cdp-noti-hide-btn">`+cdpJS.strHide+"</div>\n </div>\n </a>")};function D(t,e){let i=t,o=e;t.length<e.length&&(i=e,o=t);let c=i.length;return 0==c?1:(c-function(t,e){t=t.toLowerCase(),e=e.toLowerCase();let i=new Array;for(let o=0;o<=t.length;o++){let c=o;for(let d=0;d<=e.length;d++)if(0==o)i[d]=d;else if(d>0){let n=i[d-1];t.charAt(o-1)!=e.charAt(d-1)&&(n=Math.min(Math.min(n,c),i[d])+1),i[d-1]=c,c=n}o>0&&(i[e.length]=c)}return i[e.length]}(i,o))/parseFloat(c)}function Q(i,o){O(!0),t(".cdp-tooltip-before-options").show(),t(".cdp-tooltip-full-options").hide(),$inputs=t(t(".cdp-tooltip-content").find("input, select"));for(let e=0;e<$inputs.length;++e){let i=t($inputs[e]);if("checkbox"==i.attr("type"))i.is(":checked")?i.attr("checked","checked"):i.removeAttr("checked");else if(t(i).is("select"))if("tooltip-which-profile-first"==t(i).attr("name")){let e=t(t('[name="tooltip-which-profile-first"]')[0]).val();"custom"==e||null==e?setTimeout(()=>{t('[name="tooltip-which-profile-first"]').val("custom")},50):setTimeout(()=>{t('[name="tooltip-which-profile-first"]').val(e)},50)}else{let e=t('[name="tooltip-which-profile-second"] option:selected').map(function(t,e){return this.value}).get()[0];"custom"==e||null==e?setTimeout(()=>{t('[name="tooltip-which-profile-second"]').val("custom")},50):setTimeout(()=>{t('[name="tooltip-which-profile-second"]').val(e)},50)}else i.attr("value",i.val())}return cdp_tooltips_update_content(),e=t(o.origin).attr("data-cdp-id"),!0}function P(e,i){$parent=t(i.origin).parents(".row-actions"),$parent.css({left:0});let o=t(t("a.menu-top.toplevel_page_copy-delete-posts")[0]).attr("href");t(".cdp-tooltip-info-intt").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:6,side:"top",contentAsHTML:!0,content:`${cdpJS.strDefCopySettingsStart} <a href="${o}">${cdpJS.strDefCopySettingsLink}</a>.`,maxWidth:400,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-center"],repositionOnScroll:!0}),l&&jQuery.cdp.isPremium()?t(".cdp-tooltip-premium-spc-3").tooltipster({delay:800,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strMultisiteCanCopy,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}):(t(".cdp-tooltip-premium-spc-2").tooltipster({delay:800,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strCopyToOtherSiteHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),t(".cdp-tooltip-premium-spc").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),t(".cdp-tooltip-premium-spc, .cdp-tooltip-premium-spc-2").addClass("cdp-premium-element"),t(".cdp-tooltip-premium-spc, .cdp-tooltip-premium-spc-2").find("input, select").prop("disabled",!0),t(".cdp-tooltip-premium-spc-4").tooltipster("content",cdpJS.strPreOrderHtml),H(),cdp_tooltips_update_content())}function M(e,i){return $parent=t(i.origin).parents(".row-actions"),$parent.css({left:""}),!1}function A(){return t(t(".cdp-tooltip-content").html())}function H(){setTimeout(()=>{let e=t.tooltipster.instances();for(instance in e)e[instance].reposition()},10)}function O(e=!1){if(e){let e=t.tooltipster.instances();for(instance in e)e[instance].close()}else setTimeout(()=>{let e=t.tooltipster.instances();for(instance in e)e[instance].close()},10)}if(t(".cdp-admin-bar-noti").length>0&&setInterval(()=>{_(t=>{S(t)})},7e3),t(".cdp-drag-name").draggable({containment:".cdp-drags-cont",scroll:!1,helper:"clone",revert:"invalid"}),t(".cdp-names-real-input").droppable({drop:function(e,i){$picks=['<div class="cdp-name-box-small cdp-drag" data-cdp-val="0" contenteditable="false"><i class="cdp-novis">[</i>Counter<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="1" contenteditable="false"><i class="cdp-novis">[</i>CurrentTime<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="2" contenteditable="false"><i class="cdp-novis">[</i>CurrentDate<i class="cdp-novis">]</i></div>'],t(this).html(`${t(this).html()}${$picks[t(i.helper).attr("data-cdp-val")]}`),u()}}),"undefined"!=typeof pagenow&&["edit-page","edit-post"].includes(pagenow)&&t(".column-cb, .check-column").find("input").prop("checked",!1),t("#titlediv").find(".inside").length>0&&t("#cdp-original-post").length>0){let e=t("#cdp-original-post").attr("data-cdp-parent"),i=t("#cdp-original-post").attr("data-cdp-parent-url");t("#titlediv").find(".inside").append(t(`<div style="padding-left: 10px">${cdpJS.strPostDuplicateOf} <a href="${i}" target="_blank">${e}</a></div>`))}t(".cdp-preloader-c").length>0&&(u(),h(),w(),setTimeout(()=>{m(".cdp-names-prefix"),m(".cdp-names-suffix")},1e3),function(){let e=t(".cdp-tab-active");for(let i=0;i<e.length;i++){let o=t(`#${t(e[i]).attr("data-box")}`);o.show(),o.css({"max-height":"",height:""});let c=o.height();t(c).css({"max-height":c+"px",height:c+"px"})}}()),setTimeout(()=>{t(".cdp-container").is(":hidden")&&t(".cdp-container").length>0&&setTimeout(()=>{jQuery(".cdp-preloader-c").hide(),jQuery(".cdp-container").css({opacity:0}),jQuery(".cdp-container").show(),jQuery("#wpfooter").show(300),jQuery(".cdp-container").animate({opacity:1},300)},400)},5e3)}),jQuery(window).on("load",function(){setTimeout(()=>{jQuery(".cdp-container").length>0&&(jQuery(".cdp-preloader-c").hide(),jQuery(".cdp-container").css({opacity:0}),jQuery(".cdp-container").show(),jQuery("#wpfooter").show(300),jQuery(".cdp-container").animate({opacity:1},300));const t=void 0!==jQuery.cdp&&void 0!==jQuery.cdp.isPremium;jQuery(".cdp-tooltip-premium-dc").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),t&&jQuery.cdp.isPremium()?(jQuery(".cdp-tooltip-premium-spc-3").tooltipster({delay:800,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strMultisiteCanCopy,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),jQuery(".cdp-tooltip-premium-spc-3").addClass("cdp-premium-element"),jQuery(".cdp-tooltip-premium-spc-3").find("input, select").prop("disabled",!0)):(jQuery('.cdp-option-premium [value="3"]').prop("disabled",!0),setTimeout(()=>{jQuery(".cdp-premium-in-select").find('.option[data-value="premium"]').addClass("cdp-tooltip-premium disabled"),jQuery(".cdp-option-premium").find('.option[data-value="3"]').addClass("cdp-tooltip-premium disabled"),jQuery(".cdp-tooltip-premium-spc-2").tooltipster({delay:800,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strCopyToOtherSiteHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),jQuery(".cdp-tooltip-premium-spc, .cdp-tooltip-premium-spc-2").addClass("cdp-premium-element"),jQuery(".cdp-tooltip-premium-spc, .cdp-tooltip-premium-spc-2").find("input, select").prop("disabled",!0),jQuery(".cdp-tooltip-premium-spc-4").tooltipster("content",cdpJS.strPreOrderHtml),function(t){let e=void 0!==t?t:".cdp-tooltip-premium",i=-15;isNaN(parseInt(jQuery(e).attr("data-top")))||(i=parseInt(jQuery(e).attr("data-top")));jQuery(e).tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:i,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),o=e,jQuery(o).addClass("cdp-premium-element"),jQuery(o).find("input, select").prop("disabled",!0);var o}(),cdp_tooltips_update_content()},1e3))},400)}),function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();let i=t.originalEvent.changedTouches[0],o=document.createEvent("MouseEvents");o.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(o)}}if(t.support.touch="ontouchend"in document,t.support.touch){let i,o=t.ui.mouse.prototype,c=o._mouseInit,d=o._mouseDestroy;o._touchStart=function(t){!i&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,this._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},o._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},o._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},o._mouseInit=function(){let e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),c.call(e)},o._mouseDestroy=function(){let e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),d.call(e)}}}(jQuery);
1
+ function cdp_tooltips_update_content(){if(jQuery("select").niceSelect("update"),!(void 0!==jQuery.cdp&&void 0!==jQuery.cdp.isPremium)||!jQuery.cdp.isPremium()){jQuery(".cdp-premium-in-select").find('.option[data-value="premium"]').addClass("cdp-tooltip-premium disabled"),jQuery(".cdp-option-premium").find('.option[data-value="3"]').addClass("cdp-tooltip-premium disabled"),$prems=jQuery(".cdp-tooltip-premium");for(let t=0;t<$prems.length;t++){let e=$prems[t],o=-15;isNaN(parseInt(jQuery(e).attr("data-top")))||(o=parseInt(jQuery(e).attr("data-top"))),jQuery(e).tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:o,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0})}jQuery(".cdp-tooltip-premium-dc").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0})}}function cdp_totally_know_what_i_am_doing(t){if("really"!=t)return cdpJS.strAreYouSure;console.log(cdpJS.strYouAreCrazy);let e=jQuery;e("#cdp-purl").val();e.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"debug_function"}).done(t=>{console.log(t),console.log(cdpJS.strDebugOutputEnd)})}jQuery(document).ready(function(t){t("#cdp-purl").val();let e=null,o="default",i=null,c=null,d=null,n=null,p=null,s=null,a=null;const l=void 0!==t.cdp&&void 0!==t.cdp.isPremium;function r(e=null,o=!1){let i=this;"string"==typeof e&&(i=`.${e}`),0!=o&&(i=o),$parent=t(t(i).parents(".cdp-collapsible")[0]),$arrow=$parent.find(".cdp-arrow"),$body=$parent.find(".cdp-collapsible-content"),$title=$parent.find(".cdp-collapsible-title"),$titles=t(".cdp-collapsible-title"),group=$parent.attr("data-cdp-group"),height=$body.prop("scrollHeight"),$oArrows=t(`.cdp-collapsible[data-cdp-group="${group}"]`).not($parent).find(".cdp-arrow"),$oBodies=t(`.cdp-collapsible[data-cdp-group="${group}"]`).not($parent).find(".cdp-collapsible-content"),$body.hasClass("cdp-active")?($body.removeClass("cdp-active"),$titles.removeClass("cdp-active"),$oBodies.removeClass("cdp-active"),$arrow.removeClass("cdp-arrow-down").addClass("cdp-arrow-left"),$body.css({"max-height":""})):($titles.removeClass("cdp-active"),$body.addClass("cdp-active"),$title.addClass("cdp-active"),$oBodies.removeClass("cdp-active"),$arrow.removeClass("cdp-arrow-left").addClass("cdp-arrow-down"),$oArrows.removeClass("cdp-arrow-down").addClass("cdp-arrow-left"),$body.css({"max-height":`${height+30}px`}),$oBodies.css({"max-height":""}))}function u(){let e=t(".cdp-names-prefix").text(),o=t(".cdp-names-suffix").text(),i={year:(c=new Date).getFullYear(),month:("0"+(c.getMonth()+1)).slice(-2),day:c.getDate()<=9?"0"+c.getDate():c.getDate(),hour:c.getHours()<=9?"0"+c.getHours():c.getHours(),minute:c.getMinutes()<=9?"0"+c.getMinutes():c.getMinutes(),second:c.getSeconds()<=9?"0"+c.getSeconds():c.getSeconds(),week:c.getDay()};var c;let d="(blank)"==t(".cdp-togglable-name-b").text()?"":cdpJS.strTogglableName,n=`${e.trim()} ${d} ${o.trim()}`;n=n.replace(/\[Counter\]/g,"2");let p=t(".cdp-date-picked").val();"1"==p?n=n.replace(/\[CurrentDate\]/g,`${i.month}/${i.day}/${i.year}`):"2"==p?n=n.replace(/\[CurrentDate\]/g,`${i.day}/${i.month}/${i.year}`):"3"==p&&function(e){let o=t(".cdp-custom-date-picking").val();t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"get_formatted_time",format:o}).done(t=>{e(t)}).fail(()=>{e(!1)})}(e=>{n=n.replace(/\[CurrentDate\]/g,`${e}`),t(".cdp-example-name").text(n),n=(n=n.replace(/\[CurrentTime\]/g,`${i.hour}:${i.minute}:${i.second}`)).replace(/\s+/gim," "),t(".cdp-example-name").text(n)}),"3"!=p&&(n=(n=n.replace(/\[CurrentTime\]/g,`${i.hour}:${i.minute}:${i.second}`)).replace(/\s+/gim," "),t(".cdp-example-name").text(n))}function m(e=""){before=t(e).html(),text=t(e).html(),$picks=['<div class="cdp-name-box-small cdp-drag" data-cdp-val="0" contenteditable="false"><i class="cdp-novis">[</i>Counter<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="1" contenteditable="false"><i class="cdp-novis">[</i>CurrentTime<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="2" contenteditable="false"><i class="cdp-novis">[</i>CurrentDate<i class="cdp-novis">]</i></div>'],text=text.replace(/\[Counter\]/g,$picks[0]),text=text.replace(/\[CurrentDate\]/g,$picks[2]),text=text.replace(/\[CurrentTime\]/g,$picks[1]),text!=before&&t(e).html(text)}function h(){val=t('.cdp-other-options[name="after_copy"]').val(),2==val?t(".cdp-if-edit-page-selected").show(300):t(".cdp-if-edit-page-selected").is(":hidden")||t(".cdp-if-edit-page-selected").hide(300),setTimeout(()=>{jQuery(".cdp-oth-section").css({"max-height":""}),jQuery(".cdp-oth-section").css({"max-height":jQuery(".cdp-oth-section").height()})},310)}function f(i=!1){let c=t(this).attr("data-cdp-btn");1==i&&(c="copy-quick");let d=["copy-quick","copy-custom","copy-custom-link"],n=t(".cdp-modal-checkboxes").find(".cdp-input-dynamic");if(d.includes(c)){let i={type:c};if(c==d[0]){if(i.times=t(".cdp-modal-input-times-tooltip").val(),i.site=t('.cdp-input-dynamic[name="tooltip-which-site-first"]').val(),i.profile=t('.cdp-input-dynamic[name="tooltip-which-profile-first"]').val(),i.swap="2"==t(".cdp-swap").val()?"true":"false",!i.profile||"custom"==i.profile)return t.cdpNotification("warning","Please select settings for this copy."),void x()}else if(c==d[1]||c==d[2]){i.times=t('.cdp-modal-input-times[name="tooltip-which-times-second"]').val(),i.site=t('.cdp-input-dynamic[name="tooltip-which-site-second"]').val(),i.profile=t('.cdp-input-dynamic[name="tooltip-which-profile-second"]').val(),i.swap="2"==t(".cdp-swap").val()?"true":"false",i.custom={};for(let e=0;e<n.length;++e)i.custom[t(n[e]).attr("name")]=t(n[e]).is(":checked")}if(isNaN(parseInt(i.times))||parseInt(i.times)<=0)return void t.cdpNotification("warning",cdpJS.strCopyNumIssue);i.profile&&!["custom","clear","custom_named"].includes(i.profile)||(i.profile=o),O(),function(e=(()=>{})){window.onbeforeunload=(()=>cdpJS.strCopyInProgress),$e=t(".cdp-copy-loader-overlay"),$e.is(":hidden")&&($e.show(),$e.animate({opacity:1},300,function(){e(!0)}))}(()=>{t.ajax({type:"POST",url:ajaxurl,data:{action:"cdp_action_handling",token:"cdp",f:"copy_post",origin:"tooltip",id:[e],data:i},timeout:0}).done(function(e){x(),t.isJsonString(e)&&(e=t.cdpParse(e)),"error"==e.status?t.cdpNotification("error",cdpJS.strCopyPostIssue):c==d[2]||void 0!==e.link&&e.link.length>0?"pConv"==e.link?(t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"delete_success_img"}),"-28"==t(".cdp-copy-alert-success").position().top&&t(".cdp-copy-alert-success").animate({top:"32px",opacity:1},300),setTimeout(()=>{"32"==t(".cdp-copy-alert-success").position().top&&t(".cdp-copy-alert-success").animate({top:"-28px",opacity:0},300)},3e3)):window.location.href=e.link:location.reload()}).fail(function(e){t.cdpNotification("error",cdpJS.strCopyPostIssueConsInfo),x(),console.log(e),console.log(e.responseText)})})}else t.cdpNotification(cdpJS.strTooltipBtnIssue)}function g(e,i=!1){let c=t('.cdp-input-dynamic[name="tooltip-which-profile-second"]'),d=t(".cdp-modal-checkboxes").find(".cdp-input-dynamic"),n=c.length>1?t(t(c[1])):t(t(c[0]));t(c[1])&&t(c[1])||(null==t(c[1])&&t(c[0])?n=t(t(c[0])):null==t(c[0])&&t(c[1])&&(n=t(t(c[1]))));let p=n.val();0==e&&(p=i),"custom_named"==p?c.val("custom_named"):"custom"==p||null==p||null==p?c.val("custom"):"clear"==p?(0!=e&&e.preventDefault(),d.prop("checked",!1),c.val("custom")):!["clear","custom","custom_named"].includes(p)&&p.length>=1?y(p,function(e){for(let o in e)"object"!=typeof o&&t(`.cdp-input-dynamic[name="${o}"]`).prop("checked",v(e[o]))}):(0!=e&&e.preventDefault(),t.cdpNotification("warning",cdpJS.strSelectedProfIssue)),0==e&&c.val(p),["clear","custom","custom_named"].includes(p)||(o=p),cdp_tooltips_update_content()}function v(t){return"string"==typeof t&&"true"==t.trim().toLowerCase()}function y(e="default",o){t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"get_settings",profile:e}).done(e=>{if(t.isJsonString(e)&&(e=t.cdpParse(e)),e.status&&"error_no_exists"==e.status){t.cdpNotification("warning",cdpJS.strSelectedProfEmpty);let e={},i=t(".cdp-modal-option-r");for(let o=0;o<i.length;o++)e[t(i[o]).attr("name")]=t(i[o]).is(":checked");o(!1)}else o(e)}).fail(e=>{t.cdpNotification("error",cdpJS.strSelectedProfGetIssue),console.log(cdpJS.strConsLogErr),console.log(e),console.log("––––––––––––––––––––––––––"),o(!1)})}function b(){t(this).attr("class");let e=parseInt(t(this).val());e<=0&&(e=1),e>9999&&(e=9999),isNaN(e)&&(e=1),e||(e=1),t(".cdp-modal-input-times").val(e),t(".cdp-modal-input-times-tooltip").val(e),e>50?(t(".cdp-error-span-tooltip").show(300),t(".cdp-tooltip-before").attr("style","height: calc(225px - 20px - 16px) !important")):(t(".cdp-error-span-tooltip").hide(300),t(".cdp-tooltip-before").attr("style","")),e>1?(t(".cdp-multiple-tooltip-count").animate({opacity:1},200),t('.cdp-tooltip-btn-copy[data-cdp-btn="copy-custom-link"]').hide()):(t(".cdp-multiple-tooltip-count").animate({opacity:0},200),t('.cdp-tooltip-btn-copy[data-cdp-btn="copy-custom-link"]').show()),setTimeout(()=>{H()},310)}function x(e=(()=>{})){window.onbeforeunload=null,$e=t(".cdp-copy-loader-overlay"),$e.is(":hidden")||$e.animate({opacity:0},300,function(){$e.hide(),e(!0)})}function w(){let e=t(".cdp-profile-selected").val();var o,i;y(e,c=>{if(t.isJsonString(c)||"object"==typeof c){"object"!=typeof c&&(c=JSON.parse(c));let d=["usmplugin","yoast","woo"];for(k in c)"names"==k?(t(".cdp-names-prefix").html(c[k].prefix),t(".cdp-names-suffix").html(c[k].suffix),"3"!=c[k].format||l||(c[k].format="1"),t(".cdp-date-picked").val(c[k].format),t(".cdp-custom-date-picking").val(c[k].custom)):(!d.includes(k)||d.includes(k)&&l&&t.cdp.isPremium())&&t(`.cdp-data-set[data-cdp-opt="${k}"]`).prop("checked","true"==c[k]);cdp_tooltips_update_content(),u(),h(),l&&t.cdp.isPremium()&&t.cdp.premium.detectChangeOfCustom(),C(),m(".cdp-names-prefix"),m(".cdp-names-suffix"),o=e,i=(()=>{}),t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"set_default_profile",selection:o}).done(t=>{i(t)}).fail(()=>{i(!1)})}else t.cdpNotification("warning",cdpJS.strServerDataIssue)})}function $(){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return;let e=t(".cdp-input-d-id").length,o=t(".cdp-input-d-id:checked").length;o==e?t(".cdp-d-select-all").text("Deselect all"):t(".cdp-d-select-all").text("Select all"),t(".cdp-t-d-ct").text(o),$visible=t(".cdp-input-d-id:visible").length,$visible_checked=t(".cdp-input-d-id:checked:visible").length,$visible==$visible_checked?t(".cdp-d-checkbox-all").prop("checked",!0):t(".cdp-d-checkbox-all").prop("checked",!1),function(){let e=t(".cdp-input-d-id").parents("tr"),o=t(".cdp-input-d-id:checked").parents("tr");e.removeClass("cdp-del"),o.addClass("cdp-del")}()}function _(e){t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"give_me_current_tasks"}).done(o=>{t.isJsonString(o)&&(o=t.cdpParse(o)),"success"==o.status&&e(o.tasks)})}function S(e){let o=0,i=+new Date/1e3,c=t(".cdp-dd-item");for(let i=0;i<c.length;++i){e[t(c[i]).attr("data-token")]||t(c[i]).remove(),o++}for(task in e){let c=e[task],d=t(t(`.cdp-dd-item[data-token="${task}"]`)[0]);if(0==c.done){if(d.hasClass("cdp-dd-ud"))continue;{d.remove();let e=i-c.done>=86400;t(".cdp-dd-undone-list").append(I(c.shown,task,e,c.f)),o++}}else{if(d.hasClass("cdp-dd-d"))continue;d.remove(),t(".cdp-dd-done-list").append(N(c.data,c.shown,task,c.f)),o++}}(o>0||0==c.length)&&function(){let e=t(".cdp-dd-item").length,o=t(".cdp-dd-d").length,i=t(".cdp-dd-ud").length;o<=0?(t(".cdp-done-notis, .cdp-done-notis").addClass("cdp-noti-hide"),t(".cdp-done-hr, .cdp-done-notis").hide()):(t(".cdp-done-notis, .cdp-done-notis").removeClass("cdp-noti-hide"),t(".cdp-done-hr, .cdp-done-notis").show()),i<=0?(t(".cdp-undone-notis, .cdp-undone-notis").addClass("cdp-noti-hide"),t(".cdp-undone-hr, .cdp-undone-notis").hide()):(t(".cdp-undone-notis, .cdp-undone-notis").removeClass("cdp-noti-hide"),t(".cdp-undone-hr, .cdp-undone-notis").show()),e<=0?t(".cdp-admin-bar-noti").addClass("cdp-noti-hide"):t(".cdp-admin-bar-noti").removeClass("cdp-noti-hide"),t(".cdp-notis-counter").text(t(".cdp-bnew-notis").length)}()}function C(){$trs=t(".cdp-table tbody.cdp-ff-b1").find("tr");for(let e=0;e<$trs.length;e++){let o=t($trs[e]);o.find("input").is(":checked")?o.addClass("cdp-selected-tr-opt"):o.removeClass("cdp-selected-tr-opt")}}function T(e){if(t(".cdp-modal").is(":visible"))return;let o=window;0!=t("#wpbody").scrollTop()&&(o="#wpbody");let i=t(o).scrollTop()+2;i<=0&&(i=2),"click"!=e.type&&t(".nice-select, .nice-select .list").css({transition:"all 0s"}),t(".nice-select .list").css({"margin-top":`${-i}px`}),t("#cdpp-af-author").length>0&&(t(".ui-autocomplete").css({top:`${t("#cdpp-af-author").offset().top+40}px`}),t(".cdp-cool-datepicker").css({top:`${t(".cdpp-input-a").offset().top+40}px`})),clearTimeout(n),n=setTimeout(()=>{t(".nice-select .list").css({transition:""})},100),clearTimeout(d),d=setTimeout(()=>{let i=t(o).scrollTop()+2;i<=0&&(i=2),"click"!=e.type&&t(".nice-select .list").css({transition:"all 0s !important"}),t(".nice-select .list").css({"margin-top":`${-i}px`}),t("#cdpp-af-author").length>0&&(t(".ui-autocomplete").css({top:`${t("#cdpp-af-author").offset().top+40}px`}),t(".cdp-cool-datepicker").css({top:`${t(".cdpp-input-a").offset().top+40}px`})),clearTimeout(n),n=setTimeout(()=>{t(".nice-select .list").css({transition:""})},100)},100)}function j(){let e=t('.cdp-d-option[name="cdp-d-b-title"]').is(":checked"),o=t('.cdp-d-option[name="cdp-d-b-slug"]').is(":checked");e||o?t(".cdp-no-empty-text").html(cdpJS.strIncludingHtml):t(".cdp-no-empty-text").html(cdpJS.strIncludingHtml2)}function J(e){e.preventDefault(),$parent=t(this).parents(".cdp-collapsible"),$col=t(t($parent[0]).find(".cdp-collapsible-title")[0]),r("true",$col)}t(".cdp-intro-button").on("click",function(){let e=t(".cdp-intro").height();t(".cdp-intro").css({height:e+"px"}),t(".cdp-intro").animate({opacity:0,height:0},300,function(){t(".cdp-intro").hide(10),t("#cdp-never-intro").is(":checked")&&t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"no_intro"}).done(e=>{"error"==e&&t.cdpNotification("error",cdpJS.strIntroSaveIssue)}).fail(e=>{t.cdpNotification("error",cdpJS.strIntroSaveIssue2)})}),t(".cdp-s-i-a").show(),t(".cdp-s-i-a").animate({opacity:1},300)}),t(".cdp-save-options").on("click",function(){let e=t(".cdp-data-set"),o=t(".cdp-other-inputs"),i=t(".cdp-profile-selected").val(),c=t(".cdp-names-prefix").text().replace(/\s+/g," ").trim(),d=t(".cdp-names-suffix").text().replace(/\s+/g," ").trim(),n={names:{prefix:c,suffix:d,format:t(".cdp-date-picked").val(),custom:t(".cdp-custom-date-picking").val(),display:t(t(`option[value="${t(".cdp-profile-selected").val()}"]`)[0]).text()}},p={afterCopy:t('.cdp-other-options[name="after_copy"]').val(),postConverter:t('.cdp-other-options[name="post_converter"]').val(),others:{}},s={},a=t(".cdp-other-roles");for(let e=0;e<a.length;e++)s[t(a[e]).attr("name")]=t(a[e]).is(":checked");p.roles=s;for(let o=0;o<e.length;o++)n[t(e[o]).attr("data-cdp-opt")]=!!t(e[o]).is(":checked");for(let e=0;e<o.length;e++)p.others[t(o[e]).attr("name")]=!!t(o[e]).is(":checked");t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"save_options",options:n,profile:i,entire:p}).done(e=>{"success"==e?t.cdpNotification("success",cdpJS.strSettingsSaved,2e3):"error"==e?t.cdpNotification("error",cdpJS.strSettingsSaveIssue):t.cdpNotification("success",cdpJS.strSettingsSaved,2e3)}).fail(e=>{t.cdpNotification("error",cdpJS.strSettingsSaveIssue2),console.log(e)})}),t("#cdp-show-into-again").on("click",function(){t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"intro_again"}).done(e=>{"error"==e&&t.cdpNotification("error",cdpJS.strIntroUpdateIssue)}).fail(e=>{t.cdpNotification("error",cdpJS.strIntroUpdateIssue2)}),t(".cdp-s-i-a").animate({opacity:0},300,function(){t(".cdp-s-i-a").hide()}),function(){t(".cdp-intro").show().css({height:""});let e=t(".cdp-intro").height();t(".cdp-intro").css({height:"0px"}),t(".cdp-intro").animate({opacity:1,height:e+"px"},300,function(){})}()}),t(".cdp-show-projects").on("click",function(){t(".cdp-projects").is(":hidden")&&t(".cdp-projects").show(300);t(".cdp-show-projects").removeClass("cdp-pointer").animate({opacity:.5},300)}),t(".cdp-project-box").on("mouseenter",function(){t(".cdp-project-box").not(t(this)).addClass("cdp-half-opacity")}),t(".cdp-project-box").on("mouseleave",function(){t(".cdp-project-box").removeClass("cdp-half-opacity")}),t(".cdp-collapsible-title").on("click",r),t(".cdp-magic-input").on("keyup change",function(){before=t(this).html(),text=t(this).html(),$picks=['<div class="cdp-name-box-small cdp-drag" data-cdp-val="0" contenteditable="false"><i class="cdp-novis">[</i>Counter<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="1" contenteditable="false"><i class="cdp-novis">[</i>CurrentTime<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="2" contenteditable="false"><i class="cdp-novis">[</i>CurrentDate<i class="cdp-novis">]</i></div>'],text=text.replace(/\[Counter\]/g,$picks[0]),text=text.replace(/\[CurrentDate\]/g,$picks[2]),text=text.replace(/\[CurrentTime\]/g,$picks[1]),text!=before&&t(this).html(text)}),t(".cdp-magic-input").on("focus",function(e,o){if(o)return;let i=t(this).text();" "!=i[0]&&(i="&nbsp;"+i);" "!=i[i.length-1]&&(i+="&nbsp;");t(this).html(i),m(this)}),t(".cdp-magic-input").on("mouseup",".cdp-name-box-small",function(){t(this).hide(300),setTimeout(()=>{t(this).remove(),u()},300)}),t(".cdp-support-animated").on("mouseenter",function(){t(".cdp-support-animated").not(t(this)).addClass("cdp-half-opacity")}),t(".cdp-name-clickable").on("mouseup",function(e){if(e.preventDefault(),$picks=['<div class="cdp-name-box-small cdp-drag" data-cdp-val="0" contenteditable="false"><i class="cdp-novis">[</i>Counter<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="1" contenteditable="false"><i class="cdp-novis">[</i>CurrentTime<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="2" contenteditable="false"><i class="cdp-novis">[</i>CurrentDate<i class="cdp-novis">]</i></div>'],$box={1:".cdp-names-prefix",2:".cdp-names-real-input",3:".cdp-names-suffix"},t($box[e.which]).append($picks[t(this).attr("data-cdp-val")]),u(),e.which==e)return!1}),t(".cdp-support-animated").on("mouseleave",function(){t(".cdp-support-animated").removeClass("cdp-half-opacity")}),t(".cdp-f-einput-n").on("click","button",function(){let e=t(t(this).parents(".cdp-cf")[0]).find("input"),o=t(this).text(),i="12";"V"==o[0]?i="-51":"D"==o[0]&&(i="23");if(e.val().trim().length<=0)return void t.cdpNotification("warning",cdpJS.strLicenseKeyEmpty);t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"i_love_squirrels",rat:e.val(),m:i}).done(o=>{t.isJsonString(o)&&(o=t.cdpParse(o)),"success"==o.status?"valid"==o.data.license?(t.cdpNotification("success",cdpJS.strLicenseActiveReloading),setTimeout(()=>{window.location.reload()},2e3)):"site_inactive"==o.data.license?(t.cdpNotification("success",cdpJS.strLicenseValidPressBtn),e.prop("disabled",!0),t(this).text("Activate")):void 0!==o.data&&void 0!==o.data.msg?(t.cdpNotification("success",o.data.msg),setTimeout(()=>{window.location.reload()},2e3)):t.cdpNotification("warning",cdpJS.strUnknownRespRefreshPage):"fail"==o.status?t.cdpNotification(o.fail.type,o.fail.msg):t.cdpNotification("error",cdpJS.strSendRequestIssue)}).fail(e=>{t.cdpNotification("error",cdpJS.strSendRequestIssue2)})}),t(".cdp-names-real-input, .cdp-date-picked").on("keyup change",u),t('.cdp-other-options[name="after_copy"]').on("change",h),t("body").on("change keyup",".cdp-input-dynamic",function(){$input=t(t(".cdp-tooltip-content, .cdp-modal-content").find(`[name="${t(this).attr("name")}"]`)),"checkbox"==t(this).attr("type")?$input.prop("checked",t(this).is(":checked")):t($input).is("select")?($input.val(t(this).val()),t($input).hasClass("cdp-modal-input-profiles-r")&&g(!1,t(this).val())):$input.val(t(this).val());if(cdp_tooltips_update_content(),t($input).is("select")&&t($input).hasClass("cdp-premium-modal-dropdown")){let e=t("div.cdp-premium-modal-dropdown"),o=t(t(this).parents("div")[0]).find("div.cdp-premium-modal-dropdown");"2"==o.find("li.selected").data("value")?(e.find("span.current").addClass("cdp-relative"),e.find("span.current").html(cdpJS.strChangeTypeOfCopy)):e.find("span.current").removeClass("cdp-relative")}}),t("body").on("click",".cdp-tooltip-before-button",function(){let e=t('.cdp-input-dynamic[name="tooltip-which-profile-first"]').val();"custom"!=e&&g(!1,e);t(".cdp-tooltip-before-options").hide(200),setTimeout(()=>{t(".cdp-tooltip-full-options").show(200),setTimeout(()=>{H()},200)},200)}),t("body").on("click",".cdp-tooltip-btn-copy",f),t("body").on("change",'.cdp-input-dynamic[name="tooltip-which-profile-second"]',g),t("body").on("change",'.cdp-input-dynamic[name="tooltip-which-profile-first"]',function(){g(!1,t(this).val())}),t("body").on("change",".cdp-modal-checkboxes .cdp-input-dynamic",function(){t('.cdp-input-dynamic[name="tooltip-which-profile-second"]').val("custom_named"),cdp_tooltips_update_content(),g(!1,"custom_named")}),t("body").on("change",".cdp-modal-input-times-tooltip",b),t("body").on("change",".cdp-modal-input-times",b),t("body").on("click",".cdp-modal-times, .cdp-modal",t.cdpModalClose),t("body").on("click",".cdp-modal-open",t.cdpModal),t("body").on("change",".cdp-profile-selected",w),t("body").on("click",".cdp-show-more-d-title",function(e){e.preventDefault(),t(".cdp-d-section").css({"max-height":"",height:""}),t(".cdp-more-d-title").is(":hidden")?(t(".cdp-more-d-title").show(300),t(this).text("(hide more options)")):(t(".cdp-more-d-title").hide(300),t(this).text("(show more options)"));setTimeout(()=>{t(".cdp-d-section").css({"max-height":t(".cdp-d-section").height()})},310)}),t("body").on("change",".cdp-d-first-chapter-cb",function(){t(".cdp-d-section").css({"max-height":"",height:""});let e=t('.cdp-d-option[name="cdp-d-a-posts"]').is(":checked")+0,o=t('.cdp-d-option[name="cdp-d-a-pages"]').is(":checked")+0,i=t('.cdp-d-option[name="cdp-d-a-customs"]').is(":checked")+0;e+o+i>1?t(".cdp-d-option-select-parent").show(300):t(".cdp-d-option-select-parent").hide(300);setTimeout(()=>{t(".cdp-d-section").css({"max-height":t(".cdp-d-section").height()})},310)}),t("body").on("click",".cdp-d-search",function(){let e=t('.cdp-d-option[name="cdp-d-a-posts"]').is(":checked")?1:0,o=t('.cdp-d-option[name="cdp-d-a-pages"]').is(":checked")?1:0,d=t('.cdp-d-option[name="cdp-d-a-customs"]').is(":checked")?1:0;e+o+d<=0?t.cdpNotification("error",cdpJS.strCheckDuplicatesSearch):null==c?function(e=function(){}){t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"get_all_posts"}).done(o=>{t.isJsonString(o)&&(o=t.cdpParse(o)),e(o)}).fail(o=>{t.cdpNotification("error",cdpJS.strPostListIssue),console.log(o),e(!1)})}(t=>{0!=t&&p(t)}):p(c);function n(t,e){let o=parseInt(e[e.length-1]);for(let i=e.length;i>0&&(o=parseInt(e[i-1]),ext=!1,t.posts.findIndex(t=>t.ID==o)>=0?ext=!0:t.pages.findIndex(t=>t.ID==o)>=0?ext=!0:t.custom.findIndex(t=>t.ID==o)>=0?ext=!0:o=!1,1!=ext);--i);return o}function p(e){let o={posts:[],pages:[],custom:[]},d={},p={};null!=c&&(o=c);let m=!!t('.cdp-d-option[name="cdp-d-a-posts"]').is(":checked"),h=!!t('.cdp-d-option[name="cdp-d-a-pages"]').is(":checked"),f=!!t('.cdp-d-option[name="cdp-d-a-customs"]').is(":checked"),g=!!t('.cdp-d-option[name="cdp-d-b-title"]').is(":checked"),v=!!t('.cdp-d-option[name="cdp-d-b-slug"]').is(":checked"),y=!!t('.cdp-d-option[name="cdp-d-c-excerpt"]').is(":checked"),b=!!t('.cdp-d-option[name="cdp-d-c-count"]').is(":checked"),x=t('.cdp-d-option-select[name="cdp-d-d-sel-which"]').val(),k=null,w=null;if(m+h+f>1&&(k=t('.cdp-d-option-select[name="cdp-d-sels-diftyp"]').val()),1==g&&(w="1"==t('.cdp-d-option[name="cdp-radio-btn-dtitles"]:checked').val()),null==c)for(post_type in e)if("meta"!=post_type)for(post in e[post_type]){post=e[post_type][post],post.post_type=post.post_type[0].toUpperCase()+post.post_type.slice(1);let i=e.meta[post.ID]._cdp_origin,c=e.meta[post.ID]._cdp_counter,d=e.meta[post.ID]._cdp_origin_title,s=r(post.post_content),a={id:post.ID,url:post.guid,slug:post.post_name,type:post.post_type,date:post.post_date,title:post.post_title,status:post.post_status,edit:post.post_modified,excerpt:post.post_excerpt,words:u(s),origin:"object"==typeof i&&n(e,i),counter:"object"==typeof c&&c[c.length-1],origin_title:"object"==typeof d&&d[0]};if(l&&t.cdp.isPremium()&&(a.content=t.cdp.premium.prepareAdvanced(s),a.author=t.cdp.premium.prepareAdvanced(post.post_author)),"object"==typeof i){let t=parseInt(i[i.length-1]);void 0===p[t]?p[t]=1:p[t]++}o[post_type].push(a)}o=function(t){let e=JSON.parse(JSON.stringify(t));return e.posts.sort((t,e)=>!1===t.origin?-1:!1===e.origin?1:0),e.pages.sort((t,e)=>!1===t.origin?-1:!1===e.origin?1:0),e.custom.sort((t,e)=>!1===t.origin?-1:!1===e.origin?1:0),e}(o),null==c&&(c=o);let _=[],S=[],C=!1,T=0,j=0,J=[],I=[],N=[];if("2"==k){T=1;let t=[],e=[],i=[];1==m&&(t=o.posts),1==h&&(e=o.pages),1==f&&(i=o.custom),_=(_=[].concat(t,e,i)).sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0),S=P(_)}else{let t=[],e=[],i=[];1==m&&(T+=1),1==h&&(T+=1),1==f&&(T+=1),o.posts=o.posts.sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0),1==m&&(t=P(o.posts)),o.pages=o.pages.sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0),1==h&&(e=P(o.pages)),o.custom=o.custom.sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0),1==f&&(i=P(o.custom)),S=[].concat(t,e,i)}function Q(e){1==++j&&(J=e),2==j&&(I=e),3==j&&(N=e),j==T&&function(e){for(post in $tbody=t("#cdp-d-table-tbody"),$tbody.html(""),e)$tbody.append((o=e[post],t(`<tr data-id="${o.id}">\n <td><input type="checkbox" id="cdp_in_${o.id}" class="cdp-input-d-id" name="${o.id}"/></td>\n <td><label for="cdp_in_${o.id}">${o.title}</label></td>\n <td><a href="${o.url}" target="_blank">${""!=o.slug?o.slug:o.url}</a></td>\n <td>${o.type}</td>\n <td>${o.date.slice(0,-8)}</td>\n <td>${o.words}</td>\n </tr>`)));var o;if("1"==x)for(parent in d)for(child in d[parent])t(`.cdp-input-d-id[name="${d[parent][child]}"]`).prop("checked",!0);else if("2"==x)for(parent in d){t(`.cdp-input-d-id[name="${parent}"]`).prop("checked",!0);let e=Math.max(...d[parent]);for(child in d[parent])d[parent][child]!=e&&t(`.cdp-input-d-id[name="${d[parent][child]}"]`).prop("checked",!0)}else"3"==x&&t(".cdp-input-d-id").prop("checked",!0);s=d,a=x;let c=!(g||v||y||b),n=t('.cdp-d-option[name="cdp-d-a-posts"]').is(":checked")+0,p=t('.cdp-d-option[name="cdp-d-a-pages"]').is(":checked")+0,l=t('.cdp-d-option[name="cdp-d-a-customs"]').is(":checked")+0;c&&n+p+l>0&&e.length>0?(t("#cdp-d-table-tbody").find("tr").attr("data-ignore",!0),i.refresh(),t(".cdp-delete-info").hide(300),t('[data-empty-info="true"]').find("div").html(cdpJS.strFilterNotSelected),t('[data-empty-info="true"]').addClass("cdp-customized")):i.refresh();t(".cdp-d-searchbox-c").val(""),$(),0==e.length?(t.cdpNotification("warning",cdpJS.strNoDataForFilter),t(".cdp-delete-info").hide(300)):t(".cdp-not-yet-search").is(":visible")||(t(".cdp-d-section").css({"max-height":"",height:""}),t(".cdp-not-yet-search").show(300),t('[data-empty-info="true"]').hasClass("cdp-customized")||t(".cdp-delete-info").show(300),setTimeout(()=>{t(".cdp-d-section").css({"max-height":"",height:""}),t(".cdp-d-section").css({"max-height":`${t(".cdp-d-section").height()}px`})},320))}(S=[].concat(J,I,N))}function P(e){let o=[],i=[],c=!(g||v||y||b);if(!e)return o;function n(t,e){if(t.id==e.origin&&0!=e.origin_title){let t=e.origin_title.replace(/\[Counter\]/g,e.counter);if(e.title==t)return!0}return!1}function p(t){for(let e=0;e<t.length;e++){let o=t[e];if(!i.includes(o.id))for(let d=c?0:e;d<t.length;d++){if(!t[d])continue;if(i.includes(t[d].id))continue;if(d==e)continue;let p=1==g&&(o.title==t[d].title||1==w&&n(o,t[d])),a=1==v&&D(o.slug,t[d].slug)>=.85,l=!1;l=1==p||1==a?1==y&&(""==o.excerpt||o.excerpt==t[d].excerpt):1==y&&""!=o.excerpt&&o.excerpt==t[d].excerpt;let r=1==b&&o.words==t[d].words,u=1==c&&o.id==t[d].origin&&t.findIndex(e=>e.origin==t[d].id)<=-1;!p&&g||!a&&v||!l&&y||!r&&b||!u&&c||(s(o,!0,!1),s(t[d],!1,o.id))}}Q(o)}function s(t,e=!1,c=!1){i.includes(t.id)||(1==e?d[t.id]=[]:0!=c&&d[c].push(t.id),i.push(t.id),o.push(t))}l&&t.cdp.isPremium()?t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"get_authors"}).done(o=>{if(t.isJsonString(o)&&(o=t.cdpParse(o)),"success"===o.status){let i=o.users;p(e=t.cdp.premium.advancedfilter(e,i))}else!1===C&&(t.cdpNotification("info",cdpJS.strServerConnectIssue),C=!0),p(e)}).fail(()=>{!1===C&&(t.cdpNotification("info",cdpJS.strServerConnectIssue),C=!0),p(e)}):p(e)}}function r(t){return(t=(t=(t=t.replace(/\<\!\-\-(.*?)\-\-\>/gim,"")).replace(/<[^>]*>/gim," ")).replace(/\s+/gim," ")).trim()}function u(t){return(t=t.split(" ")).length}}),t("body").on("change",".cdp-input-d-id",function(){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return;let e=parseInt(t("#cdp-d-table-pagi-ilosc-wynikow").text()),o=parseInt(t(".cdp-t-d-ct").text());t(this).is(":checked")?(o++,t(this).parents("tr").addClass("cdp-del")):(o--,t(this).parents("tr").removeClass("cdp-del"));if(t(".cdp-t-d-ct").text(o),o==e)t(".cdp-d-select-all").text("Deselect all"),t(".cdp-d-checkbox-all").prop("checked",!0);else{t(".cdp-d-select-all").text("Select all");let e=t(".cdp-input-d-id:visible");for(let o=0;o<e.length;++o){if(!t(e[o]).is(":checked")){t(".cdp-d-checkbox-all").prop("checked",!1);break}o==e.length-1&&t(".cdp-d-checkbox-all").prop("checked",!0)}}}),t("body").on("change",".cdp-d-checkbox-all",function(e){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return e.preventDefault(),void t(this).prop("checked",!1);let o=parseInt(t("#cdp-d-table-pagi-ilosc-wynikow").text()),i=t(".cdp-d-checkbox-all").is(":checked"),c=t(".cdp-input-d-id:visible"),d=0;for(let e=0;e<c.length;++e)t(c[e]).is(":checked")&&!i?d--:!t(c[e]).is(":checked")&&i&&d++,t(c[e]).prop("checked",i);let n=parseInt(t(".cdp-t-d-ct").text())+d;t(".cdp-t-d-ct").text(n),n==o?t(".cdp-d-select-all").text("Deselect all"):t(".cdp-d-select-all").text("Select all");let p=t(".cdp-input-d-id:visible").parents("tr"),s=t(".cdp-input-d-id:visible:checked").parents("tr");p.removeClass("cdp-del"),s.addClass("cdp-del")}),t("body").on("click",".cdp-d-select-all",function(){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return;let e=parseInt(t("#cdp-d-table-pagi-ilosc-wynikow").text()),o=parseInt(t(".cdp-t-d-ct").text()),i=!0;e==o&&(i=!1);$chbs=t(".cdp-input-d-id");for(let e=0;e<$chbs.length;++e)t($chbs[e]).prop("checked",i);t(".cdp-t-d-ct").text(1==i?e:"0"),0==i?(t(".cdp-d-select-all").text("Select all"),t(".cdp-d-checkbox-all").prop("checked",!1),t(".cdp-input-d-id").parents("tr").removeClass("cdp-del")):(t(".cdp-d-checkbox-all").prop("checked",!0),t(".cdp-d-select-all").text("Deselect all"),t(".cdp-input-d-id").parents("tr").addClass("cdp-del"))}),t("body").on("click",".prev_page, .next_page, .page_link",function(){if("0"==t("#cdp-d-table-pagi-ilosc-wynikow").text())return;t(".cdp-input-d-id:visible:checked").length==t(".cdp-input-d-id:visible").length?t(".cdp-d-checkbox-all").prop("checked",!0):t(".cdp-d-checkbox-all").prop("checked",!1)}),t("body").on("click",".cdp-d-real-delete",function e(o=!1,d=null,n=0){if(!t(".cdp-d-just-check-it").is(":checked"))return void t.cdpNotification("warning",cdpJS.strCheckSteps);let p=[];if(null===d){let e=t(".cdp-input-d-id:checked");for(let o=0;o<e.length;++o)p.push(parseInt(t(e[o]).attr("name")));if(0==p.length)return void t.cdpNotification("warning",cdpJS.strSelectPostToDel)}else p=d;let u=t(".cdp-d-throttling").val(),m=t(".cdp-d-throttling-count").val(),h=t(".cdp-p-redirections").val(),f=!!t(".cdp-p-just-trash-them").is(":checked"),g=null,v="1"==t('.cdp-dis-en-opt[name="cdp-redirections"]').val();if("1"==u&&(!m||0==m||""==m))return void t.cdpNotification("warning",cdpJS.strFieldWrongCount);l&&t.cdp.isPremium()&&(g=t.cdp.premium.auitd(a,s));if(p.length>801&&!0!==o){let t=Math.ceil(p.length/800);for(let o=0,i=!0;o<t;++o)o==t-1&&(i=!1),e(i,p.slice(800*o,800*o+800),o);return}t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"delete_them",ids:p,throttling:u,thc:m,redi:h,thrs:f,auit:v,auitd:g}).done(e=>{if(t.isJsonString(e)&&(e=t.cdpParse(e)),"success"==e.status){t("#cdp-d-table-tbody").find(".cdp-del").remove();let e=c.posts.filter(t=>!p.includes(t.id)),d=c.pages.filter(t=>!p.includes(t.id)),s=c.custom.filter(t=>!p.includes(t.id));c={posts:e,pages:d,custom:s},!0!==o&&i.refresh(),$(),0==n&&t.cdpNotification("success",cdpJS.strDeletionProcessStarted),_(S),!0!==o&&($parent=t(".cdp-d-section").parents(".cdp-collapsible"),$col=t(t($parent[0]).find(".cdp-collapsible-title")[0]),r("true",$col))}else!0!==o&&t.cdpNotification("error",`${cdpJS.strDeletionTaskStart} ${"1"==u?cdpJS.strDeletionTaskEnd:""}`)}).fail(e=>{!0!==o&&t.cdpNotification("error",cdpJS.strDeletionTaskConsInfo),console.log(e)})}),t("body").on("change",".cdp-d-throttling",function(){t(".cdp-d-section").css({"max-height":"",height:""}),"1"==t(this).val()?t(".cdp-d-throttling-count-p, .cdp-even-more-th-info").show(300):t(".cdp-d-throttling-count-p, .cdp-even-more-th-info").hide(300);setTimeout(()=>{t(".cdp-d-section").css({"max-height":t(".cdp-d-section").height()})},310)}),t("body").on("change",".cdp-d-throttling-count",function(){let e=parseInt(t(this).val());isNaN(e)?t(this).val(1):e>=1&&e<=10240?e>=1&&e<=1&&t(this).val(1):e<1?t(this).val(1):t(this).val(10240)}),t("body").on("change",".cdp-custom-date-picking",u),t("body").on("mouseover",".cdp-tooltip-copy",function(){t(this).hasClass("tooltipstered")||(t(this).tooltipster({delay:100,timer:400,debug:!1,delayTouch:[100,200],interactive:!0,distance:4,side:"bottom",contentAsHTML:!0,content:t(".cdp-tooltip-content").html(),repositionOnScroll:!0,selfDestruction:!1,trigger:"custom",triggerOpen:{mouseenter:!0,touchstart:!0},triggerClose:{mouseleave:!0,click:!0,tap:!0},functionBefore:Q,functionReady:P,functionAfter:M,functionFormat:A}),t(this).tooltipster("open"),t("#cdp-hideTT").length>0&&t(".tooltipster-base").hide())}),t("body").on("keyup",".cdp-d-searchbox-c",function(){if(t('[data-empty-info="true"].cdp-customized').length>0)return;let e=t(this).val();e.length>100&&(e=e.substr(0,100));if(e=(e=e.trim().replace(/\s+/gim," ").toLowerCase()).split(" "),$trs=t("#cdp-d-table-tbody").find("tr"),$trs.length<=0)return;$trs.removeAttr("data-ignore");for(let o=0;o<$trs.length;++o){$tr=t($trs[o]),$title=t($tr.find("td")[1]).text().toLowerCase(),$url=t($tr.find("td")[2]).text().toLowerCase();let i=!1;for(let t=0;t<e.length;++t)if($title.includes(e[t]))i=!0;else{if(!$url.includes(e[t])){i=!1;break}i=!0}0==i&&$tr.attr("data-ignore","true")}clearTimeout(p),p=setTimeout(()=>{i.refresh()},20)}),t("body").on("change",".cdp-data-set",C),t("#wpbody").on("scroll",T),t(window).on("scroll",T),t("body").on("click",".nice-select",T),t("body").on("click",".cdp-show-the-copies",function(e){e.preventDefault(),t(".cdp-d-section").css({"max-height":"",height:""}),t("#cdp-d-table-tbody").find("tr").not('[data-empty-info="true"]').removeAttr("data-ignore"),t(".cdp-d-searchbox-c").val(""),t('[data-empty-info="true"]').addClass("cdp-customized"),i.refresh(),$(),t(".cdp-d-section").css({"max-height":"",height:""}),parseInt(t("#cdp-d-table-pagi-ilosc-wynikow").text())>0&&t(".cdp-delete-info").show(300);t(".cdp-not-yet-search").is(":visible")||(t(".cdp-not-yet-search").show(300),t('[data-empty-info="true"]').hasClass("cdp-customized")||t(".cdp-delete-info").show(300));setTimeout(()=>{t(".cdp-d-section").css({"max-height":t(".cdp-d-section").height()})},310)}),t("body").on("change",".cdp-per-page-select-show",function(){let e=t(this).val();i.changePageSize(e)}),t("body").on("change",'.cdp-d-option[name="cdp-d-b-title"]',j),t("body").on("change",'.cdp-d-option[name="cdp-d-b-slug"]',j),t("body").on("click",".cdp-tab-element",function(){if(t(this).hasClass("cdp-tab-active"))return;if("true"==t(this).attr("data-disabled"))return;let e=t(t(`#${t(this).attr("data-box")}`)[0]),o=t(t(`#${t(".cdp-tab-active").attr("data-box")}`)[0]);if(!e||e.length<=0)return;t(".cdp-tab-active").removeClass("cdp-tab-active"),t(this).addClass("cdp-tab-active"),e.show(),e.css({"max-height":"",height:""});let i=e.height();e.css({"max-height":"0px",opacity:0}),e.animate({"max-height":i+"px",opacity:1},500,function(){let e=t(".cdp-d-section").height();t(".cdp-d-section").css({height:e+"px","max-height":e+"px"})}),t(".cdp-d-section").css({height:"","max-height":""}),o.css({"max-height":o.height()+"px",opacity:1}),o.animate({"max-height":"0px",opacity:0},500,function(){o.hide()}),setTimeout(()=>{o.css({"max-height":"",height:""}),e.css({"max-height":"",height:""})},510);let c=parseInt(t(window).height()/8);t("#wpbody").animate({scrollTop:jQuery(".cdp-d-section")[0].offsetTop-c},500)}),t("body").on("click",".cdp-premium-element",function(t){t.preventDefault()}),t("body").on("click",".cdp-go-to-names-chapter",function(e){e.preventDefault(),O(),r("cdp-name-section-cnx"),setTimeout(()=>{let e=parseInt(t(window).height()/4);t("#wpbody").animate({scrollTop:t(".cdp-name-section-cnx")[0].offsetTop-e},500)},400)}),t("body").on("click",".cdp-close-chapter",J),t("body").on("click",".cdp-save-options",J),t("body").on("click",".cdp-togglable-name-b",function(){"(Name of original)"==t(".cdp-togglable-name-b").text()?(t(".cdp-togglable-name-b").text("(blank)"),t(".cdp-togglable-name-b").tooltipster("content",cdpJS.strTogglableNameChange)):(t(".cdp-togglable-name-b").text(cdpJS.strTogglableName),t(".cdp-togglable-name-b").tooltipster("content",cdpJS.strTogglableNameChangeBlank));u()}),t("body").on("click",".cdp_notice_perf_close",function(){t("#cdp_notice_error").hide(300),setTimeout(function(){t("#cdp_notice_error").remove()},350),t.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"hide_cron_notice"})}),t("body").on("click",".cdp-copy-notice-logs",function(){!function(e){try{const o=document.createElement("textarea");o.value=e,o.setAttribute("readonly",""),o.style.position="absolute",o.style.left="-9999px",document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o),t.cdpNotification("success",cdpJS.copySuccessfull)}catch(e){return console.log(e),t.cdpNotification("warning",cdpJS.copyFailed),!1}}(t(".cdp_notice_logs").text())}),t("#cdp_jvlabelWrap-fake").on("click",function(){if(0===t("#support-cdp").length){t(t(".cdp-container")[0]).append('<script id="support-cdp" src="//code.jivosite.com/widget/MoP3Jphzts" async><\/script>'),setTimeout(function(){t("#cdp_jvlabelWrap-fake").hide()},100);var e=!1;let o=setInterval(function(){1==e&&clearInterval(o),void 0!==window.jivo_api&&(window.jivo_api.open(),e=!0)},30)}}),t(".cdp-select").niceSelect(),t(".cdp-tooltip").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:4,side:"top",contentAsHTML:!0,maxWidth:600,triggerOpen:{mouseenter:!0,touchstart:!0},triggerClose:{mouseleave:!0,click:!0,tap:!0},theme:["tooltipster-noir","tooltipster-noir-customized"],repositionOnScroll:!0,functionReady:H}),t("#cdp-d-table").length>0&&(i=new IcPagination(t("#cdp-d-table"),"#cdp-d-table-pagi",{itemsOnPage:25,useParams:!1,emptylist:'<div class="cdp-center">'+cdpJS.strNoItems+"</div>"})),t(".cdp-copy-button").on("mouseup",function(){f(!0)});let I=(e,o,i,c)=>t(`<a class="ab-item cdp-dropdown-menu cdp-dd-item cdp-dd-ud${0==e?" cdp-bnew-notis":""}" data-token="${o}">\n <div style="display: block; width: calc(100% - 3px);">\n <div class="cdp-dropdown-left${1==i?" cdp-red":""}">${"delete"==c?cdpJS.strDeletingPosts:cdpJS.strAutoCleanPosts}</div>\n <div class="cdp-dropdown-right cdp-noti-kill-btn">`+cdpJS.strKill+"</div>\n </div>\n </a>"),N=(e,o,i,c)=>{let d="",n="";return void 0!==e&&(void 0!==e["formated-date"]&&(d=e["formated-date"]),void 0!==e.text&&(n=e.text),""!=n&&(n='data-ftext="'+n+'" '),""!=d&&(d='data-fdate="Completed at '+d+'" ')),t(`<a ${d}${n}class="ab-item cdp-dropdown-menu cdp-dd-item cdp-dd-d${0==o?" cdp-bnew-notis":""}" data-token="${i}">\n <div style="display: block; width: calc(100% - 3px);">\n <div class="cdp-dropdown-left">${"delete"==c?cdpJS.strDeletedPosts:cdpJS.strAutoCleanedPosts}</div>\n <div class="cdp-dropdown-right cdp-noti-hide-btn">`+cdpJS.strHide+"</div>\n </div>\n </a>")};function D(t,e){let o=t,i=e;t.length<e.length&&(o=e,i=t);let c=o.length;return 0==c?1:(c-function(t,e){t=t.toLowerCase(),e=e.toLowerCase();let o=new Array;for(let i=0;i<=t.length;i++){let c=i;for(let d=0;d<=e.length;d++)if(0==i)o[d]=d;else if(d>0){let n=o[d-1];t.charAt(i-1)!=e.charAt(d-1)&&(n=Math.min(Math.min(n,c),o[d])+1),o[d-1]=c,c=n}i>0&&(o[e.length]=c)}return o[e.length]}(o,i))/parseFloat(c)}function Q(o,i){O(!0),t(".cdp-tooltip-before-options").show(),t(".cdp-tooltip-full-options").hide(),$inputs=t(t(".cdp-tooltip-content").find("input, select"));for(let e=0;e<$inputs.length;++e){let o=t($inputs[e]);if("checkbox"==o.attr("type"))o.is(":checked")?o.attr("checked","checked"):o.removeAttr("checked");else if(t(o).is("select"))if("tooltip-which-profile-first"==t(o).attr("name")){let e=t(t('[name="tooltip-which-profile-first"]')[0]).val();"custom"==e||null==e?setTimeout(()=>{t('[name="tooltip-which-profile-first"]').val("custom")},50):setTimeout(()=>{t('[name="tooltip-which-profile-first"]').val(e)},50)}else{let e=t('[name="tooltip-which-profile-second"] option:selected').map(function(t,e){return this.value}).get()[0];"custom"==e||null==e?setTimeout(()=>{t('[name="tooltip-which-profile-second"]').val("custom")},50):setTimeout(()=>{t('[name="tooltip-which-profile-second"]').val(e)},50)}else o.attr("value",o.val())}return cdp_tooltips_update_content(),e=t(i.origin).attr("data-cdp-id"),!0}function P(e,o){$parent=t(o.origin).parents(".row-actions"),$parent.css({left:0});let i=t(t("a.menu-top.toplevel_page_copy-delete-posts")[0]).attr("href");t(".cdp-tooltip-info-intt").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:6,side:"top",contentAsHTML:!0,content:`${cdpJS.strDefCopySettingsStart} <a href="${i}">${cdpJS.strDefCopySettingsLink}</a>.`,maxWidth:400,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-center"],repositionOnScroll:!0}),l&&jQuery.cdp.isPremium()?t(".cdp-tooltip-premium-spc-3").tooltipster({delay:800,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strMultisiteCanCopy,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}):(t(".cdp-tooltip-premium-spc-2").tooltipster({delay:800,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strCopyToOtherSiteHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),t(".cdp-tooltip-premium-spc").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),t(".cdp-tooltip-premium-spc, .cdp-tooltip-premium-spc-2").addClass("cdp-premium-element"),t(".cdp-tooltip-premium-spc, .cdp-tooltip-premium-spc-2").find("input, select").prop("disabled",!0),t(".cdp-tooltip-premium-spc-4").tooltipster("content",cdpJS.strPreOrderHtml),H(),cdp_tooltips_update_content())}function M(e,o){return $parent=t(o.origin).parents(".row-actions"),$parent.css({left:""}),!1}function A(){return t(t(".cdp-tooltip-content").html())}function H(){setTimeout(()=>{let e=t.tooltipster.instances();for(instance in e)e[instance].reposition()},10)}function O(e=!1){if(e){let e=t.tooltipster.instances();for(instance in e)e[instance].close()}else setTimeout(()=>{let e=t.tooltipster.instances();for(instance in e)e[instance].close()},10)}if(t(".cdp-admin-bar-noti").length>0&&setInterval(()=>{_(t=>{S(t)})},7e3),t(".cdp-drag-name").draggable({containment:".cdp-drags-cont",scroll:!1,helper:"clone",revert:"invalid"}),t(".cdp-names-real-input").droppable({drop:function(e,o){$picks=['<div class="cdp-name-box-small cdp-drag" data-cdp-val="0" contenteditable="false"><i class="cdp-novis">[</i>Counter<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="1" contenteditable="false"><i class="cdp-novis">[</i>CurrentTime<i class="cdp-novis">]</i></div>','<div class="cdp-name-box-small cdp-drag" data-cdp-val="2" contenteditable="false"><i class="cdp-novis">[</i>CurrentDate<i class="cdp-novis">]</i></div>'],t(this).html(`${t(this).html()}${$picks[t(o.helper).attr("data-cdp-val")]}`),u()}}),"undefined"!=typeof pagenow&&["edit-page","edit-post"].includes(pagenow)&&t(".column-cb, .check-column").find("input").prop("checked",!1),t("#titlediv").find(".inside").length>0&&t("#cdp-original-post").length>0){let e=t("#cdp-original-post").attr("data-cdp-parent"),o=t("#cdp-original-post").attr("data-cdp-parent-url");t("#titlediv").find(".inside").append(t(`<div style="padding-left: 10px">${cdpJS.strPostDuplicateOf} <a href="${o}" target="_blank">${e}</a></div>`))}t(".cdp-preloader-c").length>0&&(u(),h(),w(),setTimeout(()=>{m(".cdp-names-prefix"),m(".cdp-names-suffix")},1e3),function(){let e=t(".cdp-tab-active");for(let o=0;o<e.length;o++){let i=t(`#${t(e[o]).attr("data-box")}`);i.show(),i.css({"max-height":"",height:""});let c=i.height();t(c).css({"max-height":c+"px",height:c+"px"})}}()),setTimeout(()=>{t(".cdp-container").is(":hidden")&&t(".cdp-container").length>0&&setTimeout(()=>{jQuery(".cdp-preloader-c").hide(),jQuery(".cdp-container").css({opacity:0}),jQuery(".cdp-container").show(),jQuery("#wpfooter").show(300),jQuery(".cdp-container").animate({opacity:1},300)},400)},5e3)}),jQuery(window).on("load",function(){setTimeout(()=>{jQuery(".cdp-container").length>0&&(jQuery(".cdp-preloader-c").hide(),jQuery(".cdp-container").css({opacity:0}),jQuery(".cdp-container").show(),jQuery("#wpfooter").show(300),jQuery(".cdp-container").animate({opacity:1},300));const t=void 0!==jQuery.cdp&&void 0!==jQuery.cdp.isPremium;jQuery(".cdp-tooltip-premium-dc").tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),t&&jQuery.cdp.isPremium()?(jQuery(".cdp-tooltip-premium-spc-3").tooltipster({delay:800,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strMultisiteCanCopy,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),jQuery(".cdp-tooltip-premium-spc-3").addClass("cdp-premium-element"),jQuery(".cdp-tooltip-premium-spc-3").find("input, select").prop("disabled",!0)):(jQuery('.cdp-option-premium [value="3"]').prop("disabled",!0),setTimeout(()=>{jQuery(".cdp-premium-in-select").find('.option[data-value="premium"]').addClass("cdp-tooltip-premium disabled"),jQuery(".cdp-option-premium").find('.option[data-value="3"]').addClass("cdp-tooltip-premium disabled"),jQuery(".cdp-tooltip-premium-spc-2").tooltipster({delay:800,debug:!1,delayTouch:[100,200],interactive:!0,distance:3,side:"top",content:cdpJS.strCopyToOtherSiteHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),jQuery(".cdp-tooltip-premium-spc, .cdp-tooltip-premium-spc-2").addClass("cdp-premium-element"),jQuery(".cdp-tooltip-premium-spc, .cdp-tooltip-premium-spc-2").find("input, select").prop("disabled",!0),jQuery(".cdp-tooltip-premium-spc-4").tooltipster("content",cdpJS.strPreOrderHtml),function(t){let e=void 0!==t?t:".cdp-tooltip-premium",o=-15;isNaN(parseInt(jQuery(e).attr("data-top")))||(o=parseInt(jQuery(e).attr("data-top")));jQuery(e).tooltipster({delay:10,debug:!1,delayTouch:[100,200],interactive:!0,distance:o,side:"top",content:cdpJS.strPremFeatureHtml,contentAsHTML:!0,maxWidth:290,theme:["tooltipster-noir","tooltipster-noir-customized","cdp-tooltip-premium-css"],repositionOnScroll:!0}),i=e,jQuery(i).addClass("cdp-premium-element"),jQuery(i).find("input, select").prop("disabled",!0);var i}(),cdp_tooltips_update_content()},1e3))},400)}),function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();let o=t.originalEvent.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent(e,!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(i)}}if(t.support.touch="ontouchend"in document,t.support.touch){let o,i=t.ui.mouse.prototype,c=i._mouseInit,d=i._mouseDestroy;i._touchStart=function(t){!o&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(o=!0,this._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},i._touchMove=function(t){o&&(this._touchMoved=!0,e(t,"mousemove"))},i._touchEnd=function(t){o&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),o=!1)},i._mouseInit=function(){let e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),c.call(e)},i._mouseDestroy=function(){let e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),d.call(e)}}}(jQuery);
copy-delete-posts.php CHANGED
@@ -4,10 +4,11 @@
4
  * Plugin Name: Copy & Delete Posts
5
  * Plugin URI: https://copy-delete-posts.com
6
  * Description: The best solution to easily make duplicates of your posts & pages, and delete them in one go.
7
- * Version: 1.1.8
8
  * Author: Copy Delete Posts
9
  * Author URI: https://copy-delete-posts.com/
10
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
11
  // Exit if accessed directly.
12
  if (!defined('ABSPATH'))
13
  exit;
@@ -29,7 +30,7 @@ analyst_init(array(
29
  * @since 1.0.0
30
  */
31
  // Plugin constants
32
- define('CDP_VERSION', '1.1.8');
33
  define('CDP_WP_VERSION', get_bloginfo('version'));
34
  define('CDP_SCRIPT_DEBUG', false);
35
  define('CDP_ROOT_DIR', __DIR__);
@@ -305,7 +306,8 @@ add_action('admin_enqueue_scripts', function () {
305
  'strAreYouSure' => __('Are you REALLY sure?', 'copy-delete-posts'),
306
  'strYouAreCrazy' => __('You\'re crazy! – Here is the output:', 'copy-delete-posts'),
307
  'strDebugOutputEnd' => __('–––––––––––––- END OF THE DEBUG OUTPUT –––––––––––––- ', 'copy-delete-posts'),
308
-
 
309
  ];
310
  wp_localize_script('cdp', 'cdpJS', $cdpJSArgs);
311
 
4
  * Plugin Name: Copy & Delete Posts
5
  * Plugin URI: https://copy-delete-posts.com
6
  * Description: The best solution to easily make duplicates of your posts & pages, and delete them in one go.
7
+ * Version: 1.1.9
8
  * Author: Copy Delete Posts
9
  * Author URI: https://copy-delete-posts.com/
10
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
11
+
12
  // Exit if accessed directly.
13
  if (!defined('ABSPATH'))
14
  exit;
30
  * @since 1.0.0
31
  */
32
  // Plugin constants
33
+ define('CDP_VERSION', '1.1.9');
34
  define('CDP_WP_VERSION', get_bloginfo('version'));
35
  define('CDP_SCRIPT_DEBUG', false);
36
  define('CDP_ROOT_DIR', __DIR__);
306
  'strAreYouSure' => __('Are you REALLY sure?', 'copy-delete-posts'),
307
  'strYouAreCrazy' => __('You\'re crazy! – Here is the output:', 'copy-delete-posts'),
308
  'strDebugOutputEnd' => __('–––––––––––––- END OF THE DEBUG OUTPUT –––––––––––––- ', 'copy-delete-posts'),
309
+ 'copySuccessfull' => __('Copy to clipboard was successfull.', 'copy-delete-posts'),
310
+ 'copyFailed' => __('Copy to clipboard failed, your browser does not support this function.', 'copy-delete-posts'),
311
  ];
312
  wp_localize_script('cdp', 'cdpJS', $cdpJSArgs);
313
 
menu/configuration.php CHANGED
@@ -30,6 +30,22 @@ if (!defined('ABSPATH')) exit;
30
  });
31
  /** –– **/
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  /** –– **\
34
  * Main plugin configuration menu.
35
  * @since 1.0.0
@@ -123,6 +139,8 @@ function cdp_configuration() {
123
  </div>
124
  </div>
125
 
 
 
126
  <div class="cdp-intro"<?php echo $intro ?>>
127
  <div class="cdp-box cdp-white-bg cdp-shadow">
128
  <div class="cdp-font-heading cdp-f-s-21 cdp-f-w-regular"><?php _e('You can now easily copy posts & pages in various areas:', 'copy-delete-posts'); ?></div>
@@ -941,7 +959,7 @@ function cdp_configuration() {
941
  </div>
942
 
943
  <div class="cdp-f-s-20 cdp-p-hh cdp-center cdp-relative">
944
- <?php _e('<b>Questions?</b> We\'re happy to help in the <a href="https://wordpress.org/support/plugin/copy-delete-posts/" target="_blank" style="text-decoration: none;">Support Forum</a>.', 'copy-delete-posts'); ?> <span class="cdp-info-icon cdp-tooltip-top" title="<?php _e('Your account on Wordpress.org (where you open a new support thread) is different to the one you login to your WordPress dashboard (where you are now). If you don\'t have a WordPress.org account yet, please sign up at the top right on here. It only takes a minute :) Thank you!', 'copy-delete-posts'); ?>"></span>
945
  </div>
946
 
947
  <jdiv class="label_e50 _bottom_ea7 notranslate" id="cdp_jvlabelWrap-fake" style="background: linear-gradient(95deg, rgb(47, 50, 74) 20%, rgb(66, 72, 103) 80%);right: 30px;bottom: 0px;width: 310px;">
@@ -965,3 +983,76 @@ function cdp_configuration() {
965
  <?php
966
  }
967
  /** –– **/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  });
31
  /** –– **/
32
 
33
+ /** –– **\
34
+ * Adding assets.
35
+ * @since 1.0.9
36
+ */
37
+ add_action('cdp_notices_special', function() {
38
+
39
+ if (cdp_check_permissions(wp_get_current_user()) == false) return;
40
+ if (!get_option('cdp_dismiss_perf_notice', false) && get_option('cdp_latest_slow_performance', false)) {
41
+
42
+ cdp_render_performance_notice();
43
+
44
+ }
45
+
46
+ });
47
+ /** –– **/
48
+
49
  /** –– **\
50
  * Main plugin configuration menu.
51
  * @since 1.0.0
139
  </div>
140
  </div>
141
 
142
+ <?php do_action('cdp_notices_special'); ?>
143
+
144
  <div class="cdp-intro"<?php echo $intro ?>>
145
  <div class="cdp-box cdp-white-bg cdp-shadow">
146
  <div class="cdp-font-heading cdp-f-s-21 cdp-f-w-regular"><?php _e('You can now easily copy posts & pages in various areas:', 'copy-delete-posts'); ?></div>
959
  </div>
960
 
961
  <div class="cdp-f-s-20 cdp-p-hh cdp-center cdp-relative">
962
+ <?php _e('<b>Questions?</b> We\'re happy to help in the <a href="https://wordpress.org/support/plugin/copy-delete-posts/#new-topic-0" target="_blank" style="text-decoration: none;">Support Forum</a>.', 'copy-delete-posts'); ?> <span class="cdp-info-icon cdp-tooltip-top" title="<?php _e('Your account on Wordpress.org (where you open a new support thread) is different to the one you login to your WordPress dashboard (where you are now). If you don\'t have a WordPress.org account yet, please sign up at the top right on here. It only takes a minute :) Thank you!', 'copy-delete-posts'); ?>"></span>
963
  </div>
964
 
965
  <jdiv class="label_e50 _bottom_ea7 notranslate" id="cdp_jvlabelWrap-fake" style="background: linear-gradient(95deg, rgb(47, 50, 74) 20%, rgb(66, 72, 103) 80%);right: 30px;bottom: 0px;width: 310px;">
983
  <?php
984
  }
985
  /** –– **/
986
+
987
+ /** –– **\
988
+ * This function will convert bytes to human readable
989
+ * @return void
990
+ */
991
+ function cdp_human_readable_bytes($bytes) {
992
+ $label = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];
993
+ for ($i = 0; $bytes >= 1024 && $i < (count($label) - 1); $bytes /= 1024, $i++);
994
+
995
+ return (round($bytes, 2) . " " . $label[$i]);
996
+ }
997
+
998
+ /** –– * */
999
+
1000
+ /** –– **\
1001
+ * Notice about performance.
1002
+ * @since 1.0.9
1003
+ */
1004
+ function cdp_render_performance_notice() {
1005
+
1006
+ global $wp_version;
1007
+ global $wpdb;
1008
+
1009
+ $mysqlVersion = $wpdb->db_version();
1010
+
1011
+ $cdp_notice2 = __('%b_start%Please%b_end% copy & paste the following log %a_start%into the forum%a_end% so that we can make the plugin better. Thank you!', 'copy-delete-posts');
1012
+ $cdp_notice2 = str_replace('%a_start%', '<a target="_blank" href="https://wordpress.org/support/plugin/copy-delete-posts/#new-topic-0">', $cdp_notice2);
1013
+ $cdp_notice2 = str_replace('%a_end%', '</a>', $cdp_notice2);
1014
+ $cdp_notice2 = str_replace('%b_start%', '<b class="cdp-please-big">', $cdp_notice2);
1015
+ $cdp_notice2 = str_replace('%b_end%', '</b>', $cdp_notice2);
1016
+
1017
+ $logs = get_option('cdp_copy_logs_times', array());
1018
+
1019
+ $theLog = '';
1020
+
1021
+ $theLog .= 'The OS: ' . PHP_OS . "\n";
1022
+ $theLog .= 'PHP Version: ' . PHP_VERSION . "\n";
1023
+ $theLog .= 'WP Version: ' . $wp_version . "\n";
1024
+ $theLog .= 'MySQL Version: ' . $mysqlVersion . "\n";
1025
+ $theLog .= 'Directory Separator: ' . DIRECTORY_SEPARATOR . "\n\n";
1026
+
1027
+ $theLog .= 'Copy logs:' . "\n";
1028
+
1029
+ foreach ($logs as $key => $value) {
1030
+ $amount = isset($value['amount']) ? $value['amount'] : 1;
1031
+ $time = $value['time'];
1032
+ $perOne = $value['perOne'];
1033
+ $data = date('d-m-Y H:i:s', $value['data']);
1034
+ $memory = cdp_human_readable_bytes(intval($value['memory']));
1035
+ $peak = cdp_human_readable_bytes(intval($value['peak']));
1036
+
1037
+ $theLog .= $data . ' - ' . $amount . 'x, [total: ' . $time . ', avg: ' . $perOne . '] (mem: ' . $memory . ' - ' . $value['memory'] . ', peak: ' . $peak . ' - ' . $value['peak'] . ')' . "\n";
1038
+ }
1039
+
1040
+ ?>
1041
+
1042
+ <div id="cdp_notice_error">
1043
+ <div class="cdp-cf cdp_notice_heading">
1044
+ <div class="cdp-left cdp_warning_icon"></div>
1045
+ <div class="cdp-left cdp_notice_content">
1046
+ <?php _e('The plugin works, however we noticed some optimization potential on your site.', 'copy-delete-posts'); ?><br>
1047
+ <?php echo $cdp_notice2; ?>
1048
+ </div>
1049
+ <div class="cdp-left cdp_notice_perf_close cdp-tooltip-top" title="<?php _e('Dismiss forever', 'copy-delete-posts'); ?>">&times;</div>
1050
+ </div>
1051
+ <div class="cdp-textarea-wr-notice">
1052
+ <textarea readonly class="cdp_notice_logs"><?php echo $theLog ?></textarea>
1053
+ <div class="cdp-copy-notice-logs"><?php _e('Copy logs', 'copy-delete-posts'); ?></div>
1054
+ </div>
1055
+ </div>
1056
+ <?php
1057
+ }
1058
+ /** –– **/
post/handler.php CHANGED
@@ -82,6 +82,8 @@ add_action('wp_ajax_cdp_action_handling', function () {
82
  cdp_just_kill_task();
83
  else if ($_POST['f'] == 'give_me_current_tasks')
84
  cdp_just_get_tasks();
 
 
85
  else if ($_POST['f'] == 'review_dismiss')
86
  cdp_review();
87
  else if ($_POST['f'] == 'debug_function')
@@ -279,6 +281,9 @@ function cdp_save_plugin_options($areWePro) {
279
  */
280
  function cdp_insert_new_post($areWePro = false) {
281
 
 
 
 
282
  // Create output array which will be returned to requester
283
  $output = array('status' => 'success');
284
 
@@ -859,6 +864,33 @@ function cdp_insert_new_post($areWePro = false) {
859
  if ($areWePro && function_exists('cdpp_handle_multisite_after'))
860
  cdpp_handle_multisite_after($site);
861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
862
  echo json_encode(cdp_sanitize_array($output));
863
  }
864
 
@@ -1159,6 +1191,18 @@ function cdp_just_get_tasks() {
1159
 
1160
  /** –– * */
1161
 
 
 
 
 
 
 
 
 
 
 
 
 
1162
  /** –– **\
1163
  * This function is just for debug have fun with it!
1164
  * It can be fired by function cdp_totally_know_what_i_am_doing('really');
82
  cdp_just_kill_task();
83
  else if ($_POST['f'] == 'give_me_current_tasks')
84
  cdp_just_get_tasks();
85
+ else if ($_POST['f'] == 'hide_cron_notice')
86
+ cdp_hide_perf_notice();
87
  else if ($_POST['f'] == 'review_dismiss')
88
  cdp_review();
89
  else if ($_POST['f'] == 'debug_function')
281
  */
282
  function cdp_insert_new_post($areWePro = false) {
283
 
284
+ // Performance copy time start
285
+ $timein = microtime(true);
286
+
287
  // Create output array which will be returned to requester
288
  $output = array('status' => 'success');
289
 
864
  if ($areWePro && function_exists('cdpp_handle_multisite_after'))
865
  cdpp_handle_multisite_after($site);
866
 
867
+ // Check performance by time
868
+ $copyTime = microtime(true) - $timein;
869
+ $copyTimePerOne = $copyTime / $times;
870
+
871
+ // Set only if had good performance all the time
872
+ $isSlowPerf = true;
873
+ if (get_option('cdp_latest_slow_performance', false) == false) {
874
+ $isSlowPerf = false;
875
+ }
876
+
877
+ // Check if the copy time of one page was slower than 0.051 of second
878
+ if ($copyTimePerOne > 0.051) {
879
+ $isSlowPerf = true;
880
+ }
881
+
882
+ // Set the performance status
883
+ update_option('cdp_latest_slow_performance', $isSlowPerf);
884
+
885
+ // Update history with logs
886
+ $logs = get_option('cdp_copy_logs_times', array());
887
+ if (sizeof($logs) >= 50) {
888
+ $logs = array_slice($logs, 0, 48);
889
+ }
890
+ $logs = array_values($logs);
891
+ array_unshift($logs, array('amount' => $times, 'time' => $copyTime, 'perOne' => $copyTimePerOne, 'data' => time(), 'memory' => memory_get_usage(), 'peak' => memory_get_peak_usage(true)));
892
+ update_option('cdp_copy_logs_times', $logs);
893
+
894
  echo json_encode(cdp_sanitize_array($output));
895
  }
896
 
1191
 
1192
  /** –– * */
1193
 
1194
+ /** –– **\
1195
+ * This function will remove performance notice
1196
+ * @return void
1197
+ */
1198
+ function cdp_hide_perf_notice() {
1199
+ update_option('cdp_dismiss_perf_notice', true);
1200
+ update_option('cdp_latest_slow_performance', false);
1201
+ echo json_encode(array('status' => 'success'));
1202
+ }
1203
+
1204
+ /** –– * */
1205
+
1206
  /** –– **\
1207
  * This function is just for debug have fun with it!
1208
  * It can be fired by function cdp_totally_know_what_i_am_doing('really');
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: CopyDeletePosts, copydelete
3
  Tags: Duplicate post, Copy posts, Copy pages, Duplicate posts, Duplicate pages, Clone posts, Clone pages, Delete posts, Delete pages, Duplicator, copy post, copy page
4
  Requires at least: 4.6
5
- Tested up to: 5.8
6
- Stable tag: 1.1.8
7
  License: GPLv3
8
  Requires PHP: 5.6
9
 
@@ -151,6 +151,13 @@ Copy Delete Posts WordPress plugin doesn’t store any site visitor information
151
 
152
  == Changelog ==
153
 
 
 
 
 
 
 
 
154
  = 1.1.8 =
155
  * Performance adjustements for PHP 8
156
  * Plugin prepared for translation
@@ -243,8 +250,9 @@ Copy Delete Posts WordPress plugin doesn’t store any site visitor information
243
  * Initial release
244
 
245
  == Upgrade Notice ==
246
- = 1.1.8 =
247
- * Performance adjustements for PHP 8
248
- * Plugin prepared for translation
249
- * Improvements for ACF plugin kind
250
- * Fixed activation/deactivation issues for Pro
 
2
  Contributors: CopyDeletePosts, copydelete
3
  Tags: Duplicate post, Copy posts, Copy pages, Duplicate posts, Duplicate pages, Clone posts, Clone pages, Delete posts, Delete pages, Duplicator, copy post, copy page
4
  Requires at least: 4.6
5
+ Tested up to: 5.8.1
6
+ Stable tag: 1.1.9
7
  License: GPLv3
8
  Requires PHP: 5.6
9
 
151
 
152
  == Changelog ==
153
 
154
+ = 1.1.9 =
155
+ * Plugin translation-ready
156
+ * Updated styles
157
+ * Added performance checks for individual servers
158
+ * Added logs for last 50 copy processes
159
+ * Added new notices
160
+
161
  = 1.1.8 =
162
  * Performance adjustements for PHP 8
163
  * Plugin prepared for translation
250
  * Initial release
251
 
252
  == Upgrade Notice ==
253
+ = 1.1.9 =
254
+ * Plugin translation-ready
255
+ * Updated styles
256
+ * Added performance checks for individual servers
257
+ * Added logs for last 50 copy processes
258
+ * Added new notices