diff --git a/build/classic/core.css b/build/classic/core.css index 28bf9fc23..85352aa47 100644 --- a/build/classic/core.css +++ b/build/classic/core.css @@ -2044,7 +2044,8 @@ span.flatpickr-weekday { } .cf-radio__input[type=checkbox]:checked:before { content: ""; - background: var(--wp-admin-theme-color); + background-color: #3582c4; + background-color: var(--wp-admin-theme-color, #3582c4); border-radius: 50%; width: 0.5rem; height: 0.5rem; diff --git a/build/classic/core.min.css b/build/classic/core.min.css index 7d565e4fa..c8f804c98 100644 --- a/build/classic/core.min.css +++ b/build/classic/core.min.css @@ -1 +1 @@ -.container-carbon_fields_container_word_settings{min-width:0;max-width:100%;width:100%}.cf-container .cf-field{max-width:100%}.cf-association__bar{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;flex-direction:row;border:1px solid #e2e4e7}.cf-association__bar .cf-search-input{flex:1 1 auto}.cf-association__bar .cf-search-input__inner{border:0;box-shadow:none}.cf-association__bar .cf-search-input__inner:focus{border-color:none;box-shadow:none;outline:none}.cf-association__bar[focus-within]{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.cf-association__bar:focus-within{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.cf-association__counter{font-size:12px;color:#23282d;pointer-events:none;margin-right:10px;margin-left:5px}.cf-association__spinner{float:none;margin:0 0 0 5px}.cf-association__cols{background:#fff;position:relative;z-index:0;display:flex;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7}.cf-association__cols:before{position:absolute;top:0;left:50%;width:1px;height:100%;background-color:#e2e4e7;content:""}.cf-association__col{width:50%;max-height:160px;overflow-y:auto}.cf-association__col.ui-sortable .cf-association__option-title{white-space:nowrap;text-overflow:ellipsis}.edit-post-sidebar .cf-association__cols .cf-association__col{width:100%}.edit-post-sidebar .cf-association__cols .cf-association__col:first-child{border-bottom:3px solid #23282d}.cf-association__option{display:flex;align-items:center;padding:4px 8px;height:32px;box-sizing:border-box}.cf-association__option--selected{background-color:#fbfbfc}.cf-association__option+.cf-association__option{border-top:1px solid #e2e4e7}.cf-association__option.ui-sortable-helper{border-top:0;background-color:#fbfbfc}.cf-association__option-thumb{flex:none;display:block;width:24px;height:24px;margin-right:8px}.cf-association__option-content{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;margin-right:8px}.cf-association__option-title{flex:1;position:relative;margin-right:4px}.cf-association__option--selected .cf-association__option-title{color:#82878c}.cf-association__option-title-inner{position:absolute;top:0;left:0;width:100%;font-size:13px;line-height:1.4;color:#32373c;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translateY(-50%)}.cf-association__option-type{font-size:9px;line-height:1;text-transform:uppercase;color:#82878c}.edit-post-sidebar .cf-association__col .cf-association__option-type{display:none}.cf-association__option-actions{display:flex;align-items:center;justify-content:space-between}.cf-association__option-actions button{margin-left:8px}.cf-association__option-sort{margin-right:4px;color:#82878c;cursor:move}.cf-association__option-action{padding:0;border:0;outline:none;color:#82878c;transition:color .1s linear;cursor:pointer;background:transparent}.cf-association__option-action:focus{color:#82878c;box-shadow:none}.cf-association__option-action:hover{color:#23282d}.cf-search-input{position:relative}.cf-search-input:before{position:absolute;top:50%;left:9px;margin-top:-10px}.postbox .cf-search-input:before{color:#32373c}.wp-block .cf-search-input:before{color:#555d66}.cf-search-input__inner{display:block;width:100%;margin:0}.block-editor .cf-field .cf-search-input__inner,.cf-container .cf-search-input__inner{padding-left:35px}.cf-container .cf-search-input__inner{padding-top:8px;padding-bottom:8px;border-color:#e2e4e7}.block-editor .cf-container .cf-search-input__inner,.edit-post-sidebar .cf-block__fields .cf-search-input__inner,.wp-block .cf-field .cf-search-input__inner{border-radius:0;border:0}.block-editor .cf-container .cf-search-input__inner:focus,.edit-post-sidebar .cf-block__fields .cf-search-input__inner:focus,.wp-block .cf-field .cf-search-input__inner:focus{box-shadow:none}.cf-field .cf-checkbox__input{margin-top:0}.cf-checkbox__label{font-size:13px}.cf-color__inner{display:flex;align-items:center}.cf-color__toggle{position:relative;overflow:hidden}.cf-color__toggle-text{margin-left:27px}.cf-color__preview{position:absolute;top:0;left:0;width:26px;height:100%;border-right:1px solid #ccc}.cf-color__toggle:active .cf-color__preview,.cf-color__toggle:hover .cf-color__preview{border-color:#999}.cf-color .cf-color__reset{margin-left:5px;text-decoration:none}.cf-color .cf-color__reset:focus{box-shadow:none}.cf-color__picker{position:absolute;z-index:9999}.cf-complex__groups{flex:1;position:relative}.cf-complex--tabbed-vertical>.cf-complex__groups{flex:0 0 80%}.cf-complex__group{box-sizing:border-box}.cf-complex--grid .cf-complex__group{position:relative;margin-bottom:12px}.cf-complex--grid .cf-complex__group:last-child{margin-bottom:0}.cf-complex__group-placeholder{position:relative}.cf-complex__group-placeholder:not(:last-child){margin-bottom:12px}.cf-complex__group-placeholder:before{position:absolute;top:0;left:0;width:100%;height:100%;border:1px dashed #e2e4e7;box-sizing:border-box;content:""}.cf-complex__group-head{position:relative;display:flex;border:1px solid #e2e4e7;border-bottom:0;background-color:#fbfbfc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:1.4;color:#23282d;cursor:move;transition:border-color .1s linear}.cf-complex__group-head:hover{border-color:#82878c}.cf-complex__group-index{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-right:1px solid #e2e4e7}.cf-complex__group-title{display:flex;align-items:center;padding:0 12px}.cf-complex__group-body{display:flex;flex-wrap:wrap;border:1px solid #e2e4e7;border-right-width:0;background-color:#fff}.cf-complex__group-body[hidden]{display:none}.cf-complex__actions{display:flex;align-items:center;margin-top:12px}.cf-complex__actions .cf-complex__toggler{margin-left:auto}.cf-complex__inserter{position:relative;display:inline-block}.cf-complex__tabs .cf-complex__inserter{height:36px}.cf-complex__tabs--tabbed-horizontal .cf-complex__inserter{width:36px;align-self:flex-end;margin-bottom:4px}.cf-complex__tabs--tabbed-vertical .cf-complex__inserter{display:block}.cf-complex__tabs .cf-complex__inserter-button{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:1px solid #e2e4e7;border-radius:0;margin:0;background-color:#fbfbfc;box-shadow:none;font-size:18px;line-height:1;transition:background-color .1s linear}.cf-complex__tabs .cf-complex__inserter-button:active,.cf-complex__tabs .cf-complex__inserter-button:focus,.cf-complex__tabs .cf-complex__inserter-button:hover{border-color:#e2e4e7;background-color:#fff}.cf-complex__tabs .cf-complex__inserter-button:focus{box-shadow:none}.cf-complex__tabs .cf-complex__inserter-button:active{box-shadow:none;transform:none}.cf-complex__inserter-menu{position:absolute;top:50%;left:100%;min-width:180px;margin:0;transform:translate(10px,-50%);z-index:1}.cf-complex__inserter-item{padding:8px 12px;margin:0;cursor:pointer;transition:color .1s linear}.cf-complex__group-actions{display:flex;align-items:center}.cf-complex__group-actions--grid{position:absolute;top:12px;right:12px}.cf-complex__group-actions--tabbed{justify-content:flex-end;padding:8px 12px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7;background-color:#fbfbfc}.cf-complex__group-action{display:inline-flex;padding:0;border:0;margin-left:12px;outline:none;background-color:transparent;color:#82878c;cursor:pointer;transition:color .1s linear}.cf-complex__group-action:first-child{margin-left:0}.cf-complex__group-action:hover{color:#23282d}.cf-complex__group-action-text{display:none}.cf-complex__tabs{position:relative;z-index:1}.cf-complex__tabs--tabbed-horizontal{display:inline-flex;margin-bottom:-5px}.cf-complex__tabs--tabbed-vertical{flex:0 0 20%;margin-right:-1px}.cf-complex__tabs-list{margin:0}.cf-complex__tabs--tabbed-horizontal .cf-complex__tabs-list{display:flex;flex-wrap:wrap}.cf-complex__tabs--tabbed-vertical .cf-complex__tabs-list{margin-bottom:-1px}.cf-complex__tabs-item{display:flex;align-items:center;padding:8px 12px;border:1px solid #e2e4e7;margin:0;background-color:#fbfbfc;font-size:12px;cursor:pointer;transition:background-color .1s linear,border-color .1s linear}.cf-complex__tabs-item:hover{background-color:#fff}.cf-complex__tabs-item--tabbed-horizontal{margin:0 4px 4px 0}.cf-complex__tabs-item--tabbed-vertical~.cf-complex__tabs-item--tabbed-vertical{border-top-width:0}.cf-complex__tabs-item--current{background-color:#fff}.cf-complex__tabs-item--tabbed-horizontal.cf-complex__tabs-item--current{border-bottom-color:#fff!important}.cf-complex__tabs-item--tabbed-vertical.cf-complex__tabs-item--current{border-right-color:#fff!important}.cf-complex__placeholder-label.cf-complex__placeholder-label{margin:8px 0 12px}.cf-container-term-meta .cf-complex__placeholder-label{font-style:normal;color:inherit}.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.arrowRight:after,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar.arrowCenter:after,.flatpickr-calendar.arrowCenter:before{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;line-height:1;text-align:center;position:relative;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-month,.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:34px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;padding:10px;z-index:3}.flatpickr-months .flatpickr-next-month.flatpickr-disabled,.flatpickr-months .flatpickr-prev-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-inner-spin-button,.numInputWrapper input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0 ;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:baseline;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:baseline;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:active,.flatpickr-current-month .flatpickr-monthDropdown-months:focus{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays,.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-weekdays .flatpickr-weekdaycontainer,span.flatpickr-weekday{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.flatpickr-innerContainer,.flatpickr-rContainer{-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-rContainer{display:inline-block;padding:0}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.cf-datetime__inner{display:flex;align-items:stretch;flex-wrap:wrap;margin-top:-5px}.cf-datetime__inner:before{display:none}.cf-datetime__input{flex:1;margin:5px 6px 0 0}.wp-core-ui .button.cf-datetime__button{margin-top:5px}.cf-datetime__button{flex:0 0 auto}.cf-field .cf-datetime__button{margin-bottom:0;box-shadow:none}.cf-file__inner{position:relative;display:flex;align-items:center;justify-content:center;width:130px;height:130px;border:1px dashed #b5bcc2;box-sizing:border-box}.cf-file__content{position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:1px solid #b5bcc2}.cf-file__preview{position:absolute;top:0;left:0;bottom:28px;width:100%;overflow:hidden;background-color:#e2e4e7;box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.cf-file__image{position:absolute;top:50%;left:50%;height:auto;max-width:100%;transform:translate(-50%,-50%)}.cf-file__name{position:absolute;bottom:0;left:0;right:0;padding:5px;border-top:1px solid #b5bcc2;overflow:hidden;background-color:#f3f4f5;white-space:nowrap;text-overflow:ellipsis}.cf-file__browse{position:relative}.cf-file__content~.cf-file__browse{margin-bottom:29px;visibility:hidden;opacity:0;transition:visibility .1s linear,opacity .1s linear}.cf-file__inner:hover .cf-file__content~.cf-file__browse{visibility:visible;opacity:1}.cf-file__remove{position:absolute;top:5px;right:5px;padding:0;border:0;outline:none;background-color:transparent;cursor:pointer;transition:opacity .1s linear}.cf-file__remove:hover{opacity:.8}.cf-file__remove:before{border-radius:50%;background-color:#191e23;color:#fff}.cf-map__search{position:relative;z-index:1}.cf-map__canvas{position:relative;z-index:0;height:300px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7;background-color:#f3f4f5}.cf-media-gallery__list{display:flex;flex-wrap:wrap;max-height:400px;padding:4px;margin:0;overflow-y:auto;list-style:none outside none}.cf-media-gallery__list:empty{display:none}.cf-media-gallery__actions{padding:8px}.cf-media-gallery__list:empty~.cf-media-gallery__actions{border-top-width:0}.cf-media-gallery__item{flex:0 0 100%;min-width:0;padding:4px;margin:0;box-sizing:border-box}@media(min-width:320px){.cf-media-gallery__item{flex-basis:50%}}@media(min-width:480px){.cf-media-gallery__item{flex-basis:33.3333%}}@media(min-width:640px){.cf-media-gallery__item{flex-basis:25%}}@media(min-width:768px){.cf-media-gallery__item{flex-basis:20%}}@media(min-width:1280px){.cf-media-gallery__item{flex-basis:16.66667%}}@media(min-width:1440px){.cf-media-gallery__item{flex-basis:12.5%}}@media(min-width:1680px){.cf-media-gallery__item{flex-basis:10%}}.cf-media-gallery__item-inner{position:relative;display:flex;flex-direction:column;height:100%}.cf-media-gallery__item-preview{position:relative;overflow:hidden;padding-top:100%;flex:1}.cf-media-gallery__item-thumb{min-width:100%;min-height:100%;max-width:150%;pointer-events:none}.cf-media-gallery__item-icon,.cf-media-gallery__item-thumb{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.cf-media-gallery__item-icon{max-width:100%;max-height:50%}.cf-media-gallery__item-name{display:block;padding:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:move}.cf-media-gallery__item-remove{position:absolute;top:4px;right:4px;padding:0;border:0;outline:none;background-color:transparent;cursor:pointer}.cf-media-gallery__item-remove:before{border-radius:50%;background-color:#191e23;color:#fff;transition:color .1s linear}.cf-media-gallery__item-remove:hover:before{color:#b5bcc2}.cf-multiselect__control{min-height:0;border-color:#e2e4e7}.cf-multiselect__control:hover{border-color:#e2e4e7}.cf-multiselect__control--is-focused,.cf-multiselect__control--is-focused:hover{border-color:#00a0d2!important;box-shadow:none}.cf-multiselect__placeholder{color:#b5bcc2}.cf-multiselect__value-container{padding-left:4px;padding-right:4px}.cf-multiselect__multi-value{align-items:center;padding:5px 3px;margin:0;background-color:#e2e4e7}.cf-multiselect__multi-value+.cf-multiselect__multi-value{margin-left:5px}.cf-multiselect__multi-value__label{padding-left:3px;font-size:13px;line-height:1}.cf-multiselect__multi-value__remove{padding:0;margin-top:1px;cursor:pointer}.cf-multiselect__multi-value__remove:hover{background-color:transparent}.cf-multiselect__input input[id],.cf-multiselect__input input[id]:focus{box-shadow:none}.cf-multiselect__menu{z-index:9999}.cf-multiselect__option{padding:4px}.cf-multiselect__option--is-focused{background-color:#00a0d2;color:#fff}.cf-multiselect__indicator{padding:5px;cursor:pointer}.cf-oembed__preview{padding:12px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7}.cf-oembed__frame{display:block;width:100%;max-width:600px;margin:0 auto}.cf-radio__list{margin:0}.cf-radio-image .cf-radio__list{display:flex;flex-wrap:wrap}.cf-radio__list-item:last-child{margin-bottom:0}.cf-radio-image .cf-radio__list-item{flex:0 0 20%;position:relative;padding:4px}.cf-container-term-meta .cf-radio__label{display:inline}.cf-radio-image .cf-radio__label{display:inline-block}.cf-field .cf-radio__input{margin-top:0}.cf-radio-image .cf-radio__input{position:absolute;z-index:-1;top:50%;left:50%;width:0;height:0;margin:0;outline:0;opacity:0}.cf-radio__input[type=checkbox]{border-radius:50%}.cf-radio__input[type=checkbox]:checked:before{content:"";background:var(--wp-admin-theme-color);border-radius:50%;width:.5rem;height:.5rem;margin:.1875rem;line-height:1.14285714}.cf-radio-image__image{display:block;max-width:100%;padding:5px;box-sizing:border-box}.wp-block .cf-radio__list{list-style:none outside none}.cf-radio__list-item{box-sizing:border-box}.cf-container-term-meta .cf-radio__list-item{flex:0 0 20%}.cf-container-theme-options .cf-radio__list-item{flex:0 0 10%}.cf-radio-image__image{border:1px solid #e2e4e7}.cf-radio__input:checked~.cf-radio__label .cf-radio-image__image,.cf-radio__input:focus~.cf-radio__label .cf-radio-image__image{outline:4px solid #00a0d2}.cf-select__input{display:block;width:100%;margin:0}.cf-container-term-meta .cf-separator .cf-field__head{display:none}.cf-set__list{margin:0}.cf-set__list-item:last-child{margin-bottom:0}.cf-field .cf-set__input{margin-top:0}.cf-container-term-meta .cf-set__label{display:inline}.cf-text__input{display:block;width:100%!important;margin:0}.cf-textarea__input{display:block;width:100%!important;resize:vertical}.cf-field,.cf-field__body,.cf-field__head{box-sizing:border-box;flex:1 1 100%}@media(max-width:1024px){.cf-field{flex-basis:100%!important}}.cf-field.cf-block-preview{display:none}.cf-rich-text .cf-field__body{box-sizing:content-box}.cf-complex--tabbed-vertical>.cf-field__body{display:flex;align-items:flex-start}.cf-field__label{display:block}.cf-block-preview .cf-field__label,.cf-html .cf-field__label,.cf-separator .cf-field__label{display:none}.cf-field__asterisk{color:#dc3232}.cf-field__error{display:block;margin-top:4px;color:#dc3232} \ No newline at end of file +.container-carbon_fields_container_word_settings{min-width:0;max-width:100%;width:100%}.cf-container .cf-field{max-width:100%}.cf-association__bar{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;flex-direction:row;border:1px solid #e2e4e7}.cf-association__bar .cf-search-input{flex:1 1 auto}.cf-association__bar .cf-search-input__inner{border:0;box-shadow:none}.cf-association__bar .cf-search-input__inner:focus{border-color:none;box-shadow:none;outline:none}.cf-association__bar[focus-within]{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.cf-association__bar:focus-within{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.cf-association__counter{font-size:12px;color:#23282d;pointer-events:none;margin-right:10px;margin-left:5px}.cf-association__spinner{float:none;margin:0 0 0 5px}.cf-association__cols{background:#fff;position:relative;z-index:0;display:flex;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7}.cf-association__cols:before{position:absolute;top:0;left:50%;width:1px;height:100%;background-color:#e2e4e7;content:""}.cf-association__col{width:50%;max-height:160px;overflow-y:auto}.cf-association__col.ui-sortable .cf-association__option-title{white-space:nowrap;text-overflow:ellipsis}.edit-post-sidebar .cf-association__cols .cf-association__col{width:100%}.edit-post-sidebar .cf-association__cols .cf-association__col:first-child{border-bottom:3px solid #23282d}.cf-association__option{display:flex;align-items:center;padding:4px 8px;height:32px;box-sizing:border-box}.cf-association__option--selected{background-color:#fbfbfc}.cf-association__option+.cf-association__option{border-top:1px solid #e2e4e7}.cf-association__option.ui-sortable-helper{border-top:0;background-color:#fbfbfc}.cf-association__option-thumb{flex:none;display:block;width:24px;height:24px;margin-right:8px}.cf-association__option-content{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;margin-right:8px}.cf-association__option-title{flex:1;position:relative;margin-right:4px}.cf-association__option--selected .cf-association__option-title{color:#82878c}.cf-association__option-title-inner{position:absolute;top:0;left:0;width:100%;font-size:13px;line-height:1.4;color:#32373c;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translateY(-50%)}.cf-association__option-type{font-size:9px;line-height:1;text-transform:uppercase;color:#82878c}.edit-post-sidebar .cf-association__col .cf-association__option-type{display:none}.cf-association__option-actions{display:flex;align-items:center;justify-content:space-between}.cf-association__option-actions button{margin-left:8px}.cf-association__option-sort{margin-right:4px;color:#82878c;cursor:move}.cf-association__option-action{padding:0;border:0;outline:none;color:#82878c;transition:color .1s linear;cursor:pointer;background:transparent}.cf-association__option-action:focus{color:#82878c;box-shadow:none}.cf-association__option-action:hover{color:#23282d}.cf-search-input{position:relative}.cf-search-input:before{position:absolute;top:50%;left:9px;margin-top:-10px}.postbox .cf-search-input:before{color:#32373c}.wp-block .cf-search-input:before{color:#555d66}.cf-search-input__inner{display:block;width:100%;margin:0}.block-editor .cf-field .cf-search-input__inner,.cf-container .cf-search-input__inner{padding-left:35px}.cf-container .cf-search-input__inner{padding-top:8px;padding-bottom:8px;border-color:#e2e4e7}.block-editor .cf-container .cf-search-input__inner,.edit-post-sidebar .cf-block__fields .cf-search-input__inner,.wp-block .cf-field .cf-search-input__inner{border-radius:0;border:0}.block-editor .cf-container .cf-search-input__inner:focus,.edit-post-sidebar .cf-block__fields .cf-search-input__inner:focus,.wp-block .cf-field .cf-search-input__inner:focus{box-shadow:none}.cf-field .cf-checkbox__input{margin-top:0}.cf-checkbox__label{font-size:13px}.cf-color__inner{display:flex;align-items:center}.cf-color__toggle{position:relative;overflow:hidden}.cf-color__toggle-text{margin-left:27px}.cf-color__preview{position:absolute;top:0;left:0;width:26px;height:100%;border-right:1px solid #ccc}.cf-color__toggle:active .cf-color__preview,.cf-color__toggle:hover .cf-color__preview{border-color:#999}.cf-color .cf-color__reset{margin-left:5px;text-decoration:none}.cf-color .cf-color__reset:focus{box-shadow:none}.cf-color__picker{position:absolute;z-index:9999}.cf-complex__groups{flex:1;position:relative}.cf-complex--tabbed-vertical>.cf-complex__groups{flex:0 0 80%}.cf-complex__group{box-sizing:border-box}.cf-complex--grid .cf-complex__group{position:relative;margin-bottom:12px}.cf-complex--grid .cf-complex__group:last-child{margin-bottom:0}.cf-complex__group-placeholder{position:relative}.cf-complex__group-placeholder:not(:last-child){margin-bottom:12px}.cf-complex__group-placeholder:before{position:absolute;top:0;left:0;width:100%;height:100%;border:1px dashed #e2e4e7;box-sizing:border-box;content:""}.cf-complex__group-head{position:relative;display:flex;border:1px solid #e2e4e7;border-bottom:0;background-color:#fbfbfc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:1.4;color:#23282d;cursor:move;transition:border-color .1s linear}.cf-complex__group-head:hover{border-color:#82878c}.cf-complex__group-index{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-right:1px solid #e2e4e7}.cf-complex__group-title{display:flex;align-items:center;padding:0 12px}.cf-complex__group-body{display:flex;flex-wrap:wrap;border:1px solid #e2e4e7;border-right-width:0;background-color:#fff}.cf-complex__group-body[hidden]{display:none}.cf-complex__actions{display:flex;align-items:center;margin-top:12px}.cf-complex__actions .cf-complex__toggler{margin-left:auto}.cf-complex__inserter{position:relative;display:inline-block}.cf-complex__tabs .cf-complex__inserter{height:36px}.cf-complex__tabs--tabbed-horizontal .cf-complex__inserter{width:36px;align-self:flex-end;margin-bottom:4px}.cf-complex__tabs--tabbed-vertical .cf-complex__inserter{display:block}.cf-complex__tabs .cf-complex__inserter-button{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:1px solid #e2e4e7;border-radius:0;margin:0;background-color:#fbfbfc;box-shadow:none;font-size:18px;line-height:1;transition:background-color .1s linear}.cf-complex__tabs .cf-complex__inserter-button:active,.cf-complex__tabs .cf-complex__inserter-button:focus,.cf-complex__tabs .cf-complex__inserter-button:hover{border-color:#e2e4e7;background-color:#fff}.cf-complex__tabs .cf-complex__inserter-button:focus{box-shadow:none}.cf-complex__tabs .cf-complex__inserter-button:active{box-shadow:none;transform:none}.cf-complex__inserter-menu{position:absolute;top:50%;left:100%;min-width:180px;margin:0;transform:translate(10px,-50%);z-index:1}.cf-complex__inserter-item{padding:8px 12px;margin:0;cursor:pointer;transition:color .1s linear}.cf-complex__group-actions{display:flex;align-items:center}.cf-complex__group-actions--grid{position:absolute;top:12px;right:12px}.cf-complex__group-actions--tabbed{justify-content:flex-end;padding:8px 12px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7;background-color:#fbfbfc}.cf-complex__group-action{display:inline-flex;padding:0;border:0;margin-left:12px;outline:none;background-color:transparent;color:#82878c;cursor:pointer;transition:color .1s linear}.cf-complex__group-action:first-child{margin-left:0}.cf-complex__group-action:hover{color:#23282d}.cf-complex__group-action-text{display:none}.cf-complex__tabs{position:relative;z-index:1}.cf-complex__tabs--tabbed-horizontal{display:inline-flex;margin-bottom:-5px}.cf-complex__tabs--tabbed-vertical{flex:0 0 20%;margin-right:-1px}.cf-complex__tabs-list{margin:0}.cf-complex__tabs--tabbed-horizontal .cf-complex__tabs-list{display:flex;flex-wrap:wrap}.cf-complex__tabs--tabbed-vertical .cf-complex__tabs-list{margin-bottom:-1px}.cf-complex__tabs-item{display:flex;align-items:center;padding:8px 12px;border:1px solid #e2e4e7;margin:0;background-color:#fbfbfc;font-size:12px;cursor:pointer;transition:background-color .1s linear,border-color .1s linear}.cf-complex__tabs-item:hover{background-color:#fff}.cf-complex__tabs-item--tabbed-horizontal{margin:0 4px 4px 0}.cf-complex__tabs-item--tabbed-vertical~.cf-complex__tabs-item--tabbed-vertical{border-top-width:0}.cf-complex__tabs-item--current{background-color:#fff}.cf-complex__tabs-item--tabbed-horizontal.cf-complex__tabs-item--current{border-bottom-color:#fff!important}.cf-complex__tabs-item--tabbed-vertical.cf-complex__tabs-item--current{border-right-color:#fff!important}.cf-complex__placeholder-label.cf-complex__placeholder-label{margin:8px 0 12px}.cf-container-term-meta .cf-complex__placeholder-label{font-style:normal;color:inherit}.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.arrowRight:after,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar.arrowCenter:after,.flatpickr-calendar.arrowCenter:before{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;line-height:1;text-align:center;position:relative;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-month,.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:34px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;padding:10px;z-index:3}.flatpickr-months .flatpickr-next-month.flatpickr-disabled,.flatpickr-months .flatpickr-prev-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-inner-spin-button,.numInputWrapper input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0 ;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:baseline;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:baseline;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:active,.flatpickr-current-month .flatpickr-monthDropdown-months:focus{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays,.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-weekdays .flatpickr-weekdaycontainer,span.flatpickr-weekday{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.flatpickr-innerContainer,.flatpickr-rContainer{-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-rContainer{display:inline-block;padding:0}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.cf-datetime__inner{display:flex;align-items:stretch;flex-wrap:wrap;margin-top:-5px}.cf-datetime__inner:before{display:none}.cf-datetime__input{flex:1;margin:5px 6px 0 0}.wp-core-ui .button.cf-datetime__button{margin-top:5px}.cf-datetime__button{flex:0 0 auto}.cf-field .cf-datetime__button{margin-bottom:0;box-shadow:none}.cf-file__inner{position:relative;display:flex;align-items:center;justify-content:center;width:130px;height:130px;border:1px dashed #b5bcc2;box-sizing:border-box}.cf-file__content{position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:1px solid #b5bcc2}.cf-file__preview{position:absolute;top:0;left:0;bottom:28px;width:100%;overflow:hidden;background-color:#e2e4e7;box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.cf-file__image{position:absolute;top:50%;left:50%;height:auto;max-width:100%;transform:translate(-50%,-50%)}.cf-file__name{position:absolute;bottom:0;left:0;right:0;padding:5px;border-top:1px solid #b5bcc2;overflow:hidden;background-color:#f3f4f5;white-space:nowrap;text-overflow:ellipsis}.cf-file__browse{position:relative}.cf-file__content~.cf-file__browse{margin-bottom:29px;visibility:hidden;opacity:0;transition:visibility .1s linear,opacity .1s linear}.cf-file__inner:hover .cf-file__content~.cf-file__browse{visibility:visible;opacity:1}.cf-file__remove{position:absolute;top:5px;right:5px;padding:0;border:0;outline:none;background-color:transparent;cursor:pointer;transition:opacity .1s linear}.cf-file__remove:hover{opacity:.8}.cf-file__remove:before{border-radius:50%;background-color:#191e23;color:#fff}.cf-map__search{position:relative;z-index:1}.cf-map__canvas{position:relative;z-index:0;height:300px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7;background-color:#f3f4f5}.cf-media-gallery__list{display:flex;flex-wrap:wrap;max-height:400px;padding:4px;margin:0;overflow-y:auto;list-style:none outside none}.cf-media-gallery__list:empty{display:none}.cf-media-gallery__actions{padding:8px}.cf-media-gallery__list:empty~.cf-media-gallery__actions{border-top-width:0}.cf-media-gallery__item{flex:0 0 100%;min-width:0;padding:4px;margin:0;box-sizing:border-box}@media(min-width:320px){.cf-media-gallery__item{flex-basis:50%}}@media(min-width:480px){.cf-media-gallery__item{flex-basis:33.3333%}}@media(min-width:640px){.cf-media-gallery__item{flex-basis:25%}}@media(min-width:768px){.cf-media-gallery__item{flex-basis:20%}}@media(min-width:1280px){.cf-media-gallery__item{flex-basis:16.66667%}}@media(min-width:1440px){.cf-media-gallery__item{flex-basis:12.5%}}@media(min-width:1680px){.cf-media-gallery__item{flex-basis:10%}}.cf-media-gallery__item-inner{position:relative;display:flex;flex-direction:column;height:100%}.cf-media-gallery__item-preview{position:relative;overflow:hidden;padding-top:100%;flex:1}.cf-media-gallery__item-thumb{min-width:100%;min-height:100%;max-width:150%;pointer-events:none}.cf-media-gallery__item-icon,.cf-media-gallery__item-thumb{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.cf-media-gallery__item-icon{max-width:100%;max-height:50%}.cf-media-gallery__item-name{display:block;padding:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:move}.cf-media-gallery__item-remove{position:absolute;top:4px;right:4px;padding:0;border:0;outline:none;background-color:transparent;cursor:pointer}.cf-media-gallery__item-remove:before{border-radius:50%;background-color:#191e23;color:#fff;transition:color .1s linear}.cf-media-gallery__item-remove:hover:before{color:#b5bcc2}.cf-multiselect__control{min-height:0;border-color:#e2e4e7}.cf-multiselect__control:hover{border-color:#e2e4e7}.cf-multiselect__control--is-focused,.cf-multiselect__control--is-focused:hover{border-color:#00a0d2!important;box-shadow:none}.cf-multiselect__placeholder{color:#b5bcc2}.cf-multiselect__value-container{padding-left:4px;padding-right:4px}.cf-multiselect__multi-value{align-items:center;padding:5px 3px;margin:0;background-color:#e2e4e7}.cf-multiselect__multi-value+.cf-multiselect__multi-value{margin-left:5px}.cf-multiselect__multi-value__label{padding-left:3px;font-size:13px;line-height:1}.cf-multiselect__multi-value__remove{padding:0;margin-top:1px;cursor:pointer}.cf-multiselect__multi-value__remove:hover{background-color:transparent}.cf-multiselect__input input[id],.cf-multiselect__input input[id]:focus{box-shadow:none}.cf-multiselect__menu{z-index:9999}.cf-multiselect__option{padding:4px}.cf-multiselect__option--is-focused{background-color:#00a0d2;color:#fff}.cf-multiselect__indicator{padding:5px;cursor:pointer}.cf-oembed__preview{padding:12px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7}.cf-oembed__frame{display:block;width:100%;max-width:600px;margin:0 auto}.cf-radio__list{margin:0}.cf-radio-image .cf-radio__list{display:flex;flex-wrap:wrap}.cf-radio__list-item:last-child{margin-bottom:0}.cf-radio-image .cf-radio__list-item{flex:0 0 20%;position:relative;padding:4px}.cf-container-term-meta .cf-radio__label{display:inline}.cf-radio-image .cf-radio__label{display:inline-block}.cf-field .cf-radio__input{margin-top:0}.cf-radio-image .cf-radio__input{position:absolute;z-index:-1;top:50%;left:50%;width:0;height:0;margin:0;outline:0;opacity:0}.cf-radio__input[type=checkbox]{border-radius:50%}.cf-radio__input[type=checkbox]:checked:before{content:"";background-color:#3582c4;background-color:var(--wp-admin-theme-color,#3582c4);border-radius:50%;width:.5rem;height:.5rem;margin:.1875rem;line-height:1.14285714}.cf-radio-image__image{display:block;max-width:100%;padding:5px;box-sizing:border-box}.wp-block .cf-radio__list{list-style:none outside none}.cf-radio__list-item{box-sizing:border-box}.cf-container-term-meta .cf-radio__list-item{flex:0 0 20%}.cf-container-theme-options .cf-radio__list-item{flex:0 0 10%}.cf-radio-image__image{border:1px solid #e2e4e7}.cf-radio__input:checked~.cf-radio__label .cf-radio-image__image,.cf-radio__input:focus~.cf-radio__label .cf-radio-image__image{outline:4px solid #00a0d2}.cf-select__input{display:block;width:100%;margin:0}.cf-container-term-meta .cf-separator .cf-field__head{display:none}.cf-set__list{margin:0}.cf-set__list-item:last-child{margin-bottom:0}.cf-field .cf-set__input{margin-top:0}.cf-container-term-meta .cf-set__label{display:inline}.cf-text__input{display:block;width:100%!important;margin:0}.cf-textarea__input{display:block;width:100%!important;resize:vertical}.cf-field,.cf-field__body,.cf-field__head{box-sizing:border-box;flex:1 1 100%}@media(max-width:1024px){.cf-field{flex-basis:100%!important}}.cf-field.cf-block-preview{display:none}.cf-rich-text .cf-field__body{box-sizing:content-box}.cf-complex--tabbed-vertical>.cf-field__body{display:flex;align-items:flex-start}.cf-field__label{display:block}.cf-block-preview .cf-field__label,.cf-html .cf-field__label,.cf-separator .cf-field__label{display:none}.cf-field__asterisk{color:#dc3232}.cf-field__error{display:block;margin-top:4px;color:#dc3232} \ No newline at end of file diff --git a/build/classic/metaboxes.js b/build/classic/metaboxes.js index 0d75d0e2f..e6bfa547d 100644 --- a/build/classic/metaboxes.js +++ b/build/classic/metaboxes.js @@ -1058,7 +1058,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return handler; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _containers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../containers */ \"./packages/metaboxes/containers/index.js\");\n/* harmony import */ var _conditions_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../conditions/base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n/* harmony import */ var _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../conditions/boolean */ \"./packages/metaboxes/monitors/conditional-display/conditions/boolean.js\");\n/* harmony import */ var _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../conditions/post-term */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-term.js\");\n/* harmony import */ var _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../conditions/post-template */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-template.js\");\n/* harmony import */ var _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../conditions/post-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-ancestor-id.js\");\n/* harmony import */ var _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../conditions/term-parent-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-parent-id.js\");\n/* harmony import */ var _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../conditions/term-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-ancestor-id.js\");\n\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n\n\n/**\n * Keeps track of supported conditions.\n *\n * @type {Object}\n */\nvar conditions = {\n \"boolean\": _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n post_term: _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n post_ancestor_id: _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n post_parent_id: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_format: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_template: _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n term_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n term_parent: _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n term_ancestor: _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n user_role: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n};\n\n/**\n * Walks through the definitions and evaluates the conditions.\n *\n * @param {Object[]} definitions\n * @param {Object} values\n * @param {string} relation\n * @return {boolean}\n */\nfunction evaluate(definitions, values, relation) {\n var results = definitions.map(function (definition) {\n if (!definition.relation) {\n var condition = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"get\"])(conditions, definition.type);\n if (condition) {\n return condition.isFulfiled(definition, values);\n } else {\n // eslint-disable-line no-else-return\n // eslint-disable-next-line no-console\n console.error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Unsupported container condition - \"%1$s\".', 'carbon-fields-ui'), definition.type));\n return false;\n }\n } else {\n // eslint-disable-line no-else-return\n return evaluate(definition.conditions, values, definition.relation);\n }\n });\n switch (relation) {\n case 'AND':\n return results.every(Boolean);\n case 'OR':\n return results.some(Boolean);\n default:\n // eslint-disable-next-line no-console\n console.error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Unsupported container condition relation used - \"%1$s\".', 'carbon-fields-ui'), relation));\n return false;\n }\n}\n\n/**\n * The function that causes the side effects.\n *\n * @param {Object} props\n * @param {Object} props.containers\n * @param {string} props.context\n * @return {Function}\n */\nfunction handler(_ref) {\n var containers = _ref.containers,\n context = _ref.context;\n return function (effect) {\n var results = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"map\"])(containers, function (container, id) {\n return [id, evaluate(container.conditions.conditions, effect, container.conditions.relation)];\n });\n results.forEach(function (_ref2) {\n var _ref3 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, 2),\n id = _ref3[0],\n result = _ref3[1];\n var postboxNode = document.getElementById(id);\n var containerNode = document.querySelector(\".container-\".concat(id));\n var isMounted = !!containerNode.dataset.mounted;\n if (postboxNode) {\n postboxNode.hidden = !result;\n }\n if (containerNode) {\n if (result && !isMounted) {\n Object(_containers__WEBPACK_IMPORTED_MODULE_3__[\"renderContainer\"])(containers[id], context);\n }\n if (!result && isMounted) {\n delete containerNode.dataset.mounted;\n\n // Rely on React's internals instead of `unmountComponentAtNode`\n // due to https://github.com/facebook/react/issues/13690.\n // TODO: Conditionally render the fields in the container, this way\n // we can move away from mount/unmount cycles.\n //containerNode._reactRootContainer.unmount(); // -- causes a memory leak bug\n }\n }\n });\n };\n}\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/metaboxes/monitors/conditional-display/handler/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return handler; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _containers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../containers */ \"./packages/metaboxes/containers/index.js\");\n/* harmony import */ var _conditions_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../conditions/base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n/* harmony import */ var _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../conditions/boolean */ \"./packages/metaboxes/monitors/conditional-display/conditions/boolean.js\");\n/* harmony import */ var _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../conditions/post-term */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-term.js\");\n/* harmony import */ var _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../conditions/post-template */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-template.js\");\n/* harmony import */ var _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../conditions/post-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-ancestor-id.js\");\n/* harmony import */ var _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../conditions/term-parent-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-parent-id.js\");\n/* harmony import */ var _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../conditions/term-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-ancestor-id.js\");\n\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n\n\n/**\n * Keeps track of supported conditions.\n *\n * @type {Object}\n */\nvar conditions = {\n \"boolean\": _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n post_term: _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n post_ancestor_id: _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n post_parent_id: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_format: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_template: _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n term_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n term_parent: _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n term_ancestor: _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n user_role: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n};\n\n/**\n * Walks through the definitions and evaluates the conditions.\n *\n * @param {Object[]} definitions\n * @param {Object} values\n * @param {string} relation\n * @return {boolean}\n */\nfunction evaluate(definitions, values, relation) {\n var results = definitions.map(function (definition) {\n if (!definition.relation) {\n var condition = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"get\"])(conditions, definition.type);\n if (condition) {\n return condition.isFulfiled(definition, values);\n } else {\n // eslint-disable-line no-else-return\n // eslint-disable-next-line no-console\n console.error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Unsupported container condition - \"%1$s\".', 'carbon-fields-ui'), definition.type));\n return false;\n }\n } else {\n // eslint-disable-line no-else-return\n return evaluate(definition.conditions, values, definition.relation);\n }\n });\n switch (relation) {\n case 'AND':\n return results.every(Boolean);\n case 'OR':\n return results.some(Boolean);\n default:\n // eslint-disable-next-line no-console\n console.error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Unsupported container condition relation used - \"%1$s\".', 'carbon-fields-ui'), relation));\n return false;\n }\n}\n\n/**\n * The function that causes the side effects.\n *\n * @param {Object} props\n * @param {Object} props.containers\n * @param {string} props.context\n * @return {Function}\n */\nfunction handler(_ref) {\n var containers = _ref.containers,\n context = _ref.context;\n return function (effect) {\n var results = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"map\"])(containers, function (container, id) {\n return [id, evaluate(container.conditions.conditions, effect, container.conditions.relation)];\n });\n results.forEach(function (_ref2) {\n var _ref3 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, 2),\n id = _ref3[0],\n result = _ref3[1];\n var postboxNode = document.getElementById(id);\n var containerNode = document.querySelector(\".container-\".concat(id));\n var isMounted = !!containerNode.dataset.mounted;\n if (postboxNode) {\n postboxNode.hidden = !result;\n }\n if (containerNode) {\n if (result && !isMounted) {\n Object(_containers__WEBPACK_IMPORTED_MODULE_3__[\"renderContainer\"])(containers[id], context);\n }\n if (!result && isMounted) {\n delete containerNode.dataset.mounted;\n\n // Rely on React's internals instead of `unmountComponentAtNode`\n // due to https://github.com/facebook/react/issues/13690.\n // TODO: Conditionally render the fields in the container, this way\n // we can move away from mount/unmount cycles.\n containerNode._reactRootContainer.unmount();\n }\n }\n });\n };\n}\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/metaboxes/monitors/conditional-display/handler/index.js?"); /***/ }), @@ -1166,7 +1166,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setupState\", function() { return setupState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateState\", function() { return updateState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateFieldValue\", function() { return updateFieldValue; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addFields\", function() { return addFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"cloneFields\", function() { return cloneFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeFields\", function() { return removeFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addContainer\", function() { return addContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeContainer\", function() { return removeContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"receiveSidebar\", function() { return receiveSidebar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"lockSaving\", function() { return lockSaving; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"unlockSaving\", function() { return unlockSaving; });\n/**\n * Returns an action object used to setup the state when first opening an editor.\n *\n * @param {Object[]} containers\n * @param {Object} fields\n * @return {Object}\n */\nfunction setupState(containers, fields) {\n return {\n type: 'SETUP_STATE',\n payload: {\n containers: containers,\n fields: fields\n }\n };\n}\n\n/**\n * Returns an action object used to update the state.\n *\n * @param {Object[]} containers\n * @param {Object} fields\n * @return {Object}\n */\nfunction updateState(containers, fields) {\n return {\n type: 'UPDATE_STATE',\n payload: {\n containers: containers,\n fields: fields\n }\n };\n}\n\n/**\n * Returns an action object used to update the field's value.\n *\n * @param {string} fieldId\n * @param {mixed} value\n * @param {string[]} fieldsToRemove It's used by the complex fields to remove the nested\n * fields within a single action.\n * @return {Object}\n */\nfunction updateFieldValue(fieldId, value) {\n var fieldsToRemove = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n return {\n type: 'UPDATE_FIELD_VALUE',\n payload: {\n fieldId: fieldId,\n value: value,\n fieldsToRemove: fieldsToRemove\n }\n };\n}\n\n/**\n * Returns an action object used to add the fields.\n *\n * @param {Object[]} fields\n * @return {Object}\n */\nfunction addFields(fields) {\n return {\n type: 'ADD_FIELDS',\n payload: {\n fields: fields\n }\n };\n}\n\n/**\n * Returns an action object used to clone the fields.\n *\n * @param {string[]} originFieldIds\n * @param {string[]} cloneFieldIds\n * @return {Object}\n */\nfunction cloneFields(originFieldIds, cloneFieldIds) {\n return {\n type: 'CLONE_FIELDS',\n payload: {\n originFieldIds: originFieldIds,\n cloneFieldIds: cloneFieldIds\n }\n };\n}\n\n/**\n * Returns an action object used to remove the fields.\n *\n * @param {string[]} fieldIds\n * @return {Object}\n */\nfunction removeFields(fieldIds) {\n return {\n type: 'REMOVE_FIELDS',\n payload: {\n fieldIds: fieldIds\n }\n };\n}\n\n/**\n * Returns an action object used to add a container to all containers.\n *\n * @param {Object} container\n * @return {Object}\n */\nfunction addContainer(container) {\n return {\n type: 'ADD_CONTAINER',\n payload: container\n };\n}\n\n/**\n * Returns an action object used to remove a container from all containers.\n *\n * @param {Object} container\n * @return {Object}\n */\nfunction removeContainer(container) {\n return {\n type: 'REMOVE_CONTAINER',\n payload: container\n };\n}\n\n/**\n * Returns an action object used to add the created sidebar to all fields.\n *\n * @param {Object} sidebar\n * @return {Object}\n */\nfunction receiveSidebar(sidebar) {\n return {\n type: 'RECEIVE_SIDEBAR',\n payload: sidebar\n };\n}\n\n/**\n * Returns an action object used to signal that saving is locked.\n *\n * @param {string} lockName\n * @return {Object}\n */\nfunction lockSaving(lockName) {\n return {\n type: 'LOCK_SAVING',\n payload: {\n lockName: lockName\n }\n };\n}\n\n/**\n * Returns an action object used to signal that saving is unlocked.\n *\n * @param {string} lockName\n * @return {Object}\n */\nfunction unlockSaving(lockName) {\n return {\n type: 'UNLOCK_SAVING',\n payload: {\n lockName: lockName\n }\n };\n}\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/metaboxes/store/actions.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setupState\", function() { return setupState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateState\", function() { return updateState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateFieldValue\", function() { return updateFieldValue; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addFields\", function() { return addFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"cloneFields\", function() { return cloneFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeFields\", function() { return removeFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addContainer\", function() { return addContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeContainer\", function() { return removeContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"receiveSidebar\", function() { return receiveSidebar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"lockSaving\", function() { return lockSaving; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"unlockSaving\", function() { return unlockSaving; });\n/**\r\n * Returns an action object used to setup the state when first opening an editor.\r\n *\r\n * @param {Object[]} containers\r\n * @param {Object} fields\r\n * @return {Object}\r\n */\nfunction setupState(containers, fields) {\n return {\n type: 'SETUP_STATE',\n payload: {\n containers: containers,\n fields: fields\n }\n };\n}\n\n/**\r\n * Returns an action object used to update the state.\r\n *\r\n * @param {Object[]} containers\r\n * @param {Object} fields\r\n * @return {Object}\r\n */\nfunction updateState(containers, fields) {\n return {\n type: 'UPDATE_STATE',\n payload: {\n containers: containers,\n fields: fields\n }\n };\n}\n\n/**\r\n * Returns an action object used to update the field's value.\r\n *\r\n * @param {string} fieldId\r\n * @param {mixed} value\r\n * @param {string[]} fieldsToRemove It's used by the complex fields to remove the nested\r\n * fields within a single action.\r\n * @return {Object}\r\n */\nfunction updateFieldValue(fieldId, value) {\n var fieldsToRemove = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n return {\n type: 'UPDATE_FIELD_VALUE',\n payload: {\n fieldId: fieldId,\n value: value,\n fieldsToRemove: fieldsToRemove\n }\n };\n}\n\n/**\r\n * Returns an action object used to add the fields.\r\n *\r\n * @param {Object[]} fields\r\n * @return {Object}\r\n */\nfunction addFields(fields) {\n return {\n type: 'ADD_FIELDS',\n payload: {\n fields: fields\n }\n };\n}\n\n/**\r\n * Returns an action object used to clone the fields.\r\n *\r\n * @param {string[]} originFieldIds\r\n * @param {string[]} cloneFieldIds\r\n * @return {Object}\r\n */\nfunction cloneFields(originFieldIds, cloneFieldIds) {\n return {\n type: 'CLONE_FIELDS',\n payload: {\n originFieldIds: originFieldIds,\n cloneFieldIds: cloneFieldIds\n }\n };\n}\n\n/**\r\n * Returns an action object used to remove the fields.\r\n *\r\n * @param {string[]} fieldIds\r\n * @return {Object}\r\n */\nfunction removeFields(fieldIds) {\n return {\n type: 'REMOVE_FIELDS',\n payload: {\n fieldIds: fieldIds\n }\n };\n}\n\n/**\r\n * Returns an action object used to add a container to all containers.\r\n *\r\n * @param {Object} container\r\n * @return {Object}\r\n */\nfunction addContainer(container) {\n return {\n type: 'ADD_CONTAINER',\n payload: container\n };\n}\n\n/**\r\n * Returns an action object used to remove a container from all containers.\r\n *\r\n * @param {Object} container\r\n * @return {Object}\r\n */\nfunction removeContainer(container) {\n return {\n type: 'REMOVE_CONTAINER',\n payload: container\n };\n}\n\n/**\r\n * Returns an action object used to add the created sidebar to all fields.\r\n *\r\n * @param {Object} sidebar\r\n * @return {Object}\r\n */\nfunction receiveSidebar(sidebar) {\n return {\n type: 'RECEIVE_SIDEBAR',\n payload: sidebar\n };\n}\n\n/**\r\n * Returns an action object used to signal that saving is locked.\r\n *\r\n * @param {string} lockName\r\n * @return {Object}\r\n */\nfunction lockSaving(lockName) {\n return {\n type: 'LOCK_SAVING',\n payload: {\n lockName: lockName\n }\n };\n}\n\n/**\r\n * Returns an action object used to signal that saving is unlocked.\r\n *\r\n * @param {string} lockName\r\n * @return {Object}\r\n */\nfunction unlockSaving(lockName) {\n return {\n type: 'UNLOCK_SAVING',\n payload: {\n lockName: lockName\n }\n };\n}\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/metaboxes/store/actions.js?"); /***/ }), diff --git a/build/classic/metaboxes.min.js b/build/classic/metaboxes.min.js index 80096fbe9..365d7d022 100644 --- a/build/classic/metaboxes.min.js +++ b/build/classic/metaboxes.min.js @@ -1 +1 @@ -this.cf=this.cf||{},this.cf.metaboxes=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=71)}([function(e,t){!function(){e.exports=this.cf.vendor.lodash}()},function(e,t){!function(){e.exports=this.cf.vendor["callbag-basics"]}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/data"]}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/hooks"]}()},function(e,t,n){var r=n(34);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){!function(){e.exports=this.cf.core}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/i18n"]}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/element"]}()},function(e,t){!function(){e.exports=this.cf.vendor.immer}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/compose"]}()},function(e,t,n){"use strict";t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:function(){for(var e=arguments.length,t=new Array(e),n=0;n(r,o)=>{if(0!==r)return;let c=!1;const i=e=>{o(1,e)};if(o(0,r=>{if(2===r)if(c=!0,e.removeEventListener)e.removeEventListener(t,i,n);else{if(!e.removeListener)throw new Error("cannot remove listener from node. No method found.");e.removeListener(t,i)}}),!c)if(e.addEventListener)e.addEventListener(t,i,n);else{if(!e.addListener)throw new Error("cannot add listener to node. No method found.");e.addListener(t,i)}}},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){!function(){e.exports=this.cf.vendor.classnames}()},function(e,t,n){var r=n(32).default,o=n(45);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(36);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt=>(n,r)=>{if(0!==n)return;let o;t(0,(t,n)=>{0===t?(o=n,r(t,n)):1===t?e(n)?r(t,n):o(1):r(t,n)})}},function(e,t){e.exports=e=>(t,n)=>{if(0!==t)return;if("function"!=typeof e)return n(0,()=>{}),void n(2);let r,o;const c=e=>{r=r||2===e,r&&"function"==typeof o&&o()};n(0,c),o=e((e,t)=>{r||0===e||(n(e,t),c(e))})}},function(e,t,n){"use strict";(function(e){var r=n(16),o=n.n(r),c=n(26),i=n.n(c),a=n(27),u=n.n(a),s=n(11),l=n.n(s),f=n(28),d=n.n(f),p=n(29),b=n.n(p),O=n(22),m=n.n(O),j=n(4),v=n.n(j),y=n(33),g=n.n(y),h=n(7),_=n(0),x=n(5),w=(n(70),n(30));var E=function(t){d()(r,t);var n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}(r);function r(){var t;i()(this,r);for(var o=arguments.length,c=new Array(o),a=0;at=>(n,r)=>{if(0!==n)return;let o,c,i=!1,a=!1;for(r(0,(t,n)=>{a&&1===t&&(c=[1,n]),2===t&&(i=!0,e.length=0),o&&o(t,n)});0!==e.length;)1===e.length&&(a=!0),r(1,e.shift());i||t(0,(e,t)=>{if(0===e)return o=t,a=!1,void(c&&(o(...c),c=null));r(e,t)})},O=n(14),m=n(5);function j(e){var t=parseInt(e.value,10);return!isNaN(t)&&t>=0?t:0}function v(e){var t=0;if(e.className){var n=e.className.match(/^level-(\d+)/);n&&(t=parseInt(n[1],10)+1)}return t}function y(e){for(var t=[],n=e,r=v(e);r>0&&n;)if(v(n)===r){var o=parseInt(n.value,10);o>0&&t.unshift(o),n=n.previousSibling,r--}else n=n.previousSibling;return t}var g={post_ancestors:[],post_parent_id:0,post_level:1};function h(e){var t=e.options[e.selectedIndex];return{post_ancestors:y(t),post_parent_id:j(t),post_level:v(t)+1}}Object(u.addFilter)("carbon-fields.conditional-display-post-parent.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("select#parent_id");return e?Object(l.pipe)(l.fromEvent.default(e,"change"),Object(l.map)((function(e){return h(e.target)})),b(h(e))):Object(p.a)(g)})),Object(u.addFilter)("carbon-fields.conditional-display-post-parent.gutenberg","carbon-fields/metaboxes",(function(){var e=Object(o.select)("core"),t=e.getPostType,n=e.getEntityRecords;return Object(l.pipe)(Object(l.combine)(Object(m.fromSelector)(Object(o.select)("core/editor").getCurrentPostId),Object(m.fromSelector)(Object(o.select)("core/editor").getEditedPostAttribute,"type"),Object(m.fromSelector)(Object(o.select)("core/editor").getEditedPostAttribute,"parent")),Object(O.a)(s.isEqual),Object(l.map)((function(e){var r=d()(e,3),o=r[0],c=r[1],i=r[2];if(i=parseInt(i,10),isNaN(i))return g;var a=t(c);if(!Object(s.get)(a,["hierarchical"],!1))return g;var u=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Object(s.find)(n,["id",t]);return o?(r.unshift(o.id),o.parent?e(o.parent,n,r):r):r}(i,n("postType",c,{per_page:-1,exclude:o,parent_exclude:o,orderby:"menu_order",order:"asc"})||[]);return{post_ancestors:u,post_parent_id:i,post_level:u.length+1}})))}));var _=n(31),x=n(39),w=n.n(x),E=(e,t,n)=>w()(n=>{let r=n.target;for(;r!==e;){if(r.matches(t))return!0;r=r.parentElement}return!1})(Object(_.a)(e,n)),P={post_format:"standard"};function S(e){var t=e.value;return"0"===t&&(t="standard"),{post_format:t}}Object(u.addFilter)("carbon-fields.conditional-display-post-format.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("div#post-formats-select");return e?Object(l.pipe)(E(e,"input.post-format","change"),Object(l.map)((function(e){return S(e.target)})),b(S(e.querySelector("input.post-format:checked")))):Object(p.a)(P)})),Object(u.addFilter)("carbon-fields.conditional-display-post-format.gutenberg","carbon-fields/metaboxes",(function(){return Object(l.pipe)(Object(m.fromSelector)(Object(o.select)("core/editor").getEditedPostAttribute,"format"),Object(O.a)(),Object(l.filter)(Boolean),Object(l.map)((function(e){return{post_format:e}})),b(P))}));var D={post_template:""};function I(e){var t=e.value;return"default"===t&&(t=""),{post_template:t}}Object(u.addFilter)("carbon-fields.conditional-display-post-template.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("select#page_template");return e?Object(l.pipe)(l.fromEvent.default(e,"change"),Object(l.map)((function(e){return I(e.target)})),b(I(e))):Object(p.a)(D)})),Object(u.addFilter)("carbon-fields.conditional-display-post-template.gutenberg","carbon-fields/metaboxes",(function(){return Object(l.pipe)(Object(m.fromSelector)(Object(o.select)("core/editor").getEditedPostAttribute,"template"),Object(O.a)(),Object(l.filter)(s.isString),Object(l.map)((function(e){return{post_template:e}})),b(D))}));var F=n(4),T=n.n(F),A=n(16),C=n.n(A);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t-1},evaluate:function(){return!1}};function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t-1;case"NOT IN":return-1===n.indexOf(e);default:return!1}}}),z(z({},q),{},{operators:[">",">=","<","<="],evaluate:function(e,t,n){switch(t){case">":return e>n;case">=":return e>=n;case"<":return e0;case"NOT IN":return 0===Object(s.intersection)(e,n).length;default:return!1}}});function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t-1})),Object(s.map)((function(e){return{type:"WIDGET_CREATED_OR_UPDATED",payload:e}}))),Object(s.pipe)(Object(d.a)((function(e){return window.jQuery(document).on("ajaxSend",e)}),(function(e){return window.jQuery(document).off("ajaxSend",e)}),(function(e,t,n,r){return{event:e,xhr:t,options:n,data:r}})),Object(s.filter)((function(e){var t=e.options;return Object(a.startsWith)(t.data,b.a)})),Object(s.map)((function(e){return{type:"WIDGET_BEIGN_UPDATED_OR_DELETED",payload:e}}))))}),{handler:function(){return function(e){var t=Object(c.select)("carbon-fields/metaboxes").getContainerById,n=Object(c.dispatch)("carbon-fields/metaboxes"),r=n.addContainer,u=n.removeContainer,s=n.addFields,d=n.removeFields;switch(e.type){case"WIDGET_CREATED_OR_UPDATED":var O=e.payload,m=O.event,j=O.$widget,v=Object(a.flow)(l,JSON.parse)(j.find("[data-json]").data("json")),y=[];if(v.fields=v.fields.map((function(e){return Object(f.a)(e,v,y)})),s(y),r(v),Object(p.b)(v,"classic"),window.cf.config.pagenow===b.c&&"widget-added"===m.type){var g=j.find('[name="widget-id"]').val();j.find('[name="savewidget"]').show().end().find(".widget-content:first").off("keydown","input").off("change input propertychange",":input"),wp.customize.Widgets.getWidgetFormControlForWidget(g).liveUpdateMode=!1}break;case"WIDGET_BEIGN_UPDATED_OR_DELETED":var h=e.payload.options.data.match(/widget-id=(.+?)&/),x=o()(h,2)[1],w="".concat(b.a).concat(x),E=t(w);Object(i.unmountComponentAtNode)(document.querySelector(".container-".concat(w)));var P=_.map(E.fields,"id");u(w),d(P)}}}})((function(){return null}))},function(e,t,n){var r=n(32).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,c,i,a=[],u=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=c.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){var t=n(26),r=n.n(t),o=n(27),c=n.n(o),i=n(11),a=n.n(i),u=n(28),s=n.n(u),l=n(29),f=n.n(l),d=n(22),p=n.n(d),b=n(4),O=n.n(b),m=n(8),j=n.n(m),v=n(7),y=n(3),g=n(9),h=n(2),_=n(0),x=n(5),w=(n(51),n(30)),E=n(19);var P=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(){var e;r()(this,n);for(var o=arguments.length,c=new Array(o),i=0;i=0&&window.jQuery(".container-".concat(r.id)).closest(".widget-inside").trigger("change")}}}}))},function(e,t,n){},function(e,t,n){"use strict";var r=n(0),o=n.n(r),c=n(3),i=n(2),a=n(12),u=n(1),s=n(23),l=n(24);Object(c.addFilter)("carbon-fields.term_meta.classic","carbon-fields/metaboxes",Object(a.withEffects)((function(){return Object(u.pipe)(Object(s.a)((function(e){return window.jQuery(document).on("ajaxSuccess",e)}),(function(e){return window.jQuery(document).off("ajaxSuccess",e)}),(function(e,t,n,r){return{options:n,data:r}})),Object(u.filter)((function(e){var t=e.options,n=e.data;return t.data&&t.data.indexOf("carbon_fields_container")>-1&&t.data.indexOf("add-tag")>-1&&!n.documentElement.querySelector("wp_error")})))}),{handler:function(e){return function(){var t=o.a.map(e.container.fields,"id"),n=Object(l.a)(o.a.get(window.cf,"preloaded.containers",[])),r=n.containers,c=n.fields,a=o.a.find(r,["id",e.id]),u=o.a.filter(c,["container_id",e.id]),s=Object(i.dispatch)("carbon-fields/metaboxes"),f=s.updateState,d=s.removeFields;f(o.a.keyBy([a],"id"),o.a.keyBy(u,"id")),d(t)}}}))},function(e,t,n){"use strict";var r=n(3),o=n(12),c=n(1),i=n(31);n(67),Object(r.addFilter)("carbon-fields.theme_options.classic","carbon-fields/metaboxes",Object(o.withEffects)((function(){return Object(c.pipe)(Object(i.a)(window,"scroll"),Object(c.map)((function(){return window.jQuery(window).scrollTop()})))}),{handler:function(){return function(e){var t=window.jQuery(".carbon-box:first"),n=window.jQuery("#postbox-container-1"),r=window.jQuery("#wpadminbar").height()+10,o=t.offset().top-r;o>0&&n.toggleClass("fixed",e>=o).css("top",r)}}}))},function(e,t,n){},function(e,t,n){"use strict";n(69)},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"registerContainerType",(function(){return oe.b})),n.d(t,"getContainerType",(function(){return oe.a}));var r={};n.r(r),n.d(r,"setupState",(function(){return y})),n.d(r,"updateState",(function(){return g})),n.d(r,"updateFieldValue",(function(){return h})),n.d(r,"addFields",(function(){return _})),n.d(r,"cloneFields",(function(){return x})),n.d(r,"removeFields",(function(){return w})),n.d(r,"addContainer",(function(){return E})),n.d(r,"removeContainer",(function(){return P})),n.d(r,"receiveSidebar",(function(){return S})),n.d(r,"lockSaving",(function(){return D})),n.d(r,"unlockSaving",(function(){return I}));var o={};n.r(o),n.d(o,"getContainers",(function(){return F})),n.d(o,"getContainerById",(function(){return T})),n.d(o,"getFields",(function(){return A})),n.d(o,"getFieldsByContainerId",(function(){return C})),n.d(o,"getFieldById",(function(){return k})),n.d(o,"isSavingLocked",(function(){return N})),n.d(o,"isDirty",(function(){return G})),n.d(o,"isFieldUpdated",(function(){return L})),n.d(o,"getComplexGroupValues",(function(){return R}));var c=n(6),i=n(3),a=n(2),u=n(0),s=n(4),l=n.n(s),f=n(8),d=n.n(f),p=n(5);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_STATE":return t.payload.containers;case"UPDATE_STATE":return d()(e,(function(e){Object(u.values)(t.payload.containers).forEach((function(t){e[t.id]=t}))}));case"ADD_CONTAINER":return d()(e,(function(e){e[t.payload.id]=t.payload}));case"REMOVE_CONTAINER":return Object(u.omit)(e,t.payload);default:return e}},fields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_STATE":return t.payload.fields;case"UPDATE_STATE":return d()(e,(function(e){Object(u.values)(t.payload.fields).forEach((function(t){e[t.id]=t}))}));case"UPDATE_FIELD_VALUE":return d()(e,(function(n){var r=t.payload,o=r.fieldId,c=r.value,i=r.fieldsToRemove;n[o].value=c,i.reduce((function(t,n){return j(n,e,t)}),[]).forEach((function(e){Object(u.unset)(n,e)}))}));case"ADD_FIELDS":return d()(e,(function(e){t.payload.fields.forEach((function(t){e[t.id]=t}))}));case"CLONE_FIELDS":return d()(e,(function(e){var n=t.payload,r=n.originFieldIds,o=n.cloneFieldIds,c=r.reduce((function(t,n,r){return m(n,o[r],e,t)}),[]);Object(u.assign)(e,Object(u.keyBy)(c,"id"))}));case"REMOVE_FIELDS":var n=t.payload.fieldIds.reduce((function(t,n){return j(n,e,t)}),[]);return Object(u.omit)(e,n);case"RECEIVE_SIDEBAR":return d()(e,(function(e){Object(u.forEach)(e,(function(e){"sidebar"===e.type&&e.options.unshift(t.payload)}))}));default:return e}},savingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_SAVING":return O(O({},e),{},l()({},t.payload.lockName,!0));case"UNLOCK_SAVING":return Object(u.omit)(e,[t.payload.lockName]);default:return e}},isDirty:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_FIELD_VALUE":return!0;default:return e}},isFieldUpdated:function(e,t){switch(t.type){case"UPDATE_FIELD_VALUE":return{action:t};default:return!1}}});function y(e,t){return{type:"SETUP_STATE",payload:{containers:e,fields:t}}}function g(e,t){return{type:"UPDATE_STATE",payload:{containers:e,fields:t}}}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"UPDATE_FIELD_VALUE",payload:{fieldId:e,value:t,fieldsToRemove:n}}}function _(e){return{type:"ADD_FIELDS",payload:{fields:e}}}function x(e,t){return{type:"CLONE_FIELDS",payload:{originFieldIds:e,cloneFieldIds:t}}}function w(e){return{type:"REMOVE_FIELDS",payload:{fieldIds:e}}}function E(e){return{type:"ADD_CONTAINER",payload:e}}function P(e){return{type:"REMOVE_CONTAINER",payload:e}}function S(e){return{type:"RECEIVE_SIDEBAR",payload:e}}function D(e){return{type:"LOCK_SAVING",payload:{lockName:e}}}function I(e){return{type:"UNLOCK_SAVING",payload:{lockName:e}}}function F(e){return e.containers}function T(e,t){return e.containers[t]}function A(e){return e.fields}function C(e,t){return Object(u.filter)(e.fields,["container_id",t])}function k(e,t){return e.fields[t]}function N(e){return Object.keys(e.savingLock).length>0}function G(e){return e.isDirty}function L(e){return e.isFieldUpdated}function R(e,t){var n=Object(u.pick)(A(e),t);return n=Object(u.mapKeys)(n,(function(e){return e.base_name.replace(/\-/g,"_")})),Object(u.mapValues)(n,(function(e){return e.value}))}var M=n(24);Object(a.registerStore)("carbon-fields/metaboxes",{reducer:v,actions:r,selectors:o});var B=Object(M.a)(Object(u.get)(window.cf,"preloaded.containers",[])),U=B.containers,V=B.fields;Object(a.dispatch)("carbon-fields/metaboxes").setupState(Object(u.keyBy)(U,"id"),Object(u.keyBy)(V,"id"));var q=n(9),Q=n(25),K=n(13),$=n.n(K),W=n(10);const H={};var z=n(14),J=n(1);function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0===e?[]:Object(u.pick)(t,Object(u.difference)(Object(u.map)(e.fields,"id"),n))}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(u.map)(e,(function(e){return[e.id,"".concat(Object(u.repeat)("parent.",t)).concat(e.base_name)]}))}var Z=Object(p.withConditionalLogic)((function(e,t){var n=Object(a.select)("carbon-fields/metaboxes").getFieldsByContainerId;return Object(J.pipe)(Object(J.merge)(Object(W.a)(n(e.containerId)),Object(p.fromSelector)(n,e.containerId)),(e=>t=>(n,r)=>{if(0!==n)return;let o,c,i=!1,a=H;t(0,(t,n)=>{if(0===t)return o=n,e(0,(e,t)=>0===e?(c=t,void c(1)):1===e?(a=void 0,c(2),o(2),void(i&&r(2))):void(2===e&&(c=null,null!=t&&(a=t,o(2),i&&r(e,t))))),i=!0,r(0,(e,t)=>{a===H&&(2===e&&c&&c(2),o(e,t))}),void(a!==H&&r(2,a));2===t&&c&&c(2),r(t,n)})})(t.unmount),Object(z.a)(u.isEqual))}),(function(e,t){t=Object(u.keyBy)(t,"id");var n=Object(a.select)("carbon-fields/metaboxes").getContainerById(e.containerId),r=[];if(Object(u.some)(n.fields,["id",e.id]))r=Y(r=X(n,t,[e.id]));else{var o=e.name.replace(new RegExp("^".concat(window.cf.config.compactInputKey,"\\[(.+?)\\]")),"$1"),c=Object(u.find)(t,(function(t){return t.container_id===e.containerId&&Object(u.startsWith)(o,t.name)})),i=o.split(/\[|\]/g);i.shift(),(i=i.filter((function(e){return""!==e}))).pop();var s=i.reduce((function(e,t){return isNaN(t)?e+1:e}),0);r=Y(r=X(n,t,[c.id]),s+1);for(var l="".concat(c.id,".value");i.length>0;){var f=i.shift(),d=!isNaN(f),p=!d;if(d){l="".concat(l,"[").concat(f,"]");var b=X(Object(u.get)(t,l),t,[e.id]);r=r.concat(Y(b,s)),l="".concat(l,".fields")}if(p){var O=Object(u.find)(Object(u.get)(t,l),["name",f]);O&&(l="".concat(O.id,".value")),s--}}}return r=r.map((function(e){var n=$()(e,2),r=n[0];return[n[1],Object(u.get)(t,"".concat(r,".value"))]})),Object(u.fromPairs)(r)})),ee=n(20);function te(e,t){return Object(u.find)(e,(function(e){return e.name===t}))}Object(i.addFilter)("carbon-fields.association.metabox","carbon-fields/metaboxes",Object(p.withProps)((function(e){return{hierarchyResolver:function(){var t,n,r,o,c=Object(a.select)("carbon-fields/metaboxes").getContainerById(e.containerId),i=Object(a.select)("carbon-fields/metaboxes").getFieldsByContainerId(e.containerId),s=(t=e.name,n=window.cf.config,r=n.compactInput,o=n.compactInputKey,r&&0===t.indexOf(o)?t.replace(new RegExp("^".concat(o,"\\[(.+?)\\]")),"$1"):t).split(/\[|\]/g);if(s=s.filter((function(e){return""!==e})),"widget"===c.type)return e.field.base_name;for(var l=te(i,s.shift()),f=i.indexOf(l),d=l.base_name;s.length>0;){var p=s.shift(),b=!isNaN(p),O=p===e.field.base_name,m=!b&&!O;if(b&&(f="".concat(f,".value.").concat(p,".name"),d="".concat(d,"[").concat(p,"]:").concat(Object(u.get)(i,f),"/")),m){var j=te(Object(u.get)(i,f.replace(/\.name$/,".fields")),p),v=Object(u.find)(i,["id",j.id]);f=i.indexOf(v),d="".concat(d).concat(v.base_name)}O&&(d="".concat(d).concat(p))}return d}}}))),n(49),n(53),n(54),n(55),n(56),n(57),n(59),Object(i.addFilter)("carbon-fields.sidebar.metabox","carbon-fields/metaboxes",Object(a.withDispatch)((function(e){return{onAdded:e("carbon-fields/metaboxes").receiveSidebar}}))),Object(i.addFilter)("carbon-fields.field-edit.metabox","carbon-fields/metaboxes",Object(q.compose)(Q.a,Z,Object(a.withDispatch)((function(e){if(Object(ee.a)()){var t=e("core/editor");return{lockSaving:t.lockPostSaving,unlockSaving:t.unlockPostSaving}}var n=e("carbon-fields/metaboxes");return{lockSaving:n.lockSaving,unlockSaving:n.unlockSaving}})),p.withValidation));var ne=n(37),re=n(21),oe=n(18);Object(c.setLocaleData)(window.cf.config.locale,"carbon-fields-ui");var ce=Object(ee.a)()?"gutenberg":"classic";Object(i.addAction)("carbon-fields.init","carbon-fields/metaboxes",(function(){Object(re.a)(ce),Object(ne.a)(ce)}))},function(e,t,n){"use strict";var r=n(9),o=n(3),c=n(5),i=n(2),a=Object(r.createHigherOrderComponent)((function(e){return Object(i.withSelect)((function(e,t){var n=t.id;return{container:e("carbon-fields/metaboxes").getContainerById(n)}}))(e)}),"withContainer");Object(o.addFilter)("carbon-fields.register-container-type","carbon-fields/metaboxes",(function(e,t,n){return Object(r.compose)(a,Object(c.withFilters)("carbon-fields.".concat(e,".").concat(t)))(n)}))}]); \ No newline at end of file +this.cf=this.cf||{},this.cf.metaboxes=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=71)}([function(e,t){!function(){e.exports=this.cf.vendor.lodash}()},function(e,t){!function(){e.exports=this.cf.vendor["callbag-basics"]}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/data"]}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/hooks"]}()},function(e,t,n){var r=n(34);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){!function(){e.exports=this.cf.core}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/i18n"]}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/element"]}()},function(e,t){!function(){e.exports=this.cf.vendor.immer}()},function(e,t){!function(){e.exports=this.cf.vendor["@wordpress/compose"]}()},function(e,t,n){"use strict";t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:function(){for(var e=arguments.length,t=new Array(e),n=0;n(r,o)=>{if(0!==r)return;let c=!1;const i=e=>{o(1,e)};if(o(0,r=>{if(2===r)if(c=!0,e.removeEventListener)e.removeEventListener(t,i,n);else{if(!e.removeListener)throw new Error("cannot remove listener from node. No method found.");e.removeListener(t,i)}}),!c)if(e.addEventListener)e.addEventListener(t,i,n);else{if(!e.addListener)throw new Error("cannot add listener to node. No method found.");e.addListener(t,i)}}},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){!function(){e.exports=this.cf.vendor.classnames}()},function(e,t,n){var r=n(32).default,o=n(45);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(36);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt=>(n,r)=>{if(0!==n)return;let o;t(0,(t,n)=>{0===t?(o=n,r(t,n)):1===t?e(n)?r(t,n):o(1):r(t,n)})}},function(e,t){e.exports=e=>(t,n)=>{if(0!==t)return;if("function"!=typeof e)return n(0,()=>{}),void n(2);let r,o;const c=e=>{r=r||2===e,r&&"function"==typeof o&&o()};n(0,c),o=e((e,t)=>{r||0===e||(n(e,t),c(e))})}},function(e,t,n){"use strict";(function(e){var r=n(16),o=n.n(r),c=n(26),i=n.n(c),a=n(27),u=n.n(a),s=n(11),l=n.n(s),f=n(28),d=n.n(f),p=n(29),b=n.n(p),O=n(22),m=n.n(O),j=n(4),v=n.n(j),y=n(33),g=n.n(y),h=n(7),_=n(0),x=n(5),w=(n(70),n(30));var E=function(t){d()(r,t);var n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}(r);function r(){var t;i()(this,r);for(var o=arguments.length,c=new Array(o),a=0;at=>(n,r)=>{if(0!==n)return;let o,c,i=!1,a=!1;for(r(0,(t,n)=>{a&&1===t&&(c=[1,n]),2===t&&(i=!0,e.length=0),o&&o(t,n)});0!==e.length;)1===e.length&&(a=!0),r(1,e.shift());i||t(0,(e,t)=>{if(0===e)return o=t,a=!1,void(c&&(o(...c),c=null));r(e,t)})},O=n(14),m=n(5);function j(e){var t=parseInt(e.value,10);return!isNaN(t)&&t>=0?t:0}function v(e){var t=0;if(e.className){var n=e.className.match(/^level-(\d+)/);n&&(t=parseInt(n[1],10)+1)}return t}function y(e){for(var t=[],n=e,r=v(e);r>0&&n;)if(v(n)===r){var o=parseInt(n.value,10);o>0&&t.unshift(o),n=n.previousSibling,r--}else n=n.previousSibling;return t}var g={post_ancestors:[],post_parent_id:0,post_level:1};function h(e){var t=e.options[e.selectedIndex];return{post_ancestors:y(t),post_parent_id:j(t),post_level:v(t)+1}}Object(u.addFilter)("carbon-fields.conditional-display-post-parent.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("select#parent_id");return e?Object(l.pipe)(l.fromEvent.default(e,"change"),Object(l.map)((function(e){return h(e.target)})),b(h(e))):Object(p.a)(g)})),Object(u.addFilter)("carbon-fields.conditional-display-post-parent.gutenberg","carbon-fields/metaboxes",(function(){var e=Object(o.select)("core"),t=e.getPostType,n=e.getEntityRecords;return Object(l.pipe)(Object(l.combine)(Object(m.fromSelector)(Object(o.select)("core/editor").getCurrentPostId),Object(m.fromSelector)(Object(o.select)("core/editor").getEditedPostAttribute,"type"),Object(m.fromSelector)(Object(o.select)("core/editor").getEditedPostAttribute,"parent")),Object(O.a)(s.isEqual),Object(l.map)((function(e){var r=d()(e,3),o=r[0],c=r[1],i=r[2];if(i=parseInt(i,10),isNaN(i))return g;var a=t(c);if(!Object(s.get)(a,["hierarchical"],!1))return g;var u=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Object(s.find)(n,["id",t]);return o?(r.unshift(o.id),o.parent?e(o.parent,n,r):r):r}(i,n("postType",c,{per_page:-1,exclude:o,parent_exclude:o,orderby:"menu_order",order:"asc"})||[]);return{post_ancestors:u,post_parent_id:i,post_level:u.length+1}})))}));var _=n(31),x=n(39),w=n.n(x),E=(e,t,n)=>w()(n=>{let r=n.target;for(;r!==e;){if(r.matches(t))return!0;r=r.parentElement}return!1})(Object(_.a)(e,n)),P={post_format:"standard"};function S(e){var t=e.value;return"0"===t&&(t="standard"),{post_format:t}}Object(u.addFilter)("carbon-fields.conditional-display-post-format.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("div#post-formats-select");return e?Object(l.pipe)(E(e,"input.post-format","change"),Object(l.map)((function(e){return S(e.target)})),b(S(e.querySelector("input.post-format:checked")))):Object(p.a)(P)})),Object(u.addFilter)("carbon-fields.conditional-display-post-format.gutenberg","carbon-fields/metaboxes",(function(){return Object(l.pipe)(Object(m.fromSelector)(Object(o.select)("core/editor").getEditedPostAttribute,"format"),Object(O.a)(),Object(l.filter)(Boolean),Object(l.map)((function(e){return{post_format:e}})),b(P))}));var D={post_template:""};function I(e){var t=e.value;return"default"===t&&(t=""),{post_template:t}}Object(u.addFilter)("carbon-fields.conditional-display-post-template.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("select#page_template");return e?Object(l.pipe)(l.fromEvent.default(e,"change"),Object(l.map)((function(e){return I(e.target)})),b(I(e))):Object(p.a)(D)})),Object(u.addFilter)("carbon-fields.conditional-display-post-template.gutenberg","carbon-fields/metaboxes",(function(){return Object(l.pipe)(Object(m.fromSelector)(Object(o.select)("core/editor").getEditedPostAttribute,"template"),Object(O.a)(),Object(l.filter)(s.isString),Object(l.map)((function(e){return{post_template:e}})),b(D))}));var F=n(4),T=n.n(F),A=n(16),C=n.n(A);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t-1},evaluate:function(){return!1}};function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t-1;case"NOT IN":return-1===n.indexOf(e);default:return!1}}}),z(z({},q),{},{operators:[">",">=","<","<="],evaluate:function(e,t,n){switch(t){case">":return e>n;case">=":return e>=n;case"<":return e0;case"NOT IN":return 0===Object(s.intersection)(e,n).length;default:return!1}}});function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t-1})),Object(s.map)((function(e){return{type:"WIDGET_CREATED_OR_UPDATED",payload:e}}))),Object(s.pipe)(Object(d.a)((function(e){return window.jQuery(document).on("ajaxSend",e)}),(function(e){return window.jQuery(document).off("ajaxSend",e)}),(function(e,t,n,r){return{event:e,xhr:t,options:n,data:r}})),Object(s.filter)((function(e){var t=e.options;return Object(a.startsWith)(t.data,b.a)})),Object(s.map)((function(e){return{type:"WIDGET_BEIGN_UPDATED_OR_DELETED",payload:e}}))))}),{handler:function(){return function(e){var t=Object(c.select)("carbon-fields/metaboxes").getContainerById,n=Object(c.dispatch)("carbon-fields/metaboxes"),r=n.addContainer,u=n.removeContainer,s=n.addFields,d=n.removeFields;switch(e.type){case"WIDGET_CREATED_OR_UPDATED":var O=e.payload,m=O.event,j=O.$widget,v=Object(a.flow)(l,JSON.parse)(j.find("[data-json]").data("json")),y=[];if(v.fields=v.fields.map((function(e){return Object(f.a)(e,v,y)})),s(y),r(v),Object(p.b)(v,"classic"),window.cf.config.pagenow===b.c&&"widget-added"===m.type){var g=j.find('[name="widget-id"]').val();j.find('[name="savewidget"]').show().end().find(".widget-content:first").off("keydown","input").off("change input propertychange",":input"),wp.customize.Widgets.getWidgetFormControlForWidget(g).liveUpdateMode=!1}break;case"WIDGET_BEIGN_UPDATED_OR_DELETED":var h=e.payload.options.data.match(/widget-id=(.+?)&/),x=o()(h,2)[1],w="".concat(b.a).concat(x),E=t(w);Object(i.unmountComponentAtNode)(document.querySelector(".container-".concat(w)));var P=_.map(E.fields,"id");u(w),d(P)}}}})((function(){return null}))},function(e,t,n){var r=n(32).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,c,i,a=[],u=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=c.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){var t=n(26),r=n.n(t),o=n(27),c=n.n(o),i=n(11),a=n.n(i),u=n(28),s=n.n(u),l=n(29),f=n.n(l),d=n(22),p=n.n(d),b=n(4),O=n.n(b),m=n(8),j=n.n(m),v=n(7),y=n(3),g=n(9),h=n(2),_=n(0),x=n(5),w=(n(51),n(30)),E=n(19);var P=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(){var e;r()(this,n);for(var o=arguments.length,c=new Array(o),i=0;i=0&&window.jQuery(".container-".concat(r.id)).closest(".widget-inside").trigger("change")}}}}))},function(e,t,n){},function(e,t,n){"use strict";var r=n(0),o=n.n(r),c=n(3),i=n(2),a=n(12),u=n(1),s=n(23),l=n(24);Object(c.addFilter)("carbon-fields.term_meta.classic","carbon-fields/metaboxes",Object(a.withEffects)((function(){return Object(u.pipe)(Object(s.a)((function(e){return window.jQuery(document).on("ajaxSuccess",e)}),(function(e){return window.jQuery(document).off("ajaxSuccess",e)}),(function(e,t,n,r){return{options:n,data:r}})),Object(u.filter)((function(e){var t=e.options,n=e.data;return t.data&&t.data.indexOf("carbon_fields_container")>-1&&t.data.indexOf("add-tag")>-1&&!n.documentElement.querySelector("wp_error")})))}),{handler:function(e){return function(){var t=o.a.map(e.container.fields,"id"),n=Object(l.a)(o.a.get(window.cf,"preloaded.containers",[])),r=n.containers,c=n.fields,a=o.a.find(r,["id",e.id]),u=o.a.filter(c,["container_id",e.id]),s=Object(i.dispatch)("carbon-fields/metaboxes"),f=s.updateState,d=s.removeFields;f(o.a.keyBy([a],"id"),o.a.keyBy(u,"id")),d(t)}}}))},function(e,t,n){"use strict";var r=n(3),o=n(12),c=n(1),i=n(31);n(67),Object(r.addFilter)("carbon-fields.theme_options.classic","carbon-fields/metaboxes",Object(o.withEffects)((function(){return Object(c.pipe)(Object(i.a)(window,"scroll"),Object(c.map)((function(){return window.jQuery(window).scrollTop()})))}),{handler:function(){return function(e){var t=window.jQuery(".carbon-box:first"),n=window.jQuery("#postbox-container-1"),r=window.jQuery("#wpadminbar").height()+10,o=t.offset().top-r;o>0&&n.toggleClass("fixed",e>=o).css("top",r)}}}))},function(e,t,n){},function(e,t,n){"use strict";n(69)},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"registerContainerType",(function(){return oe.b})),n.d(t,"getContainerType",(function(){return oe.a}));var r={};n.r(r),n.d(r,"setupState",(function(){return y})),n.d(r,"updateState",(function(){return g})),n.d(r,"updateFieldValue",(function(){return h})),n.d(r,"addFields",(function(){return _})),n.d(r,"cloneFields",(function(){return x})),n.d(r,"removeFields",(function(){return w})),n.d(r,"addContainer",(function(){return E})),n.d(r,"removeContainer",(function(){return P})),n.d(r,"receiveSidebar",(function(){return S})),n.d(r,"lockSaving",(function(){return D})),n.d(r,"unlockSaving",(function(){return I}));var o={};n.r(o),n.d(o,"getContainers",(function(){return F})),n.d(o,"getContainerById",(function(){return T})),n.d(o,"getFields",(function(){return A})),n.d(o,"getFieldsByContainerId",(function(){return C})),n.d(o,"getFieldById",(function(){return k})),n.d(o,"isSavingLocked",(function(){return N})),n.d(o,"isDirty",(function(){return G})),n.d(o,"isFieldUpdated",(function(){return L})),n.d(o,"getComplexGroupValues",(function(){return R}));var c=n(6),i=n(3),a=n(2),u=n(0),s=n(4),l=n.n(s),f=n(8),d=n.n(f),p=n(5);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_STATE":return t.payload.containers;case"UPDATE_STATE":return d()(e,(function(e){Object(u.values)(t.payload.containers).forEach((function(t){e[t.id]=t}))}));case"ADD_CONTAINER":return d()(e,(function(e){e[t.payload.id]=t.payload}));case"REMOVE_CONTAINER":return Object(u.omit)(e,t.payload);default:return e}},fields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_STATE":return t.payload.fields;case"UPDATE_STATE":return d()(e,(function(e){Object(u.values)(t.payload.fields).forEach((function(t){e[t.id]=t}))}));case"UPDATE_FIELD_VALUE":return d()(e,(function(n){var r=t.payload,o=r.fieldId,c=r.value,i=r.fieldsToRemove;n[o].value=c,i.reduce((function(t,n){return j(n,e,t)}),[]).forEach((function(e){Object(u.unset)(n,e)}))}));case"ADD_FIELDS":return d()(e,(function(e){t.payload.fields.forEach((function(t){e[t.id]=t}))}));case"CLONE_FIELDS":return d()(e,(function(e){var n=t.payload,r=n.originFieldIds,o=n.cloneFieldIds,c=r.reduce((function(t,n,r){return m(n,o[r],e,t)}),[]);Object(u.assign)(e,Object(u.keyBy)(c,"id"))}));case"REMOVE_FIELDS":var n=t.payload.fieldIds.reduce((function(t,n){return j(n,e,t)}),[]);return Object(u.omit)(e,n);case"RECEIVE_SIDEBAR":return d()(e,(function(e){Object(u.forEach)(e,(function(e){"sidebar"===e.type&&e.options.unshift(t.payload)}))}));default:return e}},savingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_SAVING":return O(O({},e),{},l()({},t.payload.lockName,!0));case"UNLOCK_SAVING":return Object(u.omit)(e,[t.payload.lockName]);default:return e}},isDirty:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_FIELD_VALUE":return!0;default:return e}},isFieldUpdated:function(e,t){switch(t.type){case"UPDATE_FIELD_VALUE":return{action:t};default:return!1}}});function y(e,t){return{type:"SETUP_STATE",payload:{containers:e,fields:t}}}function g(e,t){return{type:"UPDATE_STATE",payload:{containers:e,fields:t}}}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"UPDATE_FIELD_VALUE",payload:{fieldId:e,value:t,fieldsToRemove:n}}}function _(e){return{type:"ADD_FIELDS",payload:{fields:e}}}function x(e,t){return{type:"CLONE_FIELDS",payload:{originFieldIds:e,cloneFieldIds:t}}}function w(e){return{type:"REMOVE_FIELDS",payload:{fieldIds:e}}}function E(e){return{type:"ADD_CONTAINER",payload:e}}function P(e){return{type:"REMOVE_CONTAINER",payload:e}}function S(e){return{type:"RECEIVE_SIDEBAR",payload:e}}function D(e){return{type:"LOCK_SAVING",payload:{lockName:e}}}function I(e){return{type:"UNLOCK_SAVING",payload:{lockName:e}}}function F(e){return e.containers}function T(e,t){return e.containers[t]}function A(e){return e.fields}function C(e,t){return Object(u.filter)(e.fields,["container_id",t])}function k(e,t){return e.fields[t]}function N(e){return Object.keys(e.savingLock).length>0}function G(e){return e.isDirty}function L(e){return e.isFieldUpdated}function R(e,t){var n=Object(u.pick)(A(e),t);return n=Object(u.mapKeys)(n,(function(e){return e.base_name.replace(/\-/g,"_")})),Object(u.mapValues)(n,(function(e){return e.value}))}var M=n(24);Object(a.registerStore)("carbon-fields/metaboxes",{reducer:v,actions:r,selectors:o});var B=Object(M.a)(Object(u.get)(window.cf,"preloaded.containers",[])),U=B.containers,V=B.fields;Object(a.dispatch)("carbon-fields/metaboxes").setupState(Object(u.keyBy)(U,"id"),Object(u.keyBy)(V,"id"));var q=n(9),Q=n(25),K=n(13),$=n.n(K),W=n(10);const H={};var z=n(14),J=n(1);function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0===e?[]:Object(u.pick)(t,Object(u.difference)(Object(u.map)(e.fields,"id"),n))}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(u.map)(e,(function(e){return[e.id,"".concat(Object(u.repeat)("parent.",t)).concat(e.base_name)]}))}var Z=Object(p.withConditionalLogic)((function(e,t){var n=Object(a.select)("carbon-fields/metaboxes").getFieldsByContainerId;return Object(J.pipe)(Object(J.merge)(Object(W.a)(n(e.containerId)),Object(p.fromSelector)(n,e.containerId)),(e=>t=>(n,r)=>{if(0!==n)return;let o,c,i=!1,a=H;t(0,(t,n)=>{if(0===t)return o=n,e(0,(e,t)=>0===e?(c=t,void c(1)):1===e?(a=void 0,c(2),o(2),void(i&&r(2))):void(2===e&&(c=null,null!=t&&(a=t,o(2),i&&r(e,t))))),i=!0,r(0,(e,t)=>{a===H&&(2===e&&c&&c(2),o(e,t))}),void(a!==H&&r(2,a));2===t&&c&&c(2),r(t,n)})})(t.unmount),Object(z.a)(u.isEqual))}),(function(e,t){t=Object(u.keyBy)(t,"id");var n=Object(a.select)("carbon-fields/metaboxes").getContainerById(e.containerId),r=[];if(Object(u.some)(n.fields,["id",e.id]))r=Y(r=X(n,t,[e.id]));else{var o=e.name.replace(new RegExp("^".concat(window.cf.config.compactInputKey,"\\[(.+?)\\]")),"$1"),c=Object(u.find)(t,(function(t){return t.container_id===e.containerId&&Object(u.startsWith)(o,t.name)})),i=o.split(/\[|\]/g);i.shift(),(i=i.filter((function(e){return""!==e}))).pop();var s=i.reduce((function(e,t){return isNaN(t)?e+1:e}),0);r=Y(r=X(n,t,[c.id]),s+1);for(var l="".concat(c.id,".value");i.length>0;){var f=i.shift(),d=!isNaN(f),p=!d;if(d){l="".concat(l,"[").concat(f,"]");var b=X(Object(u.get)(t,l),t,[e.id]);r=r.concat(Y(b,s)),l="".concat(l,".fields")}if(p){var O=Object(u.find)(Object(u.get)(t,l),["name",f]);O&&(l="".concat(O.id,".value")),s--}}}return r=r.map((function(e){var n=$()(e,2),r=n[0];return[n[1],Object(u.get)(t,"".concat(r,".value"))]})),Object(u.fromPairs)(r)})),ee=n(20);function te(e,t){return Object(u.find)(e,(function(e){return e.name===t}))}Object(i.addFilter)("carbon-fields.association.metabox","carbon-fields/metaboxes",Object(p.withProps)((function(e){return{hierarchyResolver:function(){var t,n,r,o,c=Object(a.select)("carbon-fields/metaboxes").getContainerById(e.containerId),i=Object(a.select)("carbon-fields/metaboxes").getFieldsByContainerId(e.containerId),s=(t=e.name,n=window.cf.config,r=n.compactInput,o=n.compactInputKey,r&&0===t.indexOf(o)?t.replace(new RegExp("^".concat(o,"\\[(.+?)\\]")),"$1"):t).split(/\[|\]/g);if(s=s.filter((function(e){return""!==e})),"widget"===c.type)return e.field.base_name;for(var l=te(i,s.shift()),f=i.indexOf(l),d=l.base_name;s.length>0;){var p=s.shift(),b=!isNaN(p),O=p===e.field.base_name,m=!b&&!O;if(b&&(f="".concat(f,".value.").concat(p,".name"),d="".concat(d,"[").concat(p,"]:").concat(Object(u.get)(i,f),"/")),m){var j=te(Object(u.get)(i,f.replace(/\.name$/,".fields")),p),v=Object(u.find)(i,["id",j.id]);f=i.indexOf(v),d="".concat(d).concat(v.base_name)}O&&(d="".concat(d).concat(p))}return d}}}))),n(49),n(53),n(54),n(55),n(56),n(57),n(59),Object(i.addFilter)("carbon-fields.sidebar.metabox","carbon-fields/metaboxes",Object(a.withDispatch)((function(e){return{onAdded:e("carbon-fields/metaboxes").receiveSidebar}}))),Object(i.addFilter)("carbon-fields.field-edit.metabox","carbon-fields/metaboxes",Object(q.compose)(Q.a,Z,Object(a.withDispatch)((function(e){if(Object(ee.a)()){var t=e("core/editor");return{lockSaving:t.lockPostSaving,unlockSaving:t.unlockPostSaving}}var n=e("carbon-fields/metaboxes");return{lockSaving:n.lockSaving,unlockSaving:n.unlockSaving}})),p.withValidation));var ne=n(37),re=n(21),oe=n(18);Object(c.setLocaleData)(window.cf.config.locale,"carbon-fields-ui");var ce=Object(ee.a)()?"gutenberg":"classic";Object(i.addAction)("carbon-fields.init","carbon-fields/metaboxes",(function(){Object(re.a)(ce),Object(ne.a)(ce)}))},function(e,t,n){"use strict";var r=n(9),o=n(3),c=n(5),i=n(2),a=Object(r.createHigherOrderComponent)((function(e){return Object(i.withSelect)((function(e,t){var n=t.id;return{container:e("carbon-fields/metaboxes").getContainerById(n)}}))(e)}),"withContainer");Object(o.addFilter)("carbon-fields.register-container-type","carbon-fields/metaboxes",(function(e,t,n){return Object(r.compose)(a,Object(c.withFilters)("carbon-fields.".concat(e,".").concat(t)))(n)}))}]); \ No newline at end of file diff --git a/build/gutenberg/core.css b/build/gutenberg/core.css index 28bf9fc23..85352aa47 100644 --- a/build/gutenberg/core.css +++ b/build/gutenberg/core.css @@ -2044,7 +2044,8 @@ span.flatpickr-weekday { } .cf-radio__input[type=checkbox]:checked:before { content: ""; - background: var(--wp-admin-theme-color); + background-color: #3582c4; + background-color: var(--wp-admin-theme-color, #3582c4); border-radius: 50%; width: 0.5rem; height: 0.5rem; diff --git a/build/gutenberg/core.min.css b/build/gutenberg/core.min.css index 7d565e4fa..c8f804c98 100644 --- a/build/gutenberg/core.min.css +++ b/build/gutenberg/core.min.css @@ -1 +1 @@ -.container-carbon_fields_container_word_settings{min-width:0;max-width:100%;width:100%}.cf-container .cf-field{max-width:100%}.cf-association__bar{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;flex-direction:row;border:1px solid #e2e4e7}.cf-association__bar .cf-search-input{flex:1 1 auto}.cf-association__bar .cf-search-input__inner{border:0;box-shadow:none}.cf-association__bar .cf-search-input__inner:focus{border-color:none;box-shadow:none;outline:none}.cf-association__bar[focus-within]{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.cf-association__bar:focus-within{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.cf-association__counter{font-size:12px;color:#23282d;pointer-events:none;margin-right:10px;margin-left:5px}.cf-association__spinner{float:none;margin:0 0 0 5px}.cf-association__cols{background:#fff;position:relative;z-index:0;display:flex;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7}.cf-association__cols:before{position:absolute;top:0;left:50%;width:1px;height:100%;background-color:#e2e4e7;content:""}.cf-association__col{width:50%;max-height:160px;overflow-y:auto}.cf-association__col.ui-sortable .cf-association__option-title{white-space:nowrap;text-overflow:ellipsis}.edit-post-sidebar .cf-association__cols .cf-association__col{width:100%}.edit-post-sidebar .cf-association__cols .cf-association__col:first-child{border-bottom:3px solid #23282d}.cf-association__option{display:flex;align-items:center;padding:4px 8px;height:32px;box-sizing:border-box}.cf-association__option--selected{background-color:#fbfbfc}.cf-association__option+.cf-association__option{border-top:1px solid #e2e4e7}.cf-association__option.ui-sortable-helper{border-top:0;background-color:#fbfbfc}.cf-association__option-thumb{flex:none;display:block;width:24px;height:24px;margin-right:8px}.cf-association__option-content{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;margin-right:8px}.cf-association__option-title{flex:1;position:relative;margin-right:4px}.cf-association__option--selected .cf-association__option-title{color:#82878c}.cf-association__option-title-inner{position:absolute;top:0;left:0;width:100%;font-size:13px;line-height:1.4;color:#32373c;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translateY(-50%)}.cf-association__option-type{font-size:9px;line-height:1;text-transform:uppercase;color:#82878c}.edit-post-sidebar .cf-association__col .cf-association__option-type{display:none}.cf-association__option-actions{display:flex;align-items:center;justify-content:space-between}.cf-association__option-actions button{margin-left:8px}.cf-association__option-sort{margin-right:4px;color:#82878c;cursor:move}.cf-association__option-action{padding:0;border:0;outline:none;color:#82878c;transition:color .1s linear;cursor:pointer;background:transparent}.cf-association__option-action:focus{color:#82878c;box-shadow:none}.cf-association__option-action:hover{color:#23282d}.cf-search-input{position:relative}.cf-search-input:before{position:absolute;top:50%;left:9px;margin-top:-10px}.postbox .cf-search-input:before{color:#32373c}.wp-block .cf-search-input:before{color:#555d66}.cf-search-input__inner{display:block;width:100%;margin:0}.block-editor .cf-field .cf-search-input__inner,.cf-container .cf-search-input__inner{padding-left:35px}.cf-container .cf-search-input__inner{padding-top:8px;padding-bottom:8px;border-color:#e2e4e7}.block-editor .cf-container .cf-search-input__inner,.edit-post-sidebar .cf-block__fields .cf-search-input__inner,.wp-block .cf-field .cf-search-input__inner{border-radius:0;border:0}.block-editor .cf-container .cf-search-input__inner:focus,.edit-post-sidebar .cf-block__fields .cf-search-input__inner:focus,.wp-block .cf-field .cf-search-input__inner:focus{box-shadow:none}.cf-field .cf-checkbox__input{margin-top:0}.cf-checkbox__label{font-size:13px}.cf-color__inner{display:flex;align-items:center}.cf-color__toggle{position:relative;overflow:hidden}.cf-color__toggle-text{margin-left:27px}.cf-color__preview{position:absolute;top:0;left:0;width:26px;height:100%;border-right:1px solid #ccc}.cf-color__toggle:active .cf-color__preview,.cf-color__toggle:hover .cf-color__preview{border-color:#999}.cf-color .cf-color__reset{margin-left:5px;text-decoration:none}.cf-color .cf-color__reset:focus{box-shadow:none}.cf-color__picker{position:absolute;z-index:9999}.cf-complex__groups{flex:1;position:relative}.cf-complex--tabbed-vertical>.cf-complex__groups{flex:0 0 80%}.cf-complex__group{box-sizing:border-box}.cf-complex--grid .cf-complex__group{position:relative;margin-bottom:12px}.cf-complex--grid .cf-complex__group:last-child{margin-bottom:0}.cf-complex__group-placeholder{position:relative}.cf-complex__group-placeholder:not(:last-child){margin-bottom:12px}.cf-complex__group-placeholder:before{position:absolute;top:0;left:0;width:100%;height:100%;border:1px dashed #e2e4e7;box-sizing:border-box;content:""}.cf-complex__group-head{position:relative;display:flex;border:1px solid #e2e4e7;border-bottom:0;background-color:#fbfbfc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:1.4;color:#23282d;cursor:move;transition:border-color .1s linear}.cf-complex__group-head:hover{border-color:#82878c}.cf-complex__group-index{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-right:1px solid #e2e4e7}.cf-complex__group-title{display:flex;align-items:center;padding:0 12px}.cf-complex__group-body{display:flex;flex-wrap:wrap;border:1px solid #e2e4e7;border-right-width:0;background-color:#fff}.cf-complex__group-body[hidden]{display:none}.cf-complex__actions{display:flex;align-items:center;margin-top:12px}.cf-complex__actions .cf-complex__toggler{margin-left:auto}.cf-complex__inserter{position:relative;display:inline-block}.cf-complex__tabs .cf-complex__inserter{height:36px}.cf-complex__tabs--tabbed-horizontal .cf-complex__inserter{width:36px;align-self:flex-end;margin-bottom:4px}.cf-complex__tabs--tabbed-vertical .cf-complex__inserter{display:block}.cf-complex__tabs .cf-complex__inserter-button{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:1px solid #e2e4e7;border-radius:0;margin:0;background-color:#fbfbfc;box-shadow:none;font-size:18px;line-height:1;transition:background-color .1s linear}.cf-complex__tabs .cf-complex__inserter-button:active,.cf-complex__tabs .cf-complex__inserter-button:focus,.cf-complex__tabs .cf-complex__inserter-button:hover{border-color:#e2e4e7;background-color:#fff}.cf-complex__tabs .cf-complex__inserter-button:focus{box-shadow:none}.cf-complex__tabs .cf-complex__inserter-button:active{box-shadow:none;transform:none}.cf-complex__inserter-menu{position:absolute;top:50%;left:100%;min-width:180px;margin:0;transform:translate(10px,-50%);z-index:1}.cf-complex__inserter-item{padding:8px 12px;margin:0;cursor:pointer;transition:color .1s linear}.cf-complex__group-actions{display:flex;align-items:center}.cf-complex__group-actions--grid{position:absolute;top:12px;right:12px}.cf-complex__group-actions--tabbed{justify-content:flex-end;padding:8px 12px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7;background-color:#fbfbfc}.cf-complex__group-action{display:inline-flex;padding:0;border:0;margin-left:12px;outline:none;background-color:transparent;color:#82878c;cursor:pointer;transition:color .1s linear}.cf-complex__group-action:first-child{margin-left:0}.cf-complex__group-action:hover{color:#23282d}.cf-complex__group-action-text{display:none}.cf-complex__tabs{position:relative;z-index:1}.cf-complex__tabs--tabbed-horizontal{display:inline-flex;margin-bottom:-5px}.cf-complex__tabs--tabbed-vertical{flex:0 0 20%;margin-right:-1px}.cf-complex__tabs-list{margin:0}.cf-complex__tabs--tabbed-horizontal .cf-complex__tabs-list{display:flex;flex-wrap:wrap}.cf-complex__tabs--tabbed-vertical .cf-complex__tabs-list{margin-bottom:-1px}.cf-complex__tabs-item{display:flex;align-items:center;padding:8px 12px;border:1px solid #e2e4e7;margin:0;background-color:#fbfbfc;font-size:12px;cursor:pointer;transition:background-color .1s linear,border-color .1s linear}.cf-complex__tabs-item:hover{background-color:#fff}.cf-complex__tabs-item--tabbed-horizontal{margin:0 4px 4px 0}.cf-complex__tabs-item--tabbed-vertical~.cf-complex__tabs-item--tabbed-vertical{border-top-width:0}.cf-complex__tabs-item--current{background-color:#fff}.cf-complex__tabs-item--tabbed-horizontal.cf-complex__tabs-item--current{border-bottom-color:#fff!important}.cf-complex__tabs-item--tabbed-vertical.cf-complex__tabs-item--current{border-right-color:#fff!important}.cf-complex__placeholder-label.cf-complex__placeholder-label{margin:8px 0 12px}.cf-container-term-meta .cf-complex__placeholder-label{font-style:normal;color:inherit}.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.arrowRight:after,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar.arrowCenter:after,.flatpickr-calendar.arrowCenter:before{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;line-height:1;text-align:center;position:relative;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-month,.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:34px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;padding:10px;z-index:3}.flatpickr-months .flatpickr-next-month.flatpickr-disabled,.flatpickr-months .flatpickr-prev-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-inner-spin-button,.numInputWrapper input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0 ;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:baseline;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:baseline;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:active,.flatpickr-current-month .flatpickr-monthDropdown-months:focus{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays,.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-weekdays .flatpickr-weekdaycontainer,span.flatpickr-weekday{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.flatpickr-innerContainer,.flatpickr-rContainer{-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-rContainer{display:inline-block;padding:0}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.cf-datetime__inner{display:flex;align-items:stretch;flex-wrap:wrap;margin-top:-5px}.cf-datetime__inner:before{display:none}.cf-datetime__input{flex:1;margin:5px 6px 0 0}.wp-core-ui .button.cf-datetime__button{margin-top:5px}.cf-datetime__button{flex:0 0 auto}.cf-field .cf-datetime__button{margin-bottom:0;box-shadow:none}.cf-file__inner{position:relative;display:flex;align-items:center;justify-content:center;width:130px;height:130px;border:1px dashed #b5bcc2;box-sizing:border-box}.cf-file__content{position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:1px solid #b5bcc2}.cf-file__preview{position:absolute;top:0;left:0;bottom:28px;width:100%;overflow:hidden;background-color:#e2e4e7;box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.cf-file__image{position:absolute;top:50%;left:50%;height:auto;max-width:100%;transform:translate(-50%,-50%)}.cf-file__name{position:absolute;bottom:0;left:0;right:0;padding:5px;border-top:1px solid #b5bcc2;overflow:hidden;background-color:#f3f4f5;white-space:nowrap;text-overflow:ellipsis}.cf-file__browse{position:relative}.cf-file__content~.cf-file__browse{margin-bottom:29px;visibility:hidden;opacity:0;transition:visibility .1s linear,opacity .1s linear}.cf-file__inner:hover .cf-file__content~.cf-file__browse{visibility:visible;opacity:1}.cf-file__remove{position:absolute;top:5px;right:5px;padding:0;border:0;outline:none;background-color:transparent;cursor:pointer;transition:opacity .1s linear}.cf-file__remove:hover{opacity:.8}.cf-file__remove:before{border-radius:50%;background-color:#191e23;color:#fff}.cf-map__search{position:relative;z-index:1}.cf-map__canvas{position:relative;z-index:0;height:300px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7;background-color:#f3f4f5}.cf-media-gallery__list{display:flex;flex-wrap:wrap;max-height:400px;padding:4px;margin:0;overflow-y:auto;list-style:none outside none}.cf-media-gallery__list:empty{display:none}.cf-media-gallery__actions{padding:8px}.cf-media-gallery__list:empty~.cf-media-gallery__actions{border-top-width:0}.cf-media-gallery__item{flex:0 0 100%;min-width:0;padding:4px;margin:0;box-sizing:border-box}@media(min-width:320px){.cf-media-gallery__item{flex-basis:50%}}@media(min-width:480px){.cf-media-gallery__item{flex-basis:33.3333%}}@media(min-width:640px){.cf-media-gallery__item{flex-basis:25%}}@media(min-width:768px){.cf-media-gallery__item{flex-basis:20%}}@media(min-width:1280px){.cf-media-gallery__item{flex-basis:16.66667%}}@media(min-width:1440px){.cf-media-gallery__item{flex-basis:12.5%}}@media(min-width:1680px){.cf-media-gallery__item{flex-basis:10%}}.cf-media-gallery__item-inner{position:relative;display:flex;flex-direction:column;height:100%}.cf-media-gallery__item-preview{position:relative;overflow:hidden;padding-top:100%;flex:1}.cf-media-gallery__item-thumb{min-width:100%;min-height:100%;max-width:150%;pointer-events:none}.cf-media-gallery__item-icon,.cf-media-gallery__item-thumb{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.cf-media-gallery__item-icon{max-width:100%;max-height:50%}.cf-media-gallery__item-name{display:block;padding:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:move}.cf-media-gallery__item-remove{position:absolute;top:4px;right:4px;padding:0;border:0;outline:none;background-color:transparent;cursor:pointer}.cf-media-gallery__item-remove:before{border-radius:50%;background-color:#191e23;color:#fff;transition:color .1s linear}.cf-media-gallery__item-remove:hover:before{color:#b5bcc2}.cf-multiselect__control{min-height:0;border-color:#e2e4e7}.cf-multiselect__control:hover{border-color:#e2e4e7}.cf-multiselect__control--is-focused,.cf-multiselect__control--is-focused:hover{border-color:#00a0d2!important;box-shadow:none}.cf-multiselect__placeholder{color:#b5bcc2}.cf-multiselect__value-container{padding-left:4px;padding-right:4px}.cf-multiselect__multi-value{align-items:center;padding:5px 3px;margin:0;background-color:#e2e4e7}.cf-multiselect__multi-value+.cf-multiselect__multi-value{margin-left:5px}.cf-multiselect__multi-value__label{padding-left:3px;font-size:13px;line-height:1}.cf-multiselect__multi-value__remove{padding:0;margin-top:1px;cursor:pointer}.cf-multiselect__multi-value__remove:hover{background-color:transparent}.cf-multiselect__input input[id],.cf-multiselect__input input[id]:focus{box-shadow:none}.cf-multiselect__menu{z-index:9999}.cf-multiselect__option{padding:4px}.cf-multiselect__option--is-focused{background-color:#00a0d2;color:#fff}.cf-multiselect__indicator{padding:5px;cursor:pointer}.cf-oembed__preview{padding:12px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7}.cf-oembed__frame{display:block;width:100%;max-width:600px;margin:0 auto}.cf-radio__list{margin:0}.cf-radio-image .cf-radio__list{display:flex;flex-wrap:wrap}.cf-radio__list-item:last-child{margin-bottom:0}.cf-radio-image .cf-radio__list-item{flex:0 0 20%;position:relative;padding:4px}.cf-container-term-meta .cf-radio__label{display:inline}.cf-radio-image .cf-radio__label{display:inline-block}.cf-field .cf-radio__input{margin-top:0}.cf-radio-image .cf-radio__input{position:absolute;z-index:-1;top:50%;left:50%;width:0;height:0;margin:0;outline:0;opacity:0}.cf-radio__input[type=checkbox]{border-radius:50%}.cf-radio__input[type=checkbox]:checked:before{content:"";background:var(--wp-admin-theme-color);border-radius:50%;width:.5rem;height:.5rem;margin:.1875rem;line-height:1.14285714}.cf-radio-image__image{display:block;max-width:100%;padding:5px;box-sizing:border-box}.wp-block .cf-radio__list{list-style:none outside none}.cf-radio__list-item{box-sizing:border-box}.cf-container-term-meta .cf-radio__list-item{flex:0 0 20%}.cf-container-theme-options .cf-radio__list-item{flex:0 0 10%}.cf-radio-image__image{border:1px solid #e2e4e7}.cf-radio__input:checked~.cf-radio__label .cf-radio-image__image,.cf-radio__input:focus~.cf-radio__label .cf-radio-image__image{outline:4px solid #00a0d2}.cf-select__input{display:block;width:100%;margin:0}.cf-container-term-meta .cf-separator .cf-field__head{display:none}.cf-set__list{margin:0}.cf-set__list-item:last-child{margin-bottom:0}.cf-field .cf-set__input{margin-top:0}.cf-container-term-meta .cf-set__label{display:inline}.cf-text__input{display:block;width:100%!important;margin:0}.cf-textarea__input{display:block;width:100%!important;resize:vertical}.cf-field,.cf-field__body,.cf-field__head{box-sizing:border-box;flex:1 1 100%}@media(max-width:1024px){.cf-field{flex-basis:100%!important}}.cf-field.cf-block-preview{display:none}.cf-rich-text .cf-field__body{box-sizing:content-box}.cf-complex--tabbed-vertical>.cf-field__body{display:flex;align-items:flex-start}.cf-field__label{display:block}.cf-block-preview .cf-field__label,.cf-html .cf-field__label,.cf-separator .cf-field__label{display:none}.cf-field__asterisk{color:#dc3232}.cf-field__error{display:block;margin-top:4px;color:#dc3232} \ No newline at end of file +.container-carbon_fields_container_word_settings{min-width:0;max-width:100%;width:100%}.cf-container .cf-field{max-width:100%}.cf-association__bar{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;flex-direction:row;border:1px solid #e2e4e7}.cf-association__bar .cf-search-input{flex:1 1 auto}.cf-association__bar .cf-search-input__inner{border:0;box-shadow:none}.cf-association__bar .cf-search-input__inner:focus{border-color:none;box-shadow:none;outline:none}.cf-association__bar[focus-within]{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.cf-association__bar:focus-within{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.cf-association__counter{font-size:12px;color:#23282d;pointer-events:none;margin-right:10px;margin-left:5px}.cf-association__spinner{float:none;margin:0 0 0 5px}.cf-association__cols{background:#fff;position:relative;z-index:0;display:flex;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7}.cf-association__cols:before{position:absolute;top:0;left:50%;width:1px;height:100%;background-color:#e2e4e7;content:""}.cf-association__col{width:50%;max-height:160px;overflow-y:auto}.cf-association__col.ui-sortable .cf-association__option-title{white-space:nowrap;text-overflow:ellipsis}.edit-post-sidebar .cf-association__cols .cf-association__col{width:100%}.edit-post-sidebar .cf-association__cols .cf-association__col:first-child{border-bottom:3px solid #23282d}.cf-association__option{display:flex;align-items:center;padding:4px 8px;height:32px;box-sizing:border-box}.cf-association__option--selected{background-color:#fbfbfc}.cf-association__option+.cf-association__option{border-top:1px solid #e2e4e7}.cf-association__option.ui-sortable-helper{border-top:0;background-color:#fbfbfc}.cf-association__option-thumb{flex:none;display:block;width:24px;height:24px;margin-right:8px}.cf-association__option-content{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;margin-right:8px}.cf-association__option-title{flex:1;position:relative;margin-right:4px}.cf-association__option--selected .cf-association__option-title{color:#82878c}.cf-association__option-title-inner{position:absolute;top:0;left:0;width:100%;font-size:13px;line-height:1.4;color:#32373c;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translateY(-50%)}.cf-association__option-type{font-size:9px;line-height:1;text-transform:uppercase;color:#82878c}.edit-post-sidebar .cf-association__col .cf-association__option-type{display:none}.cf-association__option-actions{display:flex;align-items:center;justify-content:space-between}.cf-association__option-actions button{margin-left:8px}.cf-association__option-sort{margin-right:4px;color:#82878c;cursor:move}.cf-association__option-action{padding:0;border:0;outline:none;color:#82878c;transition:color .1s linear;cursor:pointer;background:transparent}.cf-association__option-action:focus{color:#82878c;box-shadow:none}.cf-association__option-action:hover{color:#23282d}.cf-search-input{position:relative}.cf-search-input:before{position:absolute;top:50%;left:9px;margin-top:-10px}.postbox .cf-search-input:before{color:#32373c}.wp-block .cf-search-input:before{color:#555d66}.cf-search-input__inner{display:block;width:100%;margin:0}.block-editor .cf-field .cf-search-input__inner,.cf-container .cf-search-input__inner{padding-left:35px}.cf-container .cf-search-input__inner{padding-top:8px;padding-bottom:8px;border-color:#e2e4e7}.block-editor .cf-container .cf-search-input__inner,.edit-post-sidebar .cf-block__fields .cf-search-input__inner,.wp-block .cf-field .cf-search-input__inner{border-radius:0;border:0}.block-editor .cf-container .cf-search-input__inner:focus,.edit-post-sidebar .cf-block__fields .cf-search-input__inner:focus,.wp-block .cf-field .cf-search-input__inner:focus{box-shadow:none}.cf-field .cf-checkbox__input{margin-top:0}.cf-checkbox__label{font-size:13px}.cf-color__inner{display:flex;align-items:center}.cf-color__toggle{position:relative;overflow:hidden}.cf-color__toggle-text{margin-left:27px}.cf-color__preview{position:absolute;top:0;left:0;width:26px;height:100%;border-right:1px solid #ccc}.cf-color__toggle:active .cf-color__preview,.cf-color__toggle:hover .cf-color__preview{border-color:#999}.cf-color .cf-color__reset{margin-left:5px;text-decoration:none}.cf-color .cf-color__reset:focus{box-shadow:none}.cf-color__picker{position:absolute;z-index:9999}.cf-complex__groups{flex:1;position:relative}.cf-complex--tabbed-vertical>.cf-complex__groups{flex:0 0 80%}.cf-complex__group{box-sizing:border-box}.cf-complex--grid .cf-complex__group{position:relative;margin-bottom:12px}.cf-complex--grid .cf-complex__group:last-child{margin-bottom:0}.cf-complex__group-placeholder{position:relative}.cf-complex__group-placeholder:not(:last-child){margin-bottom:12px}.cf-complex__group-placeholder:before{position:absolute;top:0;left:0;width:100%;height:100%;border:1px dashed #e2e4e7;box-sizing:border-box;content:""}.cf-complex__group-head{position:relative;display:flex;border:1px solid #e2e4e7;border-bottom:0;background-color:#fbfbfc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:1.4;color:#23282d;cursor:move;transition:border-color .1s linear}.cf-complex__group-head:hover{border-color:#82878c}.cf-complex__group-index{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-right:1px solid #e2e4e7}.cf-complex__group-title{display:flex;align-items:center;padding:0 12px}.cf-complex__group-body{display:flex;flex-wrap:wrap;border:1px solid #e2e4e7;border-right-width:0;background-color:#fff}.cf-complex__group-body[hidden]{display:none}.cf-complex__actions{display:flex;align-items:center;margin-top:12px}.cf-complex__actions .cf-complex__toggler{margin-left:auto}.cf-complex__inserter{position:relative;display:inline-block}.cf-complex__tabs .cf-complex__inserter{height:36px}.cf-complex__tabs--tabbed-horizontal .cf-complex__inserter{width:36px;align-self:flex-end;margin-bottom:4px}.cf-complex__tabs--tabbed-vertical .cf-complex__inserter{display:block}.cf-complex__tabs .cf-complex__inserter-button{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:1px solid #e2e4e7;border-radius:0;margin:0;background-color:#fbfbfc;box-shadow:none;font-size:18px;line-height:1;transition:background-color .1s linear}.cf-complex__tabs .cf-complex__inserter-button:active,.cf-complex__tabs .cf-complex__inserter-button:focus,.cf-complex__tabs .cf-complex__inserter-button:hover{border-color:#e2e4e7;background-color:#fff}.cf-complex__tabs .cf-complex__inserter-button:focus{box-shadow:none}.cf-complex__tabs .cf-complex__inserter-button:active{box-shadow:none;transform:none}.cf-complex__inserter-menu{position:absolute;top:50%;left:100%;min-width:180px;margin:0;transform:translate(10px,-50%);z-index:1}.cf-complex__inserter-item{padding:8px 12px;margin:0;cursor:pointer;transition:color .1s linear}.cf-complex__group-actions{display:flex;align-items:center}.cf-complex__group-actions--grid{position:absolute;top:12px;right:12px}.cf-complex__group-actions--tabbed{justify-content:flex-end;padding:8px 12px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7;background-color:#fbfbfc}.cf-complex__group-action{display:inline-flex;padding:0;border:0;margin-left:12px;outline:none;background-color:transparent;color:#82878c;cursor:pointer;transition:color .1s linear}.cf-complex__group-action:first-child{margin-left:0}.cf-complex__group-action:hover{color:#23282d}.cf-complex__group-action-text{display:none}.cf-complex__tabs{position:relative;z-index:1}.cf-complex__tabs--tabbed-horizontal{display:inline-flex;margin-bottom:-5px}.cf-complex__tabs--tabbed-vertical{flex:0 0 20%;margin-right:-1px}.cf-complex__tabs-list{margin:0}.cf-complex__tabs--tabbed-horizontal .cf-complex__tabs-list{display:flex;flex-wrap:wrap}.cf-complex__tabs--tabbed-vertical .cf-complex__tabs-list{margin-bottom:-1px}.cf-complex__tabs-item{display:flex;align-items:center;padding:8px 12px;border:1px solid #e2e4e7;margin:0;background-color:#fbfbfc;font-size:12px;cursor:pointer;transition:background-color .1s linear,border-color .1s linear}.cf-complex__tabs-item:hover{background-color:#fff}.cf-complex__tabs-item--tabbed-horizontal{margin:0 4px 4px 0}.cf-complex__tabs-item--tabbed-vertical~.cf-complex__tabs-item--tabbed-vertical{border-top-width:0}.cf-complex__tabs-item--current{background-color:#fff}.cf-complex__tabs-item--tabbed-horizontal.cf-complex__tabs-item--current{border-bottom-color:#fff!important}.cf-complex__tabs-item--tabbed-vertical.cf-complex__tabs-item--current{border-right-color:#fff!important}.cf-complex__placeholder-label.cf-complex__placeholder-label{margin:8px 0 12px}.cf-container-term-meta .cf-complex__placeholder-label{font-style:normal;color:inherit}.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.arrowRight:after,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar.arrowCenter:after,.flatpickr-calendar.arrowCenter:before{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;line-height:1;text-align:center;position:relative;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-month,.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:34px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;padding:10px;z-index:3}.flatpickr-months .flatpickr-next-month.flatpickr-disabled,.flatpickr-months .flatpickr-prev-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-inner-spin-button,.numInputWrapper input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0 ;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:baseline;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:baseline;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:active,.flatpickr-current-month .flatpickr-monthDropdown-months:focus{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays,.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-weekdays .flatpickr-weekdaycontainer,span.flatpickr-weekday{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.flatpickr-innerContainer,.flatpickr-rContainer{-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-rContainer{display:inline-block;padding:0}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.cf-datetime__inner{display:flex;align-items:stretch;flex-wrap:wrap;margin-top:-5px}.cf-datetime__inner:before{display:none}.cf-datetime__input{flex:1;margin:5px 6px 0 0}.wp-core-ui .button.cf-datetime__button{margin-top:5px}.cf-datetime__button{flex:0 0 auto}.cf-field .cf-datetime__button{margin-bottom:0;box-shadow:none}.cf-file__inner{position:relative;display:flex;align-items:center;justify-content:center;width:130px;height:130px;border:1px dashed #b5bcc2;box-sizing:border-box}.cf-file__content{position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:1px solid #b5bcc2}.cf-file__preview{position:absolute;top:0;left:0;bottom:28px;width:100%;overflow:hidden;background-color:#e2e4e7;box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.cf-file__image{position:absolute;top:50%;left:50%;height:auto;max-width:100%;transform:translate(-50%,-50%)}.cf-file__name{position:absolute;bottom:0;left:0;right:0;padding:5px;border-top:1px solid #b5bcc2;overflow:hidden;background-color:#f3f4f5;white-space:nowrap;text-overflow:ellipsis}.cf-file__browse{position:relative}.cf-file__content~.cf-file__browse{margin-bottom:29px;visibility:hidden;opacity:0;transition:visibility .1s linear,opacity .1s linear}.cf-file__inner:hover .cf-file__content~.cf-file__browse{visibility:visible;opacity:1}.cf-file__remove{position:absolute;top:5px;right:5px;padding:0;border:0;outline:none;background-color:transparent;cursor:pointer;transition:opacity .1s linear}.cf-file__remove:hover{opacity:.8}.cf-file__remove:before{border-radius:50%;background-color:#191e23;color:#fff}.cf-map__search{position:relative;z-index:1}.cf-map__canvas{position:relative;z-index:0;height:300px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7;background-color:#f3f4f5}.cf-media-gallery__list{display:flex;flex-wrap:wrap;max-height:400px;padding:4px;margin:0;overflow-y:auto;list-style:none outside none}.cf-media-gallery__list:empty{display:none}.cf-media-gallery__actions{padding:8px}.cf-media-gallery__list:empty~.cf-media-gallery__actions{border-top-width:0}.cf-media-gallery__item{flex:0 0 100%;min-width:0;padding:4px;margin:0;box-sizing:border-box}@media(min-width:320px){.cf-media-gallery__item{flex-basis:50%}}@media(min-width:480px){.cf-media-gallery__item{flex-basis:33.3333%}}@media(min-width:640px){.cf-media-gallery__item{flex-basis:25%}}@media(min-width:768px){.cf-media-gallery__item{flex-basis:20%}}@media(min-width:1280px){.cf-media-gallery__item{flex-basis:16.66667%}}@media(min-width:1440px){.cf-media-gallery__item{flex-basis:12.5%}}@media(min-width:1680px){.cf-media-gallery__item{flex-basis:10%}}.cf-media-gallery__item-inner{position:relative;display:flex;flex-direction:column;height:100%}.cf-media-gallery__item-preview{position:relative;overflow:hidden;padding-top:100%;flex:1}.cf-media-gallery__item-thumb{min-width:100%;min-height:100%;max-width:150%;pointer-events:none}.cf-media-gallery__item-icon,.cf-media-gallery__item-thumb{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.cf-media-gallery__item-icon{max-width:100%;max-height:50%}.cf-media-gallery__item-name{display:block;padding:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:move}.cf-media-gallery__item-remove{position:absolute;top:4px;right:4px;padding:0;border:0;outline:none;background-color:transparent;cursor:pointer}.cf-media-gallery__item-remove:before{border-radius:50%;background-color:#191e23;color:#fff;transition:color .1s linear}.cf-media-gallery__item-remove:hover:before{color:#b5bcc2}.cf-multiselect__control{min-height:0;border-color:#e2e4e7}.cf-multiselect__control:hover{border-color:#e2e4e7}.cf-multiselect__control--is-focused,.cf-multiselect__control--is-focused:hover{border-color:#00a0d2!important;box-shadow:none}.cf-multiselect__placeholder{color:#b5bcc2}.cf-multiselect__value-container{padding-left:4px;padding-right:4px}.cf-multiselect__multi-value{align-items:center;padding:5px 3px;margin:0;background-color:#e2e4e7}.cf-multiselect__multi-value+.cf-multiselect__multi-value{margin-left:5px}.cf-multiselect__multi-value__label{padding-left:3px;font-size:13px;line-height:1}.cf-multiselect__multi-value__remove{padding:0;margin-top:1px;cursor:pointer}.cf-multiselect__multi-value__remove:hover{background-color:transparent}.cf-multiselect__input input[id],.cf-multiselect__input input[id]:focus{box-shadow:none}.cf-multiselect__menu{z-index:9999}.cf-multiselect__option{padding:4px}.cf-multiselect__option--is-focused{background-color:#00a0d2;color:#fff}.cf-multiselect__indicator{padding:5px;cursor:pointer}.cf-oembed__preview{padding:12px;border:1px solid #e2e4e7;border-top:0 solid #e2e4e7}.cf-oembed__frame{display:block;width:100%;max-width:600px;margin:0 auto}.cf-radio__list{margin:0}.cf-radio-image .cf-radio__list{display:flex;flex-wrap:wrap}.cf-radio__list-item:last-child{margin-bottom:0}.cf-radio-image .cf-radio__list-item{flex:0 0 20%;position:relative;padding:4px}.cf-container-term-meta .cf-radio__label{display:inline}.cf-radio-image .cf-radio__label{display:inline-block}.cf-field .cf-radio__input{margin-top:0}.cf-radio-image .cf-radio__input{position:absolute;z-index:-1;top:50%;left:50%;width:0;height:0;margin:0;outline:0;opacity:0}.cf-radio__input[type=checkbox]{border-radius:50%}.cf-radio__input[type=checkbox]:checked:before{content:"";background-color:#3582c4;background-color:var(--wp-admin-theme-color,#3582c4);border-radius:50%;width:.5rem;height:.5rem;margin:.1875rem;line-height:1.14285714}.cf-radio-image__image{display:block;max-width:100%;padding:5px;box-sizing:border-box}.wp-block .cf-radio__list{list-style:none outside none}.cf-radio__list-item{box-sizing:border-box}.cf-container-term-meta .cf-radio__list-item{flex:0 0 20%}.cf-container-theme-options .cf-radio__list-item{flex:0 0 10%}.cf-radio-image__image{border:1px solid #e2e4e7}.cf-radio__input:checked~.cf-radio__label .cf-radio-image__image,.cf-radio__input:focus~.cf-radio__label .cf-radio-image__image{outline:4px solid #00a0d2}.cf-select__input{display:block;width:100%;margin:0}.cf-container-term-meta .cf-separator .cf-field__head{display:none}.cf-set__list{margin:0}.cf-set__list-item:last-child{margin-bottom:0}.cf-field .cf-set__input{margin-top:0}.cf-container-term-meta .cf-set__label{display:inline}.cf-text__input{display:block;width:100%!important;margin:0}.cf-textarea__input{display:block;width:100%!important;resize:vertical}.cf-field,.cf-field__body,.cf-field__head{box-sizing:border-box;flex:1 1 100%}@media(max-width:1024px){.cf-field{flex-basis:100%!important}}.cf-field.cf-block-preview{display:none}.cf-rich-text .cf-field__body{box-sizing:content-box}.cf-complex--tabbed-vertical>.cf-field__body{display:flex;align-items:flex-start}.cf-field__label{display:block}.cf-block-preview .cf-field__label,.cf-html .cf-field__label,.cf-separator .cf-field__label{display:none}.cf-field__asterisk{color:#dc3232}.cf-field__error{display:block;margin-top:4px;color:#dc3232} \ No newline at end of file diff --git a/build/gutenberg/metaboxes.js b/build/gutenberg/metaboxes.js index bcc68dcc0..f0becd609 100644 --- a/build/gutenberg/metaboxes.js +++ b/build/gutenberg/metaboxes.js @@ -1058,7 +1058,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return handler; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _containers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../containers */ \"./packages/metaboxes/containers/index.js\");\n/* harmony import */ var _conditions_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../conditions/base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n/* harmony import */ var _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../conditions/boolean */ \"./packages/metaboxes/monitors/conditional-display/conditions/boolean.js\");\n/* harmony import */ var _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../conditions/post-term */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-term.js\");\n/* harmony import */ var _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../conditions/post-template */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-template.js\");\n/* harmony import */ var _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../conditions/post-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-ancestor-id.js\");\n/* harmony import */ var _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../conditions/term-parent-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-parent-id.js\");\n/* harmony import */ var _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../conditions/term-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-ancestor-id.js\");\n\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n\n\n/**\n * Keeps track of supported conditions.\n *\n * @type {Object}\n */\nvar conditions = {\n \"boolean\": _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n post_term: _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n post_ancestor_id: _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n post_parent_id: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_format: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_template: _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n term_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n term_parent: _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n term_ancestor: _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n user_role: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n};\n\n/**\n * Walks through the definitions and evaluates the conditions.\n *\n * @param {Object[]} definitions\n * @param {Object} values\n * @param {string} relation\n * @return {boolean}\n */\nfunction evaluate(definitions, values, relation) {\n var results = definitions.map(function (definition) {\n if (!definition.relation) {\n var condition = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"get\"])(conditions, definition.type);\n if (condition) {\n return condition.isFulfiled(definition, values);\n } else {\n // eslint-disable-line no-else-return\n // eslint-disable-next-line no-console\n console.error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Unsupported container condition - \"%1$s\".', 'carbon-fields-ui'), definition.type));\n return false;\n }\n } else {\n // eslint-disable-line no-else-return\n return evaluate(definition.conditions, values, definition.relation);\n }\n });\n switch (relation) {\n case 'AND':\n return results.every(Boolean);\n case 'OR':\n return results.some(Boolean);\n default:\n // eslint-disable-next-line no-console\n console.error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Unsupported container condition relation used - \"%1$s\".', 'carbon-fields-ui'), relation));\n return false;\n }\n}\n\n/**\n * The function that causes the side effects.\n *\n * @param {Object} props\n * @param {Object} props.containers\n * @param {string} props.context\n * @return {Function}\n */\nfunction handler(_ref) {\n var containers = _ref.containers,\n context = _ref.context;\n return function (effect) {\n var results = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"map\"])(containers, function (container, id) {\n return [id, evaluate(container.conditions.conditions, effect, container.conditions.relation)];\n });\n results.forEach(function (_ref2) {\n var _ref3 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, 2),\n id = _ref3[0],\n result = _ref3[1];\n var postboxNode = document.getElementById(id);\n var containerNode = document.querySelector(\".container-\".concat(id));\n var isMounted = !!containerNode.dataset.mounted;\n if (postboxNode) {\n postboxNode.hidden = !result;\n }\n if (containerNode) {\n if (result && !isMounted) {\n Object(_containers__WEBPACK_IMPORTED_MODULE_3__[\"renderContainer\"])(containers[id], context);\n }\n if (!result && isMounted) {\n delete containerNode.dataset.mounted;\n\n // Rely on React's internals instead of `unmountComponentAtNode`\n // due to https://github.com/facebook/react/issues/13690.\n // TODO: Conditionally render the fields in the container, this way\n // we can move away from mount/unmount cycles.\n //containerNode._reactRootContainer.unmount(); // -- causes a memory leak bug\n }\n }\n });\n };\n}\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/metaboxes/monitors/conditional-display/handler/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return handler; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _containers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../containers */ \"./packages/metaboxes/containers/index.js\");\n/* harmony import */ var _conditions_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../conditions/base */ \"./packages/metaboxes/monitors/conditional-display/conditions/base.js\");\n/* harmony import */ var _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../conditions/boolean */ \"./packages/metaboxes/monitors/conditional-display/conditions/boolean.js\");\n/* harmony import */ var _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../conditions/post-term */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-term.js\");\n/* harmony import */ var _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../conditions/post-template */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-template.js\");\n/* harmony import */ var _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../conditions/post-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/post-ancestor-id.js\");\n/* harmony import */ var _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../conditions/term-parent-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-parent-id.js\");\n/* harmony import */ var _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../conditions/term-ancestor-id */ \"./packages/metaboxes/monitors/conditional-display/conditions/term-ancestor-id.js\");\n\n/**\n * External dependencies.\n */\n\n\n\n/**\n * Internal dependencies.\n */\n\n\n\n\n\n\n\n\n\n/**\n * Keeps track of supported conditions.\n *\n * @type {Object}\n */\nvar conditions = {\n \"boolean\": _conditions_boolean__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n post_term: _conditions_post_term__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n post_ancestor_id: _conditions_post_ancestor_id__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n post_parent_id: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_format: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n post_template: _conditions_post_template__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n term_level: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n term_parent: _conditions_term_parent_id__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n term_ancestor: _conditions_term_ancestor_id__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n user_role: _conditions_base__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n};\n\n/**\n * Walks through the definitions and evaluates the conditions.\n *\n * @param {Object[]} definitions\n * @param {Object} values\n * @param {string} relation\n * @return {boolean}\n */\nfunction evaluate(definitions, values, relation) {\n var results = definitions.map(function (definition) {\n if (!definition.relation) {\n var condition = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"get\"])(conditions, definition.type);\n if (condition) {\n return condition.isFulfiled(definition, values);\n } else {\n // eslint-disable-line no-else-return\n // eslint-disable-next-line no-console\n console.error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Unsupported container condition - \"%1$s\".', 'carbon-fields-ui'), definition.type));\n return false;\n }\n } else {\n // eslint-disable-line no-else-return\n return evaluate(definition.conditions, values, definition.relation);\n }\n });\n switch (relation) {\n case 'AND':\n return results.every(Boolean);\n case 'OR':\n return results.some(Boolean);\n default:\n // eslint-disable-next-line no-console\n console.error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Unsupported container condition relation used - \"%1$s\".', 'carbon-fields-ui'), relation));\n return false;\n }\n}\n\n/**\n * The function that causes the side effects.\n *\n * @param {Object} props\n * @param {Object} props.containers\n * @param {string} props.context\n * @return {Function}\n */\nfunction handler(_ref) {\n var containers = _ref.containers,\n context = _ref.context;\n return function (effect) {\n var results = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"map\"])(containers, function (container, id) {\n return [id, evaluate(container.conditions.conditions, effect, container.conditions.relation)];\n });\n results.forEach(function (_ref2) {\n var _ref3 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, 2),\n id = _ref3[0],\n result = _ref3[1];\n var postboxNode = document.getElementById(id);\n var containerNode = document.querySelector(\".container-\".concat(id));\n var isMounted = !!containerNode.dataset.mounted;\n if (postboxNode) {\n postboxNode.hidden = !result;\n }\n if (containerNode) {\n if (result && !isMounted) {\n Object(_containers__WEBPACK_IMPORTED_MODULE_3__[\"renderContainer\"])(containers[id], context);\n }\n if (!result && isMounted) {\n delete containerNode.dataset.mounted;\n\n // Rely on React's internals instead of `unmountComponentAtNode`\n // due to https://github.com/facebook/react/issues/13690.\n // TODO: Conditionally render the fields in the container, this way\n // we can move away from mount/unmount cycles.\n containerNode._reactRootContainer.unmount();\n }\n }\n });\n };\n}\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/metaboxes/monitors/conditional-display/handler/index.js?"); /***/ }), @@ -1166,7 +1166,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setupState\", function() { return setupState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateState\", function() { return updateState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateFieldValue\", function() { return updateFieldValue; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addFields\", function() { return addFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"cloneFields\", function() { return cloneFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeFields\", function() { return removeFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addContainer\", function() { return addContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeContainer\", function() { return removeContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"receiveSidebar\", function() { return receiveSidebar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"lockSaving\", function() { return lockSaving; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"unlockSaving\", function() { return unlockSaving; });\n/**\n * Returns an action object used to setup the state when first opening an editor.\n *\n * @param {Object[]} containers\n * @param {Object} fields\n * @return {Object}\n */\nfunction setupState(containers, fields) {\n return {\n type: 'SETUP_STATE',\n payload: {\n containers: containers,\n fields: fields\n }\n };\n}\n\n/**\n * Returns an action object used to update the state.\n *\n * @param {Object[]} containers\n * @param {Object} fields\n * @return {Object}\n */\nfunction updateState(containers, fields) {\n return {\n type: 'UPDATE_STATE',\n payload: {\n containers: containers,\n fields: fields\n }\n };\n}\n\n/**\n * Returns an action object used to update the field's value.\n *\n * @param {string} fieldId\n * @param {mixed} value\n * @param {string[]} fieldsToRemove It's used by the complex fields to remove the nested\n * fields within a single action.\n * @return {Object}\n */\nfunction updateFieldValue(fieldId, value) {\n var fieldsToRemove = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n return {\n type: 'UPDATE_FIELD_VALUE',\n payload: {\n fieldId: fieldId,\n value: value,\n fieldsToRemove: fieldsToRemove\n }\n };\n}\n\n/**\n * Returns an action object used to add the fields.\n *\n * @param {Object[]} fields\n * @return {Object}\n */\nfunction addFields(fields) {\n return {\n type: 'ADD_FIELDS',\n payload: {\n fields: fields\n }\n };\n}\n\n/**\n * Returns an action object used to clone the fields.\n *\n * @param {string[]} originFieldIds\n * @param {string[]} cloneFieldIds\n * @return {Object}\n */\nfunction cloneFields(originFieldIds, cloneFieldIds) {\n return {\n type: 'CLONE_FIELDS',\n payload: {\n originFieldIds: originFieldIds,\n cloneFieldIds: cloneFieldIds\n }\n };\n}\n\n/**\n * Returns an action object used to remove the fields.\n *\n * @param {string[]} fieldIds\n * @return {Object}\n */\nfunction removeFields(fieldIds) {\n return {\n type: 'REMOVE_FIELDS',\n payload: {\n fieldIds: fieldIds\n }\n };\n}\n\n/**\n * Returns an action object used to add a container to all containers.\n *\n * @param {Object} container\n * @return {Object}\n */\nfunction addContainer(container) {\n return {\n type: 'ADD_CONTAINER',\n payload: container\n };\n}\n\n/**\n * Returns an action object used to remove a container from all containers.\n *\n * @param {Object} container\n * @return {Object}\n */\nfunction removeContainer(container) {\n return {\n type: 'REMOVE_CONTAINER',\n payload: container\n };\n}\n\n/**\n * Returns an action object used to add the created sidebar to all fields.\n *\n * @param {Object} sidebar\n * @return {Object}\n */\nfunction receiveSidebar(sidebar) {\n return {\n type: 'RECEIVE_SIDEBAR',\n payload: sidebar\n };\n}\n\n/**\n * Returns an action object used to signal that saving is locked.\n *\n * @param {string} lockName\n * @return {Object}\n */\nfunction lockSaving(lockName) {\n return {\n type: 'LOCK_SAVING',\n payload: {\n lockName: lockName\n }\n };\n}\n\n/**\n * Returns an action object used to signal that saving is unlocked.\n *\n * @param {string} lockName\n * @return {Object}\n */\nfunction unlockSaving(lockName) {\n return {\n type: 'UNLOCK_SAVING',\n payload: {\n lockName: lockName\n }\n };\n}\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/metaboxes/store/actions.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setupState\", function() { return setupState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateState\", function() { return updateState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateFieldValue\", function() { return updateFieldValue; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addFields\", function() { return addFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"cloneFields\", function() { return cloneFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeFields\", function() { return removeFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addContainer\", function() { return addContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeContainer\", function() { return removeContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"receiveSidebar\", function() { return receiveSidebar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"lockSaving\", function() { return lockSaving; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"unlockSaving\", function() { return unlockSaving; });\n/**\r\n * Returns an action object used to setup the state when first opening an editor.\r\n *\r\n * @param {Object[]} containers\r\n * @param {Object} fields\r\n * @return {Object}\r\n */\nfunction setupState(containers, fields) {\n return {\n type: 'SETUP_STATE',\n payload: {\n containers: containers,\n fields: fields\n }\n };\n}\n\n/**\r\n * Returns an action object used to update the state.\r\n *\r\n * @param {Object[]} containers\r\n * @param {Object} fields\r\n * @return {Object}\r\n */\nfunction updateState(containers, fields) {\n return {\n type: 'UPDATE_STATE',\n payload: {\n containers: containers,\n fields: fields\n }\n };\n}\n\n/**\r\n * Returns an action object used to update the field's value.\r\n *\r\n * @param {string} fieldId\r\n * @param {mixed} value\r\n * @param {string[]} fieldsToRemove It's used by the complex fields to remove the nested\r\n * fields within a single action.\r\n * @return {Object}\r\n */\nfunction updateFieldValue(fieldId, value) {\n var fieldsToRemove = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n return {\n type: 'UPDATE_FIELD_VALUE',\n payload: {\n fieldId: fieldId,\n value: value,\n fieldsToRemove: fieldsToRemove\n }\n };\n}\n\n/**\r\n * Returns an action object used to add the fields.\r\n *\r\n * @param {Object[]} fields\r\n * @return {Object}\r\n */\nfunction addFields(fields) {\n return {\n type: 'ADD_FIELDS',\n payload: {\n fields: fields\n }\n };\n}\n\n/**\r\n * Returns an action object used to clone the fields.\r\n *\r\n * @param {string[]} originFieldIds\r\n * @param {string[]} cloneFieldIds\r\n * @return {Object}\r\n */\nfunction cloneFields(originFieldIds, cloneFieldIds) {\n return {\n type: 'CLONE_FIELDS',\n payload: {\n originFieldIds: originFieldIds,\n cloneFieldIds: cloneFieldIds\n }\n };\n}\n\n/**\r\n * Returns an action object used to remove the fields.\r\n *\r\n * @param {string[]} fieldIds\r\n * @return {Object}\r\n */\nfunction removeFields(fieldIds) {\n return {\n type: 'REMOVE_FIELDS',\n payload: {\n fieldIds: fieldIds\n }\n };\n}\n\n/**\r\n * Returns an action object used to add a container to all containers.\r\n *\r\n * @param {Object} container\r\n * @return {Object}\r\n */\nfunction addContainer(container) {\n return {\n type: 'ADD_CONTAINER',\n payload: container\n };\n}\n\n/**\r\n * Returns an action object used to remove a container from all containers.\r\n *\r\n * @param {Object} container\r\n * @return {Object}\r\n */\nfunction removeContainer(container) {\n return {\n type: 'REMOVE_CONTAINER',\n payload: container\n };\n}\n\n/**\r\n * Returns an action object used to add the created sidebar to all fields.\r\n *\r\n * @param {Object} sidebar\r\n * @return {Object}\r\n */\nfunction receiveSidebar(sidebar) {\n return {\n type: 'RECEIVE_SIDEBAR',\n payload: sidebar\n };\n}\n\n/**\r\n * Returns an action object used to signal that saving is locked.\r\n *\r\n * @param {string} lockName\r\n * @return {Object}\r\n */\nfunction lockSaving(lockName) {\n return {\n type: 'LOCK_SAVING',\n payload: {\n lockName: lockName\n }\n };\n}\n\n/**\r\n * Returns an action object used to signal that saving is unlocked.\r\n *\r\n * @param {string} lockName\r\n * @return {Object}\r\n */\nfunction unlockSaving(lockName) {\n return {\n type: 'UNLOCK_SAVING',\n payload: {\n lockName: lockName\n }\n };\n}\n\n//# sourceURL=webpack://cf.%5Bname%5D/./packages/metaboxes/store/actions.js?"); /***/ }), diff --git a/build/gutenberg/metaboxes.min.js b/build/gutenberg/metaboxes.min.js index 31cbdd211..fbd86ba2d 100644 --- a/build/gutenberg/metaboxes.min.js +++ b/build/gutenberg/metaboxes.min.js @@ -1 +1 @@ -this.cf=this.cf||{},this.cf.metaboxes=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=44)}([function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.cf.vendor["callbag-basics"]}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){var r=n(22);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){!function(){e.exports=this.cf.core}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.cf.vendor.immer}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){!function(){e.exports=this.cf.vendor["refract-callbag"]}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,n){var r=n(28),o=n(29),c=n(23),i=n(30);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nt=>(n,r)=>{if(0!==n)return;let o;t(0,(t,n)=>{0===t?(o=n,r(t,n)):1===t?e(n)?r(t,n):o(1):r(t,n)})}},function(e,t){e.exports=e=>(t,n)=>{if(0!==t)return;if("function"!=typeof e)return n(0,()=>{}),void n(2);let r,o;const c=e=>{r=r||2===e,r&&"function"==typeof o&&o()};n(0,c),o=e((e,t)=>{r||0===e||(n(e,t),c(e))})}},function(e,t,n){var r=n(20).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,c,i,a=[],u=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=c.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(24);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"registerContainerType",(function(){return ot})),n.d(t,"getContainerType",(function(){return ct}));var r={};n.r(r),n.d(r,"setupState",(function(){return g})),n.d(r,"updateState",(function(){return h})),n.d(r,"updateFieldValue",(function(){return w})),n.d(r,"addFields",(function(){return x})),n.d(r,"cloneFields",(function(){return E})),n.d(r,"removeFields",(function(){return P})),n.d(r,"addContainer",(function(){return S})),n.d(r,"removeContainer",(function(){return D})),n.d(r,"receiveSidebar",(function(){return I})),n.d(r,"lockSaving",(function(){return F})),n.d(r,"unlockSaving",(function(){return T}));var o={};n.r(o),n.d(o,"getContainers",(function(){return A})),n.d(o,"getContainerById",(function(){return C})),n.d(o,"getFields",(function(){return k})),n.d(o,"getFieldsByContainerId",(function(){return N})),n.d(o,"getFieldById",(function(){return G})),n.d(o,"isSavingLocked",(function(){return L})),n.d(o,"isDirty",(function(){return R})),n.d(o,"isFieldUpdated",(function(){return M})),n.d(o,"getComplexGroupValues",(function(){return B}));var c=n(6),i=n(3),a=n(2),u=n(0),s=n.n(u),l=n(4),f=n.n(l),d=n(7),p=n.n(d),b=n(5);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_STATE":return t.payload.containers;case"UPDATE_STATE":return p()(e,(function(e){Object(u.values)(t.payload.containers).forEach((function(t){e[t.id]=t}))}));case"ADD_CONTAINER":return p()(e,(function(e){e[t.payload.id]=t.payload}));case"REMOVE_CONTAINER":return Object(u.omit)(e,t.payload);default:return e}},fields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_STATE":return t.payload.fields;case"UPDATE_STATE":return p()(e,(function(e){Object(u.values)(t.payload.fields).forEach((function(t){e[t.id]=t}))}));case"UPDATE_FIELD_VALUE":return p()(e,(function(n){var r=t.payload,o=r.fieldId,c=r.value,i=r.fieldsToRemove;n[o].value=c,i.reduce((function(t,n){return v(n,e,t)}),[]).forEach((function(e){Object(u.unset)(n,e)}))}));case"ADD_FIELDS":return p()(e,(function(e){t.payload.fields.forEach((function(t){e[t.id]=t}))}));case"CLONE_FIELDS":return p()(e,(function(e){var n=t.payload,r=n.originFieldIds,o=n.cloneFieldIds,c=r.reduce((function(t,n,r){return y(n,o[r],e,t)}),[]);Object(u.assign)(e,Object(u.keyBy)(c,"id"))}));case"REMOVE_FIELDS":var n=t.payload.fieldIds.reduce((function(t,n){return v(n,e,t)}),[]);return Object(u.omit)(e,n);case"RECEIVE_SIDEBAR":return p()(e,(function(e){Object(u.forEach)(e,(function(e){"sidebar"===e.type&&e.options.unshift(t.payload)}))}));default:return e}},savingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_SAVING":return m(m({},e),{},f()({},t.payload.lockName,!0));case"UNLOCK_SAVING":return Object(u.omit)(e,[t.payload.lockName]);default:return e}},isDirty:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_FIELD_VALUE":return!0;default:return e}},isFieldUpdated:function(e,t){switch(t.type){case"UPDATE_FIELD_VALUE":return{action:t};default:return!1}}});function g(e,t){return{type:"SETUP_STATE",payload:{containers:e,fields:t}}}function h(e,t){return{type:"UPDATE_STATE",payload:{containers:e,fields:t}}}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"UPDATE_FIELD_VALUE",payload:{fieldId:e,value:t,fieldsToRemove:n}}}function x(e){return{type:"ADD_FIELDS",payload:{fields:e}}}function E(e,t){return{type:"CLONE_FIELDS",payload:{originFieldIds:e,cloneFieldIds:t}}}function P(e){return{type:"REMOVE_FIELDS",payload:{fieldIds:e}}}function S(e){return{type:"ADD_CONTAINER",payload:e}}function D(e){return{type:"REMOVE_CONTAINER",payload:e}}function I(e){return{type:"RECEIVE_SIDEBAR",payload:e}}function F(e){return{type:"LOCK_SAVING",payload:{lockName:e}}}function T(e){return{type:"UNLOCK_SAVING",payload:{lockName:e}}}function A(e){return e.containers}function C(e,t){return e.containers[t]}function k(e){return e.fields}function N(e,t){return Object(u.filter)(e.fields,["container_id",t])}function G(e,t){return e.fields[t]}function L(e){return Object.keys(e.savingLock).length>0}function R(e){return e.isDirty}function M(e){return e.isFieldUpdated}function B(e,t){var n=Object(u.pick)(k(e),t);return n=Object(u.mapKeys)(n,(function(e){return e.base_name.replace(/\-/g,"_")})),Object(u.mapValues)(n,(function(e){return e.value}))}function U(e,t,n){return(e=Object(u.cloneDeep)(e)).id=Object(b.uniqueId)(),e.container_id=t,"complex"===e.type&&e.value.forEach((function(e){e.id=Object(b.uniqueId)(),e.container_id=t,e.fields=e.fields.map((function(e){return U(e,t,n)}))})),n.push(e),Object(u.pick)(e,["id","type","name","base_name"])}function V(e){var t=[];return{containers:e.filter((function(e){var t=e.id;return!Object(u.endsWith)(t,"__i__")})).map((function(e){return Object(u.assign)({},e,{fields:e.fields.map((function(n){return U(n,e.id,t)}))})})),fields:t}}Object(a.registerStore)("carbon-fields/metaboxes",{reducer:j,actions:r,selectors:o});var q=V(Object(u.get)(window.cf,"preloaded.containers",[])),Q=q.containers,K=q.fields;Object(a.dispatch)("carbon-fields/metaboxes").setupState(Object(u.keyBy)(Q,"id"),Object(u.keyBy)(K,"id"));var $=n(8),W=Object($.createHigherOrderComponent)((function(e){var t=Object(a.withSelect)((function(e,t){var n=window.cf.config,r=n.compactInput,o=n.compactInputKey,c=e("carbon-fields/metaboxes").getFieldById(t.id),i=c&&c.value,a=t.name||c.name;return r&&!t.name&&-1===a.indexOf("widget-carbon_fields")&&(a="".concat(o,"[").concat(a,"]")),{field:c,name:a,value:i}})),n=Object(a.withDispatch)((function(e){return{onChange:e("carbon-fields/metaboxes").updateFieldValue}}));return Object($.compose)(t,n)(e)}),"withField"),z=n(12),H=n.n(z),J=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:[];return void 0===e?[]:Object(u.pick)(t,Object(u.difference)(Object(u.map)(e.fields,"id"),n))}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(u.map)(e,(function(e){return[e.id,"".concat(Object(u.repeat)("parent.",t)).concat(e.base_name)]}))}var re=Object(b.withConditionalLogic)((function(e,t){var n=Object(a.select)("carbon-fields/metaboxes").getFieldsByContainerId;return Object(ee.pipe)(Object(ee.merge)(J(n(e.containerId)),Object(b.fromSelector)(n,e.containerId)),(e=>t=>(n,r)=>{if(0!==n)return;let o,c,i=!1,a=X;t(0,(t,n)=>{if(0===t)return o=n,e(0,(e,t)=>0===e?(c=t,void c(1)):1===e?(a=void 0,c(2),o(2),void(i&&r(2))):void(2===e&&(c=null,null!=t&&(a=t,o(2),i&&r(e,t))))),i=!0,r(0,(e,t)=>{a===X&&(2===e&&c&&c(2),o(e,t))}),void(a!==X&&r(2,a));2===t&&c&&c(2),r(t,n)})})(t.unmount),Z(u.isEqual))}),(function(e,t){t=Object(u.keyBy)(t,"id");var n=Object(a.select)("carbon-fields/metaboxes").getContainerById(e.containerId),r=[];if(Object(u.some)(n.fields,["id",e.id]))r=ne(r=te(n,t,[e.id]));else{var o=e.name.replace(new RegExp("^".concat(window.cf.config.compactInputKey,"\\[(.+?)\\]")),"$1"),c=Object(u.find)(t,(function(t){return t.container_id===e.containerId&&Object(u.startsWith)(o,t.name)})),i=o.split(/\[|\]/g);i.shift(),(i=i.filter((function(e){return""!==e}))).pop();var s=i.reduce((function(e,t){return isNaN(t)?e+1:e}),0);r=ne(r=te(n,t,[c.id]),s+1);for(var l="".concat(c.id,".value");i.length>0;){var f=i.shift(),d=!isNaN(f),p=!d;if(d){l="".concat(l,"[").concat(f,"]");var b=te(Object(u.get)(t,l),t,[e.id]);r=r.concat(ne(b,s)),l="".concat(l,".fields")}if(p){var O=Object(u.find)(Object(u.get)(t,l),["name",f]);O&&(l="".concat(O.id,".value")),s--}}}return r=r.map((function(e){var n=H()(e,2),r=n[0];return[n[1],Object(u.get)(t,"".concat(r,".value"))]})),Object(u.fromPairs)(r)}));function oe(){return!Object(u.isUndefined)(window._wpLoadBlockEditor)}function ce(e,t){return Object(u.find)(e,(function(e){return e.name===t}))}Object(i.addFilter)("carbon-fields.association.metabox","carbon-fields/metaboxes",Object(b.withProps)((function(e){return{hierarchyResolver:function(){var t,n,r,o,c=Object(a.select)("carbon-fields/metaboxes").getContainerById(e.containerId),i=Object(a.select)("carbon-fields/metaboxes").getFieldsByContainerId(e.containerId),s=(t=e.name,n=window.cf.config,r=n.compactInput,o=n.compactInputKey,r&&0===t.indexOf(o)?t.replace(new RegExp("^".concat(o,"\\[(.+?)\\]")),"$1"):t).split(/\[|\]/g);if(s=s.filter((function(e){return""!==e})),"widget"===c.type)return e.field.base_name;for(var l=ce(i,s.shift()),f=i.indexOf(l),d=l.base_name;s.length>0;){var p=s.shift(),b=!isNaN(p),O=p===e.field.base_name,m=!b&&!O;if(b&&(f="".concat(f,".value.").concat(p,".name"),d="".concat(d,"[").concat(p,"]:").concat(Object(u.get)(i,f),"/")),m){var y=ce(Object(u.get)(i,f.replace(/\.name$/,".fields")),p),v=Object(u.find)(i,["id",y.id]);f=i.indexOf(v),d="".concat(d).concat(v.base_name)}O&&(d="".concat(d).concat(p))}return d}}})));var ie=n(16),ae=n.n(ie),ue=n(17),se=n.n(ue),le=n(9),fe=n.n(le),de=n(18),pe=n.n(de),be=n(19),Oe=n.n(be),me=n(15),ye=n.n(me),ve=n(11),je=(n(32),n(33),Object($.compose)(W,Object(b.withFilters)("carbon-fields.field-wrapper.metabox"))(b.Field));var ge=function(e){pe()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye()(e);if(t){var o=ye()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe()(this,n)}}(n);function n(){var e;ae()(this,n);for(var r=arguments.length,o=new Array(r),c=0;ct=>(n,r)=>{if(0!==n)return;let o,c,i=!1,a=!1;for(r(0,(t,n)=>{a&&1===t&&(c=[1,n]),2===t&&(i=!0,e.length=0),o&&o(t,n)});0!==e.length;)1===e.length&&(a=!0),r(1,e.shift());i||t(0,(e,t)=>{if(0===e)return o=t,a=!1,void(c&&(o(...c),c=null));r(e,t)})};function De(e){var t=parseInt(e.value,10);return!isNaN(t)&&t>=0?t:0}function Ie(e){var t=0;if(e.className){var n=e.className.match(/^level-(\d+)/);n&&(t=parseInt(n[1],10)+1)}return t}function Fe(e){for(var t=[],n=e,r=Ie(e);r>0&&n;)if(Ie(n)===r){var o=parseInt(n.value,10);o>0&&t.unshift(o),n=n.previousSibling,r--}else n=n.previousSibling;return t}var Te={post_ancestors:[],post_parent_id:0,post_level:1};function Ae(e){var t=e.options[e.selectedIndex];return{post_ancestors:Fe(t),post_parent_id:De(t),post_level:Ie(t)+1}}Object(i.addFilter)("carbon-fields.conditional-display-post-parent.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("select#parent_id");return e?Object(ee.pipe)(ee.fromEvent.default(e,"change"),Object(ee.map)((function(e){return Ae(e.target)})),Se(Ae(e))):J(Te)})),Object(i.addFilter)("carbon-fields.conditional-display-post-parent.gutenberg","carbon-fields/metaboxes",(function(){var e=Object(a.select)("core"),t=e.getPostType,n=e.getEntityRecords;return Object(ee.pipe)(Object(ee.combine)(Object(b.fromSelector)(Object(a.select)("core/editor").getCurrentPostId),Object(b.fromSelector)(Object(a.select)("core/editor").getEditedPostAttribute,"type"),Object(b.fromSelector)(Object(a.select)("core/editor").getEditedPostAttribute,"parent")),Z(u.isEqual),Object(ee.map)((function(e){var r=H()(e,3),o=r[0],c=r[1],i=r[2];if(i=parseInt(i,10),isNaN(i))return Te;var a=t(c);if(!Object(u.get)(a,["hierarchical"],!1))return Te;var s=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Object(u.find)(n,["id",t]);return o?(r.unshift(o.id),o.parent?e(o.parent,n,r):r):r}(i,n("postType",c,{per_page:-1,exclude:o,parent_exclude:o,orderby:"menu_order",order:"asc"})||[]);return{post_ancestors:s,post_parent_id:i,post_level:s.length+1}})))}));var Ce=(e,t,n)=>(r,o)=>{if(0!==r)return;let c=!1;const i=e=>{o(1,e)};if(o(0,r=>{if(2===r)if(c=!0,e.removeEventListener)e.removeEventListener(t,i,n);else{if(!e.removeListener)throw new Error("cannot remove listener from node. No method found.");e.removeListener(t,i)}}),!c)if(e.addEventListener)e.addEventListener(t,i,n);else{if(!e.addListener)throw new Error("cannot add listener to node. No method found.");e.addListener(t,i)}},ke=n(25),Ne=n.n(ke),Ge=(e,t,n)=>Ne()(n=>{let r=n.target;for(;r!==e;){if(r.matches(t))return!0;r=r.parentElement}return!1})(Ce(e,n)),Le={post_format:"standard"};function Re(e){var t=e.value;return"0"===t&&(t="standard"),{post_format:t}}Object(i.addFilter)("carbon-fields.conditional-display-post-format.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("div#post-formats-select");return e?Object(ee.pipe)(Ge(e,"input.post-format","change"),Object(ee.map)((function(e){return Re(e.target)})),Se(Re(e.querySelector("input.post-format:checked")))):J(Le)})),Object(i.addFilter)("carbon-fields.conditional-display-post-format.gutenberg","carbon-fields/metaboxes",(function(){return Object(ee.pipe)(Object(b.fromSelector)(Object(a.select)("core/editor").getEditedPostAttribute,"format"),Z(),Object(ee.filter)(Boolean),Object(ee.map)((function(e){return{post_format:e}})),Se(Le))}));var Me={post_template:""};function Be(e){var t=e.value;return"default"===t&&(t=""),{post_template:t}}Object(i.addFilter)("carbon-fields.conditional-display-post-template.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("select#page_template");return e?Object(ee.pipe)(ee.fromEvent.default(e,"change"),Object(ee.map)((function(e){return Be(e.target)})),Se(Be(e))):J(Me)})),Object(i.addFilter)("carbon-fields.conditional-display-post-template.gutenberg","carbon-fields/metaboxes",(function(){return Object(ee.pipe)(Object(b.fromSelector)(Object(a.select)("core/editor").getEditedPostAttribute,"template"),Z(),Object(ee.filter)(u.isString),Object(ee.map)((function(e){return{post_template:e}})),Se(Me))}));var Ue=n(14),Ve=n.n(Ue);function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t=0&&window.jQuery(".container-".concat(r.id)).closest(".widget-inside").trigger("change")}}}}));var Xe=n(26),Ye=n.n(Xe);function Ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){for(var e=arguments.length,t=new Array(e),n=0;n-1&&t.data.indexOf("add-tag")>-1&&!n.documentElement.querySelector("wp_error")})))}),{handler:function(e){return function(){var t=s.a.map(e.container.fields,"id"),n=V(s.a.get(window.cf,"preloaded.containers",[])),r=n.containers,o=n.fields,c=s.a.find(r,["id",e.id]),i=s.a.filter(o,["container_id",e.id]),u=Object(a.dispatch)("carbon-fields/metaboxes"),l=u.updateState,f=u.removeFields;l(s.a.keyBy([c],"id"),s.a.keyBy(i,"id")),f(t)}}})),n(41),Object(i.addFilter)("carbon-fields.theme_options.classic","carbon-fields/metaboxes",Object(Ee.withEffects)((function(){return Object(ee.pipe)(Ce(window,"scroll"),Object(ee.map)((function(){return window.jQuery(window).scrollTop()})))}),{handler:function(){return function(e){var t=window.jQuery(".carbon-box:first"),n=window.jQuery("#postbox-container-1"),r=window.jQuery("#wpadminbar").height()+10,o=t.offset().top-r;o>0&&n.toggleClass("fixed",e>=o).css("top",r)}}})),n(42);var et=n(21),tt=n.n(et);n(43);var nt=function(e){pe()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye()(e);if(t){var o=ye()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe()(this,n)}}(n);function n(){var e;ae()(this,n);for(var r=arguments.length,o=new Array(r),c=0;c-1},evaluate:function(){return!1}};function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t-1;case"NOT IN":return-1===n.indexOf(e);default:return!1}}}),pt(pt({},at),{},{operators:[">",">=","<","<="],evaluate:function(e,t,n){switch(t){case">":return e>n;case">=":return e>=n;case"<":return e0;case"NOT IN":return 0===Object(u.intersection)(e,n).length;default:return!1}}});function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t-1})),Object(ee.map)((function(e){return{type:"WIDGET_CREATED_OR_UPDATED",payload:e}}))),Object(ee.pipe)(Ze((function(e){return window.jQuery(document).on("ajaxSend",e)}),(function(e){return window.jQuery(document).off("ajaxSend",e)}),(function(e,t,n,r){return{event:e,xhr:t,options:n,data:r}})),Object(ee.filter)((function(e){var t=e.options;return Object(u.startsWith)(t.data,"carbon_fields_container_")})),Object(ee.map)((function(e){return{type:"WIDGET_BEIGN_UPDATED_OR_DELETED",payload:e}}))))}),{handler:function(){return function(e){var t=Object(a.select)("carbon-fields/metaboxes").getContainerById,n=Object(a.dispatch)("carbon-fields/metaboxes"),r=n.addContainer,o=n.removeContainer,c=n.addFields,i=n.removeFields;switch(e.type){case"WIDGET_CREATED_OR_UPDATED":var s=e.payload,l=s.event,f=s.$widget,d=Object(u.flow)(Qt,JSON.parse)(f.find("[data-json]").data("json")),p=[];if(d.fields=d.fields.map((function(e){return U(e,d,p)})),c(p),r(d),it(d,"classic"),"customize.php"===window.cf.config.pagenow&&"widget-added"===l.type){var b=f.find('[name="widget-id"]').val();f.find('[name="savewidget"]').show().end().find(".widget-content:first").off("keydown","input").off("change input propertychange",":input"),wp.customize.Widgets.getWidgetFormControlForWidget(b).liveUpdateMode=!1}break;case"WIDGET_BEIGN_UPDATED_OR_DELETED":var O=e.payload.options.data.match(/widget-id=(.+?)&/),m=H()(O,2)[1],y="".concat("carbon_fields_container_").concat(m),v=t(y);Object(ve.unmountComponentAtNode)(document.querySelector(".container-".concat(y)));var j=_.map(v.fields,"id");o(y),i(j)}}}})((function(){return null})),$t=Object(a.withSelect)((function(e){return{isDirty:e("carbon-fields/metaboxes").isDirty()}}))((function(e){return wp.element.createElement("input",{type:"hidden",name:window.cf.config.revisionsInputKey,disabled:!e.isDirty,value:"1"})}));Object(c.setLocaleData)(window.cf.config.locale,"carbon-fields-ui");var Wt=oe()?"gutenberg":"classic";Object(i.addAction)("carbon-fields.init","carbon-fields/metaboxes",(function(){var e,t;e=Wt,t=Object(a.select)("carbon-fields/metaboxes").getContainers(),Object(u.forEach)(t,(function(t){it(t,e)})),function(e){var t=window.cf.config.pagenow;Object(ve.render)(wp.element.createElement(ve.Fragment,null,!oe()&&wp.element.createElement(Pe,null),("widgets.php"===t||"customize.php"===t)&&wp.element.createElement(Kt,null),wp.element.createElement(qt,{context:e})),document.createElement("div"));var n=document.querySelector("#poststuff");n&&Object(ve.render)(wp.element.createElement($t,null),n.appendChild(document.createElement("div")))}(Wt)}))}]); \ No newline at end of file +this.cf=this.cf||{},this.cf.metaboxes=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=44)}([function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.cf.vendor["callbag-basics"]}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){var r=n(22);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){!function(){e.exports=this.cf.core}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.cf.vendor.immer}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){!function(){e.exports=this.cf.vendor["refract-callbag"]}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,n){var r=n(28),o=n(29),c=n(23),i=n(30);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nt=>(n,r)=>{if(0!==n)return;let o;t(0,(t,n)=>{0===t?(o=n,r(t,n)):1===t?e(n)?r(t,n):o(1):r(t,n)})}},function(e,t){e.exports=e=>(t,n)=>{if(0!==t)return;if("function"!=typeof e)return n(0,()=>{}),void n(2);let r,o;const c=e=>{r=r||2===e,r&&"function"==typeof o&&o()};n(0,c),o=e((e,t)=>{r||0===e||(n(e,t),c(e))})}},function(e,t,n){var r=n(20).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,c,i,a=[],u=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=c.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(24);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"registerContainerType",(function(){return ot})),n.d(t,"getContainerType",(function(){return ct}));var r={};n.r(r),n.d(r,"setupState",(function(){return g})),n.d(r,"updateState",(function(){return h})),n.d(r,"updateFieldValue",(function(){return w})),n.d(r,"addFields",(function(){return x})),n.d(r,"cloneFields",(function(){return E})),n.d(r,"removeFields",(function(){return P})),n.d(r,"addContainer",(function(){return S})),n.d(r,"removeContainer",(function(){return D})),n.d(r,"receiveSidebar",(function(){return I})),n.d(r,"lockSaving",(function(){return F})),n.d(r,"unlockSaving",(function(){return T}));var o={};n.r(o),n.d(o,"getContainers",(function(){return A})),n.d(o,"getContainerById",(function(){return C})),n.d(o,"getFields",(function(){return k})),n.d(o,"getFieldsByContainerId",(function(){return N})),n.d(o,"getFieldById",(function(){return G})),n.d(o,"isSavingLocked",(function(){return L})),n.d(o,"isDirty",(function(){return R})),n.d(o,"isFieldUpdated",(function(){return M})),n.d(o,"getComplexGroupValues",(function(){return B}));var c=n(6),i=n(3),a=n(2),u=n(0),s=n.n(u),l=n(4),f=n.n(l),d=n(7),p=n.n(d),b=n(5);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_STATE":return t.payload.containers;case"UPDATE_STATE":return p()(e,(function(e){Object(u.values)(t.payload.containers).forEach((function(t){e[t.id]=t}))}));case"ADD_CONTAINER":return p()(e,(function(e){e[t.payload.id]=t.payload}));case"REMOVE_CONTAINER":return Object(u.omit)(e,t.payload);default:return e}},fields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_STATE":return t.payload.fields;case"UPDATE_STATE":return p()(e,(function(e){Object(u.values)(t.payload.fields).forEach((function(t){e[t.id]=t}))}));case"UPDATE_FIELD_VALUE":return p()(e,(function(n){var r=t.payload,o=r.fieldId,c=r.value,i=r.fieldsToRemove;n[o].value=c,i.reduce((function(t,n){return v(n,e,t)}),[]).forEach((function(e){Object(u.unset)(n,e)}))}));case"ADD_FIELDS":return p()(e,(function(e){t.payload.fields.forEach((function(t){e[t.id]=t}))}));case"CLONE_FIELDS":return p()(e,(function(e){var n=t.payload,r=n.originFieldIds,o=n.cloneFieldIds,c=r.reduce((function(t,n,r){return y(n,o[r],e,t)}),[]);Object(u.assign)(e,Object(u.keyBy)(c,"id"))}));case"REMOVE_FIELDS":var n=t.payload.fieldIds.reduce((function(t,n){return v(n,e,t)}),[]);return Object(u.omit)(e,n);case"RECEIVE_SIDEBAR":return p()(e,(function(e){Object(u.forEach)(e,(function(e){"sidebar"===e.type&&e.options.unshift(t.payload)}))}));default:return e}},savingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_SAVING":return m(m({},e),{},f()({},t.payload.lockName,!0));case"UNLOCK_SAVING":return Object(u.omit)(e,[t.payload.lockName]);default:return e}},isDirty:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_FIELD_VALUE":return!0;default:return e}},isFieldUpdated:function(e,t){switch(t.type){case"UPDATE_FIELD_VALUE":return{action:t};default:return!1}}});function g(e,t){return{type:"SETUP_STATE",payload:{containers:e,fields:t}}}function h(e,t){return{type:"UPDATE_STATE",payload:{containers:e,fields:t}}}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:"UPDATE_FIELD_VALUE",payload:{fieldId:e,value:t,fieldsToRemove:n}}}function x(e){return{type:"ADD_FIELDS",payload:{fields:e}}}function E(e,t){return{type:"CLONE_FIELDS",payload:{originFieldIds:e,cloneFieldIds:t}}}function P(e){return{type:"REMOVE_FIELDS",payload:{fieldIds:e}}}function S(e){return{type:"ADD_CONTAINER",payload:e}}function D(e){return{type:"REMOVE_CONTAINER",payload:e}}function I(e){return{type:"RECEIVE_SIDEBAR",payload:e}}function F(e){return{type:"LOCK_SAVING",payload:{lockName:e}}}function T(e){return{type:"UNLOCK_SAVING",payload:{lockName:e}}}function A(e){return e.containers}function C(e,t){return e.containers[t]}function k(e){return e.fields}function N(e,t){return Object(u.filter)(e.fields,["container_id",t])}function G(e,t){return e.fields[t]}function L(e){return Object.keys(e.savingLock).length>0}function R(e){return e.isDirty}function M(e){return e.isFieldUpdated}function B(e,t){var n=Object(u.pick)(k(e),t);return n=Object(u.mapKeys)(n,(function(e){return e.base_name.replace(/\-/g,"_")})),Object(u.mapValues)(n,(function(e){return e.value}))}function U(e,t,n){return(e=Object(u.cloneDeep)(e)).id=Object(b.uniqueId)(),e.container_id=t,"complex"===e.type&&e.value.forEach((function(e){e.id=Object(b.uniqueId)(),e.container_id=t,e.fields=e.fields.map((function(e){return U(e,t,n)}))})),n.push(e),Object(u.pick)(e,["id","type","name","base_name"])}function V(e){var t=[];return{containers:e.filter((function(e){var t=e.id;return!Object(u.endsWith)(t,"__i__")})).map((function(e){return Object(u.assign)({},e,{fields:e.fields.map((function(n){return U(n,e.id,t)}))})})),fields:t}}Object(a.registerStore)("carbon-fields/metaboxes",{reducer:j,actions:r,selectors:o});var q=V(Object(u.get)(window.cf,"preloaded.containers",[])),Q=q.containers,K=q.fields;Object(a.dispatch)("carbon-fields/metaboxes").setupState(Object(u.keyBy)(Q,"id"),Object(u.keyBy)(K,"id"));var $=n(8),W=Object($.createHigherOrderComponent)((function(e){var t=Object(a.withSelect)((function(e,t){var n=window.cf.config,r=n.compactInput,o=n.compactInputKey,c=e("carbon-fields/metaboxes").getFieldById(t.id),i=c&&c.value,a=t.name||c.name;return r&&!t.name&&-1===a.indexOf("widget-carbon_fields")&&(a="".concat(o,"[").concat(a,"]")),{field:c,name:a,value:i}})),n=Object(a.withDispatch)((function(e){return{onChange:e("carbon-fields/metaboxes").updateFieldValue}}));return Object($.compose)(t,n)(e)}),"withField"),z=n(12),H=n.n(z),J=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:[];return void 0===e?[]:Object(u.pick)(t,Object(u.difference)(Object(u.map)(e.fields,"id"),n))}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(u.map)(e,(function(e){return[e.id,"".concat(Object(u.repeat)("parent.",t)).concat(e.base_name)]}))}var re=Object(b.withConditionalLogic)((function(e,t){var n=Object(a.select)("carbon-fields/metaboxes").getFieldsByContainerId;return Object(ee.pipe)(Object(ee.merge)(J(n(e.containerId)),Object(b.fromSelector)(n,e.containerId)),(e=>t=>(n,r)=>{if(0!==n)return;let o,c,i=!1,a=X;t(0,(t,n)=>{if(0===t)return o=n,e(0,(e,t)=>0===e?(c=t,void c(1)):1===e?(a=void 0,c(2),o(2),void(i&&r(2))):void(2===e&&(c=null,null!=t&&(a=t,o(2),i&&r(e,t))))),i=!0,r(0,(e,t)=>{a===X&&(2===e&&c&&c(2),o(e,t))}),void(a!==X&&r(2,a));2===t&&c&&c(2),r(t,n)})})(t.unmount),Z(u.isEqual))}),(function(e,t){t=Object(u.keyBy)(t,"id");var n=Object(a.select)("carbon-fields/metaboxes").getContainerById(e.containerId),r=[];if(Object(u.some)(n.fields,["id",e.id]))r=ne(r=te(n,t,[e.id]));else{var o=e.name.replace(new RegExp("^".concat(window.cf.config.compactInputKey,"\\[(.+?)\\]")),"$1"),c=Object(u.find)(t,(function(t){return t.container_id===e.containerId&&Object(u.startsWith)(o,t.name)})),i=o.split(/\[|\]/g);i.shift(),(i=i.filter((function(e){return""!==e}))).pop();var s=i.reduce((function(e,t){return isNaN(t)?e+1:e}),0);r=ne(r=te(n,t,[c.id]),s+1);for(var l="".concat(c.id,".value");i.length>0;){var f=i.shift(),d=!isNaN(f),p=!d;if(d){l="".concat(l,"[").concat(f,"]");var b=te(Object(u.get)(t,l),t,[e.id]);r=r.concat(ne(b,s)),l="".concat(l,".fields")}if(p){var O=Object(u.find)(Object(u.get)(t,l),["name",f]);O&&(l="".concat(O.id,".value")),s--}}}return r=r.map((function(e){var n=H()(e,2),r=n[0];return[n[1],Object(u.get)(t,"".concat(r,".value"))]})),Object(u.fromPairs)(r)}));function oe(){return!Object(u.isUndefined)(window._wpLoadBlockEditor)}function ce(e,t){return Object(u.find)(e,(function(e){return e.name===t}))}Object(i.addFilter)("carbon-fields.association.metabox","carbon-fields/metaboxes",Object(b.withProps)((function(e){return{hierarchyResolver:function(){var t,n,r,o,c=Object(a.select)("carbon-fields/metaboxes").getContainerById(e.containerId),i=Object(a.select)("carbon-fields/metaboxes").getFieldsByContainerId(e.containerId),s=(t=e.name,n=window.cf.config,r=n.compactInput,o=n.compactInputKey,r&&0===t.indexOf(o)?t.replace(new RegExp("^".concat(o,"\\[(.+?)\\]")),"$1"):t).split(/\[|\]/g);if(s=s.filter((function(e){return""!==e})),"widget"===c.type)return e.field.base_name;for(var l=ce(i,s.shift()),f=i.indexOf(l),d=l.base_name;s.length>0;){var p=s.shift(),b=!isNaN(p),O=p===e.field.base_name,m=!b&&!O;if(b&&(f="".concat(f,".value.").concat(p,".name"),d="".concat(d,"[").concat(p,"]:").concat(Object(u.get)(i,f),"/")),m){var y=ce(Object(u.get)(i,f.replace(/\.name$/,".fields")),p),v=Object(u.find)(i,["id",y.id]);f=i.indexOf(v),d="".concat(d).concat(v.base_name)}O&&(d="".concat(d).concat(p))}return d}}})));var ie=n(16),ae=n.n(ie),ue=n(17),se=n.n(ue),le=n(9),fe=n.n(le),de=n(18),pe=n.n(de),be=n(19),Oe=n.n(be),me=n(15),ye=n.n(me),ve=n(11),je=(n(32),n(33),Object($.compose)(W,Object(b.withFilters)("carbon-fields.field-wrapper.metabox"))(b.Field));var ge=function(e){pe()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye()(e);if(t){var o=ye()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe()(this,n)}}(n);function n(){var e;ae()(this,n);for(var r=arguments.length,o=new Array(r),c=0;ct=>(n,r)=>{if(0!==n)return;let o,c,i=!1,a=!1;for(r(0,(t,n)=>{a&&1===t&&(c=[1,n]),2===t&&(i=!0,e.length=0),o&&o(t,n)});0!==e.length;)1===e.length&&(a=!0),r(1,e.shift());i||t(0,(e,t)=>{if(0===e)return o=t,a=!1,void(c&&(o(...c),c=null));r(e,t)})};function De(e){var t=parseInt(e.value,10);return!isNaN(t)&&t>=0?t:0}function Ie(e){var t=0;if(e.className){var n=e.className.match(/^level-(\d+)/);n&&(t=parseInt(n[1],10)+1)}return t}function Fe(e){for(var t=[],n=e,r=Ie(e);r>0&&n;)if(Ie(n)===r){var o=parseInt(n.value,10);o>0&&t.unshift(o),n=n.previousSibling,r--}else n=n.previousSibling;return t}var Te={post_ancestors:[],post_parent_id:0,post_level:1};function Ae(e){var t=e.options[e.selectedIndex];return{post_ancestors:Fe(t),post_parent_id:De(t),post_level:Ie(t)+1}}Object(i.addFilter)("carbon-fields.conditional-display-post-parent.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("select#parent_id");return e?Object(ee.pipe)(ee.fromEvent.default(e,"change"),Object(ee.map)((function(e){return Ae(e.target)})),Se(Ae(e))):J(Te)})),Object(i.addFilter)("carbon-fields.conditional-display-post-parent.gutenberg","carbon-fields/metaboxes",(function(){var e=Object(a.select)("core"),t=e.getPostType,n=e.getEntityRecords;return Object(ee.pipe)(Object(ee.combine)(Object(b.fromSelector)(Object(a.select)("core/editor").getCurrentPostId),Object(b.fromSelector)(Object(a.select)("core/editor").getEditedPostAttribute,"type"),Object(b.fromSelector)(Object(a.select)("core/editor").getEditedPostAttribute,"parent")),Z(u.isEqual),Object(ee.map)((function(e){var r=H()(e,3),o=r[0],c=r[1],i=r[2];if(i=parseInt(i,10),isNaN(i))return Te;var a=t(c);if(!Object(u.get)(a,["hierarchical"],!1))return Te;var s=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Object(u.find)(n,["id",t]);return o?(r.unshift(o.id),o.parent?e(o.parent,n,r):r):r}(i,n("postType",c,{per_page:-1,exclude:o,parent_exclude:o,orderby:"menu_order",order:"asc"})||[]);return{post_ancestors:s,post_parent_id:i,post_level:s.length+1}})))}));var Ce=(e,t,n)=>(r,o)=>{if(0!==r)return;let c=!1;const i=e=>{o(1,e)};if(o(0,r=>{if(2===r)if(c=!0,e.removeEventListener)e.removeEventListener(t,i,n);else{if(!e.removeListener)throw new Error("cannot remove listener from node. No method found.");e.removeListener(t,i)}}),!c)if(e.addEventListener)e.addEventListener(t,i,n);else{if(!e.addListener)throw new Error("cannot add listener to node. No method found.");e.addListener(t,i)}},ke=n(25),Ne=n.n(ke),Ge=(e,t,n)=>Ne()(n=>{let r=n.target;for(;r!==e;){if(r.matches(t))return!0;r=r.parentElement}return!1})(Ce(e,n)),Le={post_format:"standard"};function Re(e){var t=e.value;return"0"===t&&(t="standard"),{post_format:t}}Object(i.addFilter)("carbon-fields.conditional-display-post-format.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("div#post-formats-select");return e?Object(ee.pipe)(Ge(e,"input.post-format","change"),Object(ee.map)((function(e){return Re(e.target)})),Se(Re(e.querySelector("input.post-format:checked")))):J(Le)})),Object(i.addFilter)("carbon-fields.conditional-display-post-format.gutenberg","carbon-fields/metaboxes",(function(){return Object(ee.pipe)(Object(b.fromSelector)(Object(a.select)("core/editor").getEditedPostAttribute,"format"),Z(),Object(ee.filter)(Boolean),Object(ee.map)((function(e){return{post_format:e}})),Se(Le))}));var Me={post_template:""};function Be(e){var t=e.value;return"default"===t&&(t=""),{post_template:t}}Object(i.addFilter)("carbon-fields.conditional-display-post-template.classic","carbon-fields/metaboxes",(function(){var e=document.querySelector("select#page_template");return e?Object(ee.pipe)(ee.fromEvent.default(e,"change"),Object(ee.map)((function(e){return Be(e.target)})),Se(Be(e))):J(Me)})),Object(i.addFilter)("carbon-fields.conditional-display-post-template.gutenberg","carbon-fields/metaboxes",(function(){return Object(ee.pipe)(Object(b.fromSelector)(Object(a.select)("core/editor").getEditedPostAttribute,"template"),Z(),Object(ee.filter)(u.isString),Object(ee.map)((function(e){return{post_template:e}})),Se(Me))}));var Ue=n(14),Ve=n.n(Ue);function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t=0&&window.jQuery(".container-".concat(r.id)).closest(".widget-inside").trigger("change")}}}}));var Xe=n(26),Ye=n.n(Xe);function Ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){for(var e=arguments.length,t=new Array(e),n=0;n-1&&t.data.indexOf("add-tag")>-1&&!n.documentElement.querySelector("wp_error")})))}),{handler:function(e){return function(){var t=s.a.map(e.container.fields,"id"),n=V(s.a.get(window.cf,"preloaded.containers",[])),r=n.containers,o=n.fields,c=s.a.find(r,["id",e.id]),i=s.a.filter(o,["container_id",e.id]),u=Object(a.dispatch)("carbon-fields/metaboxes"),l=u.updateState,f=u.removeFields;l(s.a.keyBy([c],"id"),s.a.keyBy(i,"id")),f(t)}}})),n(41),Object(i.addFilter)("carbon-fields.theme_options.classic","carbon-fields/metaboxes",Object(Ee.withEffects)((function(){return Object(ee.pipe)(Ce(window,"scroll"),Object(ee.map)((function(){return window.jQuery(window).scrollTop()})))}),{handler:function(){return function(e){var t=window.jQuery(".carbon-box:first"),n=window.jQuery("#postbox-container-1"),r=window.jQuery("#wpadminbar").height()+10,o=t.offset().top-r;o>0&&n.toggleClass("fixed",e>=o).css("top",r)}}})),n(42);var et=n(21),tt=n.n(et);n(43);var nt=function(e){pe()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye()(e);if(t){var o=ye()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe()(this,n)}}(n);function n(){var e;ae()(this,n);for(var r=arguments.length,o=new Array(r),c=0;c-1},evaluate:function(){return!1}};function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t-1;case"NOT IN":return-1===n.indexOf(e);default:return!1}}}),pt(pt({},at),{},{operators:[">",">=","<","<="],evaluate:function(e,t,n){switch(t){case">":return e>n;case">=":return e>=n;case"<":return e0;case"NOT IN":return 0===Object(u.intersection)(e,n).length;default:return!1}}});function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t-1})),Object(ee.map)((function(e){return{type:"WIDGET_CREATED_OR_UPDATED",payload:e}}))),Object(ee.pipe)(Ze((function(e){return window.jQuery(document).on("ajaxSend",e)}),(function(e){return window.jQuery(document).off("ajaxSend",e)}),(function(e,t,n,r){return{event:e,xhr:t,options:n,data:r}})),Object(ee.filter)((function(e){var t=e.options;return Object(u.startsWith)(t.data,"carbon_fields_container_")})),Object(ee.map)((function(e){return{type:"WIDGET_BEIGN_UPDATED_OR_DELETED",payload:e}}))))}),{handler:function(){return function(e){var t=Object(a.select)("carbon-fields/metaboxes").getContainerById,n=Object(a.dispatch)("carbon-fields/metaboxes"),r=n.addContainer,o=n.removeContainer,c=n.addFields,i=n.removeFields;switch(e.type){case"WIDGET_CREATED_OR_UPDATED":var s=e.payload,l=s.event,f=s.$widget,d=Object(u.flow)(Qt,JSON.parse)(f.find("[data-json]").data("json")),p=[];if(d.fields=d.fields.map((function(e){return U(e,d,p)})),c(p),r(d),it(d,"classic"),"customize.php"===window.cf.config.pagenow&&"widget-added"===l.type){var b=f.find('[name="widget-id"]').val();f.find('[name="savewidget"]').show().end().find(".widget-content:first").off("keydown","input").off("change input propertychange",":input"),wp.customize.Widgets.getWidgetFormControlForWidget(b).liveUpdateMode=!1}break;case"WIDGET_BEIGN_UPDATED_OR_DELETED":var O=e.payload.options.data.match(/widget-id=(.+?)&/),m=H()(O,2)[1],y="".concat("carbon_fields_container_").concat(m),v=t(y);Object(ve.unmountComponentAtNode)(document.querySelector(".container-".concat(y)));var j=_.map(v.fields,"id");o(y),i(j)}}}})((function(){return null})),$t=Object(a.withSelect)((function(e){return{isDirty:e("carbon-fields/metaboxes").isDirty()}}))((function(e){return wp.element.createElement("input",{type:"hidden",name:window.cf.config.revisionsInputKey,disabled:!e.isDirty,value:"1"})}));Object(c.setLocaleData)(window.cf.config.locale,"carbon-fields-ui");var Wt=oe()?"gutenberg":"classic";Object(i.addAction)("carbon-fields.init","carbon-fields/metaboxes",(function(){var e,t;e=Wt,t=Object(a.select)("carbon-fields/metaboxes").getContainers(),Object(u.forEach)(t,(function(t){it(t,e)})),function(e){var t=window.cf.config.pagenow;Object(ve.render)(wp.element.createElement(ve.Fragment,null,!oe()&&wp.element.createElement(Pe,null),("widgets.php"===t||"customize.php"===t)&&wp.element.createElement(Kt,null),wp.element.createElement(qt,{context:e})),document.createElement("div"));var n=document.querySelector("#poststuff");n&&Object(ve.render)(wp.element.createElement($t,null),n.appendChild(document.createElement("div")))}(Wt)}))}]); \ No newline at end of file diff --git a/packages/core/fields/radio/style.scss b/packages/core/fields/radio/style.scss index 4967fa8b5..0b7b96040 100644 --- a/packages/core/fields/radio/style.scss +++ b/packages/core/fields/radio/style.scss @@ -56,7 +56,7 @@ &[type="checkbox"]:checked:before { content: ""; - background: var(--wp-admin-theme-color); + background-color: var(--wp-admin-theme-color, #3582c4); border-radius: 50%; width: 0.5rem; height: 0.5rem; diff --git a/packages/metaboxes/monitors/conditional-display/handler/index.js b/packages/metaboxes/monitors/conditional-display/handler/index.js index 706cef58a..f6bba8aaf 100644 --- a/packages/metaboxes/monitors/conditional-display/handler/index.js +++ b/packages/metaboxes/monitors/conditional-display/handler/index.js @@ -114,7 +114,7 @@ export default function handler( { containers, context } ) { // due to https://github.com/facebook/react/issues/13690. // TODO: Conditionally render the fields in the container, this way // we can move away from mount/unmount cycles. - //containerNode._reactRootContainer.unmount(); // -- causes a memory leak bug + containerNode._reactRootContainer.unmount(); } } } );