Backend for Custom Frontend OSPRO Surveyor Indonesia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.9 MiB

/*! For license information please see 19.82eee29b.chunk.js.LICENSE.txt */
(this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[19,4,7],{1044:function(e,t,n){"use strict";var r=n(561),a=n(19),o=n(608),i=n(699),s=n(988),c=n(559),l=n.n(c),u=n(562),f=n(565),d=n(566),h=n(558),p=n(2),m=n(588),v=n(744),g=n(576),b=n(564),y=n(579),w=n(611);function E(e){var t=Object(p.useRef)(),n=Object(p.useRef)(!1);return Object(p.useEffect)((function(){return n.current=!1,function(){n.current=!0,y.a.cancel(t.current)}}),[]),function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];n.current||(y.a.cancel(t.current),t.current=Object(y.a)((function(){e.apply(void 0,a)})))}}var C=n(575);function O(e,t){var n,a=e.prefixCls,o=e.id,i=e.active,s=e.tab,c=s.key,u=s.tab,f=s.disabled,d=s.closeIcon,h=e.closable,m=e.renderWrapper,v=e.removeAriaLabel,g=e.editable,b=e.onClick,y=e.onRemove,w=e.onFocus,E=e.style,O="".concat(a,"-tab");p.useEffect((function(){return y}),[]);var S=g&&!1!==h&&!f;function x(e){f||b(e)}var k=p.createElement("div",{key:c,ref:t,className:l()(O,(n={},Object(r.a)(n,"".concat(O,"-with-remove"),S),Object(r.a)(n,"".concat(O,"-active"),i),Object(r.a)(n,"".concat(O,"-disabled"),f),n)),style:E,onClick:x},p.createElement("div",{role:"tab","aria-selected":i,id:o&&"".concat(o,"-tab-").concat(c),className:"".concat(O,"-btn"),"aria-controls":o&&"".concat(o,"-panel-").concat(c),"aria-disabled":f,tabIndex:f?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[C.a.SPACE,C.a.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:w},u),S&&p.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(O,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:c,event:t})}},d||g.removeIcon||"\xd7"));return m?m(k):k}var S=p.forwardRef(O),x={width:0,height:0,left:0,top:0};var k={width:0,height:0,left:0,top:0,right:0};var _=n(609),A=n(753);function T(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return r&&!1!==r.showAdd?p.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}var j=p.forwardRef(T);function N(e,t){var n=e.prefixCls,a=e.id,o=e.tabs,i=e.locale,s=e.mobile,c=e.moreIcon,f=void 0===c?"More":c,d=e.moreTransitionName,h=e.style,m=e.className,v=e.editable,g=e.tabBarGutter,b=e.rtl,y=e.removeAriaLabel,w=e.onTabClick,E=e.popupClassName,O=Object(p.useState)(!1),S=Object(u.a)(O,2),x=S[0],k=S[1],T=Object(p.useState)(null),N=Object(u.a)(T,2),P=N[0],R=N[1],I="".concat(a,"-more-popup"),D="".concat(n,"-dropdown"),B=null!==P?"".concat(I,"-").concat(P):null,M=null===i||void 0===i?void 0:i.dropdownAriaLabel;var F=p.createElement(_.g,{onClick:function(e){var t=e.key,n=e.domEvent;w(t,n),k(!1)},prefixCls:"".concat(D,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[P],"aria-label":void 0!==M?M:"expanded dropdown"},o.map((function(e){var t=v&&!1!==e.closable&&!e.disabled;return p.createElement(_.d,{key:e.key,id:"".concat(I,"-").concat(e.key),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(e.key),disabled:e.disabled},p.createElement("span",null,e.tab),t&&p.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(t){var n,r;t.stopPropagation(),n=t,r=e.key,n.preventDefault(),n.stopPropagation(),v.onEdit("remove",{key:r,event:n})}},e.closeIcon||v.removeIcon||"\xd7"))})));function L(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===P}))||0,r=t.length,a=0;a<r;a+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void R(i.key)}}Object(p.useEffect)((function(){var e=document.getElementById(B);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[P]),Object(p.useEffect)((function(){x||R(null)}),[x]);var U=Object(r.a)({},b?"marginRight":"marginLeft",g);o.length||(U.visibility="hidden",U.order=1);var z=l()(Object(r.a)({},"".concat(D,"-rtl"),b)),V=s?