Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: components.js
...prevHSLA,
[38000] Fix | Delete
...partialNewValue
[38001] Fix | Delete
}));
[38002] Fix | Delete
}
[38003] Fix | Delete
};
[38004] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[38005] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
[38006] Fix | Delete
min: 0,
[38007] Fix | Delete
max: 359,
[38008] Fix | Delete
label: "Hue",
[38009] Fix | Delete
abbreviation: "H",
[38010] Fix | Delete
value: colorValue.h,
[38011] Fix | Delete
onChange: nextH => {
[38012] Fix | Delete
updateHSLAValue({
[38013] Fix | Delete
h: nextH
[38014] Fix | Delete
});
[38015] Fix | Delete
}
[38016] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
[38017] Fix | Delete
min: 0,
[38018] Fix | Delete
max: 100,
[38019] Fix | Delete
label: "Saturation",
[38020] Fix | Delete
abbreviation: "S",
[38021] Fix | Delete
value: colorValue.s,
[38022] Fix | Delete
onChange: nextS => {
[38023] Fix | Delete
updateHSLAValue({
[38024] Fix | Delete
s: nextS
[38025] Fix | Delete
});
[38026] Fix | Delete
}
[38027] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
[38028] Fix | Delete
min: 0,
[38029] Fix | Delete
max: 100,
[38030] Fix | Delete
label: "Lightness",
[38031] Fix | Delete
abbreviation: "L",
[38032] Fix | Delete
value: colorValue.l,
[38033] Fix | Delete
onChange: nextL => {
[38034] Fix | Delete
updateHSLAValue({
[38035] Fix | Delete
l: nextL
[38036] Fix | Delete
});
[38037] Fix | Delete
}
[38038] Fix | Delete
}), enableAlpha && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
[38039] Fix | Delete
min: 0,
[38040] Fix | Delete
max: 100,
[38041] Fix | Delete
label: "Alpha",
[38042] Fix | Delete
abbreviation: "A",
[38043] Fix | Delete
value: Math.trunc(100 * colorValue.a),
[38044] Fix | Delete
onChange: nextA => {
[38045] Fix | Delete
updateHSLAValue({
[38046] Fix | Delete
a: nextA / 100
[38047] Fix | Delete
});
[38048] Fix | Delete
}
[38049] Fix | Delete
})]
[38050] Fix | Delete
});
[38051] Fix | Delete
};
[38052] Fix | Delete
[38053] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/hex-input.js
[38054] Fix | Delete
/**
[38055] Fix | Delete
* External dependencies
[38056] Fix | Delete
*/
[38057] Fix | Delete
[38058] Fix | Delete
[38059] Fix | Delete
/**
[38060] Fix | Delete
* WordPress dependencies
[38061] Fix | Delete
*/
[38062] Fix | Delete
[38063] Fix | Delete
[38064] Fix | Delete
/**
[38065] Fix | Delete
* Internal dependencies
[38066] Fix | Delete
*/
[38067] Fix | Delete
[38068] Fix | Delete
[38069] Fix | Delete
[38070] Fix | Delete
[38071] Fix | Delete
[38072] Fix | Delete
[38073] Fix | Delete
const HexInput = ({
[38074] Fix | Delete
color,
[38075] Fix | Delete
onChange,
[38076] Fix | Delete
enableAlpha
[38077] Fix | Delete
}) => {
[38078] Fix | Delete
const handleChange = nextValue => {
[38079] Fix | Delete
if (!nextValue) {
[38080] Fix | Delete
return;
[38081] Fix | Delete
}
[38082] Fix | Delete
const hexValue = nextValue.startsWith('#') ? nextValue : '#' + nextValue;
[38083] Fix | Delete
onChange(w(hexValue));
[38084] Fix | Delete
};
[38085] Fix | Delete
const stateReducer = (state, action) => {
[38086] Fix | Delete
const nativeEvent = action.payload?.event?.nativeEvent;
[38087] Fix | Delete
if ('insertFromPaste' !== nativeEvent?.inputType) {
[38088] Fix | Delete
return {
[38089] Fix | Delete
...state
[38090] Fix | Delete
};
[38091] Fix | Delete
}
[38092] Fix | Delete
const value = state.value?.startsWith('#') ? state.value.slice(1).toUpperCase() : state.value?.toUpperCase();
[38093] Fix | Delete
return {
[38094] Fix | Delete
...state,
[38095] Fix | Delete
value
[38096] Fix | Delete
};
[38097] Fix | Delete
};
[38098] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputControl, {
[38099] Fix | Delete
prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
[38100] Fix | Delete
as: text_component,
[38101] Fix | Delete
marginLeft: space(4),
[38102] Fix | Delete
color: COLORS.theme.accent,
[38103] Fix | Delete
lineHeight: 1,
[38104] Fix | Delete
children: "#"
[38105] Fix | Delete
}),
[38106] Fix | Delete
value: color.toHex().slice(1).toUpperCase(),
[38107] Fix | Delete
onChange: handleChange,
[38108] Fix | Delete
maxLength: enableAlpha ? 9 : 7,
[38109] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Hex color'),
[38110] Fix | Delete
hideLabelFromVision: true,
[38111] Fix | Delete
size: "__unstable-large",
[38112] Fix | Delete
__unstableStateReducer: stateReducer,
[38113] Fix | Delete
__unstableInputWidth: "9em"
[38114] Fix | Delete
});
[38115] Fix | Delete
};
[38116] Fix | Delete
[38117] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/color-input.js
[38118] Fix | Delete
/**
[38119] Fix | Delete
* Internal dependencies
[38120] Fix | Delete
*/
[38121] Fix | Delete
[38122] Fix | Delete
[38123] Fix | Delete
[38124] Fix | Delete
[38125] Fix | Delete
const ColorInput = ({
[38126] Fix | Delete
colorType,
[38127] Fix | Delete
color,
[38128] Fix | Delete
onChange,
[38129] Fix | Delete
enableAlpha
[38130] Fix | Delete
}) => {
[38131] Fix | Delete
const props = {
[38132] Fix | Delete
color,
[38133] Fix | Delete
onChange,
[38134] Fix | Delete
enableAlpha
[38135] Fix | Delete
};
[38136] Fix | Delete
switch (colorType) {
[38137] Fix | Delete
case 'hsl':
[38138] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HslInput, {
[38139] Fix | Delete
...props
[38140] Fix | Delete
});
[38141] Fix | Delete
case 'rgb':
[38142] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RgbInput, {
[38143] Fix | Delete
...props
[38144] Fix | Delete
});
[38145] Fix | Delete
default:
[38146] Fix | Delete
case 'hex':
[38147] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HexInput, {
[38148] Fix | Delete
...props
[38149] Fix | Delete
});
[38150] Fix | Delete
}
[38151] Fix | Delete
};
[38152] Fix | Delete
[38153] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/react-colorful/dist/index.mjs
[38154] Fix | Delete
function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function dist_c(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function dist_i(e){var t=(0,external_React_.useRef)(e),n=(0,external_React_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var dist_s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},dist_f=function(e){return"touches"in e},dist_v=function(e){return e&&e.ownerDocument.defaultView||self},dist_d=function(e,r,t){var n=e.getBoundingClientRect(),o=dist_f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return{left:dist_s((o.pageX-(n.left+dist_v(e).pageXOffset))/n.width),top:dist_s((o.pageY-(n.top+dist_v(e).pageYOffset))/n.height)}},dist_h=function(e){!dist_f(e)&&e.preventDefault()},dist_m=external_React_.memo(function(o){var a=o.onMove,l=o.onKey,s=dist_c(o,["onMove","onKey"]),m=(0,external_React_.useRef)(null),g=dist_i(a),p=dist_i(l),b=(0,external_React_.useRef)(null),_=(0,external_React_.useRef)(!1),x=(0,external_React_.useMemo)(function(){var e=function(e){dist_h(e),(dist_f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(dist_d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=dist_v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(dist_h(r),!function(e,r){return r&&!dist_f(e)}(r,_.current)&&n)){if(dist_f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(dist_d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return (0,external_React_.useEffect)(function(){return H},[H]),external_React_.createElement("div",dist_u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),dist_g=function(e){return e.filter(Boolean).join(" ")},dist_p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=dist_g(["react-colorful__pointer",r.className]);return external_React_.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},external_React_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dist_b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},dist_x=function(e){return L(C(e))},C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?dist_b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?dist_b(parseInt(e.substring(6,8),16)/255,2):1}},dist_E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},dist_H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_N({h:dist_E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_M=dist_H,dist_N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},dist_w=function(e){return K(dist_I(e))},dist_y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:dist_b(e.h),s:dist_b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:dist_b(o/2),a:dist_b(n,2)}},q=function(e){var r=dist_y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},dist_k=function(e){var r=dist_y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},dist_I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:dist_b(255*[n,u,l,l,c,n][i]),g:dist_b(255*[c,n,n,u,l,l][i]),b:dist_b(255*[l,l,c,n,n,u][i]),a:dist_b(o,2)}},O=function(e){var r=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?A({h:dist_E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_j=O,z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(dist_b(255*o)):"";return"#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:dist_b(60*(u<0?u+6:u)),s:dist_b(a?l/a*100:0),v:dist_b(a/255*100),a:o}},A=function(e){return{h:dist_b(e.h),s:dist_b(e.s),v:dist_b(e.v),a:dist_b(e.a,2)}},dist_S=external_React_.memo(function(r){var t=r.hue,n=r.onChange,o=dist_g(["react-colorful__hue",r.className]);return external_React_.createElement("div",{className:o},external_React_.createElement(dist_m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:dist_s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":dist_b(t),"aria-valuemax":"360","aria-valuemin":"0"},external_React_.createElement(dist_p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=external_React_.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return external_React_.createElement("div",{className:"react-colorful__saturation",style:o},external_React_.createElement(dist_m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:dist_s(t.s+100*e.left,0,100),v:dist_s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(t.s)+"%, Brightness "+dist_b(t.v)+"%"},external_React_.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=dist_i(l),c=(0,external_React_.useState)(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=(0,external_React_.useRef)({color:t,hsva:s});(0,external_React_.useEffect)(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),(0,external_React_.useEffect)(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=(0,external_React_.useCallback)(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,dist_V="undefined"!=typeof window?external_React_.useLayoutEffect:external_React_.useEffect,dist_$=function(){return R||( true?__webpack_require__.nc:0)},G=function(e){R=e},J=new Map,Q=function(e){dist_V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=dist_$();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:dist_x,fromHsva:function(e){return dist_w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,dist_u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},n,{a:0}))+", "+dist_k(Object.assign({},n,{a:1}))+")"},l=dist_g(["react-colorful__alpha",t]),u=dist_b(100*n.a);return external_React_.createElement("div",{className:l},external_React_.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),external_React_.createElement(dist_m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:dist_s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},external_React_.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:n.a,color:dist_k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h}),external_React_.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},te={defaultColor:"0001",toHsva:dist_x,fromHsva:dist_w,equal:X},ne=function(r){return e.createElement(re,dist_u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dist_N,fromHsva:dist_y,equal:F},ae=function(r){return e.createElement(re,dist_u({},r,{colorModel:oe}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:dist_H,fromHsva:dist_k,equal:P},ue=function(r){return e.createElement(re,dist_u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return dist_N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=dist_y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,dist_u({},r,{colorModel:ce}))},se={defaultColor:"hsl(0, 0%, 0%)",toHsva:dist_M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,dist_u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,dist_u({},r,{colorModel:ve}))},he={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:O,fromHsva:function(e){var r=A(e);return"hsva("+r.h+", "+r.s+"%, "+r.v+"%, "+r.a+")"},equal:P},me=function(r){return e.createElement(re,dist_u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,dist_u({},r,{colorModel:ge}))},be={defaultColor:"hsv(0, 0%, 0%)",toHsva:dist_j,fromHsva:function(e){var r=A(e);return"hsv("+r.h+", "+r.s+"%, "+r.v+"%)"},equal:P},_e=function(r){return e.createElement(U,dist_u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:dist_I,equal:F},Ce=function(r){return e.createElement(re,dist_u({},r,{colorModel:xe}))},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=dist_I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:P},He=function(r){return external_React_.createElement(re,dist_u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=dist_I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,dist_u({},r,{colorModel:Me}))},we={defaultColor:"rgb(0, 0, 0)",toHsva:B,fromHsva:function(e){var r=dist_I(e);return"rgb("+r.r+", "+r.g+", "+r.b+")"},equal:P},ye=function(r){return external_React_.createElement(U,dist_u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?"":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=dist_c(r,["color","onChange","onBlur","escape","validate","format","process"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=dist_i(s),C=dist_i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement("input",dist_u({},g,{value:h?h(b):b,spellCheck:"false",onChange:E,onBlur:H}))},Ie=function(e){return"#"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=dist_c(r,["prefixed","alpha"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,dist_u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};
[38155] Fix | Delete
//# sourceMappingURL=index.module.js.map
[38156] Fix | Delete
[38157] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/picker.js
[38158] Fix | Delete
/**
[38159] Fix | Delete
* External dependencies
[38160] Fix | Delete
*/
[38161] Fix | Delete
[38162] Fix | Delete
[38163] Fix | Delete
[38164] Fix | Delete
/**
[38165] Fix | Delete
* WordPress dependencies
[38166] Fix | Delete
*/
[38167] Fix | Delete
[38168] Fix | Delete
/**
[38169] Fix | Delete
* Internal dependencies
[38170] Fix | Delete
*/
[38171] Fix | Delete
[38172] Fix | Delete
const Picker = ({
[38173] Fix | Delete
color,
[38174] Fix | Delete
enableAlpha,
[38175] Fix | Delete
onChange
[38176] Fix | Delete
}) => {
[38177] Fix | Delete
const Component = enableAlpha ? He : ye;
[38178] Fix | Delete
const rgbColor = (0,external_wp_element_namespaceObject.useMemo)(() => color.toRgbString(), [color]);
[38179] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
[38180] Fix | Delete
color: rgbColor,
[38181] Fix | Delete
onChange: nextColor => {
[38182] Fix | Delete
onChange(w(nextColor));
[38183] Fix | Delete
}
[38184] Fix | Delete
// Pointer capture fortifies drag gestures so that they continue to
[38185] Fix | Delete
// work while dragging outside the component over objects like
[38186] Fix | Delete
// iframes. If a newer version of react-colorful begins to employ
[38187] Fix | Delete
// pointer capture this will be redundant and should be removed.
[38188] Fix | Delete
,
[38189] Fix | Delete
onPointerDown: ({
[38190] Fix | Delete
currentTarget,
[38191] Fix | Delete
pointerId
[38192] Fix | Delete
}) => {
[38193] Fix | Delete
currentTarget.setPointerCapture(pointerId);
[38194] Fix | Delete
},
[38195] Fix | Delete
onPointerUp: ({
[38196] Fix | Delete
currentTarget,
[38197] Fix | Delete
pointerId
[38198] Fix | Delete
}) => {
[38199] Fix | Delete
currentTarget.releasePointerCapture(pointerId);
[38200] Fix | Delete
}
[38201] Fix | Delete
});
[38202] Fix | Delete
};
[38203] Fix | Delete
[38204] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/component.js
[38205] Fix | Delete
/**
[38206] Fix | Delete
* External dependencies
[38207] Fix | Delete
*/
[38208] Fix | Delete
[38209] Fix | Delete
[38210] Fix | Delete
[38211] Fix | Delete
[38212] Fix | Delete
/**
[38213] Fix | Delete
* WordPress dependencies
[38214] Fix | Delete
*/
[38215] Fix | Delete
[38216] Fix | Delete
[38217] Fix | Delete
[38218] Fix | Delete
[38219] Fix | Delete
/**
[38220] Fix | Delete
* Internal dependencies
[38221] Fix | Delete
*/
[38222] Fix | Delete
[38223] Fix | Delete
[38224] Fix | Delete
[38225] Fix | Delete
[38226] Fix | Delete
[38227] Fix | Delete
[38228] Fix | Delete
[38229] Fix | Delete
[38230] Fix | Delete
k([names]);
[38231] Fix | Delete
const options = [{
[38232] Fix | Delete
label: 'RGB',
[38233] Fix | Delete
value: 'rgb'
[38234] Fix | Delete
}, {
[38235] Fix | Delete
label: 'HSL',
[38236] Fix | Delete
value: 'hsl'
[38237] Fix | Delete
}, {
[38238] Fix | Delete
label: 'Hex',
[38239] Fix | Delete
value: 'hex'
[38240] Fix | Delete
}];
[38241] Fix | Delete
[38242] Fix | Delete
// `isBorderless` is still experimental and not a public prop for InputControl yet.
[38243] Fix | Delete
const BORDERLESS_SELECT_CONTROL_CONTEXT = {
[38244] Fix | Delete
InputBase: {
[38245] Fix | Delete
isBorderless: true
[38246] Fix | Delete
}
[38247] Fix | Delete
};
[38248] Fix | Delete
const UnconnectedColorPicker = (props, forwardedRef) => {
[38249] Fix | Delete
const {
[38250] Fix | Delete
enableAlpha = false,
[38251] Fix | Delete
color: colorProp,
[38252] Fix | Delete
onChange,
[38253] Fix | Delete
defaultValue = '#fff',
[38254] Fix | Delete
copyFormat,
[38255] Fix | Delete
...divProps
[38256] Fix | Delete
} = useContextSystem(props, 'ColorPicker');
[38257] Fix | Delete
[38258] Fix | Delete
// Use a safe default value for the color and remove the possibility of `undefined`.
[38259] Fix | Delete
const [color, setColor] = useControlledValue({
[38260] Fix | Delete
onChange,
[38261] Fix | Delete
value: colorProp,
[38262] Fix | Delete
defaultValue
[38263] Fix | Delete
});
[38264] Fix | Delete
const safeColordColor = (0,external_wp_element_namespaceObject.useMemo)(() => {
[38265] Fix | Delete
return w(color || '');
[38266] Fix | Delete
}, [color]);
[38267] Fix | Delete
const debouncedSetColor = (0,external_wp_compose_namespaceObject.useDebounce)(setColor);
[38268] Fix | Delete
const handleChange = (0,external_wp_element_namespaceObject.useCallback)(nextValue => {
[38269] Fix | Delete
debouncedSetColor(nextValue.toHex());
[38270] Fix | Delete
}, [debouncedSetColor]);
[38271] Fix | Delete
const [colorType, setColorType] = (0,external_wp_element_namespaceObject.useState)(copyFormat || 'hex');
[38272] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ColorfulWrapper, {
[38273] Fix | Delete
ref: forwardedRef,
[38274] Fix | Delete
...divProps,
[38275] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Picker, {
[38276] Fix | Delete
onChange: handleChange,
[38277] Fix | Delete
color: safeColordColor,
[38278] Fix | Delete
enableAlpha: enableAlpha
[38279] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(AuxiliaryColorArtefactWrapper, {
[38280] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(AuxiliaryColorArtefactHStackHeader, {
[38281] Fix | Delete
justify: "space-between",
[38282] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextSystemProvider, {
[38283] Fix | Delete
value: BORDERLESS_SELECT_CONTROL_CONTEXT,
[38284] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_SelectControl, {
[38285] Fix | Delete
__nextHasNoMarginBottom: true,
[38286] Fix | Delete
options: options,
[38287] Fix | Delete
value: colorType,
[38288] Fix | Delete
onChange: nextColorType => setColorType(nextColorType),
[38289] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Color format'),
[38290] Fix | Delete
hideLabelFromVision: true
[38291] Fix | Delete
})
[38292] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorCopyButton, {
[38293] Fix | Delete
color: safeColordColor,
[38294] Fix | Delete
colorType: copyFormat || colorType
[38295] Fix | Delete
})]
[38296] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorInputWrapper, {
[38297] Fix | Delete
direction: "column",
[38298] Fix | Delete
gap: 2,
[38299] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorInput, {
[38300] Fix | Delete
colorType: colorType,
[38301] Fix | Delete
color: safeColordColor,
[38302] Fix | Delete
onChange: handleChange,
[38303] Fix | Delete
enableAlpha: enableAlpha
[38304] Fix | Delete
})
[38305] Fix | Delete
})]
[38306] Fix | Delete
})]
[38307] Fix | Delete
});
[38308] Fix | Delete
};
[38309] Fix | Delete
const ColorPicker = contextConnect(UnconnectedColorPicker, 'ColorPicker');
[38310] Fix | Delete
/* harmony default export */ const color_picker_component = (ColorPicker);
[38311] Fix | Delete
[38312] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/use-deprecated-props.js
[38313] Fix | Delete
/**
[38314] Fix | Delete
* External dependencies
[38315] Fix | Delete
*/
[38316] Fix | Delete
[38317] Fix | Delete
[38318] Fix | Delete
[38319] Fix | Delete
/**
[38320] Fix | Delete
* WordPress dependencies
[38321] Fix | Delete
*/
[38322] Fix | Delete
[38323] Fix | Delete
[38324] Fix | Delete
/**
[38325] Fix | Delete
* Internal dependencies
[38326] Fix | Delete
*/
[38327] Fix | Delete
[38328] Fix | Delete
function isLegacyProps(props) {
[38329] Fix | Delete
return typeof props.onChangeComplete !== 'undefined' || typeof props.disableAlpha !== 'undefined' || typeof props.color?.hex === 'string';
[38330] Fix | Delete
}
[38331] Fix | Delete
function getColorFromLegacyProps(color) {
[38332] Fix | Delete
if (color === undefined) {
[38333] Fix | Delete
return;
[38334] Fix | Delete
}
[38335] Fix | Delete
if (typeof color === 'string') {
[38336] Fix | Delete
return color;
[38337] Fix | Delete
}
[38338] Fix | Delete
if (color.hex) {
[38339] Fix | Delete
return color.hex;
[38340] Fix | Delete
}
[38341] Fix | Delete
return undefined;
[38342] Fix | Delete
}
[38343] Fix | Delete
const transformColorStringToLegacyColor = memize(color => {
[38344] Fix | Delete
const colordColor = w(color);
[38345] Fix | Delete
const hex = colordColor.toHex();
[38346] Fix | Delete
const rgb = colordColor.toRgb();
[38347] Fix | Delete
const hsv = colordColor.toHsv();
[38348] Fix | Delete
const hsl = colordColor.toHsl();
[38349] Fix | Delete
return {
[38350] Fix | Delete
hex,
[38351] Fix | Delete
rgb,
[38352] Fix | Delete
hsv,
[38353] Fix | Delete
hsl,
[38354] Fix | Delete
source: 'hex',
[38355] Fix | Delete
oldHue: hsl.h
[38356] Fix | Delete
};
[38357] Fix | Delete
});
[38358] Fix | Delete
function use_deprecated_props_useDeprecatedProps(props) {
[38359] Fix | Delete
const {
[38360] Fix | Delete
onChangeComplete
[38361] Fix | Delete
} = props;
[38362] Fix | Delete
const legacyChangeHandler = (0,external_wp_element_namespaceObject.useCallback)(color => {
[38363] Fix | Delete
onChangeComplete(transformColorStringToLegacyColor(color));
[38364] Fix | Delete
}, [onChangeComplete]);
[38365] Fix | Delete
if (isLegacyProps(props)) {
[38366] Fix | Delete
return {
[38367] Fix | Delete
color: getColorFromLegacyProps(props.color),
[38368] Fix | Delete
enableAlpha: !props.disableAlpha,
[38369] Fix | Delete
onChange: legacyChangeHandler
[38370] Fix | Delete
};
[38371] Fix | Delete
}
[38372] Fix | Delete
return {
[38373] Fix | Delete
...props,
[38374] Fix | Delete
color: props.color,
[38375] Fix | Delete
enableAlpha: props.enableAlpha,
[38376] Fix | Delete
onChange: props.onChange
[38377] Fix | Delete
};
[38378] Fix | Delete
}
[38379] Fix | Delete
[38380] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/legacy-adapter.js
[38381] Fix | Delete
/**
[38382] Fix | Delete
* Internal dependencies
[38383] Fix | Delete
*/
[38384] Fix | Delete
[38385] Fix | Delete
[38386] Fix | Delete
[38387] Fix | Delete
const LegacyAdapter = props => {
[38388] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_picker_component, {
[38389] Fix | Delete
...use_deprecated_props_useDeprecatedProps(props)
[38390] Fix | Delete
});
[38391] Fix | Delete
};
[38392] Fix | Delete
[38393] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-context.js
[38394] Fix | Delete
/**
[38395] Fix | Delete
* WordPress dependencies
[38396] Fix | Delete
*/
[38397] Fix | Delete
[38398] Fix | Delete
[38399] Fix | Delete
/**
[38400] Fix | Delete
* Internal dependencies
[38401] Fix | Delete
*/
[38402] Fix | Delete
[38403] Fix | Delete
const CircularOptionPickerContext = (0,external_wp_element_namespaceObject.createContext)({});
[38404] Fix | Delete
[38405] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
[38406] Fix | Delete
/**
[38407] Fix | Delete
* WordPress dependencies
[38408] Fix | Delete
*/
[38409] Fix | Delete
[38410] Fix | Delete
[38411] Fix | Delete
const check = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[38412] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[38413] Fix | Delete
viewBox: "0 0 24 24",
[38414] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[38415] Fix | Delete
d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
[38416] Fix | Delete
})
[38417] Fix | Delete
});
[38418] Fix | Delete
/* harmony default export */ const library_check = (check);
[38419] Fix | Delete
[38420] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-option.js
[38421] Fix | Delete
/**
[38422] Fix | Delete
* External dependencies
[38423] Fix | Delete
*/
[38424] Fix | Delete
[38425] Fix | Delete
/**
[38426] Fix | Delete
* WordPress dependencies
[38427] Fix | Delete
*/
[38428] Fix | Delete
[38429] Fix | Delete
[38430] Fix | Delete
[38431] Fix | Delete
[38432] Fix | Delete
/**
[38433] Fix | Delete
* Internal dependencies
[38434] Fix | Delete
*/
[38435] Fix | Delete
[38436] Fix | Delete
[38437] Fix | Delete
[38438] Fix | Delete
[38439] Fix | Delete
[38440] Fix | Delete
[38441] Fix | Delete
function UnforwardedOptionAsButton(props, forwardedRef) {
[38442] Fix | Delete
const {
[38443] Fix | Delete
isPressed,
[38444] Fix | Delete
...additionalProps
[38445] Fix | Delete
} = props;
[38446] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
[38447] Fix | Delete
...additionalProps,
[38448] Fix | Delete
"aria-pressed": isPressed,
[38449] Fix | Delete
ref: forwardedRef
[38450] Fix | Delete
});
[38451] Fix | Delete
}
[38452] Fix | Delete
const OptionAsButton = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedOptionAsButton);
[38453] Fix | Delete
function UnforwardedOptionAsOption(props, forwardedRef) {
[38454] Fix | Delete
const {
[38455] Fix | Delete
id,
[38456] Fix | Delete
isSelected,
[38457] Fix | Delete
compositeStore,
[38458] Fix | Delete
...additionalProps
[38459] Fix | Delete
} = props;
[38460] Fix | Delete
const activeId = compositeStore.useState('activeId');
[38461] Fix | Delete
if (isSelected && !activeId) {
[38462] Fix | Delete
compositeStore.setActiveId(id);
[38463] Fix | Delete
}
[38464] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeItem, {
[38465] Fix | Delete
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
[38466] Fix | Delete
...additionalProps,
[38467] Fix | Delete
role: "option",
[38468] Fix | Delete
"aria-selected": !!isSelected,
[38469] Fix | Delete
ref: forwardedRef
[38470] Fix | Delete
}),
[38471] Fix | Delete
store: compositeStore,
[38472] Fix | Delete
id: id
[38473] Fix | Delete
});
[38474] Fix | Delete
}
[38475] Fix | Delete
const OptionAsOption = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedOptionAsOption);
[38476] Fix | Delete
function Option({
[38477] Fix | Delete
className,
[38478] Fix | Delete
isSelected,
[38479] Fix | Delete
selectedIconProps = {},
[38480] Fix | Delete
tooltipText,
[38481] Fix | Delete
...additionalProps
[38482] Fix | Delete
}) {
[38483] Fix | Delete
const {
[38484] Fix | Delete
baseId,
[38485] Fix | Delete
compositeStore
[38486] Fix | Delete
} = (0,external_wp_element_namespaceObject.useContext)(CircularOptionPickerContext);
[38487] Fix | Delete
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(Option, baseId || 'components-circular-option-picker__option');
[38488] Fix | Delete
const commonProps = {
[38489] Fix | Delete
id,
[38490] Fix | Delete
className: 'components-circular-option-picker__option',
[38491] Fix | Delete
...additionalProps
[38492] Fix | Delete
};
[38493] Fix | Delete
const optionControl = compositeStore ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionAsOption, {
[38494] Fix | Delete
...commonProps,
[38495] Fix | Delete
compositeStore: compositeStore,
[38496] Fix | Delete
isSelected: isSelected
[38497] Fix | Delete
}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionAsButton, {
[38498] Fix | Delete
...commonProps,
[38499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function