1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[50],{144:function(e,t,n){var r=n(71);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},355:function(e,t,n){"use strict";var r=n(12),o=n(22),i=n(19),a=n(0),c=n(6),l=n.n(c),s=n(24),u=n(91);t.a=function(e){var t,n=e.icon,c=e.children,b=e.label,d=e.instructions,p=e.className,f=e.notices,m=e.preview,h=e.isColumnLayout,g=Object(i.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),x=Object(s.useResizeObserver)(),v=Object(o.a)(x,2),O=v[0],j=v[1].width;"number"==typeof j&&(t={"is-large":j>=320,"is-medium":j>=160&&j<320,"is-small":j<160});var w=l()("components-placeholder",p,t),y=l()("components-placeholder__fieldset",{"is-column-layout":h});return Object(a.createElement)("div",Object(r.a)({},g,{className:w}),O,f,m&&Object(a.createElement)("div",{className:"components-placeholder__preview"},m),Object(a.createElement)("div",{className:"components-placeholder__label"},Object(a.createElement)(u.a,{icon:n}),b),!!d&&Object(a.createElement)("div",{className:"components-placeholder__instructions"},d),Object(a.createElement)("div",{className:y},c))}},39:function(e,t){function n(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,l,"next",e)}function l(e){n(a,o,i,c,l,"throw",e)}c(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},404:function(e,t,n){"use strict";var r=n(12),o=n(31),i=n(22),a=n(19),c=n(0),l=n(7),s=n(6),u=n.n(s),b=n(24),d=n(20);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var f=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,o=Object(a.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},o))},m=n(34),h=Object(c.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(m.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),g=n(220),x=n(124),v=n(141),O=n(218),j=n(211);function w(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var y=v.b,z=n(217);function _(){var e=w(["\n\t","\n\t","\n"]);return _=function(){return e},e}function E(){var e=w(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return E=function(){return e},e}function k(){var e=w(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return k=function(){return e},e}function F(){var e=w(["\n\t\t\t\t","\n\t\t\t"]);return F=function(){return e},e}function P(){var e=w(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return P=function(){return e},e}function N(){var e=w(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return N=function(){return e},e}function L(){var e=w(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return L=function(){return e},e}function S(){var e=w(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return S=function(){return e},e}function I(){var e=w(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return I=function(){return e},e}var R="\n ".concat("font-weight: 400;","\n"),C="\n\tfont-size: 32px;\n\tline-height: 40px;\n",B="\n\tfont-size: 24px;\n\tline-height: 32px;\n",D="\n\tfont-size: 20px;\n\tline-height: 28px;\n",H="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),V="\n\t".concat("font-weight: 400;","\n"),W="\n\tfont-size: 16px;\n\tline-height: 24px;\n",M="\n\tfont-size: 14px;\n\tline-height: 20px;\n",A="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),T="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),U="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),J="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(z.b.gray[700],"\n"),q=Object(x.a)("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",(function(e){return y(_(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return y(I(),R,C);case"title.medium":return y(S(),R,B);case"title.small":return y(L(),R,D);case"subtitle":return y(N(),H,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return y(P(),H,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return y(F(),V);case"body.large":return y(k(),V,W);case"body.small":return y(E(),V,M);case"button":return A;case"caption":return T;case"label":return U;case"sectionheading":return J}}(e.variant))}),""),G=n(63),K=new RegExp(/-left/g),Q=new RegExp(/-right/g),X=new RegExp(/Left/g),Y=new RegExp(/Right/g);function Z(){return!(!document||"rtl"!==document.documentElement.dir)}function $(e){return"left"===e?"right":"right"===e?"left":K.test(e)?e.replace(K,"-right"):Q.test(e)?e.replace(Q,"-left"):X.test(e)?e.replace(X,"Right"):Y.test(e)?e.replace(Y,"Left"):e}var ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(l.mapKeys)(e,(function(e,t){return $(t)}))};function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Z();return t?n?Object(v.b)(t,""):Object(v.b)(e,""):n?Object(v.b)(ee(e),""):Object(v.b)(e,"")}}var ne={name:"1dacand",styles:"padding-top:0;"},re=function(){return ne},oe={name:"r6z5ec",styles:"z-index:1;"},ie=function(e){return e.isFocused?oe:""},ae={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},ce={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},le={name:"x4dmss",styles:"justify-content:space-between;"},se=function(e){switch(e.labelPosition){case"top":return ae;case"bottom":return ce;case"edge":return le;default:return""}},ue=Object(x.a)(O.b,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",re," ",ie," ",se,""),be={name:"8atqhb",styles:"width:100%;"},de=Object(x.a)("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=e.disabled?Object(G.a)("ui.backgroundDisabled"):Object(G.a)("ui.background");return Object(v.b)({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":"edge"===n?Object(v.b)({flex:"0 0 ".concat(t)},""):Object(v.b)({width:t},""):be}),""),pe={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},fe=(Object(x.a)("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Object(G.a)("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=Object(v.b)("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=Object(v.b)("&:active{cursor:",n,";}")),Object(v.b)(r," ",o,"")})," ",(function(e){return e.disabled?Object(v.b)({color:Object(G.a)("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?Object(v.b)("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}},n=t[e.size]||t.default;return Object(v.b)(n,"")})," ",(function(){return pe}),"}"),{name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"}),me=function(){return fe},he=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),Object(v.b)({paddingTop:0,paddingBottom:n},"")},ge=Object(x.a)(q,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",he," ",me,"}"),xe=function(e){return Object(c.createElement)(ge,Object(r.a)({},e,{as:"label"}))},ve=Object(x.a)(j.a,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),Oe=Object(x.a)("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=n?Object(G.a)("ui.borderFocus"):Object(G.a)("ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(Object(G.a)("ui.borderFocus")," inset")),t&&(r=Object(G.a)("ui.borderDisabled")),Object(v.b)({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",te({paddingLeft:2}),"}"),je=Object(x.a)("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),we=Object(x.a)("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),ye=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return Object(c.createElement)(Oe,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})})),ze=n(195);function _e(e){var t=e.children,n=e.hideLabelFromVision,o=e.htmlFor,i=Object(a.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(ze.a,{as:"label",htmlFor:o},t):Object(c.createElement)(xe,Object(r.a)({htmlFor:o},i),t):null}var Ee=Object(c.forwardRef)((function e(t,n){var o=t.__unstableInputWidth,i=t.children,l=t.className,s=t.disabled,u=void 0!==s&&s,d=t.hideLabelFromVision,p=void 0!==d&&d,f=t.labelPosition,m=t.id,h=t.isFocused,g=void 0!==h&&h,x=t.label,v=t.prefix,O=t.size,j=void 0===O?"default":O,w=t.suffix,y=Object(a.a)(t,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),z=function(t){var n=Object(b.useInstanceId)(e),r="input-base-control-".concat(n);return t||r}(m);return Object(c.createElement)(ue,Object(r.a)({},y,{className:l,isFocused:g,labelPosition:f,ref:n}),Object(c.createElement)(ve,null,Object(c.createElement)(_e,{className:"components-input-control__label",hideLabelFromVision:p,labelPosition:f,htmlFor:z,size:j},x)),Object(c.createElement)(de,{__unstableInputWidth:o,className:"components-input-control__container",disabled:u,isFocused:g,labelPosition:f},v&&Object(c.createElement)(je,{className:"components-input-control__prefix"},v),i,w&&Object(c.createElement)(we,{className:"components-input-control__suffix"},w),Object(c.createElement)(ye,{"aria-hidden":"true",disabled:u,isFocused:g,label:x,size:j})))})),ke=Object(x.a)("select",{target:"e12x0a390",label:"Select"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Object(G.a)("black"),";display:block;margin:0;outline:none;width:100%;",(function(e){return e.disabled?Object(v.b)({color:Object(G.a)("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?Object(v.b)("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""}),";",(function(e){var t={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}},n=t[e.size]||t.default;return Object(v.b)(n,"")}),";",te({paddingLeft:8,paddingRight:24})(),"}"),Fe=Object(x.a)("div",{target:"e12x0a391",label:"DownArrowWrapper"})("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;}");var Pe=Object(c.forwardRef)((function e(t,n){var s=t.className,d=t.disabled,p=void 0!==d&&d,m=t.help,x=t.hideLabelFromVision,v=t.id,O=t.label,j=t.multiple,w=void 0!==j&&j,y=t.onBlur,z=void 0===y?l.noop:y,_=t.onChange,E=void 0===_?l.noop:_,k=t.onFocus,F=void 0===k?l.noop:k,P=t.options,N=void 0===P?[]:P,L=t.size,S=void 0===L?"default":L,I=t.value,R=t.labelPosition,C=void 0===R?"top":R,B=Object(a.a)(t,["className","disabled","help","hideLabelFromVision","id","label","multiple","onBlur","onChange","onFocus","options","size","value","labelPosition"]),D=Object(c.useState)(!1),H=Object(i.a)(D,2),V=H[0],W=H[1],M=function(t){var n=Object(b.useInstanceId)(e),r="inspector-select-control-".concat(n);return t||r}(v),A=m?"".concat(M,"__help"):void 0;if(Object(l.isEmpty)(N))return null;var T=u()("components-select-control",s);return Object(c.createElement)(g.a,{help:m},Object(c.createElement)(Ee,{className:T,disabled:p,hideLabelFromVision:x,id:M,isFocused:V,label:O,size:S,suffix:Object(c.createElement)(Fe,null,Object(c.createElement)(f,{icon:h,size:18})),labelPosition:C},Object(c.createElement)(ke,Object(r.a)({},B,{"aria-describedby":A,className:"components-select-control__input",disabled:p,id:M,multiple:w,onBlur:function(e){z(e),W(!1)},onChange:function(e){if(w){var t=Object(o.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));E(t)}else E(e.target.value,{event:e})},onFocus:function(e){F(e),W(!0)},ref:n,size:S,value:I}),N.map((function(e,t){var n=e.id||"".concat(e.label,"-").concat(e.value,"-").concat(t);return Object(c.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))}));t.a=Pe},46:function(e,t,n){var r=n(94),o=n(95),i=n(67),a=n(96);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},94:function(e,t,n){var r=n(68);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},95:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},96:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}}]); |