| 1 |
(function(react, _elementor_ui, _wordpress_i18n) { |
| 2 |
|
| 3 |
//#region \0rolldown/runtime.js |
| 4 |
var __create = Object.create; |
| 5 |
var __defProp = Object.defineProperty; |
| 6 |
var __name = (target, value) => __defProp(target, "name", { |
| 7 |
value, |
| 8 |
configurable: true |
| 9 |
}); |
| 10 |
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; |
| 11 |
var __getOwnPropNames = Object.getOwnPropertyNames; |
| 12 |
var __getProtoOf = Object.getPrototypeOf; |
| 13 |
var __hasOwnProp = Object.prototype.hasOwnProperty; |
| 14 |
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports); |
| 15 |
var __copyProps = (to, from, except, desc) => { |
| 16 |
if (from && typeof from === "object" || typeof from === "function") { |
| 17 |
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { |
| 18 |
key = keys[i]; |
| 19 |
if (!__hasOwnProp.call(to, key) && key !== except) { |
| 20 |
__defProp(to, key, { |
| 21 |
get: ((k) => from[k]).bind(null, key), |
| 22 |
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable |
| 23 |
}); |
| 24 |
} |
| 25 |
} |
| 26 |
} |
| 27 |
return to; |
| 28 |
}; |
| 29 |
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { |
| 30 |
value: mod, |
| 31 |
enumerable: true |
| 32 |
}) : target, mod)); |
| 33 |
|
| 34 |
//#endregion |
| 35 |
react = __toESM(react); |
| 36 |
|
| 37 |
//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js |
| 38 |
function _classCallCheck(a, n) { |
| 39 |
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); |
| 40 |
} |
| 41 |
|
| 42 |
//#endregion |
| 43 |
//#region node_modules/@babel/runtime/helpers/esm/typeof.js |
| 44 |
function _typeof(o) { |
| 45 |
"@babel/helpers - typeof"; |
| 46 |
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { |
| 47 |
return typeof o; |
| 48 |
} : function(o) { |
| 49 |
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; |
| 50 |
}, _typeof(o); |
| 51 |
} |
| 52 |
|
| 53 |
//#endregion |
| 54 |
//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js |
| 55 |
function toPrimitive(t, r) { |
| 56 |
if ("object" != _typeof(t) || !t) return t; |
| 57 |
var e = t[Symbol.toPrimitive]; |
| 58 |
if (void 0 !== e) { |
| 59 |
var i = e.call(t, r || "default"); |
| 60 |
if ("object" != _typeof(i)) return i; |
| 61 |
throw new TypeError("@@toPrimitive must return a primitive value."); |
| 62 |
} |
| 63 |
return ("string" === r ? String : Number)(t); |
| 64 |
} |
| 65 |
|
| 66 |
//#endregion |
| 67 |
//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js |
| 68 |
function toPropertyKey(t) { |
| 69 |
var i = toPrimitive(t, "string"); |
| 70 |
return "symbol" == _typeof(i) ? i : i + ""; |
| 71 |
} |
| 72 |
|
| 73 |
//#endregion |
| 74 |
//#region node_modules/@babel/runtime/helpers/esm/createClass.js |
| 75 |
function _defineProperties(e, r) { |
| 76 |
for (var t = 0; t < r.length; t++) { |
| 77 |
var o = r[t]; |
| 78 |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); |
| 79 |
} |
| 80 |
} |
| 81 |
function _createClass(e, r, t) { |
| 82 |
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; |
| 83 |
} |
| 84 |
|
| 85 |
//#endregion |
| 86 |
//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js |
| 87 |
/** @license React v16.13.1 |
| 88 |
* react-is.development.js |
| 89 |
* |
| 90 |
* Copyright (c) Facebook, Inc. and its affiliates. |
| 91 |
* |
| 92 |
* This source code is licensed under the MIT license found in the |
| 93 |
* LICENSE file in the root directory of this source tree. |
| 94 |
*/ |
| 95 |
var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => { |
| 96 |
(function() { |
| 97 |
"use strict"; |
| 98 |
var hasSymbol = typeof Symbol === "function" && Symbol.for; |
| 99 |
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103; |
| 100 |
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106; |
| 101 |
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107; |
| 102 |
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108; |
| 103 |
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114; |
| 104 |
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109; |
| 105 |
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110; |
| 106 |
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111; |
| 107 |
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111; |
| 108 |
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112; |
| 109 |
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113; |
| 110 |
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120; |
| 111 |
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115; |
| 112 |
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116; |
| 113 |
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121; |
| 114 |
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117; |
| 115 |
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118; |
| 116 |
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119; |
| 117 |
function isValidElementType(type) { |
| 118 |
return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); |
| 119 |
} |
| 120 |
function typeOf(object) { |
| 121 |
if (typeof object === "object" && object !== null) { |
| 122 |
var $$typeof = object.$$typeof; |
| 123 |
switch ($$typeof) { |
| 124 |
case REACT_ELEMENT_TYPE: |
| 125 |
var type = object.type; |
| 126 |
switch (type) { |
| 127 |
case REACT_ASYNC_MODE_TYPE: |
| 128 |
case REACT_CONCURRENT_MODE_TYPE: |
| 129 |
case REACT_FRAGMENT_TYPE: |
| 130 |
case REACT_PROFILER_TYPE: |
| 131 |
case REACT_STRICT_MODE_TYPE: |
| 132 |
case REACT_SUSPENSE_TYPE: return type; |
| 133 |
default: |
| 134 |
var $$typeofType = type && type.$$typeof; |
| 135 |
switch ($$typeofType) { |
| 136 |
case REACT_CONTEXT_TYPE: |
| 137 |
case REACT_FORWARD_REF_TYPE: |
| 138 |
case REACT_LAZY_TYPE: |
| 139 |
case REACT_MEMO_TYPE: |
| 140 |
case REACT_PROVIDER_TYPE: return $$typeofType; |
| 141 |
default: return $$typeof; |
| 142 |
} |
| 143 |
} |
| 144 |
case REACT_PORTAL_TYPE: return $$typeof; |
| 145 |
} |
| 146 |
} |
| 147 |
} |
| 148 |
var AsyncMode = REACT_ASYNC_MODE_TYPE; |
| 149 |
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; |
| 150 |
var ContextConsumer = REACT_CONTEXT_TYPE; |
| 151 |
var ContextProvider = REACT_PROVIDER_TYPE; |
| 152 |
var Element = REACT_ELEMENT_TYPE; |
| 153 |
var ForwardRef = REACT_FORWARD_REF_TYPE; |
| 154 |
var Fragment = REACT_FRAGMENT_TYPE; |
| 155 |
var Lazy = REACT_LAZY_TYPE; |
| 156 |
var Memo = REACT_MEMO_TYPE; |
| 157 |
var Portal = REACT_PORTAL_TYPE; |
| 158 |
var Profiler = REACT_PROFILER_TYPE; |
| 159 |
var StrictMode = REACT_STRICT_MODE_TYPE; |
| 160 |
var Suspense = REACT_SUSPENSE_TYPE; |
| 161 |
var hasWarnedAboutDeprecatedIsAsyncMode = false; |
| 162 |
function isAsyncMode(object) { |
| 163 |
if (!hasWarnedAboutDeprecatedIsAsyncMode) { |
| 164 |
hasWarnedAboutDeprecatedIsAsyncMode = true; |
| 165 |
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API."); |
| 166 |
} |
| 167 |
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; |
| 168 |
} |
| 169 |
function isConcurrentMode(object) { |
| 170 |
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; |
| 171 |
} |
| 172 |
function isContextConsumer(object) { |
| 173 |
return typeOf(object) === REACT_CONTEXT_TYPE; |
| 174 |
} |
| 175 |
function isContextProvider(object) { |
| 176 |
return typeOf(object) === REACT_PROVIDER_TYPE; |
| 177 |
} |
| 178 |
function isElement(object) { |
| 179 |
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; |
| 180 |
} |
| 181 |
function isForwardRef(object) { |
| 182 |
return typeOf(object) === REACT_FORWARD_REF_TYPE; |
| 183 |
} |
| 184 |
function isFragment(object) { |
| 185 |
return typeOf(object) === REACT_FRAGMENT_TYPE; |
| 186 |
} |
| 187 |
function isLazy(object) { |
| 188 |
return typeOf(object) === REACT_LAZY_TYPE; |
| 189 |
} |
| 190 |
function isMemo(object) { |
| 191 |
return typeOf(object) === REACT_MEMO_TYPE; |
| 192 |
} |
| 193 |
function isPortal(object) { |
| 194 |
return typeOf(object) === REACT_PORTAL_TYPE; |
| 195 |
} |
| 196 |
function isProfiler(object) { |
| 197 |
return typeOf(object) === REACT_PROFILER_TYPE; |
| 198 |
} |
| 199 |
function isStrictMode(object) { |
| 200 |
return typeOf(object) === REACT_STRICT_MODE_TYPE; |
| 201 |
} |
| 202 |
function isSuspense(object) { |
| 203 |
return typeOf(object) === REACT_SUSPENSE_TYPE; |
| 204 |
} |
| 205 |
exports.AsyncMode = AsyncMode; |
| 206 |
exports.ConcurrentMode = ConcurrentMode; |
| 207 |
exports.ContextConsumer = ContextConsumer; |
| 208 |
exports.ContextProvider = ContextProvider; |
| 209 |
exports.Element = Element; |
| 210 |
exports.ForwardRef = ForwardRef; |
| 211 |
exports.Fragment = Fragment; |
| 212 |
exports.Lazy = Lazy; |
| 213 |
exports.Memo = Memo; |
| 214 |
exports.Portal = Portal; |
| 215 |
exports.Profiler = Profiler; |
| 216 |
exports.StrictMode = StrictMode; |
| 217 |
exports.Suspense = Suspense; |
| 218 |
exports.isAsyncMode = isAsyncMode; |
| 219 |
exports.isConcurrentMode = isConcurrentMode; |
| 220 |
exports.isContextConsumer = isContextConsumer; |
| 221 |
exports.isContextProvider = isContextProvider; |
| 222 |
exports.isElement = isElement; |
| 223 |
exports.isForwardRef = isForwardRef; |
| 224 |
exports.isFragment = isFragment; |
| 225 |
exports.isLazy = isLazy; |
| 226 |
exports.isMemo = isMemo; |
| 227 |
exports.isPortal = isPortal; |
| 228 |
exports.isProfiler = isProfiler; |
| 229 |
exports.isStrictMode = isStrictMode; |
| 230 |
exports.isSuspense = isSuspense; |
| 231 |
exports.isValidElementType = isValidElementType; |
| 232 |
exports.typeOf = typeOf; |
| 233 |
})(); |
| 234 |
})); |
| 235 |
|
| 236 |
//#endregion |
| 237 |
//#region node_modules/prop-types/node_modules/react-is/index.js |
| 238 |
var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 239 |
module.exports = require_react_is_development(); |
| 240 |
})); |
| 241 |
|
| 242 |
//#endregion |
| 243 |
//#region node_modules/object-assign/index.js |
| 244 |
/* |
| 245 |
object-assign |
| 246 |
(c) Sindre Sorhus |
| 247 |
@license MIT |
| 248 |
*/ |
| 249 |
var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 250 |
var getOwnPropertySymbols = Object.getOwnPropertySymbols; |
| 251 |
var hasOwnProperty = Object.prototype.hasOwnProperty; |
| 252 |
var propIsEnumerable = Object.prototype.propertyIsEnumerable; |
| 253 |
function toObject(val) { |
| 254 |
if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined"); |
| 255 |
return Object(val); |
| 256 |
} |
| 257 |
function shouldUseNative() { |
| 258 |
try { |
| 259 |
if (!Object.assign) return false; |
| 260 |
var test1 = /* @__PURE__ */ new String("abc"); |
| 261 |
test1[5] = "de"; |
| 262 |
if (Object.getOwnPropertyNames(test1)[0] === "5") return false; |
| 263 |
var test2 = {}; |
| 264 |
for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i; |
| 265 |
if (Object.getOwnPropertyNames(test2).map(function(n) { |
| 266 |
return test2[n]; |
| 267 |
}).join("") !== "0123456789") return false; |
| 268 |
var test3 = {}; |
| 269 |
"abcdefghijklmnopqrst".split("").forEach(function(letter) { |
| 270 |
test3[letter] = letter; |
| 271 |
}); |
| 272 |
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false; |
| 273 |
return true; |
| 274 |
} catch (err) { |
| 275 |
return false; |
| 276 |
} |
| 277 |
} |
| 278 |
module.exports = shouldUseNative() ? Object.assign : function(target, source) { |
| 279 |
var from; |
| 280 |
var to = toObject(target); |
| 281 |
var symbols; |
| 282 |
for (var s = 1; s < arguments.length; s++) { |
| 283 |
from = Object(arguments[s]); |
| 284 |
for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key]; |
| 285 |
if (getOwnPropertySymbols) { |
| 286 |
symbols = getOwnPropertySymbols(from); |
| 287 |
for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]]; |
| 288 |
} |
| 289 |
} |
| 290 |
return to; |
| 291 |
}; |
| 292 |
})); |
| 293 |
|
| 294 |
//#endregion |
| 295 |
//#region node_modules/prop-types/lib/ReactPropTypesSecret.js |
| 296 |
/** |
| 297 |
* Copyright (c) 2013-present, Facebook, Inc. |
| 298 |
* |
| 299 |
* This source code is licensed under the MIT license found in the |
| 300 |
* LICENSE file in the root directory of this source tree. |
| 301 |
*/ |
| 302 |
var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 303 |
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; |
| 304 |
module.exports = ReactPropTypesSecret; |
| 305 |
})); |
| 306 |
|
| 307 |
//#endregion |
| 308 |
//#region node_modules/prop-types/lib/has.js |
| 309 |
var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 310 |
module.exports = Function.call.bind(Object.prototype.hasOwnProperty); |
| 311 |
})); |
| 312 |
|
| 313 |
//#endregion |
| 314 |
//#region node_modules/prop-types/checkPropTypes.js |
| 315 |
/** |
| 316 |
* Copyright (c) 2013-present, Facebook, Inc. |
| 317 |
* |
| 318 |
* This source code is licensed under the MIT license found in the |
| 319 |
* LICENSE file in the root directory of this source tree. |
| 320 |
*/ |
| 321 |
var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 322 |
var printWarning = function() {}; |
| 323 |
var ReactPropTypesSecret = require_ReactPropTypesSecret(); |
| 324 |
var loggedTypeFailures = {}; |
| 325 |
var has = require_has(); |
| 326 |
printWarning = function(text) { |
| 327 |
var message = "Warning: " + text; |
| 328 |
if (typeof console !== "undefined") console.error(message); |
| 329 |
try { |
| 330 |
throw new Error(message); |
| 331 |
} catch (x) {} |
| 332 |
}; |
| 333 |
/** |
| 334 |
* Assert that the values match with the type specs. |
| 335 |
* Error messages are memorized and will only be shown once. |
| 336 |
* |
| 337 |
* @param {object} typeSpecs Map of name to a ReactPropType |
| 338 |
* @param {object} values Runtime values that need to be type-checked |
| 339 |
* @param {string} location e.g. "prop", "context", "child context" |
| 340 |
* @param {string} componentName Name of the component for error messages. |
| 341 |
* @param {?Function} getStack Returns the component stack. |
| 342 |
* @private |
| 343 |
*/ |
| 344 |
function checkPropTypes(typeSpecs, values, location, componentName, getStack) { |
| 345 |
for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) { |
| 346 |
var error; |
| 347 |
try { |
| 348 |
if (typeof typeSpecs[typeSpecName] !== "function") { |
| 349 |
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); |
| 350 |
err.name = "Invariant Violation"; |
| 351 |
throw err; |
| 352 |
} |
| 353 |
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); |
| 354 |
} catch (ex) { |
| 355 |
error = ex; |
| 356 |
} |
| 357 |
if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."); |
| 358 |
if (error instanceof Error && !(error.message in loggedTypeFailures)) { |
| 359 |
loggedTypeFailures[error.message] = true; |
| 360 |
var stack = getStack ? getStack() : ""; |
| 361 |
printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : "")); |
| 362 |
} |
| 363 |
} |
| 364 |
} |
| 365 |
/** |
| 366 |
* Resets warning cache when testing. |
| 367 |
* |
| 368 |
* @private |
| 369 |
*/ |
| 370 |
checkPropTypes.resetWarningCache = function() { |
| 371 |
loggedTypeFailures = {}; |
| 372 |
}; |
| 373 |
module.exports = checkPropTypes; |
| 374 |
})); |
| 375 |
|
| 376 |
//#endregion |
| 377 |
//#region node_modules/prop-types/factoryWithTypeCheckers.js |
| 378 |
/** |
| 379 |
* Copyright (c) 2013-present, Facebook, Inc. |
| 380 |
* |
| 381 |
* This source code is licensed under the MIT license found in the |
| 382 |
* LICENSE file in the root directory of this source tree. |
| 383 |
*/ |
| 384 |
var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 385 |
var ReactIs = require_react_is(); |
| 386 |
var assign = require_object_assign(); |
| 387 |
var ReactPropTypesSecret = require_ReactPropTypesSecret(); |
| 388 |
var has = require_has(); |
| 389 |
var checkPropTypes = require_checkPropTypes(); |
| 390 |
var printWarning = function() {}; |
| 391 |
printWarning = function(text) { |
| 392 |
var message = "Warning: " + text; |
| 393 |
if (typeof console !== "undefined") console.error(message); |
| 394 |
try { |
| 395 |
throw new Error(message); |
| 396 |
} catch (x) {} |
| 397 |
}; |
| 398 |
function emptyFunctionThatReturnsNull() { |
| 399 |
return null; |
| 400 |
} |
| 401 |
module.exports = function(isValidElement, throwOnDirectAccess) { |
| 402 |
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator; |
| 403 |
var FAUX_ITERATOR_SYMBOL = "@@iterator"; |
| 404 |
/** |
| 405 |
* Returns the iterator method function contained on the iterable object. |
| 406 |
* |
| 407 |
* Be sure to invoke the function with the iterable as context: |
| 408 |
* |
| 409 |
* var iteratorFn = getIteratorFn(myIterable); |
| 410 |
* if (iteratorFn) { |
| 411 |
* var iterator = iteratorFn.call(myIterable); |
| 412 |
* ... |
| 413 |
* } |
| 414 |
* |
| 415 |
* @param {?object} maybeIterable |
| 416 |
* @return {?function} |
| 417 |
*/ |
| 418 |
function getIteratorFn(maybeIterable) { |
| 419 |
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); |
| 420 |
if (typeof iteratorFn === "function") return iteratorFn; |
| 421 |
} |
| 422 |
/** |
| 423 |
* Collection of methods that allow declaration and validation of props that are |
| 424 |
* supplied to React components. Example usage: |
| 425 |
* |
| 426 |
* var Props = require('ReactPropTypes'); |
| 427 |
* var MyArticle = React.createClass({ |
| 428 |
* propTypes: { |
| 429 |
* // An optional string prop named "description". |
| 430 |
* description: Props.string, |
| 431 |
* |
| 432 |
* // A required enum prop named "category". |
| 433 |
* category: Props.oneOf(['News','Photos']).isRequired, |
| 434 |
* |
| 435 |
* // A prop named "dialog" that requires an instance of Dialog. |
| 436 |
* dialog: Props.instanceOf(Dialog).isRequired |
| 437 |
* }, |
| 438 |
* render: function() { ... } |
| 439 |
* }); |
| 440 |
* |
| 441 |
* A more formal specification of how these methods are used: |
| 442 |
* |
| 443 |
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) |
| 444 |
* decl := ReactPropTypes.{type}(.isRequired)? |
| 445 |
* |
| 446 |
* Each and every declaration produces a function with the same signature. This |
| 447 |
* allows the creation of custom validation functions. For example: |
| 448 |
* |
| 449 |
* var MyLink = React.createClass({ |
| 450 |
* propTypes: { |
| 451 |
* // An optional string or URI prop named "href". |
| 452 |
* href: function(props, propName, componentName) { |
| 453 |
* var propValue = props[propName]; |
| 454 |
* if (propValue != null && typeof propValue !== 'string' && |
| 455 |
* !(propValue instanceof URI)) { |
| 456 |
* return new Error( |
| 457 |
* 'Expected a string or an URI for ' + propName + ' in ' + |
| 458 |
* componentName |
| 459 |
* ); |
| 460 |
* } |
| 461 |
* } |
| 462 |
* }, |
| 463 |
* render: function() {...} |
| 464 |
* }); |
| 465 |
* |
| 466 |
* @internal |
| 467 |
*/ |
| 468 |
var ANONYMOUS = "<<anonymous>>"; |
| 469 |
var ReactPropTypes = { |
| 470 |
array: createPrimitiveTypeChecker("array"), |
| 471 |
bigint: createPrimitiveTypeChecker("bigint"), |
| 472 |
bool: createPrimitiveTypeChecker("boolean"), |
| 473 |
func: createPrimitiveTypeChecker("function"), |
| 474 |
number: createPrimitiveTypeChecker("number"), |
| 475 |
object: createPrimitiveTypeChecker("object"), |
| 476 |
string: createPrimitiveTypeChecker("string"), |
| 477 |
symbol: createPrimitiveTypeChecker("symbol"), |
| 478 |
any: createAnyTypeChecker(), |
| 479 |
arrayOf: createArrayOfTypeChecker, |
| 480 |
element: createElementTypeChecker(), |
| 481 |
elementType: createElementTypeTypeChecker(), |
| 482 |
instanceOf: createInstanceTypeChecker, |
| 483 |
node: createNodeChecker(), |
| 484 |
objectOf: createObjectOfTypeChecker, |
| 485 |
oneOf: createEnumTypeChecker, |
| 486 |
oneOfType: createUnionTypeChecker, |
| 487 |
shape: createShapeTypeChecker, |
| 488 |
exact: createStrictShapeTypeChecker |
| 489 |
}; |
| 490 |
/** |
| 491 |
* inlined Object.is polyfill to avoid requiring consumers ship their own |
| 492 |
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is |
| 493 |
*/ |
| 494 |
function is(x, y) { |
| 495 |
if (x === y) return x !== 0 || 1 / x === 1 / y; |
| 496 |
else return x !== x && y !== y; |
| 497 |
} |
| 498 |
/** |
| 499 |
* We use an Error-like object for backward compatibility as people may call |
| 500 |
* PropTypes directly and inspect their output. However, we don't use real |
| 501 |
* Errors anymore. We don't inspect their stack anyway, and creating them |
| 502 |
* is prohibitively expensive if they are created too often, such as what |
| 503 |
* happens in oneOfType() for any type before the one that matched. |
| 504 |
*/ |
| 505 |
function PropTypeError(message, data) { |
| 506 |
this.message = message; |
| 507 |
this.data = data && typeof data === "object" ? data : {}; |
| 508 |
this.stack = ""; |
| 509 |
} |
| 510 |
PropTypeError.prototype = Error.prototype; |
| 511 |
function createChainableTypeChecker(validate) { |
| 512 |
var manualPropTypeCallCache = {}; |
| 513 |
var manualPropTypeWarningCount = 0; |
| 514 |
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { |
| 515 |
componentName = componentName || ANONYMOUS; |
| 516 |
propFullName = propFullName || propName; |
| 517 |
if (secret !== ReactPropTypesSecret) { |
| 518 |
if (throwOnDirectAccess) { |
| 519 |
var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"); |
| 520 |
err.name = "Invariant Violation"; |
| 521 |
throw err; |
| 522 |
} else if (typeof console !== "undefined") { |
| 523 |
var cacheKey = componentName + ":" + propName; |
| 524 |
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) { |
| 525 |
printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."); |
| 526 |
manualPropTypeCallCache[cacheKey] = true; |
| 527 |
manualPropTypeWarningCount++; |
| 528 |
} |
| 529 |
} |
| 530 |
} |
| 531 |
if (props[propName] == null) { |
| 532 |
if (isRequired) { |
| 533 |
if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`.")); |
| 534 |
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`.")); |
| 535 |
} |
| 536 |
return null; |
| 537 |
} else return validate(props, propName, componentName, location, propFullName); |
| 538 |
} |
| 539 |
var chainedCheckType = checkType.bind(null, false); |
| 540 |
chainedCheckType.isRequired = checkType.bind(null, true); |
| 541 |
return chainedCheckType; |
| 542 |
} |
| 543 |
function createPrimitiveTypeChecker(expectedType) { |
| 544 |
function validate(props, propName, componentName, location, propFullName, secret) { |
| 545 |
var propValue = props[propName]; |
| 546 |
if (getPropType(propValue) !== expectedType) { |
| 547 |
var preciseType = getPreciseType(propValue); |
| 548 |
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType }); |
| 549 |
} |
| 550 |
return null; |
| 551 |
} |
| 552 |
return createChainableTypeChecker(validate); |
| 553 |
} |
| 554 |
function createAnyTypeChecker() { |
| 555 |
return createChainableTypeChecker(emptyFunctionThatReturnsNull); |
| 556 |
} |
| 557 |
function createArrayOfTypeChecker(typeChecker) { |
| 558 |
function validate(props, propName, componentName, location, propFullName) { |
| 559 |
if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf."); |
| 560 |
var propValue = props[propName]; |
| 561 |
if (!Array.isArray(propValue)) { |
| 562 |
var propType = getPropType(propValue); |
| 563 |
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array.")); |
| 564 |
} |
| 565 |
for (var i = 0; i < propValue.length; i++) { |
| 566 |
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret); |
| 567 |
if (error instanceof Error) return error; |
| 568 |
} |
| 569 |
return null; |
| 570 |
} |
| 571 |
return createChainableTypeChecker(validate); |
| 572 |
} |
| 573 |
function createElementTypeChecker() { |
| 574 |
function validate(props, propName, componentName, location, propFullName) { |
| 575 |
var propValue = props[propName]; |
| 576 |
if (!isValidElement(propValue)) { |
| 577 |
var propType = getPropType(propValue); |
| 578 |
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement.")); |
| 579 |
} |
| 580 |
return null; |
| 581 |
} |
| 582 |
return createChainableTypeChecker(validate); |
| 583 |
} |
| 584 |
function createElementTypeTypeChecker() { |
| 585 |
function validate(props, propName, componentName, location, propFullName) { |
| 586 |
var propValue = props[propName]; |
| 587 |
if (!ReactIs.isValidElementType(propValue)) { |
| 588 |
var propType = getPropType(propValue); |
| 589 |
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type.")); |
| 590 |
} |
| 591 |
return null; |
| 592 |
} |
| 593 |
return createChainableTypeChecker(validate); |
| 594 |
} |
| 595 |
function createInstanceTypeChecker(expectedClass) { |
| 596 |
function validate(props, propName, componentName, location, propFullName) { |
| 597 |
if (!(props[propName] instanceof expectedClass)) { |
| 598 |
var expectedClassName = expectedClass.name || ANONYMOUS; |
| 599 |
var actualClassName = getClassName(props[propName]); |
| 600 |
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`.")); |
| 601 |
} |
| 602 |
return null; |
| 603 |
} |
| 604 |
return createChainableTypeChecker(validate); |
| 605 |
} |
| 606 |
function createEnumTypeChecker(expectedValues) { |
| 607 |
if (!Array.isArray(expectedValues)) { |
| 608 |
if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."); |
| 609 |
else printWarning("Invalid argument supplied to oneOf, expected an array."); |
| 610 |
return emptyFunctionThatReturnsNull; |
| 611 |
} |
| 612 |
function validate(props, propName, componentName, location, propFullName) { |
| 613 |
var propValue = props[propName]; |
| 614 |
for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null; |
| 615 |
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { |
| 616 |
if (getPreciseType(value) === "symbol") return String(value); |
| 617 |
return value; |
| 618 |
}); |
| 619 |
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + ".")); |
| 620 |
} |
| 621 |
return createChainableTypeChecker(validate); |
| 622 |
} |
| 623 |
function createObjectOfTypeChecker(typeChecker) { |
| 624 |
function validate(props, propName, componentName, location, propFullName) { |
| 625 |
if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf."); |
| 626 |
var propValue = props[propName]; |
| 627 |
var propType = getPropType(propValue); |
| 628 |
if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object.")); |
| 629 |
for (var key in propValue) if (has(propValue, key)) { |
| 630 |
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); |
| 631 |
if (error instanceof Error) return error; |
| 632 |
} |
| 633 |
return null; |
| 634 |
} |
| 635 |
return createChainableTypeChecker(validate); |
| 636 |
} |
| 637 |
function createUnionTypeChecker(arrayOfTypeCheckers) { |
| 638 |
if (!Array.isArray(arrayOfTypeCheckers)) { |
| 639 |
printWarning("Invalid argument supplied to oneOfType, expected an instance of array."); |
| 640 |
return emptyFunctionThatReturnsNull; |
| 641 |
} |
| 642 |
for (var i = 0; i < arrayOfTypeCheckers.length; i++) { |
| 643 |
var checker = arrayOfTypeCheckers[i]; |
| 644 |
if (typeof checker !== "function") { |
| 645 |
printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."); |
| 646 |
return emptyFunctionThatReturnsNull; |
| 647 |
} |
| 648 |
} |
| 649 |
function validate(props, propName, componentName, location, propFullName) { |
| 650 |
var expectedTypes = []; |
| 651 |
for (var i = 0; i < arrayOfTypeCheckers.length; i++) { |
| 652 |
var checker = arrayOfTypeCheckers[i]; |
| 653 |
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); |
| 654 |
if (checkerResult == null) return null; |
| 655 |
if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType); |
| 656 |
} |
| 657 |
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : ""; |
| 658 |
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + ".")); |
| 659 |
} |
| 660 |
return createChainableTypeChecker(validate); |
| 661 |
} |
| 662 |
function createNodeChecker() { |
| 663 |
function validate(props, propName, componentName, location, propFullName) { |
| 664 |
if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode.")); |
| 665 |
return null; |
| 666 |
} |
| 667 |
return createChainableTypeChecker(validate); |
| 668 |
} |
| 669 |
function invalidValidatorError(componentName, location, propFullName, key, type) { |
| 670 |
return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."); |
| 671 |
} |
| 672 |
function createShapeTypeChecker(shapeTypes) { |
| 673 |
function validate(props, propName, componentName, location, propFullName) { |
| 674 |
var propValue = props[propName]; |
| 675 |
var propType = getPropType(propValue); |
| 676 |
if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); |
| 677 |
for (var key in shapeTypes) { |
| 678 |
var checker = shapeTypes[key]; |
| 679 |
if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); |
| 680 |
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); |
| 681 |
if (error) return error; |
| 682 |
} |
| 683 |
return null; |
| 684 |
} |
| 685 |
return createChainableTypeChecker(validate); |
| 686 |
} |
| 687 |
function createStrictShapeTypeChecker(shapeTypes) { |
| 688 |
function validate(props, propName, componentName, location, propFullName) { |
| 689 |
var propValue = props[propName]; |
| 690 |
var propType = getPropType(propValue); |
| 691 |
if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); |
| 692 |
for (var key in assign({}, props[propName], shapeTypes)) { |
| 693 |
var checker = shapeTypes[key]; |
| 694 |
if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); |
| 695 |
if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")); |
| 696 |
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); |
| 697 |
if (error) return error; |
| 698 |
} |
| 699 |
return null; |
| 700 |
} |
| 701 |
return createChainableTypeChecker(validate); |
| 702 |
} |
| 703 |
function isNode(propValue) { |
| 704 |
switch (typeof propValue) { |
| 705 |
case "number": |
| 706 |
case "string": |
| 707 |
case "undefined": return true; |
| 708 |
case "boolean": return !propValue; |
| 709 |
case "object": |
| 710 |
if (Array.isArray(propValue)) return propValue.every(isNode); |
| 711 |
if (propValue === null || isValidElement(propValue)) return true; |
| 712 |
var iteratorFn = getIteratorFn(propValue); |
| 713 |
if (iteratorFn) { |
| 714 |
var iterator = iteratorFn.call(propValue); |
| 715 |
var step; |
| 716 |
if (iteratorFn !== propValue.entries) { |
| 717 |
while (!(step = iterator.next()).done) if (!isNode(step.value)) return false; |
| 718 |
} else while (!(step = iterator.next()).done) { |
| 719 |
var entry = step.value; |
| 720 |
if (entry) { |
| 721 |
if (!isNode(entry[1])) return false; |
| 722 |
} |
| 723 |
} |
| 724 |
} else return false; |
| 725 |
return true; |
| 726 |
default: return false; |
| 727 |
} |
| 728 |
} |
| 729 |
function isSymbol(propType, propValue) { |
| 730 |
if (propType === "symbol") return true; |
| 731 |
if (!propValue) return false; |
| 732 |
if (propValue["@@toStringTag"] === "Symbol") return true; |
| 733 |
if (typeof Symbol === "function" && propValue instanceof Symbol) return true; |
| 734 |
return false; |
| 735 |
} |
| 736 |
function getPropType(propValue) { |
| 737 |
var propType = typeof propValue; |
| 738 |
if (Array.isArray(propValue)) return "array"; |
| 739 |
if (propValue instanceof RegExp) return "object"; |
| 740 |
if (isSymbol(propType, propValue)) return "symbol"; |
| 741 |
return propType; |
| 742 |
} |
| 743 |
function getPreciseType(propValue) { |
| 744 |
if (typeof propValue === "undefined" || propValue === null) return "" + propValue; |
| 745 |
var propType = getPropType(propValue); |
| 746 |
if (propType === "object") { |
| 747 |
if (propValue instanceof Date) return "date"; |
| 748 |
else if (propValue instanceof RegExp) return "regexp"; |
| 749 |
} |
| 750 |
return propType; |
| 751 |
} |
| 752 |
function getPostfixForTypeWarning(value) { |
| 753 |
var type = getPreciseType(value); |
| 754 |
switch (type) { |
| 755 |
case "array": |
| 756 |
case "object": return "an " + type; |
| 757 |
case "boolean": |
| 758 |
case "date": |
| 759 |
case "regexp": return "a " + type; |
| 760 |
default: return type; |
| 761 |
} |
| 762 |
} |
| 763 |
function getClassName(propValue) { |
| 764 |
if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS; |
| 765 |
return propValue.constructor.name; |
| 766 |
} |
| 767 |
ReactPropTypes.checkPropTypes = checkPropTypes; |
| 768 |
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; |
| 769 |
ReactPropTypes.PropTypes = ReactPropTypes; |
| 770 |
return ReactPropTypes; |
| 771 |
}; |
| 772 |
})); |
| 773 |
|
| 774 |
//#endregion |
| 775 |
//#region node_modules/prop-types/index.js |
| 776 |
var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 777 |
var ReactIs = require_react_is(); |
| 778 |
var throwOnDirectAccess = true; |
| 779 |
module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess); |
| 780 |
})); |
| 781 |
|
| 782 |
//#endregion |
| 783 |
//#region modules/atomic-opt-in/assets/js/panel-chip/components/popover-card.js |
| 784 |
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types()); |
| 785 |
var popoverData = { |
| 786 |
image: "https://assets.elementor.com/v4-promotion/v1/images/atomic_elements_section_296.png", |
| 787 |
image_alt: (0, _wordpress_i18n.__)("Atomic Elements", "elementor"), |
| 788 |
title: (0, _wordpress_i18n.__)("Atomic Elements", "elementor"), |
| 789 |
description: [(0, _wordpress_i18n.__)("Modern, flexible elements designed for reusable styles and cleaner layouts.", "elementor")], |
| 790 |
upgrade_text: (0, _wordpress_i18n.__)("Learn more", "elementor"), |
| 791 |
upgrade_url: "https://go.elementor.com/wp-dash-opt-in-v4-help-center/" |
| 792 |
}; |
| 793 |
var PopoverCard = function PopoverCard(_ref) { |
| 794 |
var doClose = _ref.doClose; |
| 795 |
var title = popoverData === null || popoverData === void 0 ? void 0 : popoverData.title; |
| 796 |
var description = popoverData === null || popoverData === void 0 ? void 0 : popoverData.description; |
| 797 |
var imgSrc = popoverData === null || popoverData === void 0 ? void 0 : popoverData.image; |
| 798 |
var imgAlt = popoverData === null || popoverData === void 0 ? void 0 : popoverData.image_alt; |
| 799 |
var ctaText = popoverData === null || popoverData === void 0 ? void 0 : popoverData.upgrade_text; |
| 800 |
var ctaUrl = popoverData === null || popoverData === void 0 ? void 0 : popoverData.upgrade_url; |
| 801 |
return /*#__PURE__*/ react.default.createElement(_elementor_ui.ClickAwayListener, { |
| 802 |
disableReactTree: true, |
| 803 |
mouseEvent: "onMouseDown", |
| 804 |
touchEvent: "onTouchStart", |
| 805 |
onClickAway: doClose |
| 806 |
}, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { |
| 807 |
sx: { width: 296 }, |
| 808 |
"data-testid": "e-popover-card" |
| 809 |
}, /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { |
| 810 |
direction: "row", |
| 811 |
alignItems: "center", |
| 812 |
py: 1, |
| 813 |
px: 2 |
| 814 |
}, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { variant: "subtitle2" }, title), /*#__PURE__*/ react.default.createElement(_elementor_ui.CloseButton, { |
| 815 |
edge: "end", |
| 816 |
sx: { ml: "auto" }, |
| 817 |
slotProps: { icon: { fontSize: "small" } }, |
| 818 |
onClick: doClose |
| 819 |
})), /*#__PURE__*/ react.default.createElement(_elementor_ui.Image, { |
| 820 |
src: imgSrc, |
| 821 |
alt: imgAlt, |
| 822 |
sx: { |
| 823 |
height: 150, |
| 824 |
width: "100%" |
| 825 |
} |
| 826 |
}), /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { px: 2 }, 1 === description.length ? /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { |
| 827 |
variant: "body2", |
| 828 |
color: "secondary", |
| 829 |
sx: { |
| 830 |
pt: 1.5, |
| 831 |
pb: 1 |
| 832 |
} |
| 833 |
}, description[0]) : /*#__PURE__*/ react.default.createElement(_elementor_ui.List, { sx: { pl: 2 } }, description.map(function(text, index) { |
| 834 |
return /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, { |
| 835 |
key: index, |
| 836 |
sx: { |
| 837 |
listStyle: "disc", |
| 838 |
display: "list-item", |
| 839 |
color: "text.secondary", |
| 840 |
p: 0 |
| 841 |
} |
| 842 |
}, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { |
| 843 |
variant: "body2", |
| 844 |
color: "secondary" |
| 845 |
}, text)); |
| 846 |
}))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { |
| 847 |
pt: 1, |
| 848 |
pb: 1.5, |
| 849 |
px: 2 |
| 850 |
}, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, { |
| 851 |
variant: "contained", |
| 852 |
size: "small", |
| 853 |
color: "inherit", |
| 854 |
onClick: function redirectHandler() { |
| 855 |
window.open(ctaUrl, "_blank"); |
| 856 |
return doClose(); |
| 857 |
}, |
| 858 |
sx: { |
| 859 |
ml: "auto", |
| 860 |
bgcolor: "text.primary", |
| 861 |
color: "background.paper", |
| 862 |
"&:hover": { |
| 863 |
bgcolor: "text.secondary", |
| 864 |
color: "background.paper" |
| 865 |
} |
| 866 |
} |
| 867 |
}, ctaText)))); |
| 868 |
}; |
| 869 |
PopoverCard.propTypes = { doClose: import_prop_types.default.func }; |
| 870 |
|
| 871 |
//#endregion |
| 872 |
//#region modules/atomic-opt-in/assets/js/panel-chip/app.js |
| 873 |
var App = function App(props) { |
| 874 |
return /*#__PURE__*/ react.default.createElement(_elementor_ui.DirectionProvider, { rtl: props.isRTL }, /*#__PURE__*/ react.default.createElement(_elementor_ui.LocalizationProvider, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.ThemeProvider, { |
| 875 |
colorScheme: props.colorScheme, |
| 876 |
palette: "unstable" |
| 877 |
}, /*#__PURE__*/ react.default.createElement(_elementor_ui.Infotip, { |
| 878 |
content: /*#__PURE__*/ react.default.createElement(PopoverCard, { doClose: props.onClose }), |
| 879 |
placement: "right", |
| 880 |
arrow: true, |
| 881 |
open: true, |
| 882 |
disableHoverListener: true, |
| 883 |
PopperProps: { modifiers: [{ |
| 884 |
name: "offset", |
| 885 |
options: { offset: [-24, 8] } |
| 886 |
}] } |
| 887 |
}, /*#__PURE__*/ react.default.createElement("span", null))))); |
| 888 |
}; |
| 889 |
App.propTypes = { |
| 890 |
colorScheme: import_prop_types.default.oneOf([ |
| 891 |
"auto", |
| 892 |
"light", |
| 893 |
"dark" |
| 894 |
]), |
| 895 |
isRTL: import_prop_types.default.bool, |
| 896 |
onClose: import_prop_types.default.func.isRequired |
| 897 |
}; |
| 898 |
|
| 899 |
//#endregion |
| 900 |
//#region node_modules/react-dom/client.js |
| 901 |
var require_client = /* @__PURE__ */ __commonJSMin(((exports) => { |
| 902 |
var m = (globalThis.ReactDOM); |
| 903 |
var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; |
| 904 |
exports.createRoot = function(c, o) { |
| 905 |
i.usingClientEntryPoint = true; |
| 906 |
try { |
| 907 |
return m.createRoot(c, o); |
| 908 |
} finally { |
| 909 |
i.usingClientEntryPoint = false; |
| 910 |
} |
| 911 |
}; |
| 912 |
})); |
| 913 |
|
| 914 |
//#endregion |
| 915 |
//#region assets/dev/js/editor/utils/preview-iframe-listeners.js |
| 916 |
var import_client = require_client(); |
| 917 |
function bindPreviewIframeEvents(callback) { |
| 918 |
var _elementor; |
| 919 |
var iframeDocument = (_elementor = elementor) === null || _elementor === void 0 || (_elementor = _elementor.$preview) === null || _elementor === void 0 || (_elementor = _elementor[0]) === null || _elementor === void 0 ? void 0 : _elementor.contentDocument; |
| 920 |
if (!iframeDocument) return function() {}; |
| 921 |
var handleEvent = function handleEvent() { |
| 922 |
return callback(); |
| 923 |
}; |
| 924 |
iframeDocument.addEventListener("click", handleEvent); |
| 925 |
iframeDocument.addEventListener("keydown", handleEvent); |
| 926 |
return function() { |
| 927 |
iframeDocument.removeEventListener("click", handleEvent); |
| 928 |
iframeDocument.removeEventListener("keydown", handleEvent); |
| 929 |
}; |
| 930 |
} |
| 931 |
|
| 932 |
//#endregion |
| 933 |
//#region modules/atomic-opt-in/assets/js/panel-chip/app-manager.js |
| 934 |
var AppManager = /*#__PURE__*/ function() { |
| 935 |
function AppManager() { |
| 936 |
_classCallCheck(this, AppManager); |
| 937 |
this.popover = null; |
| 938 |
this.onRoute = function() {}; |
| 939 |
this.unbindIframeEvents = function() {}; |
| 940 |
} |
| 941 |
return _createClass(AppManager, [ |
| 942 |
{ |
| 943 |
key: "mount", |
| 944 |
value: function mount(targetNode, selectors) { |
| 945 |
var _elementor; |
| 946 |
var _elementor$getPrefere; |
| 947 |
var _this = this; |
| 948 |
if (this.popover) return; |
| 949 |
var wrapperElement = targetNode === null || targetNode === void 0 ? void 0 : targetNode.closest(selectors.wrapperElement); |
| 950 |
var rootElement = wrapperElement === null || wrapperElement === void 0 ? void 0 : wrapperElement.querySelector(selectors.reactAnchor); |
| 951 |
if (!rootElement) return; |
| 952 |
this.attachEditorEventListeners(); |
| 953 |
this.popover = (0, import_client.createRoot)(rootElement); |
| 954 |
var colorScheme = ((_elementor = elementor) === null || _elementor === void 0 || (_elementor$getPrefere = _elementor.getPreferences) === null || _elementor$getPrefere === void 0 ? void 0 : _elementor$getPrefere.call(_elementor, "ui_theme")) || "auto"; |
| 955 |
var isRTL = elementorCommon.config.isRTL; |
| 956 |
this.popover.render(/*#__PURE__*/ react.default.createElement(App, { |
| 957 |
colorScheme, |
| 958 |
isRTL, |
| 959 |
onClose: function onClose() { |
| 960 |
return _this.unmount(); |
| 961 |
} |
| 962 |
})); |
| 963 |
} |
| 964 |
}, |
| 965 |
{ |
| 966 |
key: "unmount", |
| 967 |
value: function unmount() { |
| 968 |
if (this.popover) { |
| 969 |
this.detachEditorEventListeners(); |
| 970 |
this.popover.unmount(); |
| 971 |
this.unbindIframeEvents(); |
| 972 |
} |
| 973 |
this.popover = null; |
| 974 |
} |
| 975 |
}, |
| 976 |
{ |
| 977 |
key: "setupRouteListener", |
| 978 |
value: function setupRouteListener() { |
| 979 |
var _this2 = this; |
| 980 |
this.onRoute = function(component, route) { |
| 981 |
if (route !== "panel/elements/categories" && route !== "panel/editor/content") return; |
| 982 |
_this2.unmount(); |
| 983 |
}; |
| 984 |
$e.routes.on("run:after", this.onRoute); |
| 985 |
} |
| 986 |
}, |
| 987 |
{ |
| 988 |
key: "attachEditorEventListeners", |
| 989 |
value: function attachEditorEventListeners() { |
| 990 |
var _this3 = this; |
| 991 |
this.unbindIframeEvents = bindPreviewIframeEvents(function() { |
| 992 |
return _this3.unmount(); |
| 993 |
}); |
| 994 |
this.setupRouteListener(); |
| 995 |
} |
| 996 |
}, |
| 997 |
{ |
| 998 |
key: "detachEditorEventListeners", |
| 999 |
value: function detachEditorEventListeners() { |
| 1000 |
$e.routes.off("run:after", this.onRoute); |
| 1001 |
} |
| 1002 |
} |
| 1003 |
]); |
| 1004 |
}(); |
| 1005 |
|
| 1006 |
//#endregion |
| 1007 |
//#region modules/atomic-opt-in/assets/js/panel-chip/panel-chip.js |
| 1008 |
new (/* @__PURE__ */ function() { |
| 1009 |
function AlphaChipApp() { |
| 1010 |
_classCallCheck(this, AlphaChipApp); |
| 1011 |
this.appManager = new AppManager(); |
| 1012 |
this.initializeListener(); |
| 1013 |
} |
| 1014 |
return _createClass(AlphaChipApp, [{ |
| 1015 |
key: "initializeListener", |
| 1016 |
value: function initializeListener() { |
| 1017 |
var _this = this; |
| 1018 |
document.addEventListener("alphachip:open", function(event) { |
| 1019 |
var targetElement = event.detail.target; |
| 1020 |
var chipElement = targetElement === null || targetElement === void 0 ? void 0 : targetElement.find(".elementor-panel-heading-category-chip")[0]; |
| 1021 |
if (!chipElement) return; |
| 1022 |
_this.appManager.mount(chipElement, { |
| 1023 |
wrapperElement: ".elementor-panel-category-title", |
| 1024 |
reactAnchor: ".e-promotion-react-wrapper" |
| 1025 |
}); |
| 1026 |
}); |
| 1027 |
} |
| 1028 |
}]); |
| 1029 |
}())(); |
| 1030 |
|
| 1031 |
//#endregion |
| 1032 |
})(React, elementorV2.ui, wp.i18n); |
| 1033 |
//# sourceMappingURL=editor-v4-opt-in-alphachip.js.map |