@fluidattacks/design 1.2.3 → 1.2.4-pr-0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/design.js CHANGED
@@ -196,9 +196,9 @@ Check the render method of \``+i+"`."}return""}function De(i){if(i!==void 0){var
196
196
 
197
197
  Check your code at `+l+":"+p+"."}return""}function mn(i){return i!=null?De(i.__source):""}var Rr={};function yn(i){var l=Pt();if(!l){var p=typeof i=="string"?i:i.displayName||i.name;p&&(l=`
198
198
 
199
- Check the top-level render call using <`+p+">.")}return l}function pr(i,l){if(!(!i._store||i._store.validated||i.key!=null)){i._store.validated=!0;var p=yn(l);if(!Rr[p]){Rr[p]=!0;var v="";i&&i._owner&&i._owner!==pe.current&&(v=" It was passed a child from "+de(i._owner.type)+"."),ne(i),j('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',p,v),ne(null)}}}function $t(i,l){if(typeof i=="object"){if(Array.isArray(i))for(var p=0;p<i.length;p++){var v=i[p];Ue(v)&&pr(v,l)}else if(Ue(i))i._store&&(i._store.validated=!0);else if(i){var w=O(i);if(typeof w=="function"&&w!==i.entries)for(var N=w.call(i),x;!(x=N.next()).done;)Ue(x.value)&&pr(x.value,l)}}}function Pr(i){{var l=i.type;if(l==null||typeof l=="string")return;var p=de(l),v;if(typeof l=="function")v=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===A||l.$$typeof===q))v=l.propTypes;else return;v?(ne(i),e(v,i.props,"prop",p,we.getStackAddendum),ne(null)):l.PropTypes!==void 0&&!qe&&(qe=!0,j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")),typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gr(i){{ne(i);for(var l=Object.keys(i.props),p=0;p<l.length;p++){var v=l[p];if(v!=="children"&&v!=="key"){j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v);break}}i.ref!==null&&j("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null)}}function $r(i,l,p){var v=Te(i);if(!v){var w="";(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(w+=" 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 N=mn(l);N?w+=N:w+=Pt();var x;i===null?x="null":Array.isArray(i)?x="array":i!==void 0&&i.$$typeof===o?(x="<"+(de(i.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):x=typeof i,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,w)}var T=qt.apply(this,arguments);if(T==null)return T;if(v)for(var se=2;se<arguments.length;se++)$t(arguments[se],i);return i===u?gr(T):Pr(T),T}var kr=!1;function vn(i){var l=$r.bind(null,i);return l.type=i,kr||(kr=!0,re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(l,"type",{enumerable:!1,get:function(){return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:i}),i}}),l}function _n(i,l,p){for(var v=zt.apply(this,arguments),w=2;w<arguments.length;w++)$t(arguments[w],v.type);return Pr(v),v}try{var jr=Object.freeze({}),bn=new Map([[jr,null]]),mr=new Set([jr]);bn.set(0,0),mr.add(0)}catch{}var wn=$r,En=_n,Sn=vn,Cn={map:Rt,forEach:Qt,count:Je,toArray:lr,only:Ht};H.Children=Cn,H.Component=oe,H.Fragment=u,H.Profiler=h,H.PureComponent=_t,H.StrictMode=f,H.Suspense=$,H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ae,H.cloneElement=En,H.createContext=fr,H.createElement=wn,H.createFactory=Sn,H.createRef=tt,H.forwardRef=hr,H.isValidElement=Ue,H.lazy=dr,H.memo=c,H.useCallback=le,H.useContext=b,H.useDebugValue=ie,H.useEffect=L,H.useImperativeHandle=ee,H.useLayoutEffect=M,H.useMemo=K,H.useReducer=Y,H.useRef=U,H.useState=C,H.version=r}();process.env.NODE_ENV==="production"?Cr.exports=J:Cr.exports=H;var Xt=Cr.exports,In={sdkSemver:"1.13.0",techVersion:Xt.version,sdkCode:"J"},zl=function(t){$s(e,t);function e(r){var n=t.call(this,r)||this;return n.imageRef=Xt.createRef(),n}return e.prototype.componentDidMount=function(){this.htmlLayerInstance=new kc(this.imageRef.current,this.props.cldImg,this.props.plugins,In)},e.prototype.componentDidUpdate=function(){Kr(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,In)},e.prototype.componentWillUnmount=function(){Kr(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},e.prototype.render=function(){var r=this.props;r.cldImg,r.plugins;var n=ks(r,["cldImg","plugins"]);if(yo())return Xt.createElement("img",Sr({suppressHydrationWarning:!0},n,{ref:this.imageRef}));var o=vl(this.props.plugins,this.props.cldImg,In);return Xt.createElement("img",Sr({},n,{src:o}))},e}(Xt.Component),Gl=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(t){$s(e,t);function e(r){var n=t.call(this,r)||this;return n.videoRef=Cr.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}return e.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new cl(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},e.prototype.componentDidUpdate=function(){Kr(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},e.prototype.componentWillUnmount=function(){Kr(this.htmlVideoLayerInstance.htmlPluginState)},e.prototype.getVideoAttributes=function(){var r=this,n={};return Gl.forEach(function(o){o in r.props&&(n[o]=r.props[o])}),n},e.prototype.attachRef=function(r){this.videoRef.current=r;var n=this.props.innerRef;n&&(n instanceof Function?n(r):n.current=r)},e.prototype.render=function(){var r=this.props;r.cldVid,r.cldPoster,r.plugins,r.sources,r.innerRef,r.useFetchFormat;var n=ks(r,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Xt.createElement("video",Sr({},n,{ref:this.attachRef}))},e})(Cr.exports.Component);function Yl(t){return!(typeof t!="object"||t instanceof Array)}class Wl{filterOutNonSupportedKeys(e,r){const n=Object.create({});return Yl(e)?(Object.keys(e).forEach(o=>{r.indexOf(o)>=0?n[o]=e[o]:console.warn("Warning - unsupported key provided to configuration: ",o)}),n):Object.create({})}}const fi=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class So extends Wl{constructor(e){super();const r=this.filterOutNonSupportedKeys(e,fi);Object.assign(this,{secure:!0},r)}extend(e){const r=this.filterOutNonSupportedKeys(e,fi);return new So(Object.assign({},this,r))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}class xr{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return typeof e<"u"&&e!==null&&e!==""}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(e){return this.delimiter=e,this}}class Ql extends Error{constructor(e="Unsupported"){super(e)}}function Co(t){return new Ql(t)}function Hl(){return this._qualifierModel||{error:Co(`unsupported qualifier ${this.constructor.name}`)}}class Jl{constructor(){this._qualifierModel={}}toJson(){return Hl.apply(this)}}class pn extends Jl{constructor(e,r){super(),this.delimiter="_",this.key=e,r instanceof xr?this.qualifierValue=r:(this.qualifierValue=new xr,this.qualifierValue.addValue(r))}toString(){const{key:e,delimiter:r,qualifierValue:n}=this;return`${e}${r}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class xt extends pn{constructor(e,r){let n;r?n=new xr([e,`${r}`]).setDelimiter(":"):n=e,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function Kl(t,e){const r=Array.from(t.entries());return e.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function Xl(){var t,e,r;const n=this._actionModel&&Object.keys(this._actionModel).length,o=(r=(e=(t=this._actionModel)===null||t===void 0?void 0:t.source)===null||e===void 0?void 0:e.transformation)===null||r===void 0?void 0:r.error;return o&&o instanceof Error?{error:o}:n?this._actionModel:{error:Co(`unsupported action ${this.constructor.name}`)}}class Zl{constructor(){this._actionModel={}}toJson(){return Xl.apply(this)}}class xo extends Zl{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),Kl(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if(typeof e=="string"){const[r,n]=e.toLowerCase().split("_");r==="fl"?this.flags.push(new xt(n)):this.qualifiers.set(r,new pn(r,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return typeof e=="string"?this.flags.push(new xt(e)):e instanceof xt&&this.flags.push(e),this}addValueToQualifier(e,r){return this.qualifiers.get(e).addValue(r),this}}function ef(t){return t&&(t.match(/^#/)?`rgb:${t.substr(1)}`:t)}class tf extends xo{constructor(e){super(),this._actionModel={},this.addQualifier(new pn("b",new xr(ef(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:r}=e;return new this(r)}}class di{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:Co(`unsupported action ${this.constructor.name}`)}}}function rf(t){const e=t;return"error"in e&&!!e.error}function nf(){return new xt("lossy")}function of(){return new xt("preserve_transparency")}function sf(t){return new xt("progressive",t)}class af extends xr{constructor(e){super(e),this.val=e}getValue(){return this.val}}function Nt(t){const e={};return Object.keys(t).forEach(r=>{e[t[r]]=r}),e}const cf={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},uf={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},lf={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},ff={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},df={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},hf={444:"CHROMA_444",420:"CHROMA_420"},pf={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Nt(hf);Nt(pf);Nt(cf);const gf=Nt(uf);Nt(lf);Nt(ff);Nt(df);class mf extends xo{constructor(e,r,n){super(),this._actionModel={};let o;r instanceof af?o=r.getValue():o=r,this._actionModel.actionType=gf[e],this._actionModel[n]=o,this.addQualifier(new pn(e,r))}}class yf extends xt{constructor(e){super("progressive",e)}}class Zr extends mf{constructor(e,r){super(e,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(nf()),this}progressive(e){return e instanceof yf?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(sf(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(of()),this}static fromJson(e){const{formatType:r,lossy:n,progressive:o,preserveTransparency:a}=e;let u;return r?u=new this("f",r):u=new this("f"),o&&(o.mode?u.progressive(o.mode):u.progressive()),n&&u.lossy(),a&&u.preserveTransparency(),u}}class gn{constructor(){this.actions=[]}addAction(e){let r;if(typeof e=="string"){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new di(e)}else r=e;return this.actions.push(r),this}addTransformation(e){return e instanceof gn?this.actions=this.actions.concat(e.actions):this.actions.push(new di(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new Zr("q",e)),this}format(e){return this.addAction(new Zr("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new tf(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const r=new xo;let n=e;return typeof e=="string"&&(n=new xt(e)),r.addQualifier(n),this.addAction(r)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const r of this.actions){const n=r.toJson();if(rf(n))return n;e.push(n)}return{actions:e}}}class vf extends gn{}class _f extends gn{}function bf(t){return t.match(/^https?:\//)}function wf(t){return t.indexOf("/")<0}function Ef(t){return t.match(/^v[0-9]+/)}function Sf(t,e){const r=e.secure,n=e.privateCdn,o=e.cname,a=e.secureDistribution;return!r&&!o?`http://res.cloudinary.com/${t}`:r&&!a&&n?`https://${t}-res.cloudinary.com`:r&&!a?`https://res.cloudinary.com/${t}`:r&&a&&n?`https://${a}`:r&&a?`https://${a}/${t}`:!r&&o?`http://${o}/${t}`:"ERROR"}function Cf(t){return t||"image"}function xf(t){return t||"upload"}function Af(t,e,r){const n=r!==!1;return e?`v${e}`:Ef(t)||bf(t)||wf(t)?"":n?"v1":""}function Ao(t,e,r){let n=e>>0,o=String(r);return t.length>n?String(t):(n=n-t.length,n>o.length&&(o+=Of(o,n/o.length)),o.slice(0,n)+String(t))}function Of(t,e){let r=e,n="";for(;r>0;)n+=t,r--;return n}const Tf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",en={};let hi=0;Tf.split("").forEach(t=>{let e=hi.toString(2);e=Ao(e,6,"0"),en[e]=t,hi++});function Rf(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().join(".")}function Pf(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").map(e=>{const r=+e;if(isNaN(r)||r<0)throw"Invalid version number provided";return Ao(e,2,"0")}).join(".")}function pi(t){let e="";const n=t.split(".").length*6,o=Rf(t),a=Pf(o);let f=parseInt(a.split(".").join("")).toString(2);if(f=Ao(f,n,"0"),f.length%6!==0)throw"Version must be smaller than 43.21.26)";return f.match(/.{1,6}/g).forEach(h=>{e+=en[h]}),e}function $f(t){const e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion};return t.accessibility&&(e.feature="D"),t.lazyload&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e}const kf="1.21.0";function jf(t){const[e,r]=t.split("."),n=parseInt(e).toString(2),o=parseInt(r).toString(2),a=n.padStart(6,"0"),u=o.padStart(6,"0");return en[a]+en[u]}function If(){const t="0.0.0";if(typeof window<"u")return t;try{return process.versions.node||t}catch{return t}}function Mf(t){const e={techVersion:If(),sdkCode:"T",sdkSemver:kf.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return t?Object.assign(Object.assign({},e),t):e}function gi(t){const e=Mf(t),r=$f(e);try{const n=Df(r.techVersion),o=pi(r.sdkSemver),a=pi(n),u=jf(r.osVersion),f=r.feature,h=r.sdkCode,{product:g,osType:_}=r;return`D${g}${h}${o}${a}${_}${u}${f}`}catch{return"E"}}function Df(t){const e=t.split(".");return`${e[0]}.${e[1]}`}const mi={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class Lf{constructor(e,r={},n){this.setPublicID(e),this.setCloudConfig(r),this.setURLConfig(n)}setURLConfig(e){return this.urlConfig=new So(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const e=this.suffix&&this.suffix.indexOf(".")>=0,r=this.suffix&&this.suffix.indexOf("/")>=0;if(e||r)throw"`suffix`` should not include . or /"}getResourceType(){const e=Cf(this.assetType),r=xf(this.deliveryType),n=!!this.suffix,o=`${e}/${r}`,a=mi[`${e}/${r}`],u=this.urlConfig.useRootPath,f=this.urlConfig.shorten;if(u){if(o==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${o} instead`)}if(f&&o==="image/upload")return"iu";if(n){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(mi).join(", ")}, Provided: ${o} instead`)}return o}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,r){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=Sf(this.cloudName,this.urlConfig),o=e?e.toString():"",a=Af(this.publicID,this.version,this.urlConfig.forceVersion),u=this.publicID;if(typeof e=="string")return[n,this.getResourceType(),this.getSignature(),o,a,u.replace(/,/g,"%2C"),this.suffix].filter(h=>h).join("/");{const f=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(o),a,encodeURI(u).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(_=>_).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),h=this.urlConfig.analytics!==!1&&!u.includes("?");let g="";if(typeof this.urlConfig.queryParams=="object")try{const _=new URLSearchParams(this.urlConfig.queryParams);h&&_.set("_a",gi(r)),g=_.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else g=this.urlConfig.queryParams||"",h&&(g+=`${g.length>0?"&":""}_a=${gi(r)}`);return g?`${f}?${g}`:f}}}class Gs extends Lf{constructor(e,r,n,o){super(e,r,n),this.transformation=o}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new Zr("q",e)),this}format(e){return this.addAction(new Zr("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,e==null?void 0:e.trackedAnalytics)}}class Ff extends Gs{constructor(e,r,n){super(e,r,n,new vf)}}class Vf extends Gs{constructor(e,r,n){super(e,r,n,new _f),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class Nf{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new Ff(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new Vf(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const Uf=({publicId:t,format:e="webp"})=>{const r=fe.useMemo(()=>new Nf({cloud:{cloudName:"fluid-attacks"}}),[]);return fe.useMemo(()=>r.image(t).format(e),[r,t,e])},Bf=({alt:t,height:e,publicId:r,width:n,plugins:o=[dl(),ml()]})=>{const a=Uf({publicId:r});return Er.jsx(zl,{alt:t??"img",cldImg:a,height:e??"",plugins:o,width:n??""})},Ys=fe.memo(Bf),qf=io(Hi)`
199
+ Check the top-level render call using <`+p+">.")}return l}function pr(i,l){if(!(!i._store||i._store.validated||i.key!=null)){i._store.validated=!0;var p=yn(l);if(!Rr[p]){Rr[p]=!0;var v="";i&&i._owner&&i._owner!==pe.current&&(v=" It was passed a child from "+de(i._owner.type)+"."),ne(i),j('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',p,v),ne(null)}}}function $t(i,l){if(typeof i=="object"){if(Array.isArray(i))for(var p=0;p<i.length;p++){var v=i[p];Ue(v)&&pr(v,l)}else if(Ue(i))i._store&&(i._store.validated=!0);else if(i){var w=O(i);if(typeof w=="function"&&w!==i.entries)for(var N=w.call(i),x;!(x=N.next()).done;)Ue(x.value)&&pr(x.value,l)}}}function Pr(i){{var l=i.type;if(l==null||typeof l=="string")return;var p=de(l),v;if(typeof l=="function")v=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===A||l.$$typeof===q))v=l.propTypes;else return;v?(ne(i),e(v,i.props,"prop",p,we.getStackAddendum),ne(null)):l.PropTypes!==void 0&&!qe&&(qe=!0,j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")),typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gr(i){{ne(i);for(var l=Object.keys(i.props),p=0;p<l.length;p++){var v=l[p];if(v!=="children"&&v!=="key"){j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v);break}}i.ref!==null&&j("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null)}}function $r(i,l,p){var v=Te(i);if(!v){var w="";(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(w+=" 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 N=mn(l);N?w+=N:w+=Pt();var x;i===null?x="null":Array.isArray(i)?x="array":i!==void 0&&i.$$typeof===o?(x="<"+(de(i.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):x=typeof i,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,w)}var T=qt.apply(this,arguments);if(T==null)return T;if(v)for(var se=2;se<arguments.length;se++)$t(arguments[se],i);return i===u?gr(T):Pr(T),T}var kr=!1;function vn(i){var l=$r.bind(null,i);return l.type=i,kr||(kr=!0,re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(l,"type",{enumerable:!1,get:function(){return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:i}),i}}),l}function _n(i,l,p){for(var v=zt.apply(this,arguments),w=2;w<arguments.length;w++)$t(arguments[w],v.type);return Pr(v),v}try{var jr=Object.freeze({}),bn=new Map([[jr,null]]),mr=new Set([jr]);bn.set(0,0),mr.add(0)}catch{}var wn=$r,En=_n,Sn=vn,Cn={map:Rt,forEach:Qt,count:Je,toArray:lr,only:Ht};H.Children=Cn,H.Component=oe,H.Fragment=u,H.Profiler=h,H.PureComponent=_t,H.StrictMode=f,H.Suspense=$,H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ae,H.cloneElement=En,H.createContext=fr,H.createElement=wn,H.createFactory=Sn,H.createRef=tt,H.forwardRef=hr,H.isValidElement=Ue,H.lazy=dr,H.memo=c,H.useCallback=le,H.useContext=b,H.useDebugValue=ie,H.useEffect=L,H.useImperativeHandle=ee,H.useLayoutEffect=M,H.useMemo=K,H.useReducer=Y,H.useRef=U,H.useState=C,H.version=r}();process.env.NODE_ENV==="production"?Cr.exports=J:Cr.exports=H;var Xt=Cr.exports,In={sdkSemver:"1.13.0",techVersion:Xt.version,sdkCode:"J"},zl=function(t){$s(e,t);function e(r){var n=t.call(this,r)||this;return n.imageRef=Xt.createRef(),n}return e.prototype.componentDidMount=function(){this.htmlLayerInstance=new kc(this.imageRef.current,this.props.cldImg,this.props.plugins,In)},e.prototype.componentDidUpdate=function(){Kr(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,In)},e.prototype.componentWillUnmount=function(){Kr(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},e.prototype.render=function(){var r=this.props;r.cldImg,r.plugins;var n=ks(r,["cldImg","plugins"]);if(yo())return Xt.createElement("img",Sr({suppressHydrationWarning:!0},n,{ref:this.imageRef}));var o=vl(this.props.plugins,this.props.cldImg,In);return Xt.createElement("img",Sr({},n,{src:o}))},e}(Xt.Component),Gl=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(t){$s(e,t);function e(r){var n=t.call(this,r)||this;return n.videoRef=Cr.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}return e.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new cl(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},e.prototype.componentDidUpdate=function(){Kr(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},e.prototype.componentWillUnmount=function(){Kr(this.htmlVideoLayerInstance.htmlPluginState)},e.prototype.getVideoAttributes=function(){var r=this,n={};return Gl.forEach(function(o){o in r.props&&(n[o]=r.props[o])}),n},e.prototype.attachRef=function(r){this.videoRef.current=r;var n=this.props.innerRef;n&&(n instanceof Function?n(r):n.current=r)},e.prototype.render=function(){var r=this.props;r.cldVid,r.cldPoster,r.plugins,r.sources,r.innerRef,r.useFetchFormat;var n=ks(r,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Xt.createElement("video",Sr({},n,{ref:this.attachRef}))},e})(Cr.exports.Component);function Yl(t){return!(typeof t!="object"||t instanceof Array)}class Wl{filterOutNonSupportedKeys(e,r){const n=Object.create({});return Yl(e)?(Object.keys(e).forEach(o=>{r.indexOf(o)>=0?n[o]=e[o]:console.warn("Warning - unsupported key provided to configuration: ",o)}),n):Object.create({})}}const fi=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class So extends Wl{constructor(e){super();const r=this.filterOutNonSupportedKeys(e,fi);Object.assign(this,{secure:!0},r)}extend(e){const r=this.filterOutNonSupportedKeys(e,fi);return new So(Object.assign({},this,r))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}class xr{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return typeof e<"u"&&e!==null&&e!==""}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(e){return this.delimiter=e,this}}class Ql extends Error{constructor(e="Unsupported"){super(e)}}function Co(t){return new Ql(t)}function Hl(){return this._qualifierModel||{error:Co(`unsupported qualifier ${this.constructor.name}`)}}class Jl{constructor(){this._qualifierModel={}}toJson(){return Hl.apply(this)}}class pn extends Jl{constructor(e,r){super(),this.delimiter="_",this.key=e,r instanceof xr?this.qualifierValue=r:(this.qualifierValue=new xr,this.qualifierValue.addValue(r))}toString(){const{key:e,delimiter:r,qualifierValue:n}=this;return`${e}${r}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class xt extends pn{constructor(e,r){let n;r?n=new xr([e,`${r}`]).setDelimiter(":"):n=e,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function Kl(t,e){const r=Array.from(t.entries());return e.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function Xl(){var t,e,r;const n=this._actionModel&&Object.keys(this._actionModel).length,o=(r=(e=(t=this._actionModel)===null||t===void 0?void 0:t.source)===null||e===void 0?void 0:e.transformation)===null||r===void 0?void 0:r.error;return o&&o instanceof Error?{error:o}:n?this._actionModel:{error:Co(`unsupported action ${this.constructor.name}`)}}class Zl{constructor(){this._actionModel={}}toJson(){return Xl.apply(this)}}class xo extends Zl{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),Kl(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if(typeof e=="string"){const[r,n]=e.toLowerCase().split("_");r==="fl"?this.flags.push(new xt(n)):this.qualifiers.set(r,new pn(r,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return typeof e=="string"?this.flags.push(new xt(e)):e instanceof xt&&this.flags.push(e),this}addValueToQualifier(e,r){return this.qualifiers.get(e).addValue(r),this}}function ef(t){return t&&(t.match(/^#/)?`rgb:${t.substr(1)}`:t)}class tf extends xo{constructor(e){super(),this._actionModel={},this.addQualifier(new pn("b",new xr(ef(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:r}=e;return new this(r)}}class di{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:Co(`unsupported action ${this.constructor.name}`)}}}function rf(t){const e=t;return"error"in e&&!!e.error}function nf(){return new xt("lossy")}function of(){return new xt("preserve_transparency")}function sf(t){return new xt("progressive",t)}class af extends xr{constructor(e){super(e),this.val=e}getValue(){return this.val}}function Nt(t){const e={};return Object.keys(t).forEach(r=>{e[t[r]]=r}),e}const cf={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},uf={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},lf={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},ff={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},df={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},hf={444:"CHROMA_444",420:"CHROMA_420"},pf={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Nt(hf);Nt(pf);Nt(cf);const gf=Nt(uf);Nt(lf);Nt(ff);Nt(df);class mf extends xo{constructor(e,r,n){super(),this._actionModel={};let o;r instanceof af?o=r.getValue():o=r,this._actionModel.actionType=gf[e],this._actionModel[n]=o,this.addQualifier(new pn(e,r))}}class yf extends xt{constructor(e){super("progressive",e)}}class Zr extends mf{constructor(e,r){super(e,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(nf()),this}progressive(e){return e instanceof yf?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(sf(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(of()),this}static fromJson(e){const{formatType:r,lossy:n,progressive:o,preserveTransparency:a}=e;let u;return r?u=new this("f",r):u=new this("f"),o&&(o.mode?u.progressive(o.mode):u.progressive()),n&&u.lossy(),a&&u.preserveTransparency(),u}}class gn{constructor(){this.actions=[]}addAction(e){let r;if(typeof e=="string"){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new di(e)}else r=e;return this.actions.push(r),this}addTransformation(e){return e instanceof gn?this.actions=this.actions.concat(e.actions):this.actions.push(new di(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new Zr("q",e)),this}format(e){return this.addAction(new Zr("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new tf(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const r=new xo;let n=e;return typeof e=="string"&&(n=new xt(e)),r.addQualifier(n),this.addAction(r)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const r of this.actions){const n=r.toJson();if(rf(n))return n;e.push(n)}return{actions:e}}}class vf extends gn{}class _f extends gn{}function bf(t){return t.match(/^https?:\//)}function wf(t){return t.indexOf("/")<0}function Ef(t){return t.match(/^v[0-9]+/)}function Sf(t,e){const r=e.secure,n=e.privateCdn,o=e.cname,a=e.secureDistribution;return!r&&!o?`http://res.cloudinary.com/${t}`:r&&!a&&n?`https://${t}-res.cloudinary.com`:r&&!a?`https://res.cloudinary.com/${t}`:r&&a&&n?`https://${a}`:r&&a?`https://${a}/${t}`:!r&&o?`http://${o}/${t}`:"ERROR"}function Cf(t){return t||"image"}function xf(t){return t||"upload"}function Af(t,e,r){const n=r!==!1;return e?`v${e}`:Ef(t)||bf(t)||wf(t)?"":n?"v1":""}function Ao(t,e,r){let n=e>>0,o=String(r);return t.length>n?String(t):(n=n-t.length,n>o.length&&(o+=Of(o,n/o.length)),o.slice(0,n)+String(t))}function Of(t,e){let r=e,n="";for(;r>0;)n+=t,r--;return n}const Tf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",en={};let hi=0;Tf.split("").forEach(t=>{let e=hi.toString(2);e=Ao(e,6,"0"),en[e]=t,hi++});function Rf(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().join(".")}function Pf(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").map(e=>{const r=+e;if(isNaN(r)||r<0)throw"Invalid version number provided";return Ao(e,2,"0")}).join(".")}function pi(t){let e="";const n=t.split(".").length*6,o=Rf(t),a=Pf(o);let f=parseInt(a.split(".").join("")).toString(2);if(f=Ao(f,n,"0"),f.length%6!==0)throw"Version must be smaller than 43.21.26)";return f.match(/.{1,6}/g).forEach(h=>{e+=en[h]}),e}function $f(t){const e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion};return t.accessibility&&(e.feature="D"),t.lazyload&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e}const kf="1.21.0";function jf(t){const[e,r]=t.split("."),n=parseInt(e).toString(2),o=parseInt(r).toString(2),a=n.padStart(6,"0"),u=o.padStart(6,"0");return en[a]+en[u]}function If(){const t="0.0.0";if(typeof window<"u")return t;try{return process.versions.node||t}catch{return t}}function Mf(t){const e={techVersion:If(),sdkCode:"T",sdkSemver:kf.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return t?Object.assign(Object.assign({},e),t):e}function gi(t){const e=Mf(t),r=$f(e);try{const n=Df(r.techVersion),o=pi(r.sdkSemver),a=pi(n),u=jf(r.osVersion),f=r.feature,h=r.sdkCode,{product:g,osType:_}=r;return`D${g}${h}${o}${a}${_}${u}${f}`}catch{return"E"}}function Df(t){const e=t.split(".");return`${e[0]}.${e[1]}`}const mi={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class Lf{constructor(e,r={},n){this.setPublicID(e),this.setCloudConfig(r),this.setURLConfig(n)}setURLConfig(e){return this.urlConfig=new So(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const e=this.suffix&&this.suffix.indexOf(".")>=0,r=this.suffix&&this.suffix.indexOf("/")>=0;if(e||r)throw"`suffix`` should not include . or /"}getResourceType(){const e=Cf(this.assetType),r=xf(this.deliveryType),n=!!this.suffix,o=`${e}/${r}`,a=mi[`${e}/${r}`],u=this.urlConfig.useRootPath,f=this.urlConfig.shorten;if(u){if(o==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${o} instead`)}if(f&&o==="image/upload")return"iu";if(n){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(mi).join(", ")}, Provided: ${o} instead`)}return o}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,r){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=Sf(this.cloudName,this.urlConfig),o=e?e.toString():"",a=Af(this.publicID,this.version,this.urlConfig.forceVersion),u=this.publicID;if(typeof e=="string")return[n,this.getResourceType(),this.getSignature(),o,a,u.replace(/,/g,"%2C"),this.suffix].filter(h=>h).join("/");{const f=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(o),a,encodeURI(u).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(_=>_).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),h=this.urlConfig.analytics!==!1&&!u.includes("?");let g="";if(typeof this.urlConfig.queryParams=="object")try{const _=new URLSearchParams(this.urlConfig.queryParams);h&&_.set("_a",gi(r)),g=_.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else g=this.urlConfig.queryParams||"",h&&(g+=`${g.length>0?"&":""}_a=${gi(r)}`);return g?`${f}?${g}`:f}}}class Gs extends Lf{constructor(e,r,n,o){super(e,r,n),this.transformation=o}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new Zr("q",e)),this}format(e){return this.addAction(new Zr("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,e==null?void 0:e.trackedAnalytics)}}class Ff extends Gs{constructor(e,r,n){super(e,r,n,new vf)}}class Vf extends Gs{constructor(e,r,n){super(e,r,n,new _f),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class Nf{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new Ff(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new Vf(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const Uf=({publicId:t,format:e="webp"})=>{const r=fe.useMemo(()=>new Nf({cloud:{cloudName:"fluid-attacks"}}),[]);return fe.useMemo(()=>r.image(t).format(e),[r,t,e])},Bf=({alt:t="img",height:e="",width:r="",plugins:n=[dl(),ml()],publicId:o})=>{const a=Uf({publicId:o});return Er.jsx(zl,{alt:t,cldImg:a,height:e,plugins:n,width:r})},Ys=fe.memo(Bf),qf=io(Hi)`
200
200
  ${({$center:t=!1})=>`
201
201
  ${t?"margin: auto;":""}
202
202
  `}
203
- `,Ws=fe.forwardRef(function({as:e="div",center:r,children:n,id:o,onHover:a,onLeave:u,...f},h){return Er.jsx(qf,{$center:r,as:e,id:o,onMouseLeave:u,onMouseOver:a,ref:h,...f,children:n})}),zf={footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},Gf=({src:t,variant:e})=>Er.jsx(Ws,{...zf[e],children:Er.jsx(Ys,{alt:"logo",publicId:t})});exports.BaseComponent=Hi;exports.CloudImage=Ys;exports.Container=Ws;exports.CustomThemeProvider=Oc;exports.Logo=Gf;exports.getStyledConfig=Qi;exports.hiddenProps=yi;exports.icons=xc;exports.setBorder=zi;exports.setDisplay=Gi;exports.setInteraction=Wi;exports.setMargin=Bi;exports.setPadding=Ui;exports.setPosition=qi;exports.setText=Yi;exports.theme=ce;exports.uniqueIcons=Ac;exports.variantBuilder=ra;
203
+ `,Ws=fe.forwardRef(function({as:e="div",center:r,children:n,id:o,onHover:a,onLeave:u,...f},h){return Er.jsx(qf,{$center:r,as:e,id:o,onMouseLeave:u,onMouseOver:a,ref:h,...f,children:n})}),zf={footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},Gf=({publicId:t,variant:e})=>Er.jsx(Ws,{...zf[e],children:Er.jsx(Ys,{alt:"logo",publicId:t})});exports.BaseComponent=Hi;exports.CloudImage=Ys;exports.Container=Ws;exports.CustomThemeProvider=Oc;exports.Logo=Gf;exports.getStyledConfig=Qi;exports.hiddenProps=yi;exports.icons=xc;exports.setBorder=zi;exports.setDisplay=Gi;exports.setInteraction=Wi;exports.setMargin=Bi;exports.setPadding=Ui;exports.setPosition=qi;exports.setText=Yi;exports.theme=ce;exports.uniqueIcons=Ac;exports.variantBuilder=ra;
204
204
  //# sourceMappingURL=design.js.map