1 line
44 KiB
JavaScript
1 line
44 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[7],{1017:function(e,r,t){"use strict";t.r(r),function(e){t.d(r,"Button",(function(){return n})),t.d(r,"Checkbox",(function(){return a})),t.d(r,"Chip",(function(){return c})),t.d(r,"CircularProgress",(function(){return i})),t.d(r,"Dialog",(function(){return s})),t.d(r,"DialogTitle",(function(){return l})),t.d(r,"DialogContent",(function(){return d})),t.d(r,"DialogFooter",(function(){return u})),t.d(r,"Menu",(function(){return h})),t.d(r,"Option",(function(){return p})),t.d(r,"ProgressBar",(function(){return v})),t.d(r,"Radio",(function(){return f})),t.d(r,"Select",(function(){return b})),t.d(r,"SpinnerButton",(function(){return m})),t.d(r,"Switch",(function(){return y})),t.d(r,"Tab",(function(){return k})),t.d(r,"TabBar",(function(){return _})),t.d(r,"TextField",(function(){return g})),t.d(r,"Tooltip",(function(){return x}));var o=t(228);void 0===e.googlesitekit&&(e.googlesitekit={}),e.googlesitekit.components=o.a;var n=o.a.Button,a=o.a.Checkbox,c=o.a.Chip,i=o.a.CircularProgress,s=o.a.Dialog,l=o.a.DialogTitle,d=o.a.DialogContent,u=o.a.DialogFooter,h=o.a.Menu,p=o.a.Option,v=o.a.ProgressBar,f=o.a.Radio,b=o.a.Select,m=o.a.SpinnerButton,y=o.a.Switch,k=o.a.Tab,_=o.a.TabBar,g=o.a.TextField,x=o.a.Tooltip}.call(this,t(26))},228:function(e,r,t){"use strict";var o={Button:function Button(){return null},Checkbox:t(831).a,Chip:function Chip(){return null},CircularProgress:function CircularProgress(){return null},Dialog:function Dialog(){return null},DialogTitle:function DialogTitle(){return null},DialogContent:function DialogContent(){return null},DialogFooter:function DialogFooter(){return null},HelperText:function HelperText(){return null},Menu:function Menu(){return null},Option:function Option(){return null},ProgressBar:function ProgressBar(){return null},Radio:function Radio(){return null},Select:function Select(){return null},SpinnerButton:function SpinnerButton(){return null},Switch:function Switch(){return null},Tab:function Tab(){return null},TabBar:function TabBar(){return null},TextField:function TextField(){return null},Tooltip:function Tooltip(){return null}};r.a=o},372:function(e,r,t){"use strict";(function(e){var o=t(6),n=t.n(o),a=t(0),c=t.n(a);function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach((function(r){n()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Spinner(r){var t=r.isSaving,o=r.style,n=void 0===o?{}:o;return e.createElement("span",{className:"spinner",style:s({display:t?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"},n)})}Spinner.propTypes={isSaving:c.a.bool,style:c.a.object},r.a=Spinner}).call(this,t(3))},831:function(e,r,t){"use strict";(function(e){t.d(r,"a",(function(){return Checkbox}));var o=t(941),n=t(944),a=t(0),c=t.n(a),i=t(12),s=t.n(i),l=t(2),d=t(3),u=t(832),h=t(372),p=l.useCallback,v=l.useEffect,f=l.useRef,b=Object(n.a)({tagName:"md-checkbox",elementClass:o.a,react:d,events:{onKeyDown:"keydown",onChange:"change"}});function Checkbox(r){var t=r.onChange,o=r.id,n=r.name,a=r.value,c=r.checked,i=r.disabled,l=r.children,d=r.tabIndex,m=r.onKeyDown,y=r.loading,k=r.alignLeft,_=f(null),g=p((function(){var e=_.current;if(e){e.checked=c;var r=e.shadowRoot.querySelector("input");r&&(r.checked=c)}}),[c]);v((function(){g()}),[g]);var x="".concat(o,"-label");return e.createElement("div",{className:s()("googlesitekit-component-gm3_checkbox",{"googlesitekit-component-gm3_checkbox--align-left":k})},y&&e.createElement("div",{className:"googlesitekit-component-gm3_checkbox--loading"},e.createElement(h.a,{isSaving:!0})),!y&&e.createElement(b,{id:o,r
|