1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`160.0.14`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f32f8cc3-87ed-4a27-8b52-b1f181150143`,e._sentryDebugIdIdentifier=`sentry-dbid-f32f8cc3-87ed-4a27-8b52-b1f181150143`)}catch{}})();import{o as e}from"./rolldown-runtime.RMcwpW1G.js";import{a as t,n}from"./react-vendors.BZB_YSvT.js";import{kt as r,n as i,t as a}from"./appControllerInstance.DhoqYw95.js";import{h as o}from"./e_PropertyTypes.DnrkKsdf.js";import{D as s,O as c}from"./logger.BOwJGCjy.js";import{D as l}from"./metadataSelectors.xUlWSdLC.js";import{t as u}from"./e_UiComponentType.B1DX2B0c.js";var d=e(t(),1),f=n(),p=e=>t=>class extends d.Component{constructor(t){super(t),this.mapStateToProps=e(),this.state={dataUpdateReference:0,mapStateToProps:this.mapStateToProps,app:l(s())},this.updateHandler=this.updateHandler.bind(this);let n=t.nestingLevelOffset||0;this.nestingLevel=t.view.__nestingLevel+n,t.view.__isDataDependent&&a.subscribeComponent(this.updateHandler,this.nestingLevel)}static getDerivedStateFromProps(e,t){let n=t.mapStateToProps(e,{getDataFromDataValue:a.getDataFromDataValue,getDataFromDataBinding:a.getDataFromDataBinding}),r=t.dataUpdateReference;return e.dataUpdateReference&&e.dataUpdateReference>t.dataUpdateReference&&(r=e.dataUpdateReference),{...t,dataUpdateReference:r,newProps:{...e,...n}}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,this.props.view.__isDataDependent&&a.unsubscribeComponent(this.updateHandler,this.nestingLevel)}updateHandler(e,t,{metadataDidChange:n}){if(!this._isMounted)return;if(n){this.setState({dataUpdateReference:t});return}let r=this.props.view.__dataSourcesInUse;e.some(e=>r[e])&&this.setState({dataUpdateReference:t})}eventHandler(e,t,n={},r,a){e&&r&&r.stopPropagation();let o={...n,currentTarget:r?.currentTarget},s=c().dispatch;s(i(e,t||{},o,a))}render(){return(0,f.jsx)(t,{...this.state.newProps,app:this.state.app,appController:a,eventHandler:this.eventHandler,dataUpdateReference:this.state.dataUpdateReference})}},m=e=>t=>class extends d.Component{mapStateToProps;_isMounted;nestingLevel;repeatingContentDataBinding;constructor(t){super(t),this.mapStateToProps=e(),this.state={dataUpdateReference:0,changeDescriptors:{},mapStateToProps:this.mapStateToProps},this.updateHandler=this.updateHandler.bind(this),this.eventHandler=this.eventHandler.bind(this),this._initiate=this._initiate.bind(this),this._initiate()}static getDerivedStateFromProps(e,t){let n=t.mapStateToProps(e,{getDataFromDataValue:a.getDataFromDataValue,getDataFromDataBinding:a.getDataFromDataBinding}),r=t.dataUpdateReference;return e.dataUpdateReference&&e.dataUpdateReference>t.dataUpdateReference&&(r=e.dataUpdateReference),{...t,dataUpdateReference:r,newProps:{...e,...n}}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,this.props.component.__isDataDependent&&this.nestingLevel&&a.unsubscribeComponent(this.updateHandler,this.nestingLevel)}_initiate(){let e=this.props.nestingLevelOffset||0;if(this.nestingLevel=(this.props.component.__nestingLevel||0)+e,this.props.component.__isDataDependent&&this.nestingLevel){let e=this.props.component,t=e.componentType;this.repeatingContentDataBinding=t===u.CONTAINER&&e.value,a.subscribeComponent(this.updateHandler,this.nestingLevel)}}updateHandler(e,t,{changeDescriptors:n,metadataDidChange:i}){if(!this._isMounted)return;if(i){this.setState({dataUpdateReference:t,changeDescriptors:n});return}let a=this.props.component.__dataSourcesInUse;a&&e.some(e=>a[e])&&this.props.dataUpdateReference!==t&&Object.keys(a).some(e=>{if(!n[e])return!1;let t=n[e],i=a[e],s=this.props.contextData?.[e];if(t[r.SELECTION_CHANGE])if(this.repeatingContentDataBinding?.dataSourceId===e){let e=t[r.SELECTION_CHANGE].changedNodeNames;if(Object.keys(i).some(t=>e[t])||[o.SWIPABLE_HORIZONTAL,o.SWIPABLE_VERTICAL].includes(this.props.component.iterationVariant)||this.repeatingContentDataBinding.dataSourcesInUse)return!0}else if(s?.length){if(t[r.SELECTION_CHANGE].affectedObjectIds[s[0]._id])return!0}else return!0;
1if(t[r.OBJECT_MODIFIED]){let e=!1,n=t[r.OBJECT_MODIFIED].changedNodeNames;if(Object.keys(i).some(e=>n[e])&&(e=!0),s?.length){if(e&&t[r.OBJECT_MODIFIED].affectedObjectIds[s[0]._id])return!0}else if(e)return!0}if(t[r.OBJECT_ADDED]&&!s||t[r.OBJECT_REMOVED]&&!s||t[r.SORT_CHANGE]||t[r.INITIAL_DATA]||t[r.DATA_REPLACED])return!0})&&this.setState({dataUpdateReference:t,changeDescriptors:n})}eventHandler=(e,t,n,r,a)=>{if(e&&r&&r.stopPropagation&&r.stopPropagation(),this.props.disabled)return;let o={...n,currentTarget:n?.overrideTarget||r?.currentTarget},s=c().dispatch;s(i(e,t||this.props.contextData,o,a))};render(){return(0,f.jsx)(t,{...this.state.newProps,nestingLevel:this.nestingLevel,appController:a,eventHandler:this.eventHandler,dataUpdateReference:this.state.dataUpdateReference})}},h=e=>t=>class extends d.Component{constructor(t){super(t),this.mapStateToProps=e(),this.updateHandler=this.updateHandler.bind(this),this.state={updateHandler:this.updateHandler,dataUpdateReference:0,isSubscribed:!1,changeDescriptors:{},mapStateToProps:this.mapStateToProps},this.eventHandler=this.eventHandler.bind(this)}static getDerivedStateFromProps(e,t){let n=t.mapStateToProps(e,{getDataFromDataValue:a.getDataFromDataValue,getDataFromDataBinding:a.getDataFromDataBinding}),r=t.dataUpdateReference;e.dataUpdateReference&&e.dataUpdateReference>t.dataUpdateReference&&(r=e.dataUpdateReference);let i=t.isSubscribed;return e.component.__isDataDependent&&!i&&(a.subscribeComponent(t.updateHandler,0),i=!0),!e.component.__isDataDependent&&i&&(a.unsubscribeComponent(t.updateHandler,0),i=!1),{...t,dataUpdateReference:r,isSubscribed:i,newProps:{...e,...n}}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,this.state.isSubscribed&&a.unsubscribeComponent(this.updateHandler,0)}updateHandler(e,t,{metadataDidChange:n}){if(this._isMounted){if(n){this.setState({dataUpdateReference:t});return}e.some(e=>this.props.component.__dataSourcesInUse[e])&&this.props.dataUpdateReference!==t&&this.setState({dataUpdateReference:t})}}eventHandler(e,t,n={},r){if(e&&r&&r.stopPropagation(),this.props.disabled)return;let a={...n,currentTarget:r?.currentTarget},o=c().dispatch;o(i(e,t||this.props.contextData,a))}render(){return(0,f.jsx)(t,{...this.state.newProps,nestingLevel:0,appController:a,eventHandler:this.eventHandler,dataUpdateReference:this.state.dataUpdateReference})}},g=(e,t,n={})=>r=>class extends d.Component{constructor(r){if(super(r),this.mapDispatchToProps=null,this.mapStateToProps=null,e&&(this.mapStateToProps=e.length?e:e()),t&&(this.mapDispatchToProps=t.length?t:t()),n.subscribeToData){let e=()=>{console.log(`FORCE UPDATE`),this.forceUpdate()};a.subscribeComponent(e),this.unsubscribeToData=()=>{a.unsubscribeComponent(e)}}}render(){let e=this.mapStateToProps?.(s(),this.props,{appController:a})||{},t=this.mapDispatchToProps?.(c().dispatch,this.props)||{};return(0,f.jsx)(r,{...this.props,...e,...t})}};export{p as i,h as n,m as r,g as t}; 2//# sourceMappingURL=https://storage.cloud.google.com/dev-appfarm-source-maps/160-0-14/client/dataConnector.C7Sh3whw.js.map
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.