1 line
No EOL
23 KiB
JavaScript
1 line
No EOL
23 KiB
JavaScript
(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[8280],{8184:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(9196),o=r(444);const i=(0,n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(o.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}))},6928:e=>{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return n.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return n.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return n.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return n.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,l=e.findChunks,s=void 0===l?n:l,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:r({chunks:s({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var r=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var r=e.pop();if(t.start<=r.end){var n=Math.max(r.end,t.end);e.push({highlight:!1,start:r.start,end:n})}else e.push(r,t);return e}),[])},n=function(e){var t=e.autoEscape,r=e.caseSensitive,n=e.sanitize,o=void 0===n?i:n,a=e.searchWords,l=e.textToHighlight;return l=o(l),a.filter((function(e){return e})).reduce((function(e,n){n=o(n),t&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(n,r?"g":"gi"),a=void 0;a=i.exec(l);){var s=a.index,c=i.lastIndex;c>s&&e.push({highlight:!1,start:s,end:c}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=n;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,r=e.totalLength,n=[],o=function(e,t,r){t-e>0&&n.push({start:e,end:t,highlight:r})};if(0===t.length)o(0,r,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,r,!1)}return n};function i(e){return e}}])},8679:(e,t,r)=>{"use strict";var n=r(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return n.isMemo(e)?a:l[e.$$typeof]||o}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var o=p(r);o&&o!==m&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var l=s(t),h=s(r),g=0;g<a.length;++g){var b=a[g];if(!(i[b]||n&&n[b]||h&&h[b]||l&&l[b])){var y=f(r,b);try{c(t,b,y)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case h:case s:return e;default:return t}}case o:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v||e.$$typeof===b)},t.typeOf=w},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},4697:(e,t,r)=>{"use strict";r.d(t,{y1:()=>o});var n=r(9196);function o(e,t,r){var o=this,i=(0,n.useRef)(null),a=(0,n.useRef)(0),l=(0,n.useRef)(null),s=(0,n.useRef)([]),c=(0,n.useRef)(),u=(0,n.useRef)(),d=(0,n.useRef)(e),f=(0,n.useRef)(!0);(0,n.useEffect)((function(){d.current=e}),[e]);var p=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var m=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,g="maxWait"in r,b=g?Math.max(+r.maxWait||0,t):null;(0,n.useEffect)((function(){return f.current=!0,function(){f.current=!1}}),[]);var y=(0,n.useMemo)((function(){var e=function(e){var t=s.current,r=c.current;return s.current=c.current=null,a.current=e,u.current=d.current.apply(r,t)},r=function(e,t){p&&cancelAnimationFrame(l.current),l.current=p?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!f.current)return!1;var r=e-i.current;return!i.current||r>=t||r<0||g&&e-a.current>=b},y=function(t){return l.current=null,h&&s.current?e(t):(s.current=c.current=null,u.current)},x=function e(){var o=Date.now();if(n(o))return y(o);if(f.current){var l=t-(o-i.current),s=g?Math.min(l,b-(o-a.current)):l;r(e,s)}},v=function(){var d=Date.now(),p=n(d);if(s.current=[].slice.call(arguments),c.current=o,i.current=d,p){if(!l.current&&f.current)return a.current=i.current,r(x,t),m?e(i.current):u.current;if(g)return r(x,t),e(i.current)}return l.current||r(x,t),u.current};return v.cancel=function(){l.current&&(p?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,s.current=i.current=c.current=l.current=null},v.isPending=function(){return!!l.current},v.flush=function(){return l.current?y(Date.now()):u.current},v}),[m,g,t,b,h,p]);return y}},7313:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Fe});var n={};r.r(n),r.d(n,{Text:()=>N,block:()=>R,destructive:()=>W,highlighterText:()=>j,muted:()=>Z,positive:()=>O,upperCase:()=>A});var o=r(7462),i=r(9307),a=r(2819),l=r(4184),s=r.n(l),c=r(4333);const u=function({icon:e,size:t=24,...r}){return(0,i.cloneElement)(e,{width:t,height:t,...r})};var d=r(444);const f=(0,i.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(d.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var p=r(4662),m=r(9204),h=(r(9196),r(7278),r(6797));function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,h.O)(t)}r(6751),r(8679);var b=r(2875),y=r(1685),x=r(1092),v=r(8592),w=r(9179),k=r(3019);const S=(0,v.iv)({name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),z="…",$={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},C={ellipsis:z,ellipsizeMode:$.auto,limit:0,numberOfLines:0};var M=r(9588),E=r.n(M),D=r(7234);let F;const P=E()((function(e){var t,r;if("string"!=typeof e)return"";if("string"==typeof(r=e)&&(0,D.Z)(r).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!F){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),F=e}return F}}();if(!n)return"";n.style.background=e;const o=null===(t=window)||void 0===t?void 0:t.getComputedStyle(n).background;return n.style.background="",o||""}));var H=r(1604),T=r(2619);const L="30px",_="12px",B={colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:"18px",fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",controlPaddingX:_,controlPaddingXLarge:`calc(${_} * 1.3334)`,controlPaddingXSmall:`calc(${_} / 1.3334)`,controlBackgroundColor:H.DM.white,controlBorderRadius:"2px",controlBorderColor:H.DM.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:H.DM.gray[700],controlBoxShadowFocus:`0 0 0, 0.5px, ${H.DM.admin}`,controlDestructiveBorderColor:H.DM.alert.red,controlHeight:L,controlHeightLarge:`calc( ${L} * 1.2 )`,controlHeightSmall:`calc( ${L} * 0.8 )`,controlHeightXSmall:`calc( ${L} * 0.6 )`,cardBorderRadius:"2px",cardPaddingXSmall:`${(0,T.D)(2)}`,cardPaddingSmall:`${(0,T.D)(4)}`,cardPaddingMedium:`${(0,T.D)(4)} ${(0,T.D)(6)}`,cardPaddingLarge:`${(0,T.D)(6)} ${(0,T.D)(8)}`,surfaceBackgroundColor:H.DM.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:H.DM.white,surfaceColor:H.DM.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"},N=(0,v.iv)("color:",H.DM.black,";line-height:",B.fontLineHeightBase,";margin:0;",""),R=(0,v.iv)({name:"4zleql",styles:"display:block"}),O=(0,v.iv)("color:",H.DM.alert.green,";",""),W=(0,v.iv)("color:",H.DM.alert.red,";",""),Z=(0,v.iv)("color:",H.DM.mediumGray.text,";",""),j=(0,v.iv)("mark{background:",H.DM.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),A=(0,v.iv)({name:"50zrmy",styles:"text-transform:uppercase"});var I=r(6928);const V=E()((e=>{const t={};for(const r in e)t[r.toLowerCase()]=e[r];return t})),X={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20};function q(e=13){if(e in X)return q(X[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc((${e} / 13) * ${B.fontSize})`}[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));const G=(0,x.L)({as:"span",useHook:function(e){const{adjustLineHeightForInnerControls:t,align:r,children:o,className:l,color:s,ellipsizeMode:c,isDestructive:u=!1,display:d,highlightEscape:f=!1,highlightCaseSensitive:p=!1,highlightWords:m,highlightSanitize:h,isBlock:g=!1,letterSpacing:b,lineHeight:y,optimizeReadabilityFor:x,size:M,truncate:E=!1,upperCase:F=!1,variant:L,weight:_=B.fontWeight,...O}=(0,w.y)(e,"Text");let A=o;const X=Array.isArray(m),G="caption"===M;if(X){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");A=function({activeClassName:e="",activeIndex:t=-1,activeStyle:r,autoEscape:n,caseSensitive:o=!1,children:a,findChunks:l,highlightClassName:s="",highlightStyle:c={},highlightTag:u="mark",sanitize:d,searchWords:f=[],unhighlightClassName:p="",unhighlightStyle:m}){if(!a)return null;if("string"!=typeof a)return a;const h=a,g=(0,I.findAll)({autoEscape:n,caseSensitive:o,findChunks:l,sanitize:d,searchWords:f,textToHighlight:h}),b=u;let y,x=-1,v="";return g.map(((n,a)=>{const l=h.substr(n.start,n.end-n.start);if(n.highlight){let n;x++,n="object"==typeof s?o?s[l]:(s=V(s))[l.toLowerCase()]:s;const u=x===+t;v=`${n} ${u?e:""}`,y=!0===u&&null!==r?Object.assign({},c,r):c;const d={children:l,className:v,key:a,style:y};return"string"!=typeof b&&(d.highlightIndex=x),(0,i.createElement)(b,d)}return(0,i.createElement)("span",{children:l,className:p,key:a,style:m})}))}({autoEscape:f,children:o,caseSensitive:p,searchWords:m,sanitize:h})}let J;!0===E&&(J="auto"),!1===E&&(J="none");const K=function(e){const{className:t,children:r,ellipsis:n=z,ellipsizeMode:o=$.auto,limit:l=0,numberOfLines:s=0,...c}=(0,w.y)(e,"Truncate"),u=function(e="",t){const r={...C,...t},{ellipsis:n,ellipsizeMode:o,limit:i}=r;if(o===$.none)return e;let l,s;switch(o){case $.head:l=0,s=i;break;case $.middle:l=Math.floor(i/2),s=Math.floor(i/2);break;default:l=i,s=0}const c=o!==$.auto?function(e,t,r,n){if("string"!=typeof e)return"";const o=e.length,i=~~t,l=~~r,s=(0,a.isNil)(n)?z:n;return 0===i&&0===l||i>=o||l>=o||i+l>=o?e:0===l?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-l)}(e,l,s,n):e;return c}("string"==typeof r?r:"",{ellipsis:n,ellipsizeMode:o,limit:l,numberOfLines:s}),d=o===$.auto;return{...c,className:(0,i.useMemo)((()=>{const e={};return e.numberOfLines=(0,v.iv)("-webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),(0,v.cx)(d&&!s&&S,d&&!!s&&e.numberOfLines,t)}),[t,s,d]),children:u}}({...O,className:(0,i.useMemo)((()=>{const e={},o=function(e,t){if(t)return t;if(!e)return;let r=`calc(${B.controlHeight} + ${(0,T.D)(2)})`;switch(e){case"large":r=`calc(${B.controlHeightLarge} + ${(0,T.D)(2)})`;break;case"small":r=`calc(${B.controlHeightSmall} + ${(0,T.D)(2)})`;break;case"xSmall":r=`calc(${B.controlHeightXSmall} + ${(0,T.D)(2)})`}return r}(t,y);if(e.Base=(0,v.iv)({color:s,display:d,fontSize:q(M),fontWeight:_,lineHeight:o,letterSpacing:b,textAlign:r},"",""),e.upperCase=(0,v.iv)({name:"50zrmy",styles:"text-transform:uppercase"}),e.optimalTextColor=null,x){const t="dark"==("#000000"===function(e){const t=P(e);return D.Z.isReadable(t,"#000000")?"#000000":"#ffffff"}(x)?"dark":"light");e.optimalTextColor=t?(0,v.iv)({color:H.DM.black},"",""):(0,v.iv)({color:H.DM.white},"","")}return(0,v.cx)(N,e.Base,e.optimalTextColor,u&&W,!!X&&j,g&&R,G&&Z,L&&n[L],F&&e.upperCase,l)}),[t,r,l,s,d,g,G,u,X,b,y,x,M,F,L,_]),children:o,ellipsizeMode:c||J});return!E&&Array.isArray(o)&&(A=i.Children.map(o,(e=>(0,a.isPlainObject)(e)&&"props"in e&&(0,k.H)(e,["Link"])?(0,i.cloneElement)(e,{size:e.props.size||"inherit"}):e))),{...K,children:E?K.children:A}},name:"Text"}),J=G;var K=r(5736);const U=new RegExp(/-left/g),Q=new RegExp(/-right/g),Y=new RegExp(/Left/g),ee=new RegExp(/Right/g);function te(e={},t){return()=>t?(0,K.isRTL)()?g(t,""):g(e,""):(0,K.isRTL)()?g(((e={})=>(0,a.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":U.test(e)?e.replace(U,"-right"):Q.test(e)?e.replace(Q,"-left"):Y.test(e)?e.replace(Y,"Right"):ee.test(e)?e.replace(ee,"Left"):e}(t))))(e),""):g(e,"")}var re={name:"1n8met0",styles:"padding-top:0"};const ne=()=>re;var oe={name:"1739oy8",styles:"z-index:1"};const ie=({isFocused:e})=>e?oe:"";var ae={name:"2o6p8u",styles:"justify-content:space-between"},le={name:"14qk3ip",styles:"align-items:flex-start;flex-direction:column-reverse"},se={name:"hbng6e",styles:"align-items:flex-start;flex-direction:column"};const ce=({labelPosition:e})=>{switch(e){case"top":return se;case"bottom":return le;case"edge":return ae;default:return""}},ue=(0,m.Z)(b.Z,{target:"e1cr7zh17"})("position:relative;border-radius:2px;",ne," ",ie," ",ce,";");var de={name:"wyxldh",styles:"margin:0 !important"},fe={name:"1d3w5wq",styles:"width:100%"};const pe=(0,m.Z)("div",{target:"e1cr7zh16"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>g({backgroundColor:e?H.DM.ui.backgroundDisabled:H.DM.ui.background},"",""))," ",(({hideLabel:e})=>e?de:null)," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":g("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):fe),";");var me={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"};(0,m.Z)("input",{target:"e1cr7zh15"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",H.DM.black,";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(({isDragging:e,dragCursor:t})=>{let r="",n="";return e&&(r=g("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(n=g("&:active{cursor:",t,";}","")),g(r," ",n,";","")})," ",(({disabled:e})=>e?g({color:H.DM.ui.textDisabled},"",""):"")," ",(({size:e})=>{const t={default:"13px",small:"11px"}[e];return t?g("font-size:","16px",";@media ( min-width: 600px ){font-size:",t,";}",""):""})," ",(({size:e})=>{const t={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return g(t[e]||t.default,"","")})," ",(()=>me),";}");var he={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};const ge=()=>he,be=({labelPosition:e})=>{let t=4;return"edge"!==e&&"side"!==e||(t=0),g({paddingTop:0,paddingBottom:t},"","")},ye=(0,m.Z)(J,{target:"e1cr7zh14"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",be," ",ge,";}"),xe=e=>(0,i.createElement)(ye,(0,o.Z)({},e,{as:"label"})),ve=(0,m.Z)(y.Z,{target:"e1cr7zh13"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),we=(0,m.Z)("div",{target:"e1cr7zh12"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isFocused:t})=>{let r=t?H.DM.ui.borderFocus:H.DM.ui.border,n=null;return t&&(n=`0 0 0 1px ${H.DM.ui.borderFocus} inset`),e&&(r=H.DM.ui.borderDisabled),g({boxShadow:n,borderColor:r,borderStyle:"solid",borderWidth:1},"","")})," ",te({paddingLeft:2}),";}"),ke=(0,m.Z)("span",{target:"e1cr7zh11"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Se=(0,m.Z)("span",{target:"e1cr7zh10"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),ze=(0,i.memo)((function({disabled:e=!1,isFocused:t=!1}){return(0,i.createElement)(we,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isFocused:t})}));var $e=r(7593);function Ce({children:e,hideLabelFromVision:t,htmlFor:r,...n}){return e?t?(0,i.createElement)($e.Z,{as:"label",htmlFor:r},e):(0,i.createElement)(xe,(0,o.Z)({htmlFor:r},n),e):null}const Me=(0,i.forwardRef)((function e({__unstableInputWidth:t,children:r,className:n,disabled:a=!1,hideLabelFromVision:l=!1,labelPosition:s,id:u,isFocused:d=!1,label:f,prefix:p,size:m="default",suffix:h,...g},b){const y=function(t){const r=(0,c.useInstanceId)(e);return t||`input-base-control-${r}`}(u),x=l||!f;return(0,i.createElement)(ue,(0,o.Z)({},g,function({labelPosition:e}){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",t.gap=0;break;case"edge":t.justify="space-between"}return t}({labelPosition:s}),{className:n,isFocused:d,labelPosition:s,ref:b,__unstableVersion:"next"}),(0,i.createElement)(ve,null,(0,i.createElement)(Ce,{className:"components-input-control__label",hideLabelFromVision:l,labelPosition:s,htmlFor:y,size:m},f)),(0,i.createElement)(pe,{__unstableInputWidth:t,className:"components-input-control__container",disabled:a,hideLabel:x,isFocused:d,labelPosition:s},p&&(0,i.createElement)(ke,{className:"components-input-control__prefix"},p),r,h&&(0,i.createElement)(Se,{className:"components-input-control__suffix"},h),(0,i.createElement)(ze,{"aria-hidden":"true",disabled:a,isFocused:d,label:f,size:m})))})),Ee=(0,m.Z)("select",{target:"e12x0a391"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",H.DM.black,";display:block;margin:0;width:100%;",(({disabled:e})=>e?g({color:H.DM.ui.textDisabled},"",""):""),";",(({size:e})=>{const t={default:"13px",small:"11px"}[e];return t?g("font-size:","16px",";@media ( min-width: 600px ){font-size:",t,";}",""):""}),";",(({size:e})=>{const t={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return g(t[e]||t.default,"","")}),";",te({paddingLeft:8,paddingRight:24})(),";}"),De=(0,m.Z)("div",{target:"e12x0a390"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",te({right:0})()," svg{display:block;}");const Fe=(0,i.forwardRef)((function e({className:t,disabled:r=!1,help:n,hideLabelFromVision:l,id:d,label:m,multiple:h=!1,onBlur:g=a.noop,onChange:b=a.noop,onFocus:y=a.noop,options:x=[],size:v="default",value:w,labelPosition:k="top",...S},z){const[$,C]=(0,i.useState)(!1),M=function(t){const r=(0,c.useInstanceId)(e);return t||`inspector-select-control-${r}`}(d),E=n?`${M}__help`:void 0;if((0,a.isEmpty)(x))return null;const D=s()("components-select-control",t);return(0,i.createElement)(p.Z,{help:n},(0,i.createElement)(Me,(0,o.Z)({className:D,disabled:r,hideLabelFromVision:l,id:M,isFocused:$,label:m,size:v,suffix:(0,i.createElement)(De,null,(0,i.createElement)(u,{icon:f,size:18})),labelPosition:k},S),(0,i.createElement)(Ee,(0,o.Z)({},S,{"aria-describedby":E,className:"components-select-control__input",disabled:r,id:M,multiple:h,onBlur:e=>{g(e),C(!1)},onChange:e=>{if(h){const t=[...e.target.options].filter((({selected:e})=>e)).map((({value:e})=>e));b(t)}else b(e.target.value,{event:e})},onFocus:e=>{y(e),C(!0)},ref:z,size:v,value:w}),x.map(((e,t)=>{const r=e.id||`${e.label}-${e.value}-${t}`;return(0,i.createElement)("option",{key:r,value:e.value,disabled:e.disabled},e.label)})))))}))},3019:(e,t,r)=>{"use strict";r.d(t,{H:()=>c,Iq:()=>l});var n=r(2819),o=r(9307),i=(r(2560),r(1765)),a=r(1282);function l(e,t,r={}){const{memo:l=!1}=r;let s=(0,o.forwardRef)(e);l&&(s=(0,o.memo)(s)),void 0===t&&"undefined"!=typeof process&&process.env;let c=s[i.rE]||[t];return Array.isArray(t)&&(c=[...c,...t]),"string"==typeof t&&(c=[...c,t]),s.displayName=t,s[i.rE]=(0,n.uniq)(c),s.selector=`.${(0,a.l)(t)}`,s}function s(e){if(!e)return[];let t=[];return e[i.rE]&&(t=e[i.rE]),e.type&&e.type[i.rE]&&(t=e.type[i.rE]),t}function c(e,t){return!!e&&("string"==typeof t?s(e).includes(t):!!Array.isArray(t)&&t.some((t=>s(e).includes(t))))}}}]); |