Socket
Socket
Sign inDemoInstall

@pesdk/getty-images-integration

Package Overview
Dependencies
155
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

880

dist/getty-images.es.js

@@ -1,15 +0,15 @@

import { AdvancedUIToolControlBar as We, Tool as j, calculateAdvancedUIToolControlBarMeasurements as fr, AdvancedTransformControlBarItem as se, ExportFormat as dr, deepmergeAll as vr, PhotoEditorSDKUI as pr } from "photoeditorsdk/no-polyfills";
import { AdvancedUIToolControlBar as T, Tool as a, calculateAdvancedUIToolControlBarMeasurements as R, AdvancedTransformControlBarItem as O, ExportFormat as k, deepmergeAll as D, PhotoEditorSDKUI as F } from "photoeditorsdk/no-polyfills";
export * from "photoeditorsdk/no-polyfills";
import Ze from "react";
import { createGettyImagesToolbar as mr, SortOrder as gr, createGettyImagesExportButton as hr, ImageSize as Rr, DisplaySizeName as Er, SearchImagesEndpoint as Tr, GettyImagesMetaInformation as br } from "@pesdk/getty-images";
import G from "react";
import { createGettyImagesToolbar as N, SortOrder as $, createGettyImagesExportButton as q, ImageSize as z, DisplaySizeName as L, SearchImagesEndpoint as K, GettyImagesMetaInformation as W } from "@pesdk/getty-images";
export * from "@pesdk/getty-images";
import _r from "styled-components";
var F = {}, wr = {
import H from "styled-components";
var f = {}, J = {
get exports() {
return F;
return f;
},
set exports(a) {
F = a;
set exports(t) {
f = t;
}
}, M = {};
}, d = {};
/*

@@ -20,49 +20,31 @@ object-assign

*/
var ue, ke;
function De() {
if (ke)
return ue;
ke = 1;
var a = Object.getOwnPropertySymbols, m = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
function g(T) {
if (T == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(T);
}
function y() {
try {
if (!Object.assign)
return !1;
var T = new String("abc");
if (T[5] = "de", Object.getOwnPropertyNames(T)[0] === "5")
return !1;
for (var w = {}, f = 0; f < 10; f++)
w["_" + String.fromCharCode(f)] = f;
var v = Object.getOwnPropertyNames(w).map(function(c) {
return w[c];
});
if (v.join("") !== "0123456789")
return !1;
var R = {};
return "abcdefghijklmnopqrst".split("").forEach(function(c) {
R[c] = c;
}), Object.keys(Object.assign({}, R)).join("") === "abcdefghijklmnopqrst";
} catch {
var v = Object.getOwnPropertySymbols, V = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
function Q(t) {
if (t == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(t);
}
function X() {
try {
if (!Object.assign)
return !1;
}
var t = new String("abc");
if (t[5] = "de", Object.getOwnPropertyNames(t)[0] === "5")
return !1;
for (var e = {}, o = 0; o < 10; o++)
e["_" + String.fromCharCode(o)] = o;
var r = Object.getOwnPropertyNames(e).map(function(s) {
return e[s];
});
if (r.join("") !== "0123456789")
return !1;
var n = {};
return "abcdefghijklmnopqrst".split("").forEach(function(s) {
n[s] = s;
}), Object.keys(Object.assign({}, n)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
return ue = y() ? Object.assign : function(T, w) {
for (var f, v = g(T), R, c = 1; c < arguments.length; c++) {
f = Object(arguments[c]);
for (var b in f)
m.call(f, b) && (v[b] = f[b]);
if (a) {
R = a(f);
for (var E = 0; E < R.length; E++)
l.call(f, R[E]) && (v[R[E]] = f[R[E]]);
}
}
return v;
}, ue;
}
X();
/** @license React v17.0.1

@@ -76,605 +58,25 @@ * react-jsx-runtime.production.min.js

*/
var Ue;
function Or() {
if (Ue)
return M;
Ue = 1, De();
var a = Ze, m = 60103;
if (M.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
var l = Symbol.for;
m = l("react.element"), M.Fragment = l("react.fragment");
}
var g = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = Object.prototype.hasOwnProperty, T = { key: !0, ref: !0, __self: !0, __source: !0 };
function w(f, v, R) {
var c, b = {}, E = null, x = null;
R !== void 0 && (E = "" + R), v.key !== void 0 && (E = "" + v.key), v.ref !== void 0 && (x = v.ref);
for (c in v)
y.call(v, c) && !T.hasOwnProperty(c) && (b[c] = v[c]);
if (f && f.defaultProps)
for (c in v = f.defaultProps, v)
b[c] === void 0 && (b[c] = v[c]);
return { $$typeof: m, type: f, key: E, ref: x, props: b, _owner: g.current };
}
return M.jsx = w, M.jsxs = w, M;
var Z = G, w = 60103;
d.Fragment = 60107;
if (typeof Symbol == "function" && Symbol.for) {
var C = Symbol.for;
w = C("react.element"), d.Fragment = C("react.fragment");
}
var ce = {};
/** @license React v17.0.1
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Ve;
function yr() {
return Ve || (Ve = 1, function(a) {
process.env.NODE_ENV !== "production" && function() {
var m = Ze, l = De(), g = 60103, y = 60106;
a.Fragment = 60107;
var T = 60108, w = 60114, f = 60109, v = 60110, R = 60112, c = 60113, b = 60120, E = 60115, x = 60116, V = 60121, B = 60122, J = 60117, G = 60129, S = 60131;
if (typeof Symbol == "function" && Symbol.for) {
var d = Symbol.for;
g = d("react.element"), y = d("react.portal"), a.Fragment = d("react.fragment"), T = d("react.strict_mode"), w = d("react.profiler"), f = d("react.provider"), v = d("react.context"), R = d("react.forward_ref"), c = d("react.suspense"), b = d("react.suspense_list"), E = d("react.memo"), x = d("react.lazy"), V = d("react.block"), B = d("react.server.block"), J = d("react.fundamental"), d("react.scope"), d("react.opaque.id"), G = d("react.debug_trace_mode"), d("react.offscreen"), S = d("react.legacy_hidden");
}
var k = typeof Symbol == "function" && Symbol.iterator, Me = "@@iterator";
function Ae(e) {
if (e === null || typeof e != "object")
return null;
var r = k && e[k] || e[Me];
return typeof r == "function" ? r : null;
}
var W = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function O(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
Ne("error", e, t);
}
}
function Ne(e, r, t) {
{
var n = W.ReactDebugCurrentFrame, s = n.getStackAddendum();
s !== "" && (r += "%s", t = t.concat([s]));
var u = t.map(function(i) {
return "" + i;
});
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
}
}
var Ye = !1;
function Fe(e) {
return !!(typeof e == "string" || typeof e == "function" || e === a.Fragment || e === w || e === G || e === T || e === c || e === b || e === S || Ye || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === E || e.$$typeof === f || e.$$typeof === v || e.$$typeof === R || e.$$typeof === J || e.$$typeof === V || e[0] === B));
}
function Be(e, r, t) {
var n = r.displayName || r.name || "";
return e.displayName || (n !== "" ? t + "(" + n + ")" : t);
}
function le(e) {
return e.displayName || "Context";
}
function C(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && O("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;
if (typeof e == "string")
return e;
switch (e) {
case a.Fragment:
return "Fragment";
case y:
return "Portal";
case w:
return "Profiler";
case T:
return "StrictMode";
case c:
return "Suspense";
case b:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case v:
var r = e;
return le(r) + ".Consumer";
case f:
var t = e;
return le(t._context) + ".Provider";
case R:
return Be(e, e.render, "ForwardRef");
case E:
return C(e.type);
case V:
return C(e._render);
case x: {
var n = e, s = n._payload, u = n._init;
try {
return C(u(s));
} catch {
return null;
}
}
}
return null;
}
var A = 0, fe, de, ve, pe, me, ge, he;
function Re() {
}
Re.__reactDisabledLog = !0;
function Je() {
{
if (A === 0) {
fe = console.log, de = console.info, ve = console.warn, pe = console.error, me = console.group, ge = console.groupCollapsed, he = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: Re,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
A++;
}
}
function Ge() {
{
if (A--, A === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: l({}, e, {
value: fe
}),
info: l({}, e, {
value: de
}),
warn: l({}, e, {
value: ve
}),
error: l({}, e, {
value: pe
}),
group: l({}, e, {
value: me
}),
groupCollapsed: l({}, e, {
value: ge
}),
groupEnd: l({}, e, {
value: he
})
});
}
A < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var q = W.ReactCurrentDispatcher, ee;
function X(e, r, t) {
{
if (ee === void 0)
try {
throw Error();
} catch (s) {
var n = s.stack.trim().match(/\n( *(at )?)/);
ee = n && n[1] || "";
}
return `
` + ee + e;
}
}
var re = !1, z;
{
var Xe = typeof WeakMap == "function" ? WeakMap : Map;
z = new Xe();
}
function Ee(e, r) {
if (!e || re)
return "";
{
var t = z.get(e);
if (t !== void 0)
return t;
}
var n;
re = !0;
var s = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = q.current, q.current = null, Je();
try {
if (r) {
var i = function() {
throw Error();
};
if (Object.defineProperty(i.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(i, []);
} catch (P) {
n = P;
}
Reflect.construct(e, [], i);
} else {
try {
i.call();
} catch (P) {
n = P;
}
e.call(i.prototype);
}
} else {
try {
throw Error();
} catch (P) {
n = P;
}
e();
}
} catch (P) {
if (P && n && typeof P.stack == "string") {
for (var o = P.stack.split(`
`), _ = n.stack.split(`
`), p = o.length - 1, h = _.length - 1; p >= 1 && h >= 0 && o[p] !== _[h]; )
h--;
for (; p >= 1 && h >= 0; p--, h--)
if (o[p] !== _[h]) {
if (p !== 1 || h !== 1)
do
if (p--, h--, h < 0 || o[p] !== _[h]) {
var I = `
` + o[p].replace(" at new ", " at ");
return typeof e == "function" && z.set(e, I), I;
}
while (p >= 1 && h >= 0);
break;
}
}
} finally {
re = !1, q.current = u, Ge(), Error.prepareStackTrace = s;
}
var D = e ? e.displayName || e.name : "", Pe = D ? X(D) : "";
return typeof e == "function" && z.set(e, Pe), Pe;
}
function Te(e, r, t) {
return Ee(e, !1);
}
function ze(e) {
var r = e.prototype;
return !!(r && r.isReactComponent);
}
function L(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return Ee(e, ze(e));
if (typeof e == "string")
return X(e);
switch (e) {
case c:
return X("Suspense");
case b:
return X("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case R:
return Te(e.render);
case E:
return L(e.type, r, t);
case V:
return Te(e._render);
case x: {
var n = e, s = n._payload, u = n._init;
try {
return L(u(s), r, t);
} catch {
}
}
}
return "";
}
var be = {}, _e = W.ReactDebugCurrentFrame;
function $(e) {
if (e) {
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
_e.setExtraStackFrame(t);
} else
_e.setExtraStackFrame(null);
}
function Le(e, r, t, n, s) {
{
var u = Function.call.bind(Object.prototype.hasOwnProperty);
for (var i in e)
if (u(e, i)) {
var o = void 0;
try {
if (typeof e[i] != "function") {
var _ = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw _.name = "Invariant Violation", _;
}
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (p) {
o = p;
}
o && !(o instanceof Error) && ($(s), O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), $(null)), o instanceof Error && !(o.message in be) && (be[o.message] = !0, $(s), O("Failed %s type: %s", t, o.message), $(null));
}
}
}
var N = W.ReactCurrentOwner, te = Object.prototype.hasOwnProperty, $e = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, we, Oe, ne;
ne = {};
function Ke(e) {
if (te.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
if (r && r.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function Qe(e) {
if (te.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;
if (r && r.isReactWarning)
return !1;
}
return e.key !== void 0;
}
function He(e, r) {
if (typeof e.ref == "string" && N.current && r && N.current.stateNode !== r) {
var t = C(N.current.type);
ne[t] || (O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(N.current.type), e.ref), ne[t] = !0);
}
}
function qe(e, r) {
{
var t = function() {
we || (we = !0, O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};
t.isReactWarning = !0, Object.defineProperty(e, "key", {
get: t,
configurable: !0
});
}
}
function er(e, r) {
{
var t = function() {
Oe || (Oe = !0, O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
get: t,
configurable: !0
});
}
}
var rr = function(e, r, t, n, s, u, i) {
var o = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: g,
// Built-in properties that belong on the element
type: e,
key: r,
ref: t,
props: i,
// Record the component responsible for creating this element.
_owner: u
};
return o._store = {}, Object.defineProperty(o._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(o, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: n
}), Object.defineProperty(o, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: s
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
};
function tr(e, r, t, n, s) {
{
var u, i = {}, o = null, _ = null;
t !== void 0 && (o = "" + t), Qe(r) && (o = "" + r.key), Ke(r) && (_ = r.ref, He(r, s));
for (u in r)
te.call(r, u) && !$e.hasOwnProperty(u) && (i[u] = r[u]);
if (e && e.defaultProps) {
var p = e.defaultProps;
for (u in p)
i[u] === void 0 && (i[u] = p[u]);
}
if (o || _) {
var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
o && qe(i, h), _ && er(i, h);
}
return rr(e, o, _, s, n, N.current, i);
}
}
var ae = W.ReactCurrentOwner, ye = W.ReactDebugCurrentFrame;
function Z(e) {
if (e) {
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
ye.setExtraStackFrame(t);
} else
ye.setExtraStackFrame(null);
}
var oe;
oe = !1;
function ie(e) {
return typeof e == "object" && e !== null && e.$$typeof === g;
}
function Ce() {
{
if (ae.current) {
var e = C(ae.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function nr(e) {
{
if (e !== void 0) {
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
return `
Check your code at ` + r + ":" + t + ".";
}
return "";
}
}
var je = {};
function ar(e) {
{
var r = Ce();
if (!r) {
var t = typeof e == "string" ? e : e.displayName || e.name;
t && (r = `
Check the top-level render call using <` + t + ">.");
}
return r;
}
}
function xe(e, r) {
{
if (!e._store || e._store.validated || e.key != null)
return;
e._store.validated = !0;
var t = ar(r);
if (je[t])
return;
je[t] = !0;
var n = "";
e && e._owner && e._owner !== ae.current && (n = " It was passed a child from " + C(e._owner.type) + "."), Z(e), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), Z(null);
}
}
function Se(e, r) {
{
if (typeof e != "object")
return;
if (Array.isArray(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
ie(n) && xe(n, r);
}
else if (ie(e))
e._store && (e._store.validated = !0);
else if (e) {
var s = Ae(e);
if (typeof s == "function" && s !== e.entries)
for (var u = s.call(e), i; !(i = u.next()).done; )
ie(i.value) && xe(i.value, r);
}
}
}
function or(e) {
{
var r = e.type;
if (r == null || typeof r == "string")
return;
var t;
if (typeof r == "function")
t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === R || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === E))
t = r.propTypes;
else
return;
if (t) {
var n = C(r);
Le(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !oe) {
oe = !0;
var s = C(r);
O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ir(e) {
{
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
var n = r[t];
if (n !== "children" && n !== "key") {
Z(e), O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), Z(null);
break;
}
}
e.ref !== null && (Z(e), O("Invalid attribute `ref` supplied to `React.Fragment`."), Z(null));
}
}
function Ie(e, r, t, n, s, u) {
{
var i = Fe(e);
if (!i) {
var o = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var _ = nr(s);
_ ? o += _ : o += Ce();
var p;
e === null ? p = "null" : Array.isArray(e) ? p = "array" : e !== void 0 && e.$$typeof === g ? (p = "<" + (C(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, o);
}
var h = tr(e, r, t, s, u);
if (h == null)
return h;
if (i) {
var I = r.children;
if (I !== void 0)
if (n)
if (Array.isArray(I)) {
for (var D = 0; D < I.length; D++)
Se(I[D], e);
Object.freeze && Object.freeze(I);
} else
O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Se(I, e);
}
return e === a.Fragment ? ir(h) : or(h), h;
}
}
function sr(e, r, t) {
return Ie(e, r, t, !0);
}
function ur(e, r, t) {
return Ie(e, r, t, !1);
}
var cr = ur, lr = sr;
a.jsx = cr, a.jsxs = lr;
}();
}(ce)), ce;
var tt = Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, et = Object.prototype.hasOwnProperty, ot = { key: !0, ref: !0, __self: !0, __source: !0 };
function S(t, e, o) {
var r, n = {}, s = null, i = null;
o !== void 0 && (s = "" + o), e.key !== void 0 && (s = "" + e.key), e.ref !== void 0 && (i = e.ref);
for (r in e)
et.call(e, r) && !ot.hasOwnProperty(r) && (n[r] = e[r]);
if (t && t.defaultProps)
for (r in e = t.defaultProps, e)
n[r] === void 0 && (n[r] = e[r]);
return { $$typeof: w, type: t, key: s, ref: i, props: n, _owner: tt.current };
}
(function(a) {
process.env.NODE_ENV === "production" ? a.exports = Or() : a.exports = yr();
})(wr);
const Cr = F.Fragment, U = F.jsx, jr = F.jsxs, xr = () => /* @__PURE__ */ U(
d.jsx = S;
d.jsxs = S;
(function(t) {
t.exports = d;
})(J);
const rt = f.Fragment, l = f.jsx, nt = f.jsxs, st = () => /* @__PURE__ */ l(
"svg",

@@ -687,104 +89,104 @@ {

xmlSpace: "preserve",
children: /* @__PURE__ */ U("g", { fill: "currentColor", children: /* @__PURE__ */ U("path", { d: "M67.022 22.86c-4.467-.143-7.421.997-9.238 3.277-2.423-1.995-6.36-3.277-9.692-3.277-10.224 0-15.524 6.41-15.524 12.894 0 4.489 2.575 7.338 5.831 9.832-1.741.499-6.134 3.205-6.134 6.767 0 3.99 4.013 4.916 5.83 5.984v.143c-3.407 0-7.117 2.208-7.117 6.84 0 5.841 6.966 8.832 17.568 8.832 12.57 0 18.25-5.698 18.25-10.97 0-14.818-25.898-6.696-25.898-12.681 0-2.137 3.256-2.28 7.344-2.28 9.844 0 14.842-4.987 14.842-11.968 0-2.85-.909-4.987-2.12-6.554 1.44-.855 3.862-.855 6.058-.855V22.86zM46.274 59.904c9.087 0 11.888 2.565 11.888 4.275 0 1.282-2.044 4.132-8.102 4.132-7.875 0-10.45-1.283-10.45-4.132 0-1.567 1.515-4.275 6.664-4.275zm1.742-18.237c-4.013 0-6.816-2.706-6.816-6.127s2.803-6.126 6.816-6.126c3.558 0 6.436 2.706 6.436 6.126s-2.878 6.127-6.436 6.127z" }) })
children: /* @__PURE__ */ l("g", { fill: "currentColor", children: /* @__PURE__ */ l("path", { d: "M67.022 22.86c-4.467-.143-7.421.997-9.238 3.277-2.423-1.995-6.36-3.277-9.692-3.277-10.224 0-15.524 6.41-15.524 12.894 0 4.489 2.575 7.338 5.831 9.832-1.741.499-6.134 3.205-6.134 6.767 0 3.99 4.013 4.916 5.83 5.984v.143c-3.407 0-7.117 2.208-7.117 6.84 0 5.841 6.966 8.832 17.568 8.832 12.57 0 18.25-5.698 18.25-10.97 0-14.818-25.898-6.696-25.898-12.681 0-2.137 3.256-2.28 7.344-2.28 9.844 0 14.842-4.987 14.842-11.968 0-2.85-.909-4.987-2.12-6.554 1.44-.855 3.862-.855 6.058-.855V22.86zM46.274 59.904c9.087 0 11.888 2.565 11.888 4.275 0 1.282-2.044 4.132-8.102 4.132-7.875 0-10.45-1.283-10.45-4.132 0-1.567 1.515-4.275 6.664-4.275zm1.742-18.237c-4.013 0-6.816-2.706-6.816-6.127s2.803-6.126 6.816-6.126c3.558 0 6.436 2.706 6.436 6.126s-2.878 6.127-6.436 6.127z" }) })
}
), Sr = _r(We)`
), at = H(T)`
* button {
margin-right: 8px;
}
* button:nth-child(${(a) => a.columns}n) {
* button:nth-child(${(t) => t.columns}n) {
margin-right: 0px;
}
`, Ir = ({
columns: a,
tool: m,
reverse: l,
children: g
}) => m === j.CUSTOM ? /* @__PURE__ */ U(
Sr,
`, it = ({
columns: t,
tool: e,
reverse: o,
children: r
}) => e === a.CUSTOM ? /* @__PURE__ */ l(
at,
{
tool: m,
reverse: l,
columns: a,
children: g
tool: e,
reverse: o,
columns: t,
children: r
}
) : /* @__PURE__ */ U(We, { tool: m, reverse: l, children: g }), K = 112, Q = 8, H = 24 * 2;
let Y = 2;
const Pr = (a) => {
) : /* @__PURE__ */ l(T, { tool: e, reverse: o, children: r }), g = 112, h = 8, y = 24 * 2;
let u = 2;
const ct = (t) => {
if (document) {
let g = null;
if (typeof a == "string" ? a.startsWith(".") ? [g] = document.getElementsByClassName(a.slice(1)) : a.startsWith("#") && (g = document.getElementById(a.slice(1))) : g = a, g && g.getBoundingClientRect) {
const { width: y } = g.getBoundingClientRect();
y * 0.4 > 4 * K + 3 * Q + H ? Y = 4 : y * 0.4 > 3 * K + 2 * Q + H && (Y = 3);
let r = null;
if (typeof t == "string" ? t.startsWith(".") ? [r] = document.getElementsByClassName(t.slice(1)) : t.startsWith("#") && (r = document.getElementById(t.slice(1))) : r = t, r && r.getBoundingClientRect) {
const { width: n } = r.getBoundingClientRect();
n * 0.4 > 4 * g + 3 * h + y ? u = 4 : n * 0.4 > 3 * g + 2 * h + y && (u = 3);
}
}
const m = fr(
K * 2 + Q * 1 + H
), l = {
const e = R(
g * 2 + h * 1 + y
), o = {
advancedUIToolControlBar: {
width: K * Y + Q * (Y - 1) + H + 4
width: g * u + h * (u - 1) + y + 4
}
};
return [Y, m, l];
}, kr = ({
tool: a,
children: m
}) => /* @__PURE__ */ jr(Cr, { children: [
m,
a === j.CUSTOM && /* @__PURE__ */ U(br, {})
] }), Ur = (a) => {
a();
}, Vr = (a) => {
console.log(`Caught error ${a}`);
}, Wr = (a) => () => fetch(a, {
return [u, e, o];
}, lt = ({
tool: t,
children: e
}) => /* @__PURE__ */ nt(rt, { children: [
e,
t === a.CUSTOM && /* @__PURE__ */ l(W, {})
] }), mt = (t) => {
t();
}, ut = (t) => {
console.log(`Caught error ${t}`);
}, ft = (t) => () => fetch(t, {
method: "GET",
redirect: "follow"
}).then((l) => l.json()).then((l) => l.access_token), Zr = ({
gettyAPIKey: a,
gettyTokenURL: m,
fetchToken: l,
onError: g,
onConfirm: y,
searchParams: T,
container: w,
imageSize: f = Rr.Large,
displaySize: v = Er.High,
endpoint: R = Tr.Creative,
...c
}).then((o) => o.json()).then((o) => o.access_token), dt = ({
gettyAPIKey: t,
gettyTokenURL: e,
fetchToken: o,
onError: r,
onConfirm: n,
searchParams: s,
container: i,
imageSize: c = z.Large,
displaySize: I = L.High,
endpoint: x = K.Creative,
...j
}) => {
!l && !m && console.warn(
!o && !e && console.warn(
"The client is not able to access the Getty API if gettyTokenURL or fetchToken is not provided."
);
const b = mr({
apiKey: a,
fetchToken: l || Wr(m || ""),
const E = N({
apiKey: t,
fetchToken: o || ft(e || ""),
searchParams: {
sort_order: gr.BestMatch,
sort_order: $.BestMatch,
orientations: [],
phrase: "Adventure",
...T
...s
},
showFilters: !0,
displaySize: v,
onError: g || Vr,
endpoint: R
}), E = hr({
onConfirm: y || Ur,
imageSize: f
}), x = window.atob("eyJhcGlfdG9rZW4iOiJCc1pfbDJGMGc4UWFHNmg2UDJabm13IiwiYXBwX2lkZW50aWZpZXJzIjpbXSwiYXZhaWxhYmxlX2FjdGlvbnMiOltdLCJkb21haW5zIjpbImFwaS5waG90b2VkaXRvcnNkay5jb20iXSwiZW50ZXJwcmlzZV9saWNlbnNlIjpmYWxzZSwiZXhwaXJlc19hdCI6bnVsbCwiZmVhdHVyZXMiOlsibm9leHBvcnR0cmFja2luZyIsImV4cG9ydCIsIndoaXRlbGFiZWwiLCJ0cmFuc2Zvcm0iXSwiaXNzdWVkX2F0IjoxNjQ5MjQ5MzM1LCJtaW5pbXVtX3Nka192ZXJzaW9uIjoiMS4wIiwib3duZXIiOiJpbWcubHkgR21iSCIsInBsYXRmb3JtIjoiSFRNTDUiLCJwcm9kdWN0cyI6WyJwZXNkayJdLCJ2ZXJzaW9uIjoiMi40Iiwic2lnbmF0dXJlIjoiSmNEKzFOQnY2aU1YY3lxWU1KYzZXOERIb1gxSkVlalZZM1VETXJJUVdvTGlxMlpGbzB1YmFZNU9hVy96YisrQW9wTlpvdlNXRTBlRjdFREt3UkdZVnRHaEZnK2dOS28wdk1CT3NZZWl1RnhtYkdkRTdUYlpmaW56a0dlSHpRRUhnQnpjcE5aQjJ1NWwwY3VYejdleStQVGNiQjJJR2ZROWdmV0VQK3owN3lDYzFmM0lWeTdUR3JFNzJRUGE5OXVxNjJnaXUwdGQrZkN0dkc0VDlBUDFvZmxyWCtOekNjb1ZLUDQwN0ZqSTZiZXJuaEsxY1RwKzRGT3k5NG9LeDJRNTg4aDE1ZzZPbUwvMW55TUE1Sm9jQU1uV2oyT3ZTQVEyMEl3TW1FNEFjcytHdnFLZWlHSlZHVjVGSHdMRTMrVnhWOGlvbW1WbmxhZXBUSC9BRkRIc1ZaYlliOS9nTk9IUEVuRW1DRDNTdTBMUm1nQjY0QXIyY2Q1K082VzloY3ZIZmhqT2ZMZlZhNEFmd2xqY3JOSlpjOTF6TGZwMmkxRFhSdGw2MFBtZGorczVWem1KbkZ5VTBFZzVxTlM4WHcwY3RPZUxDN3psNEx2V0xNWTl6K3JOTFdrd09peVozTmhiY3pBVUx6VXRFckJkZVdoTlZHRFQvbThiU1h4enRvUmE2VEUrWkYvNTZwTXdJM0ZxRHlsQ01nM3lvQVJDZ0szcjVrLzYvQlVKajRTNzZhdlFYMVY2dFNhUlhxUkRsSlEzbHVBY3UrVnpMMVZLMFJSazVmNlRVZmZha2MyRlRweUNCRmhGd0VXZjhzd2FLTWg4bE1kM21RbnM3aHpDUzhvR0FSaXVSNHBoTUcrTGlKUmJnWUo5TFQvTzA5Z2UxZTJodW9jRDkxSVN1K0k9In0="), [V, B, J] = Pr(w), G = {
container: w,
license: x,
displaySize: I,
onError: r || ut,
endpoint: x
}), U = q({
onConfirm: n || mt,
imageSize: c
}), _ = window.atob(""), [B, M, A] = ct(i), P = {
container: i,
license: _,
assetBaseUrl: "https://cdn.img.ly/packages/imgly/photoeditorsdk/latest/assets",
image: "",
defaultTool: j.CUSTOM,
tools: [j.CUSTOM, j.TRANSFORM],
[j.CUSTOM]: {
icon: xr,
toolControlBar: b,
measurements: J
defaultTool: a.CUSTOM,
tools: [a.CUSTOM, a.TRANSFORM],
[a.CUSTOM]: {
icon: st,
toolControlBar: E,
measurements: A
},
transform: {
advancedUIToolControlBarOrder: [
se.ResetTransformButton,
se.Separator,
se.Items
O.ResetTransformButton,
O.Separator,
O.Items
]

@@ -795,3 +197,3 @@ },

enableDownload: !1,
exportType: dr.DATA_URL
exportType: k.DATA_URL
}

@@ -802,6 +204,6 @@ },

buttons: {
mainCanvasActionExport: E
mainCanvasActionExport: U
},
windowContainer: kr,
advancedUIToolControlBar: (d) => /* @__PURE__ */ U(Ir, { ...d, columns: V })
windowContainer: lt,
advancedUIToolControlBar: (b) => /* @__PURE__ */ l(it, { ...b, columns: B })
},

@@ -819,14 +221,14 @@ languages: {

},
measurements: B
measurements: M
}
}, S = vr([G, c]);
return S.tools ? S.tools.some((k) => !!(typeof k == "string" && k === j.CUSTOM || Array.isArray(k) && k.includes(j.CUSTOM))) || (S.tools = [j.CUSTOM, ...S.tools]) : S.tools = [j.CUSTOM], S;
}, Yr = {
init: (a) => {
const m = Zr(a);
return pr.init(m);
}, m = D([P, j]);
return m.tools ? m.tools.some((p) => !!(typeof p == "string" && p === a.CUSTOM || Array.isArray(p) && p.includes(a.CUSTOM))) || (m.tools = [a.CUSTOM, ...m.tools]) : m.tools = [a.CUSTOM], m;
}, Ot = {
init: (t) => {
const e = dt(t);
return F.init(e);
}
};
export {
Yr as PhotoEditorSDKUI
Ot as PhotoEditorSDKUI
};

5

package.json
{
"name": "@pesdk/getty-images-integration",
"version": "1.0.0",
"version": "1.0.1",
"main": "./dist/getty-images.umd.js",

@@ -38,4 +38,3 @@ "module": "./dist/getty-images.es.js",

"build": "vite build && vite build -c vite.config.umd.ts",
"copy:files": "rm -rf ./example/public/* && mv ./dist/* ./example/public/",
"release": "yarn build && yarn publish"
"copy:files": "rm -rf ./example/public/* && mv ./dist/* ./example/public/"
},

@@ -42,0 +41,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc