芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/public_html/wp-content/plugins/blocksy-companion/static/bundle/sync.js
!function(){"use strict";var e={};function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o
*:not([id*="menu-item-"])');r.filter((function(e){var t=e.enabled,o=e.id;return!!t&&"menu"!==o})).map((function(e,o){if(c){var r=t[o];if(r){var a=r.querySelector("a");if("user_info"===e.id){var l=r.querySelector("small");if(l){var n=l.dataset,i=n.email,s=n.name,d=n.role;l.innerText=e.account_user_info_additional_fields.replace("{user_email}",i).replace("{user_name}",s).replace("{user_role}",d)}}"user_info"!==e.id&&a&&e.label&&(a.innerHTML=e.label)}}}))}}))}if("header_account_visibility"===t&&(0,l.updateAndSaveEl)(a,(function(e){return(0,l.responsiveClassesFor)(i(i({},r),{},{desktop:!0}),e)})),"loggedin_account_label_visibility"!==t&&"loggedout_account_label_visibility"!==t||(0,l.updateAndSaveEl)(a,(function(e){o(e.querySelectorAll(".ct-label")).map((function(e){(0,l.responsiveClassesFor)(r,e)}))})),"loggedin_label"===t&&((0,l.updateAndSaveEl)(a,(function(e){o(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=r}))})),(0,l.updateAndSaveEl)(a,(function(e){r.desktop||(r={desktop:r,mobile:r}),o(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=r.desktop}))}),{onlyView:"desktop"}),(0,l.updateAndSaveEl)(a,(function(e){r.desktop||(r={desktop:r,mobile:r}),o(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=r.mobile}))}),{onlyView:"mobile"})),"login_label"===t&&(0,l.updateAndSaveEl)(a,(function(e){o(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=r}))})),"loggedout_label_position"!==t&&"loggedin_label_position"!==t||((0,l.updateAndSaveEl)(".ct-account-item",(function(e){r.desktop||(r={desktop:r,mobile:r}),e.dataset.label=r.desktop}),{onlyView:"desktop"}),(0,l.updateAndSaveEl)(".ct-account-item",(function(e){r.desktop||(r={desktop:r,mobile:r}),e.dataset.label=r.mobile}),{onlyView:"mobile"})),"account_close_button_type"===t){var n=document.querySelector("#account-modal .ct-toggle-close");setTimeout((function(){n.classList.add("ct-disable-transitions"),requestAnimationFrame((function(){n&&(n.dataset.type=r),setTimeout((function(){n.classList.remove("ct-disable-transitions")}))}))}),300)}if("dropdown_items_type"===t){var s=document.querySelector(a);if(s){var d=s.querySelector("ul[data-dropdown]");d&&(d.dataset.dropdown="boxed"===r?"type-1:boxed":"type-1")}}})),c().on("ct:header:sync:collect-variable-descriptors",(function(e){e.global=function(){return d(d(d({transparent_behaviour:{selector:(0,l.assembleSelector)((0,l.getRootSelectorFor)()),variable:"has-transparent-header",responsive:!0,extractValue:function(e){return{desktop:e.desktop?"var(--true)":"var(--false)",tablet:e.mobile?"var(--true)":"var(--false)",mobile:e.mobile?"var(--true)":"var(--false)"}},unit:""}},(0,l.handleBackgroundOptionFor)({id:"headerBackground",selector:(0,l.assembleSelector)((0,l.mutateSelector)({selector:(0,l.getRootSelectorFor)(),operation:"suffix",to_add:".ct-header"})),responsive:!0,forced_background_image:!0})),(0,l.handleBackgroundOptionFor)({id:"transparentHeaderBackground",selector:(0,l.assembleSelector)((0,l.mutateSelector)({selector:(0,l.getRootSelectorFor)(),operation:"suffix",to_add:"[data-transparent]"})),responsive:!0,forced_background_image:!0})),(0,l.handleBackgroundOptionFor)({id:"stickyHeaderBackground",selector:(0,l.assembleSelector)((0,l.mutateSelector)({selector:(0,l.getRootSelectorFor)(),operation:"suffix",to_add:'[data-sticky*="yes"]'})),responsive:!0,forced_background_image:!0}))}})),c().on("ct:header:sync:item:global",(function(e){var t=e.optionId,o=e.optionValue,r=e.values;if("has_sticky_header"===t||"sticky_rows"===t||"sticky_behaviour"===t){var a=r.has_sticky_header,l=r.sticky_rows,n=r.sticky_behaviour;Array.from(document.querySelectorAll("[data-sticky]")).map((function(e){e.removeAttribute("data-sticky")})),"yes"===a&&Array.from(document.querySelectorAll("[data-row]")).map((function(e){var t=e.dataset.row;if(l[t]){var o=[];n.desktop&&o.push("desktop"),n.mobile&&o.push("mobile"),e.dataset.sticky=o.join(":")}})),c().trigger("blocksy:frontend:init")}if("transparent_behaviour"===t){if(!document.querySelector("[data-transparent]"))return;Array.from(document.querySelectorAll("[data-device]")).map((function(e){e.removeAttribute("data-transparent"),Array.from(e.querySelectorAll("[data-row]")).map((function(e){return e.removeAttribute("data-transparent-row")})),o[e.dataset.device]&&(e.dataset.transparent="",Array.from(e.querySelectorAll("[data-row]")).map((function(e){return e.dataset.transparentRow="yes"}))),c().trigger("blocksy:frontend:init")}))}}))}();