1"use strict";(()=>{(self.webpackChunkapp_fininbox=self.webpackChunkapp_fininbox||[]).push([["forbis-page/application-refill"],{"../../pages/applications-stack/application-refill/dist/index.js"(H,Ee,i){(function(y,p){H.exports=p()})(self,function(){return(function(){"use strict";var r={};(function(){r.n=function(e){var t=e&&e.__esModule?(function(){return e.default}):(function(){return e});return r.d(t,{a:t}),t}})(),(function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})(),(function(){r.r=function(e){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var y={};r.r(y),r.d(y,{default:function(){return Ae}});var p={};r.r(p),r.d(p,{close:function(){return Z},getActions:function(){return u},logout:function(){return ee},onClose:function(){return J},onInit:function(){return M},onReturn:function(){return Q},postDelay:function(){return R},setMessages:function(){return L},silentLogout:function(){return q}});var V=i("../../../node_modules/react/index.js"),o=r.n(V),Y=i("../../../node_modules/redux/dist/cjs/redux.cjs"),_=i("../../../node_modules/@forbis/redux-utils/dist/index.js"),P=i("../../../node_modules/@forbis/i18n/dist/index.js");const S="APPLICATION_REFILL",T="application-refill",X="application-refill";var c=i("../../../node_modules/redux-actions/dist/redux-actions.js"),f=i("../../../node_modules/@forbis/navigation-utils/dist/index.js"),E=i("../../security/security-core/dist/index.js"),I=i("../../../node_modules/@forbis/webapi-utils/dist/index.js"),K={getPostAuthReqActionsAvailableActions:(0,I.createWebApiActionTypes)("API_GET_POST_AUTH_REQ_ACTIONS__AVAILABLE_ACTIONS",{url:"/post-auth-req-actions/available-actions",method:"GET",signature:"-1131874720"})};const m="APPLICATION_REFILL",M=(0,c.createAction)(`${m}__ON_INIT`),Q=(0,c.createAction)(`${m}__ON_RETURN`),J=(0,c.createAction)(`${m}__ON_CLOSE`),Z=f.routerActions.goBack,{silentLogout:q}=E.commonAuthActions,ee=()=>E.authorizationActions.toAnonymousAndLogout([{severity:"info",id:"[labels]logoutSuccess"}]),u=K.getPostAuthReqActionsAvailableActions,L=(0,c.createAction)(`${m}__SET_MESSAGES`),R=(0,c.createAction)(`${m}__POST_DELAY`),$=`${X}__API_GET_DETAILS`;var Oe=null;const O=[];O.push({description:"onInit",matcher:[`${M}`],onEffect:e=>(t,n)=>{t(n),e(u.execute({signal:n.payload}))}}),O.push({description:"onPostDelay",matcher:[`${R}`],onEffect:e=>(t,n)=>{t(n);const A=(0,I.createWebApiActionTypes)($,{url:n.payload,method:"PUT",signature:"2222"});e(A.execute())}}),O.push({description:"postDelay.success",matcher:[`${$}_SUCCESS`],onEffect:e=>(t,n)=>{t(n),e(E.authorizationActions.nextAuthorizationStep())}});var te=O,D=i("../../../node_modules/reselect/es/index.js"),ne=i("../../../node_modules/ramda/es/index.js");const oe=(0,D.createSelectorCreator)(D.defaultMemoize,ne.equals),F=e=>e[T],je=oe([F],({loading:e,messages:t,links:n})=>({loading:e,messages:t,links:n}));var ae=i("../../../node_modules/@forbis/form-utils/dist/index.js"),ie=Object.defineProperty,re=Object.defineProperties,se=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))le.call(t,n)&&w(e,n,t[n]);if(N)for(var n of N(t))ce.call(t,n)&&w(e,n,t[n]);return e},g=(e,t)=>re(e,se(t));const B={loading:!1,messages:[],links:void 0,formCode:void 0};var ue=(0,c.handleActions)({[`${u.loading}`]:e=>g(v({},e),{loading:!0}),[`${u.finished}`]:e=>g(v({},e),{loading:!1}),[`${u.success}`]:(e,{payload:t})=>g(v({},e),{links:t.result._links,formCode:t.result.formCode}),[`${u.failure}`]:(e,{payload:t})=>{const{allErrors:n,allWarnings:A}=(0,ae.toConvertedMessages)(t.status.messages);return g(v({},e),{messages:[...n.map(b=>({status:"danger",text:b})),...A.map(b=>({status:"warning",text:b}))]})},[`${L}`]:(e,{payload:t})=>g(v({},e),{messages:t}),[_.registryActionsTypes.reset]:()=>B},B),de=i("../../utils/markup-includer/dist/index.js"),U=i("../../../node_modules/react-redux/dist/cjs/index.js"),x=i("../../ui/shared-ui/dist/index.js"),pe=i("../../../node_modules/@forbis/effects-middleware/dist/index.js"),s=i("../../ui/material/dist/index.js");const fe=(0,s.styled)(x.AnonymousCard)(({theme:e})=>({"& .MuiCardActions-root":{justifyContent:"center"},"& .MuiCardContent-root":{paddingTop:e.spacing(0),paddingBottom:e.spacing(0)}})),me=()=>
1{(0,pe.useWithEffects)(te);const{logout:e,setMessages:t,onInit:n,postDelay:A}=(0,_.useActions)(p),{replace:b}=(0,_.useActions)(f.routerActions),be=(0,U.useDispatch)(),{messages:C,loading:h,links:a,formCode:W}=(0,U.useSelector)(F);let j="WORKGROUP";a!=null&&a["preview-application"]?j="CONFIRM":(a!=null&&a["application-edit"]||a!=null&&a["application-form"]||a!=null&&a["delay-application"])&&(j="FILL");const{t:l}=(0,P.useTranslation)(S),d={title:l(`[labels]title.${j}.${W}`),closeModal:l("[labels]button.closeModal"),fill:l("[labels]button.fill"),delayFill:l("[labels]button.delayFill"),delayFillPopover:l("[tooltips]button.delayFill"),confirm:l("[labels]button.confirm"),delayConfirm:l("[labels]button.delayConfirm"),delayConfirmPopover:l("[tooltips]button.delayConfirm"),logout:l("[labels]button.logout")},ye=`feature.applicationRefill.intermediate.${j}.${W}`,k=()=>A(a==null?void 0:a["delay-application"].href);o().useEffect(()=>{const G=new AbortController;return n(G.signal),()=>G.abort()},[]);const z=(a==null?void 0:a["application-form"])||(a==null?void 0:a["application-edit"]),_e=o().createElement(o().Fragment,null,o().createElement(s.Button,{variant:"outlined",onClick:e},d.logout),!!z&&o().createElement(o().Fragment,null,o().createElement(s.Button,{disabled:!(a!=null&&a["delay-application"]),variant:"outlined",onClick:k},d.delayFill),o().createElement(s.Button,{variant:"contained",onClick:()=>{be(f.routerActions.replace((0,f.generatePathLocation)("application.refill.form",void 0,{searchData:{halLinkHref:z.href}})))}},d.fill)),!!(a!=null&&a["preview-application"])&&o().createElement(o().Fragment,null,o().createElement(s.Button,{disabled:!(a!=null&&a["delay-application"]),variant:"outlined",onClick:k},d.delayConfirm),o().createElement(s.Button,{variant:"outlined",onClick:()=>b((0,f.url)("application.refill.confirmation"),{link:a["preview-application"],entryMode:"IMMEDIATE",exit:!0})},d.confirm)));return o().createElement(fe,null,o().createElement(s.CardHeader,{titleTypographyProps:{variant:"h6"},title:!h&&d.title}),o().createElement(s.CardContent,null,(C==null?void 0:C.length)>0&&o().createElement(x.AlertMessages,{mb:3,onMessageRemove:t,messages:C}),h&&o().createElement(x.Preloader,{my:3}),o().createElement(s.Box,{mb:3},o().createElement(s.Typography,{variant:"body1",textAlign:"center",fontWeight:400},o().createElement(de.MarkupFragment,{id:ye,type:"text"})))),o().createElement(s.CardActions,null,!h&&_e))};var ve=(0,E.withAuthorization)()(me);const ge=()=>o().createElement(ve,null);var Ae=(0,Y.compose)((0,P.withTranslation)(S),(0,_.dynamic)(T,ue,{destroyOnUnmount:!0}))(ge);return y})()})}}]);})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.