dvadf
File manager - Edit - /home/centroca/public_html/wp/wp-content/plugins/elementor/assets/js/packages/unlock-v4-promo/unlock-v4-promo.min.js
Back
!function(){"use strict";var e={10189:function(e){e.exports=window.elementorV2.editorElementsPanelNotice},18998:function(e){e.exports=window.elementorV2.httpClient},24778:function(e){e.exports=window.elementorV2.editorNotifications},27723:function(e){e.exports=window.wp.i18n},46400:function(e){e.exports=window.elementorV2.editorCurrentUser},58755:function(e,t,o){var n,r=Object.create,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,__copyProps=(e,t,o,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))s.call(e,r)||r===o||i(e,r,{get:()=>t[r],enumerable:!(n=l(t,r))||n.enumerable});return e},m={};((e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})})(m,{AtomicElementsPromo:()=>AtomicElementsPromo,init:()=>init}),e.exports=(n=m,__copyProps(i({},"__esModule",{value:!0}),n));var p=o(10189),u=((e,t,o)=>(o=null!=e?r(c(e)):{},__copyProps(!t&&e&&e.__esModule?o:i(o,"default",{value:e,enumerable:!0}),e)))(o(97557)),d=o(97557),f=o(46400),x=o(24778),w=o(70374),_=o(18998),y=o(79513),g=o(27723),b=o(97557),v=o(46400),E=o(24778),h=o(27723),P="atomic_elements_promo",usePromoSuppressedMessage=()=>{const[e,t]=(0,v.useSuppressedMessage)(P),o=(0,b.useCallback)(()=>{e||(t(),(0,E.notify)({type:"default",message:(0,h.__)("You can enable the Atomic editor anytime from Editor Settings.","elementor"),id:P}))},[e,t]);return[e,o]},k="https://assets.elementor.com/v4-promotion/v1/images/atomic_elements_section_260.png",C="https://go.elementor.com/wp-dash-opt-in-v4-help-center/";function AtomicElementsPromo(){const[e,t]=usePromoSuppressedMessage(),o=(0,f.getCurrentUser)()?.capabilities?.includes("manage_options"),n=(0,d.useCallback)(async()=>{try{(await(0,_.httpService)().post("elementor/v1/operations/opt-in-v4")).data.success&&window.location.reload()}catch{(0,x.notify)({type:"error",message:(0,g.__)("Failed to activate Atomic elements","elementor"),id:"atomic-elements-promo-error"})}},[]);return e||!o?null:u.createElement(w.ThemeProvider,null,u.createElement(y.Divider,null),u.createElement(y.Box,{sx:{bgcolor:"background.default",display:"flex",flexDirection:"column"}},u.createElement(y.Box,{sx:{display:"flex",alignItems:"center",gap:1,pl:2.5,pr:1,py:1}},u.createElement(y.Typography,{variant:"subtitle2",sx:{flexGrow:1,gap:1,display:"flex",alignItems:"center"}},(0,g.__)("Atomic Elements","elementor"),u.createElement(y.Chip,{label:(0,g.__)("New","elementor"),size:"tiny",variant:"standard",color:"secondary"})),u.createElement(y.CloseButton,{slotProps:{icon:{fontSize:"small"}},onClick:t})),u.createElement(y.Box,{sx:{maxHeight:205,mx:2,overflow:"hidden"}},u.createElement(y.Box,{component:"img",src:k,alt:"",sx:{width:"100%",objectFit:"cover",objectPosition:"center",display:"block"}})),u.createElement(y.Box,{sx:{pl:2.5,pr:4,pt:2}},u.createElement(y.Typography,{variant:"caption",color:"text.tertiary"},(0,g.__)("Build with modern, flexible elements designed for reusable styles and cleaner layouts. Your existing site and content stay exactly the same.","elementor"))),u.createElement(y.Box,{sx:{display:"flex",justifyContent:"flex-end",gap:1,pb:1.5,pl:2,pr:2.5,pt:1}},u.createElement(y.Button,{variant:"text",size:"small",color:"secondary",href:C,target:"_blank"},(0,g.__)("Learn more","elementor")),u.createElement(y.Button,{variant:"contained",size:"small",color:"inherit",sx:{bgcolor:"text.primary",color:"background.paper","&:hover":{bgcolor:"text.secondary",color:"background.paper"}},onClick:n},(0,g.__)("Activate now","elementor")))),u.createElement(y.Divider,null))}function init(){const{experimentalFeatures:e={}}=window.elementorCommon?.config||{},t=e?.e_atomic_elements,o=e?.container;!t&&o&&(0,p.register)(AtomicElementsPromo)}},70374:function(e){e.exports=window.elementorV2.editorUi},79513:function(e){e.exports=window.elementorV2.ui},97557:function(e){e.exports=window.React}},t={};var o=function __webpack_require__(o){var n=t[o];if(void 0!==n)return n.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,__webpack_require__),r.exports}(58755);(window.elementorV2=window.elementorV2||{}).unlockV4Promo=o}(),window.elementorV2.unlockV4Promo?.init?.();
dvadf
dvadf
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings