tocco-fdp-bundle 3.13.8 → 3.13.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,4 +48,4 @@ const{entries:r,setPrototypeOf:o,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescr
|
|
|
48
48
|
*
|
|
49
49
|
* @license MIT
|
|
50
50
|
*/
|
|
51
|
-
function a(e){return o.createElement(r.pg,{flushSync:i.flushSync,...e})}},77987:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},95065:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e){if(Array.isArray(e))return(0,r.A)(e)}},97991:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},24747:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},27887:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>o})},6624:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37444),o=n(89954),i=n(1560);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},37444:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},49523:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(15216);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},89954:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{A:()=>r})},62439:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},21648:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}n.d(t,{A:()=>r})},37820:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},77969:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88097);function o(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}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},8609:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},1560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(65710),o=n(97991);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},15216:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},52167:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6695),o=n(21648),i=n(25134),a=n(37820);function s(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},47978:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},78840:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(95065),o=n(62439),i=n(25134),a=n(77969);function s(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},65710:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},72367:(e,t,n)=>{"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725:(e,t,n)=>{"use strict";n.d(t,{ll:()=>w});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return o(e).getComputedStyle(e)}function a(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function s(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function c(e){return e instanceof o(e).HTMLElement}function u(e){return e instanceof o(e).Element}function l(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=i(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function p(){return!/^((?!chrome|android).)*safari/i.test(s())}function f(e){return["html","body","#document"].includes(a(e))}Math.min,Math.max;const m=Math.round;function h(e,t,n){var r,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let d=1,f=1;t&&c(e)&&(d=e.offsetWidth>0&&m(l.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(l.height)/e.offsetHeight||1);const h=u(e)?o(e):window,g=!p()&&n,v=(l.left+(g&&null!=(r=null==(i=h.visualViewport)?void 0:i.offsetLeft)?r:0))/d,y=(l.top+(g&&null!=(a=null==(s=h.visualViewport)?void 0:s.offsetTop)?a:0))/f,b=l.width/d,w=l.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||(l(e)?e.host:null)||g(e);return l(t)?t.host:t}function y(e){const t=v(e);return f(t)?e.ownerDocument.body:c(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r),s=i?[a].concat(a.visualViewport||[],d(r)?r:[]):r,c=t.concat(s);return i?c:c.concat(b(s))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,l=c||i?[...u(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];l.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let d,p=null;if(a){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),u(e)&&!s&&p.observe(e),u(e)||!e.contextElement||s||p.observe(e.contextElement),p.observe(t)}let f=s?h(e):null;return s&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(d)}}},92149:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(4883),o=n(81845),i=n(2418);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const s=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class c extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new i(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,s),i=a({target:this._targetNode.current,element:this._elementParentNode},o),c=n||"";if(this._elementParentNode&&this._elementParentNode.id!==c&&(this._elementParentNode.id=c),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346:(e,t,n)=>{"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>i});var o=r(),i=r},14644:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>u,Qd:()=>s,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>c,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function c(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(c)(e,t)}let i=e,u=t,l=new Map,d=l,p=0,f=!1;function m(){d===l&&(d=new Map,l.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return u}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),l=null}}}function v(e){if(!s(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,u=i(u,e)}finally{f=!1}return(l=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const c=o[i],u=n[c],l=e[c],d=u(l,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[c]=d,a=a||d!==l}return a=a||o.length!==Object.keys(e).length,a?s:e}}function l(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=l(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},c=e.map((e=>e(s)));return a=p(...c)(i.dispatch),{...i,dispatch:a}}}function m(e){return s(e)&&"type"in e&&"string"==typeof e.type}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",236:"actions",262:"html-editor",310:"vendor-fontawesome",556:"docs-actions",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{70:"6eb35e116783c5bdc17a",103:"070cdff7e5c49728122c",211:"208fc82f53d7c47efffd",222:"d22493eb8abed64fbc15",236:"20504ea7924e630e9c99",262:"be6102835fc6c08d6768",264:"f997db76343655ab8b40",310:"42de47680bccd9d0e22f",389:"5cfcfbf63bc56900ed6e",432:"26c37b871737878e37d0",498:"218a3daec8088f81f59d",556:"1d830f53cd8af7679a3f",651:"66ca3eaafae529bad5b9",672:"4a53f4b50dad490f6793",722:"498f6ff2b4763e472370",916:"1b12f7190281edbe5640",987:"ecec1b4eeb2cd1cfc432"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-fdp-bundle:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={471:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_fdp_bundle=this.webpackChunktocco_fdp_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>it});var e=c(61402),t=c(5556),n=c.n(t),r=c(27772),o=c(52334),i=c(60115),a=c(82682),s=c(38798),l=c(71468),d=c(26396),p=c.n(d),f=c(62193),m=c.n(f),h=c(2404),g=c.n(h),v=c(71086),y=c.n(v),b=c(4883),w=c.n(b),x=c(76744),O=c(52600),k=c(88951),A=c(13128),S=c(59042),j=c(28391),E=c(18601),P=c(72942),D=c(12956),_=c(7311),T=c(66498),C=c(35301),M=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return T.A.getDispatchActions(e,I,t)},I=[{name:"entityName",action:C.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:C.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:C.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:C.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:C.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],R=c(44467),N=c(92207),L=c.n(N),F=c(90167),H=c(29056),W=c(71635),B=p()(p()({},W.Bt,H.A.singleTransferReducer("formTouched")),W.wr,H.A.singleTransferReducer("detailParams")),Y={detailParams:void 0,formTouched:!1};var U=c(15890),V=c.n(U),z=c(22056),q=c.n(z),$=c(32742),G=c(57327),K=c(27399);function Q(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}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=J({},e)})),e.relations.forEach((function(e){t[e.relationName]=J({type:"relation"},e)})),t};function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;return L().mark((function n(){var r;return L().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,F.T1)(G.A.requestSaga,"entities/".concat(e,"/model"));case 2:return r=n.sent,n.next=5,(0,F.T1)(t,r.body);case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)}))()}var ee={CREATE:"create",UPDATE:"update"};const te={modes:ee,getMode:function(e){return void 0===e?ee.CREATE:ee.UPDATE}};var ne=c(21259),re=c.n(ne);const oe=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0})).map((function(e){return e.split(".")})).reduce((function(e,t){return[].concat(re()(e),re()(t))}),[]);if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const ie=function(e,t){return 0!==t.length||(!e||isNaN(e))};var ae=c(74848),se=L().mark(pe),ce=L().mark(fe),ue=L().mark(ge),le=function(e){return e.entityBrowser},de=function(e){return e.input};function pe(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.Q7)([(0,F.p8)(W.M4,me),(0,F.p8)(W.z3,fe),(0,F.p8)(W.o7,ve)]);case 2:case"end":return e.stop()}}),se)}function fe(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.yJ)(W.EJ(void 0));case 2:case"end":return e.stop()}}),ce)}function me(e){var t=e.payload;return L().mark((function e(){var n,r,o,i,a,s,c,u,l,d,p,f,m,h,g,v;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.T1)(oe,t.url);case 2:return n=e.sent,r=n.modelPaths,o=n.entityId,i=n.parentUrl,e.next=8,(0,F.Lt)(le);case 8:return a=e.sent,s=a.entityName,c=a.formBase,e.next=13,(0,F.T1)(te.getMode,o);case 13:return u=e.sent,e.next=16,(0,F.T1)(he,s,r,c);case 16:return l=e.sent,d=q()(l,2),p=d[0],f=d[1],e.next=22,(0,F.Lt)(de);case 22:return m=e.sent,h=m.initialKey,e.next=26,(0,F.T1)(ie,h,r);case 26:return g=e.sent,v={mode:u,entityId:o,entityName:p,formName:f,parentUrl:i,showBackButton:g},e.next=30,(0,F.yJ)(W.EJ(v));case 30:case"end":return e.stop()}}),e)}))()}function he(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return L().mark((function o(){var i,a,s,c,u,l,d;return L().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i=V()(t),a=i[0],s=i.slice(1),a){o.next=3;break}return o.abrupt("return",[e,r]);case 3:return o.next=5,(0,F.T1)(Z,e);case 5:if(c=o.sent,u=c[a]){o.next=16;break}return o.next=10,(0,F.T1)(G.A.fetchForm,"".concat(n,"_detail_").concat(a),"list");case 10:return l=o.sent,o.next=13,(0,F.T1)(he,l.modelName,s,"".concat(n,"_").concat(a));case 13:case 19:return o.abrupt("return",o.sent);case 16:return d="".concat(n,"_").concat(u.targetEntity),o.next=19,(0,F.T1)(he,u.targetEntity,s,n,d);case 20:case"end":return o.stop()}}),o)}))()}function ge(e){var t;return L().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,F.T1)($.Ix);case 2:return t=n.sent,n.next=5,(0,F.yJ)(P.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,ae.jsx)(K.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 5:return n.next=7,(0,F.s)(t);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),ue)}function ve(e){var t=e.payload;return L().mark((function e(){var n,r;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=3,(0,F.T1)(ge,n);case 3:if("yes"!==e.sent){e.next=9;break}return e.next=7,(0,F.T1)(r,!0);case 7:e.next=11;break;case 9:return e.next=11,(0,F.T1)(r,!1);case 11:case"end":return e.stop()}}),e)}))()}var ye=L().mark(be);function be(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.Q7)([(0,F.Zy)(pe)]);case 2:case"end":return e.stop()}}),ye)}const we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,t=arguments.length>1?arguments[1]:void 0,n=B[t.type];return n?n(e,t):e};function xe(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}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ke=p()(p()(p()(p()({},C.Rf,H.A.singleTransferReducer("entityName")),C.g0,(function(e,t){var n=t.payload.formBase;return n?Oe(Oe({},e),{},{formBase:n}):Oe({},e)})),C.J6,H.A.singleTransferReducer("scrollBehaviour")),C.PH,H.A.singleTransferReducer("appId")),Ae={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var Se=L().mark(Pe),je=L().mark(De),Ee=L().mark(_e);function Pe(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.Q7)([(0,F.T1)(De),(0,F.p8)(C.XA,_e)]);case 2:case"end":return e.stop()}}),Se)}function De(){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,F.s)(e.A.INPUT_INITIALIZED);case 2:return t.next=4,(0,F.yJ)(E.A.doSessionCheck());case 4:case"end":return t.stop()}}),je)}function _e(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.yJ)(j.A.fireExternalEvent("onRouteChange"));case 2:case"end":return e.stop()}}),Ee)}var Te=L().mark(Ce);function Ce(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.Q7)([(0,F.Zy)(Pe)]);case 2:case"end":return e.stop()}}),Te)}const Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ae,t=arguments.length>1?arguments[1]:void 0,n=ke[t.type];return n?n(e,t):e},Ie={detail:we,form:R.A,entityBrowser:Me};var Re,Ne,Le=[Ce,be];function Fe(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}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We="entity-browser",Be=["onVisibilityStatusChange","onRouteChange"],Ye=w().lazy((function(){return Promise.all([c.e(70),c.e(651)]).then(c.bind(c,19651))})),Ue=function(){return Re||(Re=(0,ae.jsx)(b.Suspense,{fallback:"",children:(0,ae.jsx)(Ye,{})}))},Ve=function(e){var t=e.initialKey,n=e.initialAction,r=(0,x.Zp)(),o=(0,x.zy)().pathname;(0,b.useEffect)((function(){if(t&&!isNaN(t)){if(!o.match(/\/detail\/[0-9]*/)){var e="/detail/".concat(t);r(e)}}if(n&&n.name){var i="/action/".concat(n.name,"?").concat(D.A.toQueryString(n.properties));r(i)}}),[])},ze=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?x.bg:x.Ge)([{path:"*",element:(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(Ve,{initialKey:n,initialAction:r}),Ne||(Ne=(0,ae.jsx)(Ue,{}))]})}]);return(0,ae.jsx)(O.p,{router:o})},qe=function(t,n,r,o){n=He(He({},n),{},{id:t}),i.A.setInputEnvs(n);var a=e.A.createStore(Ie,Le,n,We);j.A.addToStore(a,(function(t){return e.A.getEvents(Be,t.input)})),k.A.addToStore(a),A.A.dynamicActionsAddToStore(a),S.A.addToStore(a,!0,["console","remote","notification"]),P.A.addToStore(a,!0),E.A.addToStore(a);var s=(0,ae.jsx)(ze,{memoryRouter:n.memoryHistory,initialKey:n.initialKey,initialAction:n.initialAction});return e.A.createApp(We,s,a,{input:n,actions:M(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},$e=function(t){var n=e.A.useApp({initApp:qe,props:t,packageName:We}),r=n.component,o=n.store,i=_.A.usePrevious(t);return _.A.useDidUpdate((function(){var e=y()(t,(function(e,t){return!g()(e,i[t])}));m()(e)||M(e,!1).forEach((function(e){o.dispatch(e)}))}),[t]),(0,ae.jsx)(ae.Fragment,{children:r})};$e.propTypes=He({entityName:n().string.isRequired,searchFormType:o.X,formBase:n().string,limit:n().oneOfType([n().number,n().string]),preselectedSearchFields:n().array,searchFilters:n().arrayOf(n().string),simpleSearchFields:n().string,initialKey:n().string,initialAction:n().shape({name:n().string,properties:n().objectOf(n().object)}),businessUnit:n().string,memoryHistory:n().bool,backendUrl:n().string,scrollBehaviour:n().oneOf(["none","inline"]),appContext:a.A.propTypes,modifyFormDefinition:n().func,modifyEntityPaths:n().func,disableDetailView:n().bool,reportIds:n().arrayOf(n().string),customActionEventHandlers:n().objectOf(n().objectOf(n().func)),isHidden:n().bool},j.A.createPropTypes(Be));const Ge=$e;e.A.createBundleableApp(We,qe,$e);var Ke=c(53727),Qe=c(46836),Je=L().mark(Xe);function Xe(e,t){var n,r;return L().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,G.A.fetchEntity("Membership",t,{paths:["relMembership_type.unique_id"]},{},Qe.A.getFlattenEntity);case 2:if(n=o.sent,r=n["relMembership_type.unique_id"],"haushalt".includes(r)){o.next=8;break}return o.abrupt("return",Ke.A.removeBoxes(e,["relTeam_member"]));case 8:return o.abrupt("return",e);case 9:case"end":return o.stop()}}),Je)}const Ze=function(e){var t=e.formBase,n=e.reportIds,r=e.searchFilters,o=e.limit,i=e.backendUrl,a=e.businessUnit,s=e.appContext,c=e.searchFormType,u=e.locale;return(0,ae.jsx)(Ge,{entityName:"Membership",formBase:t,searchFilters:r,limit:o,modifyFormDefinition:function(e,n){return function(e,t,n){t.parent;var r=t.entityId,o=n.formBase;return L().mark((function t(){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.id!=="".concat(o,"_detail")){t.next=6;break}return t.next=3,Xe(e,r);case 3:return t.abrupt("return",t.sent);case 6:return t.abrupt("return",e);case 7:case"end":return t.stop()}}),t)}))()}(e,n,{formBase:t})},backendUrl:i,businessUnit:a,appContext:s,reportIds:n,searchFormType:c,locale:u})};const et=(0,l.Ng)((function(e){return{formBase:e.input.formBase,reportIds:e.input.reportIds,searchFilters:e.input.searchFilters,limit:e.input.limit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext,searchFormType:e.input.searchFormType,locale:e.intl.locale}}),{})((0,s.Ay)(Ze));var tt,nt="fdp-membership-administration",rt=function(t,n,r,o){i.A.setInputEnvs(n);var a=tt||(tt=(0,ae.jsx)(et,{})),s=e.A.createStore({},null,n,nt);return e.A.createApp(nt,a,s,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",nt]})},ot=function(t){return e.A.useApp({initApp:rt,props:t,packageName:nt}).component};ot.propTypes={appContext:a.A.propTypes.isRequired,selection:r.A.propType.isRequired,reportIds:n().arrayOf(n().string).isRequired,searchFilters:n().arrayOf(n().string),searchFormType:o.X,limit:n().number,backendUrl:n().string,businessUnit:n().string,entityName:n().string,formBase:n().string};var it=e.A.createBundleableApp(nt,rt,ot);e.A.registerAppInRegistry(it.name,it.init)})(),u})()));
|
|
51
|
+
function a(e){return o.createElement(r.pg,{flushSync:i.flushSync,...e})}},77987:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},95065:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e){if(Array.isArray(e))return(0,r.A)(e)}},97991:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},24747:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},27887:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>o})},6624:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37444),o=n(89954),i=n(1560);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},37444:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},49523:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(15216);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},89954:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{A:()=>r})},62439:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},21648:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}n.d(t,{A:()=>r})},37820:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},77969:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88097);function o(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}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},8609:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},1560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(65710),o=n(97991);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},15216:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},52167:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6695),o=n(21648),i=n(25134),a=n(37820);function s(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},47978:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},78840:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(95065),o=n(62439),i=n(25134),a=n(77969);function s(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},65710:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},72367:(e,t,n)=>{"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725:(e,t,n)=>{"use strict";n.d(t,{ll:()=>w});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return o(e).getComputedStyle(e)}function a(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function s(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function c(e){return e instanceof o(e).HTMLElement}function u(e){return e instanceof o(e).Element}function l(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=i(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function p(){return!/^((?!chrome|android).)*safari/i.test(s())}function f(e){return["html","body","#document"].includes(a(e))}Math.min,Math.max;const m=Math.round;function h(e,t,n){var r,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let d=1,f=1;t&&c(e)&&(d=e.offsetWidth>0&&m(l.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(l.height)/e.offsetHeight||1);const h=u(e)?o(e):window,g=!p()&&n,v=(l.left+(g&&null!=(r=null==(i=h.visualViewport)?void 0:i.offsetLeft)?r:0))/d,y=(l.top+(g&&null!=(a=null==(s=h.visualViewport)?void 0:s.offsetTop)?a:0))/f,b=l.width/d,w=l.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||(l(e)?e.host:null)||g(e);return l(t)?t.host:t}function y(e){const t=v(e);return f(t)?e.ownerDocument.body:c(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r),s=i?[a].concat(a.visualViewport||[],d(r)?r:[]):r,c=t.concat(s);return i?c:c.concat(b(s))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,l=c||i?[...u(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];l.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let d,p=null;if(a){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),u(e)&&!s&&p.observe(e),u(e)||!e.contextElement||s||p.observe(e.contextElement),p.observe(t)}let f=s?h(e):null;return s&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(d)}}},92149:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(4883),o=n(81845),i=n(2418);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const s=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class c extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new i(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,s),i=a({target:this._targetNode.current,element:this._elementParentNode},o),c=n||"";if(this._elementParentNode&&this._elementParentNode.id!==c&&(this._elementParentNode.id=c),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346:(e,t,n)=>{"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>i});var o=r(),i=r},14644:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>u,Qd:()=>s,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>c,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function c(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(c)(e,t)}let i=e,u=t,l=new Map,d=l,p=0,f=!1;function m(){d===l&&(d=new Map,l.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return u}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),l=null}}}function v(e){if(!s(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,u=i(u,e)}finally{f=!1}return(l=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const c=o[i],u=n[c],l=e[c],d=u(l,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[c]=d,a=a||d!==l}return a=a||o.length!==Object.keys(e).length,a?s:e}}function l(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=l(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},c=e.map((e=>e(s)));return a=p(...c)(i.dispatch),{...i,dispatch:a}}}function m(e){return s(e)&&"type"in e&&"string"==typeof e.type}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",236:"actions",262:"html-editor",310:"vendor-fontawesome",556:"docs-actions",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{70:"6eb35e116783c5bdc17a",103:"070cdff7e5c49728122c",211:"208fc82f53d7c47efffd",222:"d22493eb8abed64fbc15",236:"20504ea7924e630e9c99",262:"be6102835fc6c08d6768",264:"f997db76343655ab8b40",310:"42de47680bccd9d0e22f",389:"5cfcfbf63bc56900ed6e",432:"26c37b871737878e37d0",498:"218a3daec8088f81f59d",556:"1d830f53cd8af7679a3f",651:"5bac185be1a5986d4098",672:"4a53f4b50dad490f6793",722:"498f6ff2b4763e472370",916:"1b12f7190281edbe5640",987:"ecec1b4eeb2cd1cfc432"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-fdp-bundle:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={471:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_fdp_bundle=this.webpackChunktocco_fdp_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>it});var e=c(61402),t=c(5556),n=c.n(t),r=c(27772),o=c(52334),i=c(60115),a=c(82682),s=c(38798),l=c(71468),d=c(26396),p=c.n(d),f=c(62193),m=c.n(f),h=c(2404),g=c.n(h),v=c(71086),y=c.n(v),b=c(4883),w=c.n(b),x=c(76744),O=c(52600),k=c(88951),A=c(13128),S=c(59042),j=c(28391),E=c(18601),P=c(72942),D=c(12956),_=c(7311),T=c(66498),C=c(35301),M=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return T.A.getDispatchActions(e,I,t)},I=[{name:"entityName",action:C.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:C.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:C.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:C.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:C.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],R=c(44467),N=c(92207),L=c.n(N),F=c(90167),H=c(29056),W=c(71635),B=p()(p()({},W.Bt,H.A.singleTransferReducer("formTouched")),W.wr,H.A.singleTransferReducer("detailParams")),Y={detailParams:void 0,formTouched:!1};var U=c(15890),V=c.n(U),z=c(22056),q=c.n(z),$=c(32742),G=c(57327),K=c(27399);function Q(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}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=J({},e)})),e.relations.forEach((function(e){t[e.relationName]=J({type:"relation"},e)})),t};function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;return L().mark((function n(){var r;return L().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,F.T1)(G.A.requestSaga,"entities/".concat(e,"/model"));case 2:return r=n.sent,n.next=5,(0,F.T1)(t,r.body);case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)}))()}var ee={CREATE:"create",UPDATE:"update"};const te={modes:ee,getMode:function(e){return void 0===e?ee.CREATE:ee.UPDATE}};var ne=c(21259),re=c.n(ne);const oe=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0})).map((function(e){return e.split(".")})).reduce((function(e,t){return[].concat(re()(e),re()(t))}),[]);if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const ie=function(e,t){return 0!==t.length||(!e||isNaN(e))};var ae=c(74848),se=L().mark(pe),ce=L().mark(fe),ue=L().mark(ge),le=function(e){return e.entityBrowser},de=function(e){return e.input};function pe(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.Q7)([(0,F.p8)(W.M4,me),(0,F.p8)(W.z3,fe),(0,F.p8)(W.o7,ve)]);case 2:case"end":return e.stop()}}),se)}function fe(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.yJ)(W.EJ(void 0));case 2:case"end":return e.stop()}}),ce)}function me(e){var t=e.payload;return L().mark((function e(){var n,r,o,i,a,s,c,u,l,d,p,f,m,h,g,v;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.T1)(oe,t.url);case 2:return n=e.sent,r=n.modelPaths,o=n.entityId,i=n.parentUrl,e.next=8,(0,F.Lt)(le);case 8:return a=e.sent,s=a.entityName,c=a.formBase,e.next=13,(0,F.T1)(te.getMode,o);case 13:return u=e.sent,e.next=16,(0,F.T1)(he,s,r,c);case 16:return l=e.sent,d=q()(l,2),p=d[0],f=d[1],e.next=22,(0,F.Lt)(de);case 22:return m=e.sent,h=m.initialKey,e.next=26,(0,F.T1)(ie,h,r);case 26:return g=e.sent,v={mode:u,entityId:o,entityName:p,formName:f,parentUrl:i,showBackButton:g},e.next=30,(0,F.yJ)(W.EJ(v));case 30:case"end":return e.stop()}}),e)}))()}function he(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return L().mark((function o(){var i,a,s,c,u,l,d;return L().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i=V()(t),a=i[0],s=i.slice(1),a){o.next=3;break}return o.abrupt("return",[e,r]);case 3:return o.next=5,(0,F.T1)(Z,e);case 5:if(c=o.sent,u=c[a]){o.next=16;break}return o.next=10,(0,F.T1)(G.A.fetchForm,"".concat(n,"_detail_").concat(a),"list");case 10:return l=o.sent,o.next=13,(0,F.T1)(he,l.modelName,s,"".concat(n,"_").concat(a));case 13:case 19:return o.abrupt("return",o.sent);case 16:return d="".concat(n,"_").concat(u.targetEntity),o.next=19,(0,F.T1)(he,u.targetEntity,s,n,d);case 20:case"end":return o.stop()}}),o)}))()}function ge(e){var t;return L().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,F.T1)($.Ix);case 2:return t=n.sent,n.next=5,(0,F.yJ)(P.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,ae.jsx)(K.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 5:return n.next=7,(0,F.s)(t);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),ue)}function ve(e){var t=e.payload;return L().mark((function e(){var n,r;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=3,(0,F.T1)(ge,n);case 3:if("yes"!==e.sent){e.next=9;break}return e.next=7,(0,F.T1)(r,!0);case 7:e.next=11;break;case 9:return e.next=11,(0,F.T1)(r,!1);case 11:case"end":return e.stop()}}),e)}))()}var ye=L().mark(be);function be(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.Q7)([(0,F.Zy)(pe)]);case 2:case"end":return e.stop()}}),ye)}const we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,t=arguments.length>1?arguments[1]:void 0,n=B[t.type];return n?n(e,t):e};function xe(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}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ke=p()(p()(p()(p()({},C.Rf,H.A.singleTransferReducer("entityName")),C.g0,(function(e,t){var n=t.payload.formBase;return n?Oe(Oe({},e),{},{formBase:n}):Oe({},e)})),C.J6,H.A.singleTransferReducer("scrollBehaviour")),C.PH,H.A.singleTransferReducer("appId")),Ae={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var Se=L().mark(Pe),je=L().mark(De),Ee=L().mark(_e);function Pe(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.Q7)([(0,F.T1)(De),(0,F.p8)(C.XA,_e)]);case 2:case"end":return e.stop()}}),Se)}function De(){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,F.s)(e.A.INPUT_INITIALIZED);case 2:return t.next=4,(0,F.yJ)(E.A.doSessionCheck());case 4:case"end":return t.stop()}}),je)}function _e(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.yJ)(j.A.fireExternalEvent("onRouteChange"));case 2:case"end":return e.stop()}}),Ee)}var Te=L().mark(Ce);function Ce(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.Q7)([(0,F.Zy)(Pe)]);case 2:case"end":return e.stop()}}),Te)}const Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ae,t=arguments.length>1?arguments[1]:void 0,n=ke[t.type];return n?n(e,t):e},Ie={detail:we,form:R.A,entityBrowser:Me};var Re,Ne,Le=[Ce,be];function Fe(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}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We="entity-browser",Be=["onVisibilityStatusChange","onRouteChange"],Ye=w().lazy((function(){return Promise.all([c.e(70),c.e(651)]).then(c.bind(c,19651))})),Ue=function(){return Re||(Re=(0,ae.jsx)(b.Suspense,{fallback:"",children:(0,ae.jsx)(Ye,{})}))},Ve=function(e){var t=e.initialKey,n=e.initialAction,r=(0,x.Zp)(),o=(0,x.zy)().pathname;(0,b.useEffect)((function(){if(t&&!isNaN(t)){if(!o.match(/\/detail\/[0-9]*/)){var e="/detail/".concat(t);r(e)}}if(n&&n.name){var i="/action/".concat(n.name,"?").concat(D.A.toQueryString(n.properties));r(i)}}),[])},ze=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?x.bg:x.Ge)([{path:"*",element:(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(Ve,{initialKey:n,initialAction:r}),Ne||(Ne=(0,ae.jsx)(Ue,{}))]})}]);return(0,ae.jsx)(O.p,{router:o})},qe=function(t,n,r,o){n=He(He({},n),{},{id:t}),i.A.setInputEnvs(n);var a=e.A.createStore(Ie,Le,n,We);j.A.addToStore(a,(function(t){return e.A.getEvents(Be,t.input)})),k.A.addToStore(a),A.A.dynamicActionsAddToStore(a),S.A.addToStore(a,!0,["console","remote","notification"]),P.A.addToStore(a,!0),E.A.addToStore(a);var s=(0,ae.jsx)(ze,{memoryRouter:n.memoryHistory,initialKey:n.initialKey,initialAction:n.initialAction});return e.A.createApp(We,s,a,{input:n,actions:M(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},$e=function(t){var n=e.A.useApp({initApp:qe,props:t,packageName:We}),r=n.component,o=n.store,i=_.A.usePrevious(t);return _.A.useDidUpdate((function(){var e=y()(t,(function(e,t){return!g()(e,i[t])}));m()(e)||M(e,!1).forEach((function(e){o.dispatch(e)}))}),[t]),(0,ae.jsx)(ae.Fragment,{children:r})};$e.propTypes=He({entityName:n().string.isRequired,searchFormType:o.X,formBase:n().string,limit:n().oneOfType([n().number,n().string]),preselectedSearchFields:n().array,searchFilters:n().arrayOf(n().string),simpleSearchFields:n().string,initialKey:n().string,initialAction:n().shape({name:n().string,properties:n().objectOf(n().object)}),businessUnit:n().string,memoryHistory:n().bool,backendUrl:n().string,scrollBehaviour:n().oneOf(["none","inline"]),appContext:a.A.propTypes,modifyFormDefinition:n().func,modifyEntityPaths:n().func,disableDetailView:n().bool,reportIds:n().arrayOf(n().string),customActionEventHandlers:n().objectOf(n().objectOf(n().func)),isHidden:n().bool},j.A.createPropTypes(Be));const Ge=$e;e.A.createBundleableApp(We,qe,$e);var Ke=c(53727),Qe=c(46836),Je=L().mark(Xe);function Xe(e,t){var n,r;return L().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,G.A.fetchEntity("Membership",t,{paths:["relMembership_type.unique_id"]},{},Qe.A.getFlattenEntity);case 2:if(n=o.sent,r=n["relMembership_type.unique_id"],"haushalt".includes(r)){o.next=8;break}return o.abrupt("return",Ke.A.removeBoxes(e,["relTeam_member"]));case 8:return o.abrupt("return",e);case 9:case"end":return o.stop()}}),Je)}const Ze=function(e){var t=e.formBase,n=e.reportIds,r=e.searchFilters,o=e.limit,i=e.backendUrl,a=e.businessUnit,s=e.appContext,c=e.searchFormType,u=e.locale;return(0,ae.jsx)(Ge,{entityName:"Membership",formBase:t,searchFilters:r,limit:o,modifyFormDefinition:function(e,n){return function(e,t,n){t.parent;var r=t.entityId,o=n.formBase;return L().mark((function t(){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.id!=="".concat(o,"_detail")){t.next=6;break}return t.next=3,Xe(e,r);case 3:return t.abrupt("return",t.sent);case 6:return t.abrupt("return",e);case 7:case"end":return t.stop()}}),t)}))()}(e,n,{formBase:t})},backendUrl:i,businessUnit:a,appContext:s,reportIds:n,searchFormType:c,locale:u})};const et=(0,l.Ng)((function(e){return{formBase:e.input.formBase,reportIds:e.input.reportIds,searchFilters:e.input.searchFilters,limit:e.input.limit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext,searchFormType:e.input.searchFormType,locale:e.intl.locale}}),{})((0,s.Ay)(Ze));var tt,nt="fdp-membership-administration",rt=function(t,n,r,o){i.A.setInputEnvs(n);var a=tt||(tt=(0,ae.jsx)(et,{})),s=e.A.createStore({},null,n,nt);return e.A.createApp(nt,a,s,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",nt]})},ot=function(t){return e.A.useApp({initApp:rt,props:t,packageName:nt}).component};ot.propTypes={appContext:a.A.propTypes.isRequired,selection:r.A.propType.isRequired,reportIds:n().arrayOf(n().string).isRequired,searchFilters:n().arrayOf(n().string),searchFormType:o.X,limit:n().number,backendUrl:n().string,businessUnit:n().string,entityName:n().string,formBase:n().string};var it=e.A.createBundleableApp(nt,rt,ot);e.A.registerAppInRegistry(it.name,it.init)})(),u})()));
|