File "editor-responsive.min.js"

Full Path: /home/diablzlo/glucosebalnce.com/wp-content/plugins/elementor/assets/js/packages/editor-responsive/editor-responsive.min.js
File size: 2.06 KB
MIME-type: text/plain
Charset: utf-8

!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,{getBreakpoints:function(){return o},getBreakpointsTree:function(){return f},useActivateBreakpoint:function(){return a},useActiveBreakpoint:function(){return u},useBreakpoints:function(){return d},useBreakpointsMap:function(){return l}});var n=window.elementorV2.editorV1Adapters,i=window.wp.i18n;function r(){const{breakpoints:e}=window.elementor?.config?.responsive||{};if(!e||0===Object.entries(e).length)return{minWidth:[],defaults:[],maxWidth:[]};const t=[],n=[],r=[{id:"desktop",label:(0,i.__)("Desktop","elementor")}];Object.entries(e).forEach(([e,i])=>{if(!i.is_enabled)return;const o={id:e,label:i.label,width:i.value,type:"min"===i.direction?"min-width":"max-width"};o.width?"min-width"===o.type?t.push(o):"max-width"===o.type&&n.push(o):r.push(o)});const o=(e,t)=>e.width&&t.width?t.width-e.width:0;return{minWidth:t.sort(o),defaults:r,maxWidth:n.sort(o)}}function o(){const{minWidth:e,defaults:t,maxWidth:n}=r();return[...e,...t,...n]}function d(){return(0,n.__privateUseListenTo)((0,n.v1ReadyEvent)(),o)}function u(){return(0,n.__privateUseListenTo)((0,n.windowEvent)("elementor/device-mode/change"),c)}function c(){const e=window;return e.elementor?.channels?.deviceMode?.request?.("currentMode")||null}var s=window.React;function a(){return(0,s.useCallback)(e=>(0,n.__privateRunCommand)("panel/change-device-mode",{device:e}),[])}function l(){const e=d().map(e=>[e.id,e]);return Object.fromEntries(e)}function f(){const{minWidth:e,defaults:t,maxWidth:n}=r(),[i]=t,o={...i,children:[]},d=e=>{let t=o;e.forEach(e=>{const n={...e,children:[]};t.children.push(n),t=n})};return d(e),d(n),o}(window.elementorV2=window.elementorV2||{}).editorResponsive=t}(),window.elementorV2.editorResponsive?.init?.();