cloud-native-app-initializer/initializer-page/public/chunk-d045279c48fa41927c6c.js

2 lines
102 KiB
JavaScript
Raw Normal View History

2023-03-20 10:04:51 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[,,,,function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return y}));var a=n(1),o=n.n(a),i=n(0),r=n.n(i);function d(e){var t=e.handler,n=e.value,a=e.disabled,o=e.error,i=e.checked,d=e.text;return a||o?r.a.createElement("span",{className:"radio disabled ".concat(i?"checked":""," ").concat(o?"err":"")},d):r.a.createElement("a",{href:"/",className:"radio ".concat(i?"checked":""),onClick:function(e){e.preventDefault(),t(n)}},d)}d.defaultProps={disabled:!1,error:!1},d.propTypes={checked:o.a.bool.isRequired,text:o.a.string.isRequired,value:o.a.string.isRequired,handler:o.a.func.isRequired,disabled:o.a.bool,error:o.a.bool};var c=d;function l(e){var t=e.onChange,n=e.options,a=e.error,o=e.selected,i=e.disabled,d=function(e){t&&t(e)},l=n.map((function(e){return r.a.createElement(c,{key:e.key,checked:!a&&o===e.key,text:e.text,value:e.key,disabled:i,handler:d})}));return a&&l.push(r.a.createElement(c,{key:l.length+1,checked:!0,text:a,value:a,disabled:i,handler:d,error:!0})),r.a.createElement("div",{className:"group-radio"},l)}l.defaultProps={selected:"",error:null,onChange:null,disabled:!1,options:{error:""}},l.propTypes={selected:o.a.string,error:o.a.string,options:o.a.arrayOf(o.a.shape({key:o.a.string.isRequired,text:o.a.string.isRequired})),onChange:o.a.func,disabled:o.a.bool};var s=l,p=function(e){var t=e.id,n=e.isOn,a=e.onChange;return r.a.createElement("span",{className:"switch"},r.a.createElement("input",{checked:n,onChange:a,className:"switch-checkbox",id:t,name:"switch-new",type:"checkbox"}),r.a.createElement("label",{className:"switch-label",htmlFor:t},r.a.createElement("span",{className:"switch-button"})))};p.defaultProps={isOn:!1,onChange:null},p.propTypes={isOn:o.a.bool,onChange:o.a.func};var u=p;n(21);function f(e){var t=e.type,n=e.count,a=e.width;if("radios"===t){var o=Array.from({length:n},(function(e,t){var n="p".concat(t);return r.a.createElement("span",{key:n,style:{width:a},className:"placeholder-radio"})}));return r.a.createElement("span",{className:"placeholder-radios"},o)}if("input"===t)return r.a.createElement("span",{className:"placeholder-input"});if("dropdown"===t)return r.a.createElement("span",{className:"placeholder-dropdown"});if("text"===t)return r.a.createElement("span",{style:{width:a},className:"placeholder-text"});if("button"===t)return r.a.createElement("span",{style:{width:a},className:"placeholder-button"});if("tabs"===t){var i=Array.from({length:n},(function(e,t){return r.a.createElement("span",{key:"p".concat(t),className:"placeholder-tab"})}));return r.a.createElement("span",{className:"placeholder-tabs"},r.a.createElement("span",{className:"placeholder-header"},i))}return""}f.defaultProps={width:"150px",type:"radios",count:3},f.propTypes={type:o.a.string,count:o.a.number,width:o.a.string};var m=f,g=function(e){var t=e.onSubmit,n=e.children;return r.a.createElement("form",{onSubmit:t,autoComplete:"off"},r.a.createElement("input",{style:{display:"none"},type:"text",name:"fakeusernameremembered"}),r.a.createElement("input",{style:{display:"none"},type:"password",name:"fakepasswordremembered"}),n)};g.defaultProps={children:null},g.propTypes={onSubmit:o.a.func.isRequired,children:o.a.node};var b=g;function h(e){var t=e.id,n=e.onClick,a=e.children,o=e.variant,i=e.hotkey;return r.a.createElement("button",{className:"button ".concat("primary"===o?"primary":""),type:"button",id:t,onClick:function(e){n&&n(e)}},a,i&&r.a.createElement(r.a.Fragment,null," ",r.a.createElement("span",{className:"desktop-only"},"- ",i)))}h.defaultProps={onClick:null,children:null,variant:"",hotkey:""},h.propTypes={id:o.a.string.isRequired,variant:o.a.string,hotkey:o.a.string,onClick:o.a.func,children:o.a.node};var y=h},function(e,t,n){"use strict";n.d(t,"j",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"a",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"i",(function(){return u})),n.d(t,"b",(function(
//# sourceMappingURL=chunk-d045279c48fa41927c6c.js.map