芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/elementor/assets/js/packages/responsive.min.js
!function(){"use strict";var e={d:function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{useBreakpoints:function(){return p}});var n=__UNSTABLE__elementorPackages.store;var i=__UNSTABLE__elementorPackages.v1Adapters,a=wp.i18n;function o(){const{breakpoints:e}=window.elementor?.config?.responsive||{};if(!e)return[];const t=Object.entries(e).filter((([,e])=>e.is_enabled)).map((([e,{value:t,direction:n,label:i}])=>({id:e,label:i,width:t,type:"min"===n?"min-width":"max-width"})));return t.push({id:"desktop",label:(0,a.__)("Desktop","elementor")}),t}function r(){const e=window;return e.elementor?.channels?.deviceMode?.request?.("currentMode")||null}var c=__UNSTABLE__elementorPackages.topBar;const l=e=>e.breakpoints.entities,s=(0,n.createSelector)(l,(e=>e.breakpoints.activeId),((e,t)=>t&&e[t]?e[t]:null)),d=(0,n.createSelector)(l,(e=>{const t=(e,t)=>e.width&&t.width?t.width-e.width:0,n=Object.values(e),i=n.filter((e=>!e.width)),a=n.filter((e=>"min-width"===e.type)),o=n.filter((e=>"max-width"===e.type));return[...a.sort(t),...i,...o.sort(t)]}));function p(){return{all:(0,n.useSelector)(d),active:(0,n.useSelector)(s)}}var u=__UNSTABLE__elementorPackages.ui,m=__UNSTABLE__elementorPackages.icons,v=React;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t
{(0,n.dispatch)(t({entities:o(),activeId:r()}))}))})(h=(0,n.addSlice)({name:"breakpoints",initialState:{entities:{},activeId:null},reducers:{init(e,t){e.activeId=t.payload.activeId,e.entities=t.payload.entities.reduce(((e,t)=>({...e,[t.id]:t})),{})},activateBreakpoint(e,t){e.entities[t.payload]&&(e.activeId=t.payload)}}})),function(e){const{activateBreakpoint:t}=e.actions;(0,i.listenTo)((0,i.windowEvent)("elementor/device-mode/change"),(()=>{const e=r();(0,n.dispatch)(t(e))}))}(h),(0,c.injectIntoCanvasDisplay)({name:"responsive-breakpoints-switcher",filler:function(){const{all:e,active:t}=p(),{activate:n}={activate:(0,v.useCallback)((e=>(0,i.runCommand)("panel/change-device-mode",{device:e})),[])};return e.length&&t?React.createElement(u.Tabs,{value:t.id,onChange:(e,t)=>n(t),"aria-label":(0,a.__)("Switch Device","elementor")},e.map((({id:e,label:t,type:n,width:i})=>{const a=f[e],o=w[n||"default"].replace("%s",t).replace("%d",i?.toString()||"");return React.createElement(u.Tab,{value:e,key:e,"aria-label":o,icon:React.createElement(b,{title:o},React.createElement(a,null))})}))):null},options:{priority:20}}),(window.__UNSTABLE__elementorPackages=window.__UNSTABLE__elementorPackages||{}).responsive=t}();