;/*FB_PKG_DELIM*/ __d("BTManifestName",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum")({MAIN:"main",LONGTAIL:"longtail"}),l=e;i.default=l}),66); __d("BtLongtailHashFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("5779"),s=o("FalcoLoggerInternal").create("bt_longtail_hash",e),u=s;l.default=u}),98); __d("CometBTManifestLoader",["BootloaderEvents","BtLongtailHashFalcoEvent","ClientConsistencyEventEmitter","FBLogger","ODS","Promise","SiteData","TrustedTypes","XHRRequest","asyncToGeneratorRuntime","err","getErrorSafe","justknobx","promiseDone","vulture"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=new Set;function c(e,t,n,r){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,o,a){var i=yield new(s||(s=n("Promise")))(function(n,i){new(r("XHRRequest"))(e+"/btmanifest/"+o+"/"+t+"/"+a).setMethod("GET").setResponseHandler(function(e){return n(e.toString())}).setErrorHandler(function(e){return i(e)}).send()});if(typeof i!="string")throw r("FBLogger")("binary_transparency","bt_invalid_manifest_response").mustfixThrow("Invalid response from BT manifest endpoint");return i}),d.apply(this,arguments)}function m(t,n){(e||(e=o("ODS"))).bumpEntityKey(454,"obc.www.all","bt.comet_manifest_loader.0."+o("SiteData").pkg_cohort+"."+t+"."+n)}function p(e,t,n){r("vulture")("IP8FCZoGIEdkGDgnYB-ERbwf7AA=");var o;if(n instanceof Error)o=n;else if(typeof n=="object"){var a=JSON.stringify(n);o=r("err")("(XHRRequest): %s",a.slice(0,300)+(a.length>300?"...":""))}else o=r("err")(n);r("FBLogger")("binary_transparency","bt_download_manifest_error").catching(o).mustfix('Unable to download and inject BT manifest "%s" for version: %s',t,e)}var _=r("TrustedTypes").createPolicy("bt-manifest",{createScript:function(t){return t}});function f(e,t){return g.apply(this,arguments)}function g(){return g=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){if(!(!o("SiteData").manifest_origin||o("SiteData").manifest_version_prefix==null||o("SiteData").manifest_base_uri==null)){var n=e+"_"+t,a=""+o("SiteData").manifest_version_prefix+e;if(!u.has(n)){m(t,"start"),u.add(n);try{var i,l=document.createElement("script"),s=yield c(o("SiteData").manifest_base_uri,o("SiteData").manifest_origin,a,t);r("justknobx")._("3786")?l.text=_.createScript(s):l.text=s,l.type="application/json",l.setAttribute("name","binary-transparency-manifest"),l.dataset.manifestRev=a,l.dataset.manifestType=t,(i=document.head)==null||i.appendChild(l),m(t,"complete")}catch(e){var d=r("getErrorSafe")(e);m(t,"failed"),p(a,t,d),u.delete(n)}}}}),g.apply(this,arguments)}function h(){r("promiseDone")(f(o("SiteData").client_revision,"main")),o("BootloaderEvents").onResourceInLongTailBTManifest(function(e){r("promiseDone")(f(o("SiteData").client_revision,"longtail")),e.hashes.forEach(function(t){r("BtLongtailHashFalcoEvent").log(function(){return{client_revision:String(o("SiteData").client_revision),ef_page:o("SiteData").ef_page||"",hash:t,pkg_cohort:o("SiteData").pkg_cohort,reference:e.source,rls_id:o("SiteData").hsi}})})}),r("ClientConsistencyEventEmitter").addListener("newRevision",function(e){r("promiseDone")(f(e,"main")),r("promiseDone")(f(e,"longtail"))})}l.init=h}),98); /** * License: https://www.facebook.com/legal/license/MDzNl_j9yvg/ */ __d("ms-2.1.1",[],(function(t,n,r,o,a,i){"use strict";var e={},l={exports:e};function s(){var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,a=r*365.25;l.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return i(e);if(n==="number"&&isNaN(e)===!1)return t.long?u(e):s(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function i(i){if(i=String(i),!(i.length>100)){var l=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(l){var s=parseFloat(l[1]),u=(l[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"weeks":case"week":case"w":return s*o;case"days":case"day":case"d":return s*r;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*t;case"seconds":case"second":case"secs":case"sec":case"s":return s*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function s(o){var a=Math.abs(o);return a>=r?Math.round(o/r)+"d":a>=n?Math.round(o/n)+"h":a>=t?Math.round(o/t)+"m":a>=e?Math.round(o/e)+"s":o+"ms"}function u(o){var a=Math.abs(o);return a>=r?c(o,a,r,"day"):a>=n?c(o,a,n,"hour"):a>=t?c(o,a,t,"minute"):a>=e?c(o,a,e,"second"):o+" ms"}function c(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}}var u=!1;function c(){return u||(u=!0,s()),l.exports}function d(e){switch(e){case void 0:return c()}}a.exports=d}),null); /** * License: https://www.facebook.com/legal/license/MDzNl_j9yvg/ */ __d("debug-4.1.1",["ms-2.1.1","supports-color-5.5.0"],(function(t,n,r,o,a,i){"use strict";function e(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var l=e(n("ms-2.1.1")),s=e(n("supports-color-5.5.0")),u={},c={exports:u};function d(){function e(e){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=a,n.enabled=s,n.humanize=l(),Object.keys(e).forEach(function(t){n[t]=e[t]}),n.instances=[],n.names=[],n.skips=[],n.formatters={};function t(e){for(var t=0,r=0;r=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function t(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+f.exports.humanize(this.diff),!!this.useColors){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){e!=="%%"&&(n++,e==="%c"&&(r=n))}),e.splice(r,0,t)}}function n(){return typeof console=="object"&&console.log&&console.log.apply(console,arguments)}function r(e){try{e?_.storage.setItem("debug",e):_.storage.removeItem("debug")}catch(e){}}function o(){var e;try{e=_.storage.getItem("debug")}catch(e){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}function a(){try{return localStorage}catch(e){}}f.exports=p()(_);var i=f.exports.formatters;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}var h=!1;function y(){return h||(h=!0,g()),f.exports}var C={},b={exports:C};function v(){var e={};C.init=u,C.log=a,C.formatArgs=r,C.save=i,C.load=l,C.useColors=n,C.colors=[6,2,3,4,5,1];try{var t=s();t&&(t.stderr||t).level>=2&&(C.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}C.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),r=process.env[t];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),e[n]=r,e},{});function n(){return"colors"in C.inspectOpts?!!C.inspectOpts.colors:!1}function r(e){var t=this.namespace,n=this.useColors;if(n){var r=this.color,a="\x1B[3"+(r<8?r:"8;5;"+r),i=a+";1m$"+t+"\x1B[0m";e[0]=i+e[0].split("\n").join("\n"+i),e.push(a+"m+"+b.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=o()+t+" "+e[0]}function o(){return C.inspectOpts.hideDate?"":new Date().toISOString()+" "}function a(){return process.stderr.write(e.format.apply(e,arguments)+"\n")}function i(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(e){e.inspectOpts={};for(var t=Object.keys(C.inspectOpts),n=0;nh?C:h,V=C;de();for(var H of(G=(m||(m=r("AnalyticsCoreData"))).stateful_events_list_for_br)!=null?G:[]){var G;I.add(H)}for(var z of(j=(m||(m=r("AnalyticsCoreData"))).stateless_non_fb_events_for_br)!=null?j:[]){var j;T.add(z)}function K(){return(m||(m=r("AnalyticsCoreData"))).enable_bladerunner&&!(_||(_=r("ExecutionEnvironment"))).isInWorker}function Q(e,t){o("FalcoUtils").bumpODSMetrics(t.item.name,"event.info.streaming.batched",1);var n=t.item.extra.length;P+n>g&&(clearTimeout(N),X()),$.push([e,t]),P+=n}function X(){N=null,M=!1;var e=$;re("event.info.streaming.batch_processing",e.map(function(e){return e[1].item})),B?v.enqueue(function(t){return t.log(e.map(function(e){return e[1].item}),function(t){if(!t){Y(e,"event.info.banzai_fallback");return}J(e,t,"event.info.streaming.enqueued")})}):Y(e,"event.non_critical_failure.streaming_init_not_complete"),$=[],P=0}function Y(e,t){var n=function(){var e,n=a[0],i=a[1],l=i.item;if(o("FalcoUtils").bumpODSMetrics(l.name,t,1),l.identity||(l.identity=(m||(m=r("AnalyticsCoreData"))).identity),(e=l.logCritical)!=null&&e)ae.logCritical([l],function(e){return n.markItem(i,e)});else{var s;(s=l.logImmediate)!=null&&s?ae.logImmediately([l],function(e){return n.markItem(i,e)}):ae.log([l],function(e){return n.markItem(i,e)})}};for(var a of e)n()}function J(e,t,n){for(var r of e){var a=r[0],i=r[1];o("FalcoUtils").bumpODSMetrics(i.item.name,n,1),a.markItem(i,t)}}function Z(e){return{events:e.map(function(e){return{name:e.name,extra:e.extra,rate:e.policy.r,time:e.time/1e3,tag:0,tags:e.tags,shouldAddState:e.shouldAddState,identity:te(e.identity),expTags:e.exptTags,sessionID:e.sessionId,deviceID:e.deviceId}})}}function ee(e){var t,n,o,a={deviceId:(m||(m=r("AnalyticsCoreData"))).device_id,familyDeviceId:null,osBuildNumber:null,sessionId:e,appId:m.app_id,appVersion:(t=(m||(m=r("AnalyticsCoreData"))).app_version)!=null?t:null,bundleId:null,consentState:null,identity:null,pushPhase:m.push_phase};return((n=(o=(m||(m=r("AnalyticsCoreData"))).stateful_events_list_for_br)==null?void 0:o.length)!=null?n:0)>0&&(a.ambientState=(m||(m=r("AnalyticsCoreData"))).state_for_br),a.identity=te(m.identity),Object.freeze(a)}function te(e){var t=e==null?void 0:e.claim,n=t!=null?[t]:[];if(x===2||x===3||x===4){var r=e==null?void 0:e.appScopedIdentity;if(r!==void 0)return{appScopedIdentity:{uid:r,identifier:r,claims:n}}}else{var o=e==null?void 0:e.fbIdentity;if(o!==void 0)return{facebookIdentity:{actorId:o.actorId,accountId:o.accountId,claims:n}}}return null}function ne(e,t){for(var n of e){var a,i,l,s=(l={},l.e=n.extra,l.r=n.policy.r,l.d=(a=n.deviceId)!=null?a:(m||(m=r("AnalyticsCoreData"))).device_id,l.s=(i=n.sessionId)!=null?i:o("WebSession").getId(),l.t=n.time,l.a=n.appVersion,l);n.privacyContext&&(s.p=n.privacyContext),n.tags!=null&&(s.b=n.tags);var u=n.identity;u&&(s.id=u),r("Banzai").post(b+n.name,s,t)}re("event.uploaded",e)}function re(e,t){for(var n of t)n.name!==E&&o("FalcoUtils").bumpODSMetrics(n.name,e,1)}function oe(e,t){var n="falco.fabric.www."+(m||(m=r("AnalyticsCoreData"))).push_phase;(d||(d=o("ODS"))).bumpEntityKey(1344,n,e,t)}var ae={log:function(t,n){re("event.info.banzai.log.upload_processing",t),ne(t,r("Banzai").BASIC),n(!0)},logImmediately:function(t,n){re("event.info.banzai.log_immediately.upload_processing",t),ne(t,r("Banzai").VITAL),n(!0)},logCritical:function(t,n){re("event.info.banzai.log_critical.upload_processing",t),ne(t,{signal:!0,retry:!0}),n(!0)}};function ie(e){de();var t=le(e,"banzai_data_loss","log"),n=le(e,"banzai_data_loss","logImmediately"),o=le(e,"banzai_data_loss","logCritical"),a=le(e,"bladerunner_data_loss",""),i=le(e,"bladerunner_data_loss","logCritical");if(oe("js.br_data_loss.posted."+e,1),B&&F)try{v.enqueue(function(t){return t.log([a],function(t){if(!t){oe("js.br.transport_failure."+e,1),ae.logCritical([i],function(t){oe("js.br.failure_fallback_success_callback."+e,1)});return}oe("js.br.success_callback."+e,1)})})}catch(t){oe("js.br.error_enqueueing."+e,1),ae.logCritical([i],function(t){oe("js.br.enqueuing_fallback_success_callback."+e,1)})}else F||oe("js.br.failed."+e,1),B||oe("js.br.init_not_complete."+e,1),ae.logCritical([i],function(t){oe("js.br.init_fallback_success_callback."+e,1)});ne([t],r("Banzai").BASIC),ne([n],r("Banzai").VITAL),ne([o],{signal:!0,retry:!0})}function le(e,t,n){return{name:t,time:(p||(p=r("performanceAbsoluteNow")))(),policy:{r:1},extra:JSON.stringify({event_index:e,falco_js_connection_id:L,logging_mode:n,logging_flow_flag:"original_flow"}),appVersion:(m||(m=r("AnalyticsCoreData"))).app_version}}function se(){W+S=4){var r=n[0],o=n[1],a=n[2],i=n[3];a!==""?t={appScopedIdentity:a,claim:i}:r!==""&&(t={fbIdentity:{accountId:r,actorId:o},claim:i}),k.set(e,t)}return t}function _e(){if(A)return;A=!0,r("PersistedQueue").setHandler("falco_queue_log",function(t){for(var n,a=t.getQueueNameSuffix(),i=pe(a);n=t.dequeueItem();)(function(n){me(n.item)?(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.streaming.log",1),de(),N==null&&(N=setTimeout(X,U)),i&&!e(a)&&(n.item.identity=i),Q(t,n)):(i?n.item.identity=i:n.item.identity=(m||(m=r("AnalyticsCoreData"))).identity,ae.log([n.item],function(e){return t.markItem(n,e)}))})(n)}),r("PersistedQueue").setHandler("falco_queue_immediately",function(t){for(var n,a=t.getQueueNameSuffix(),i=pe(a);n=t.dequeueItem();)(function(n){me(n.item)?(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.streaming.log_immediately",1),de(),(N==null||!M)&&(clearTimeout(N),N=setTimeout(X,V),M=!0),n.item.logImmediate=!0,i&&!e(a)&&(n.item.identity=i),Q(t,n),r("PersistedQueue").isPersistenceAllowed()||(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.streaming_no_persistence.log_immediately",1),X())):(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.banzai.log_immediately",1),i?n.item.identity=i:n.item.identity=(m||(m=r("AnalyticsCoreData"))).identity,ae.logImmediately([n.item],function(e){return t.markItem(n,e)}))})(n)}),r("PersistedQueue").setHandler("falco_queue_critical",function(t){for(var n,a=t.getQueueNameSuffix(),i=pe(a);n=t.dequeueItem();)(function(n){var l=n.item;me(l)?(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.streaming.log_critical",1),de(),l.logCritical=!0,B?(i&&!e(a)&&(l.identity=i),v.enqueue(function(e){return e.logCritical([l],function(e){if(!e){l.identity||(i?l.identity=i:l.identity=(m||(m=r("AnalyticsCoreData"))).identity),Y([[t,n]],"event.info.banzai_fallback.log_critical");return}J([[t,n]],e,"event.uploaded")})})):(i?l.identity=i:l.identity=(m||(m=r("AnalyticsCoreData"))).identity,Y([[t,n]],"event.non_critical_failure.streaming_init_not_complete.log_critical"))):(i?l.identity=i:l.identity=(m||(m=r("AnalyticsCoreData"))).identity,o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.banzai.log_critical",1),ae.logCritical([l],function(e){return t.markItem(n,e)}))})(n)}),(m||(m=r("AnalyticsCoreData"))).enable_dataloss_timer&&(de(),se(),ue());function e(e){try{var t=o("FalcoUtils").identityToString((m||(m=r("AnalyticsCoreData"))).identity);return e===t}catch(e){return(d||(d=o("ODS"))).bumpEntityKey(1344,"js.br.identity.check","exception.when.comparing.with.current.user.identity",1),!0}}}l.attach=_e}),98); __d("JsSelfProfilerIdleProfilerSitevarConfig.experimental",["cr:19549"],(function(t,n,r,o,a,i,l){"use strict";l.default=n("cr:19549")}),98); __d("JsSelfProfilerIdleProfilerSitevarConfigJSModuleWrapper",["JsSelfProfilerIdleProfilerSitevarConfig"],(function(t,n,r,o,a,i,l){"use strict";l.default=r("JsSelfProfilerIdleProfilerSitevarConfig")}),98); __d("JsSelfProfilerIdleTraceRunner",["JsSelfProfilerIdleProfilerSitevarConfig.experimental","Promise","QPLEvent","Random","VisibilityListener","WebLoom","asyncToGeneratorRuntime","cr:13597","performanceAbsoluteNow","qex","qpl"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c,d,m=(u||(u=o("QPLEvent"))).getMarkerId(r("qpl")._(45088770,"466")),p=0,_=m+"_"+p;function f(e,t){return Math.floor(r("Random").random()*(t-e))+e}function g(e){return Math.floor(e*-Math.log(r("Random").random()))}function h(e){return new(s||(s=n("Promise")))(function(t){return void window.setTimeout(t,e)})}function y(e,t){return C.apply(this,arguments)}function C(){return C=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,a){if(n("cr:13597")==null){var i=new Error("JSSP Idle Trace initialized but JSSP was disabled.");throw i.stack,i}t>0&&(yield h(t));var l=(e||(e=r("performanceAbsoluteNow")))();r("WebLoom").startTrace(_,d,l,new Set([n("cr:13597").loomProviderId])),yield h(a);var s=e(),u=o("VisibilityListener").getHiddenTime(l,s);r("WebLoom").endTrace(_,s,{qpl_action:2,hidden:u!=null&&u>0})}),C.apply(this,arguments)}function b(){return v.apply(this,arguments)}function v(){return v=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){for(var e=r("JsSelfProfilerIdleProfilerSitevarConfig.experimental").PAUSE_FOR,t=r("JsSelfProfilerIdleProfilerSitevarConfig.experimental").RUN_FOR,n=r("JsSelfProfilerIdleProfilerSitevarConfig.experimental").REPEAT,o=f(n.min,n.max),a=0;a=o("WAProgressiveJpegMarkers").MARKERS.RST0&&e<=o("WAProgressiveJpegMarkers").MARKERS.RST7?!1:e!==o("WAProgressiveJpegMarkers").MARKERS.EOI&&e!==o("WAProgressiveJpegMarkers").MARKERS.SOI}l.getProgressiveJpegScanOffsets=p}),98); __d("WAProgressiveJpegGetScanLengths",["WAProgressiveJpegGetScanOffsets"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=o("WAProgressiveJpegGetScanOffsets").getProgressiveJpegScanOffsets(e);return u(t)}function s(e){return e}function u(e){var t=[],n=0;for(var r of e)t.push(r-n),n=r;return t}l.getProgressiveJpegScanLengths=e,l.asProgressiveJpegScanLength=s}),98); __d("WAMediaUtils",["WACryptoDependencies","WADirectPath","WALongInt","WAMediaEntryData.pb","WAProgressiveJpegGetScanLengths","WAResultOrError","WAServerMediaType","WATimeUtils","decodeProtobuf","encodeProtobuf","err"],(function(t,n,r,o,a,i,l){"use strict";var e=["$$unknownFieldCount","directPath","objectId"],s=["directPath","downloadableThumbnail","lastDownloadAttemptTimestamp","mediaKey","mediaKeyTimestamp","objectId","progressiveJpegDetails","serverMediaType","sidecar","size","uploadToken"];function u(){var e=new Uint8Array(32);return o("WACryptoDependencies").getCrypto().getRandomValues(e),e.buffer}function c(e){return e}function d(){return u()}function m(e){return e}function p(e){return e}function _(e){return e}function f(e){return e}function g(e,t){var n=o("decodeProtobuf").decodeProtobuf(o("WAMediaEntryData.pb").MediaEntrySpec,t),r=n.directPath,a=n.downloadableThumbnail,i=n.fbid,l=n.fileEncSha256,s=n.filename,u=n.fileSha256,c=n.mediaKey,d=n.mediaKeyTimestamp,m=n.objectId,_=n.progressiveJpegDetails,f=n.serverMediaType,g=n.sidecar,h=n.size,y=o("WADirectPath").validateDirectPath(r);return{fileSha256:u,mediaKey:c,fileEncSha256:l,directPath:y.success?y.value:null,mediaKeyTimestamp:o("WALongInt").maybeNumberOrThrowIfTooLarge(d),sidecar:g&&g,objectId:m,fbid:i,downloadableThumbnail:a==null?void 0:{directPath:a.directPath,fileEncSha256:a.fileEncSha256,fileSha256:a.fileSha256,mediaKey:a.mediaKey,mediaKeyTimestamp:o("WALongInt").maybeNumberOrThrowIfTooLarge(a.mediaKeyTimestamp),objectId:a.objectId},serverMediaType:f,filename:s,progressiveJpegDetails:_&&L(_),size:h==null?void 0:o("WALongInt").numberOrThrowIfTooLarge(h)}}function h(e){var t=e.directPath,n=e.downloadableThumbnail,r=e.fbid,a=e.fileEncSha256,i=e.filename,l=e.fileSha256,s=e.mediaKey,u=e.mediaKeyTimestamp,c=e.objectId,d=e.progressiveJpegDetails,m=e.serverMediaType,p=e.size,_=o("encodeProtobuf").encodeProtobuf(o("WAMediaEntryData.pb").MediaEntrySpec,{fileSha256:l,fileEncSha256:a,mediaKey:s,directPath:t,mediaKeyTimestamp:u,serverMediaType:m,objectId:c,fbid:r,downloadableThumbnail:n,filename:i,progressiveJpegDetails:d,size:p});return _.readByteArrayView()}function y(e){return o("encodeProtobuf").encodeProtobuf(o("WAMediaEntryData.pb").MediaEntrySpec,e).readByteArrayView()}function C(e,t){return o("encodeProtobuf").encodeProtobuf(o("WAMediaEntryData.pb").MediaEntrySpec,babelHelpers.extends({},e,{directPath:t})).readByteArrayView()}function b(e,t){return o("encodeProtobuf").encodeProtobuf(o("WAMediaEntryData.pb").MediaEntrySpec,babelHelpers.extends({},e,{downloadableThumbnail:babelHelpers.extends({},e.downloadableThumbnail,{directPath:t})})).readByteArrayView()}function v(e,t){var n=babelHelpers.extends({},e,{fbid:t});return o("encodeProtobuf").encodeProtobuf(o("WAMediaEntryData.pb").MediaEntrySpec,n).readByteArrayView()}function S(e,t){var n=babelHelpers.extends({},e,{objectId:t});return o("encodeProtobuf").encodeProtobuf(o("WAMediaEntryData.pb").MediaEntrySpec,n).readByteArrayView()}function R(t){if(t==null)return null;var n=t.$$unknownFieldCount,r=t.directPath,a=t.objectId,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=o("WADirectPath").validateDirectPath(r);return babelHelpers.extends({},i,{directPath:l.success?l.value:null,objectId:a,mediaKey:t.mediaKey&&t.mediaKey,mediaKeyTimestamp:t.mediaKeyTimestamp==null?null:o("WATimeUtils").castToUnixTime(o("WALongInt").numberOrThrowIfTooLarge(t.mediaKeyTimestamp))})}function L(e){return e==null||e.scanLengths==null||e.sidecar==null?null:{sidecar:e.sidecar,scanLengths:e.scanLengths.map(function(e){return o("WAProgressiveJpegGetScanLengths").asProgressiveJpegScanLength(o("WALongInt").numberOrThrowIfTooLarge(e))})}}function E(e){var t=o("decodeProtobuf").decodeProtobuf(o("WAMediaEntryData.pb").MediaEntrySpec,e),n=t.directPath,r=t.downloadableThumbnail,a=t.lastDownloadAttemptTimestamp,i=t.mediaKey,l=t.mediaKeyTimestamp,u=t.objectId,d=t.progressiveJpegDetails,p=t.serverMediaType,_=t.sidecar,f=t.size,g=t.uploadToken,h=babelHelpers.objectWithoutPropertiesLoose(t,s),y=null;d!=null&&d.scanLengths!=null&&d.sidecar!=null&&(y={sidecar:d.sidecar,scanLengths:d.scanLengths.map(function(e){return o("WAProgressiveJpegGetScanLengths").asProgressiveJpegScanLength(o("WALongInt").numberOrThrowIfTooLarge(e))})});var C=o("WADirectPath").validateDirectPath(n);return babelHelpers.extends({},h,{objectId:u,directPath:C.success?C.value:void 0,sidecar:_,serverMediaType:p==null?null:o("WAServerMediaType").castToServerMediaType(p),mediaKey:i&&i,mediaKeyTimestamp:l==null?null:o("WATimeUtils").castToUnixTime(o("WALongInt").numberOrThrowIfTooLarge(l)),uploadToken:g&&g,progressiveJpegDetails:y,downloadableThumbnail:r&&R(r),size:o("WALongInt").maybeNumberOrThrowIfTooLarge(f),lastDownloadAttemptTimestamp:a==null?null:o("WATimeUtils").castToUnixTime(o("WALongInt").numberOrThrowIfTooLarge(a))})}function k(e){var t=e.directPath,n=e.fileEncSha256,r=e.fileSha256,a=e.mediaKey,i=e.serverMediaType;return a==null?o("WAResultOrError").makeError("media-entry-invalid-media-key"):t==null?o("WAResultOrError").makeError("media-entry-invalid-direct-path"):n==null?o("WAResultOrError").makeError("media-entry-invalid-file-enc-sha256"):r==null?o("WAResultOrError").makeError("media-entry-invalid-file-sha256"):i==null?o("WAResultOrError").makeError("media-entry-invalid-server-media-type"):o("WAResultOrError").makeResult(babelHelpers.extends({},e,{directPath:t,fileEncSha256:n,fileSha256:r,mediaKey:a,serverMediaType:i}))}function I(e){var t=e.directPath,n=e.fileEncSha256,r=e.fileSha256,a=e.mediaKey,i=[];return a==null?i.push("media-entry-invalid-media-key"):t==null?i.push("media-entry-invalid-direct-path"):n==null?i.push("media-entry-invalid-file-enc-sha256"):r==null&&i.push("media-entry-invalid-file-sha256"),a!=null&&t!=null&&n!=null&&r!=null?o("WAResultOrError").makeResult(babelHelpers.extends({},e,{directPath:t,fileEncSha256:n,fileSha256:r,mediaKey:a})):o("WAResultOrError").makeError(i)}function T(e){var t="image/jpeg";switch(e){case"image":t="image/jpeg";break;case"ptt":t="audio/wav";break;case"video":t="video/mp4";break;case"gif":t="image/gif";break;case"sticker":t="image/webp";break;case"preview":t="image/jpeg";break;case"document":t="application/octet-stream";break;case"xma-image":t="image/jpeg";break;default:throw r("err")("Unsupported server media type: "+e)}return t}var D=function(){return"TransformStream"in self};l.createMediaKey=u,l.castToMediaKey=c,l.createUploadToken=d,l.castToUploadToken=m,l.castToStreamingSidecar=p,l.stringToDeliveryObjectId=_,l.stringToBackupEntFbid=f,l.mediaEntryDataToRawData=g,l.rawDataToMediaEntry=h,l.encodeMediaEntryForUpload=y,l.encodeMediaEntryWithUpdatedPath=C,l.encodeMediaEntryDownloadableThumbnailWithUpdatedPath=b,l.encodeMediaEntryWithUpdatedFbid=v,l.encodeMediaEntryWithUpdatedObjectId=S,l.convertMediaDownloadableThumbnailToDownloadableThumbnail=R,l.decodeMediaEntryData=E,l.validateDecodedMediaEntryForDownload=k,l.validateDownloadableThumbnailForDownload=I,l.getMimeTypeFromServerMediaType=T,l.isTransformStreamSupported=D}),98); __d("WAMediaCryptoSidecar",["WAConcurrentIterate","WACryptoHmac","WAMediaUtils"],(function(t,n,r,o,a,i,l){"use strict";function e(e){return e==="video"}var s=16,u=10,c=64*1024;function d(e,t,n){n===void 0&&(n=1);var r=t.buffer.byteLength,a=Math.ceil((r-s)/c),i=new Uint8Array(u*a);return o("WAConcurrentIterate").concurrentIterate(a,function(n){var r=n*c,a=r+s+c,l=t.subarray(r,a);return o("WACryptoHmac").sign(e,l).then(function(e){var t=new Uint8Array(e,0,u);i.set(t,n*u)})},n).then(function(){return o("WAMediaUtils").castToStreamingSidecar(i.buffer)})}l.shouldHaveStreamingSidecar=e,l.calculateStreamingSidecar=d}),98); __d("WAMediaHkdfInfo",["err"],(function(t,n,r,o,a,i,l){"use strict";function e(e){switch(e){case"document":return"WhatsApp Document Keys";case"image":case"sticker":case"xma-image":return"WhatsApp Image Keys";case"video":case"gif":return"WhatsApp Video Keys";case"audio":case"ptt":return"WhatsApp Audio Keys";case"md-app-state":return"WhatsApp App State Keys";case"md-msg-hist":return"WhatsApp History Keys";default:throw r("err")("getMediaHkdfInfo: unexpected media type "+e)}}function s(){return"Messenger Preview Keys"}l.getMediaHkdfInfo=e,l.getPreviewMediaHkdfInfo=s}),98); __d("WAMediaCrypto",["Promise","WABinary","WACryptoAesCbc","WACryptoDependencies","WACryptoHkdf","WACryptoHmac","WACryptoSha256","WACryptoUtils","WACustomError","WAHashUtils","WAMediaCryptoSidecar","WAMediaHkdfInfo","WATagsLogger","WATypedArraysConcat","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c=o("WATagsLogger").TAGS(["WAMediaCrypto"]),d=(function(e){function t(t){var n;return n=e.call(this,t!=null?t:"")||this,n.name="HmacValidationError",n}return babelHelpers.inheritsLoose(t,e),t})(o("WACustomError").CustomError),m=new Uint8Array([2,2]);function p(e,t){return o("WACryptoHkdf").extractAndExpand(new Uint8Array(e),t,112).then(function(e){return{iv:new Uint8Array(e,0,16),cipherKey:new Uint8Array(e,16,32),hmacKey:new Uint8Array(e,48,32),refKey:new Uint8Array(e,80,32)}})}function _(e,t){var n=o("WAMediaHkdfInfo").getMediaHkdfInfo(t);return p(e,n)}function f(e){var t=o("WAMediaHkdfInfo").getPreviewMediaHkdfInfo();return p(e,t)}function g(e){return h.apply(this,arguments)}function h(){return h=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=new Map,r=yield f(e);t.set("preview",r);var o=["document","image","video","audio","md-app-state","md-msg-hist"];return yield(u||(u=n("Promise"))).all(o.map(function(n){return _(e,n).then(function(e){t.set(n,e)})})),t}),h.apply(this,arguments)}function y(e){switch(e){case"image":case"video":return e;default:return null}}var C=16,b=16,v=10,S=64*1024;function R(e,t,n,r,o){return L.apply(this,arguments)}function L(){return L=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,r,a,i){var l=new(o("WABinary")).Binary;l.ensureCapacity(b+a.byteLength+C+v),l.writeByteArray(t);for(var s=new(o("WACryptoAesCbc")).AesCbcStream(l,"encrypt",e,t),c=0,d=c+S;du.scanLengths.length&&c.ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["decryptPartialChunks targetScan greater length of scanLength array"])));var d=Math.min(l,u.scanLengths.length);if(d<1)throw c.ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["Unable to decrypt partial due to invalid target scan"]))),r("err")("Unable to decrypt partial due to invalid target scan");for(var m=new(o("WABinary")).Binary,p=[],_=0;_=400)return o("WAWebChatEphemerality").isEphemeralSettingOn(e)?new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"No se pudieron destacar los mensajes, es posible que hayan vencido\",\"_1\":\"No se pudo destacar el mensaje, es posible que haya vencido\"}",[s._plural(c)])):new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"No se pudieron destacar los mensajes\",\"_1\":\"No se pudo destacar el mensaje\"}",[s._plural(c)]))})).catch(function(n){return o("WALogger").WARN(u||(u=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendStarMsgs dropped"]))),new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"No se pudieron destacar los mensajes\",\"_1\":\"No se pudo destacar el mensaje\"}",[s._plural(c)]),{actionText:s._(/*BTDS*/"Vuelve a intentarlo."),actionHandler:function(){return g(e,t,l,i)}})});return o("WAWebToastManager").ToastManager.open(p.jsx(o("WAWebActionToast.react").ActionToast,{id:l,toastPosition:i,initialAction:_,pendingAction:f})),f}function h(e,t,a,i){if(i===void 0&&(i="LEFT"),!t||t.some(function(e){return!e.id}))return(d||(d=n("Promise"))).reject(new(o("WAWebMiscErrors")).ActionError);var l=r("isStringNullOrEmpty")(a)?o("WAWebActionToast.react").genId():a,u=t.length,m=new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"Dejando de destacar mensajes\\u2026\",\"_1\":\"Dejando de destacar mensaje\\u2026\"}",[s._plural(u)])),_=o("WAWebChatSendMessages").sendStarMsgs(e,t,!1).then(function(){return new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"{count} mensajes no destacados\",\"_1\":\"1 mensaje no destacado\"}",[s._plural(u,"count")]),{actionText:s._(/*BTDS*/"Deshacer"),actionHandler:function(){return g(e,t,l,i)}})}).catch(o("WAFilteredCatch").filteredCatch(o("WAWebBackendErrors").ServerStatusCodeError,function(t){if(t.status>=400)return o("WAWebChatEphemerality").isEphemeralSettingOn(e)?new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"No se pudieron desmarcar los mensajes, es posible que hayan vencido\",\"_1\":\"No se pudo desmarcar el mensaje, es posible que haya vencido\"}",[s._plural(u)])):new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"No se pudieron dejar de destacar los mensajes\",\"_1\":\"No se pudo dejar de destacar el mensaje\"}",[s._plural(u)]))})).catch(function(n){return o("WALogger").WARN(c||(c=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendUnstarMsgs dropped"]))),new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"No se pudieron dejar de destacar los mensajes\",\"_1\":\"No se pudo dejar de destacar el mensaje\"}",[s._plural(u)]),{actionText:s._(/*BTDS*/"Vuelve a intentarlo."),actionHandler:function(){return h(e,t,l,i)}})});return o("WAWebToastManager").ToastManager.open(p.jsx(o("WAWebActionToast.react").ActionToast,{id:l,toastPosition:i,initialAction:m,pendingAction:_})),_}function y(e){var t=Array.from(new Set(e.map(function(e){return o("WAWebWamMsgUtils").getWamMediaType(e)})));return t.length===1?t[0]:void 0}function C(e,t,n){return b.apply(this,arguments)}function b(){return b=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){if(t.type==="message"){if(o("WAWebChatGetters").getIsPSA(e)){var r=0;for(r;r0&&f(c.length),d.length>0&&(g(d.length),o("WALogger").WARN(u||(u=babelHelpers.taggedTemplateLiteralLoose(["Failed to clear "," out of "," chats"])),d.length,t.length)),{successes:c,failures:d}}),_.apply(this,arguments)}function f(e){var t=s._(/*BTDS*/"_j{\"*\":\"Se vaciaron {number} chats seleccionados\",\"_1\":\"Se vaci\\u00f3 1 chat seleccionado\"}",[s._plural(e,"number")]),r=new(o("WAWebActionToast.react")).ActionType(t),a=(c||(c=n("Promise"))).resolve(r);o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebActionToast.react").ActionToast,{initialAction:r,pendingAction:a}))}function g(e){var t=s._(/*BTDS*/"_j{\"*\":\"No se pudieron vaciar {number} chats seleccionados\",\"_1\":\"No se pudo vaciar 1 chat seleccionado\"}",[s._plural(e,"number")]),r=new(o("WAWebActionToast.react")).ActionType(t),a=(c||(c=n("Promise"))).resolve(r);o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebActionToast.react").ActionToast,{initialAction:r,pendingAction:a}))}l.clearSelectedChats=p}),226); __d("WAWebClearSelectedChatsPopup.react",["fbt","WAWebBoolFunc","WAWebCheckBox.react","WAWebClearSelectedChatsAction","WAWebConfirmPopup.react","WAWebFlex.react","WAWebModalManager","WDSText.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState,m={section:{fontSize:"x1f6kntn",marginTop:"x1nmyh1g",$$css:!0}};function p(e){var t=e.chats,a=e.onComplete,i=t.length,l=d(o("WAWebBoolFunc").returnFalse),u=l[0],p=l[1],_=function(){p(!u)},f=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebClearSelectedChatsAction").clearSelectedChats(t,{keepStarred:u}),o("WAWebModalManager").ModalManager.close(),a==null||a()});return function(){return e.apply(this,arguments)}})(),g=s._(/*BTDS*/"_j{\"*\":\"\\u00bfQuieres vaciar {number} chats?\",\"_1\":\"\\u00bfQuieres vaciar 1 chat?\"}",[s._plural(i,"number")]),h=c.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",xstyle:m.section,children:[c.jsx(o("WAWebCheckBox.react").CheckBox,{onChange:_,checked:u,testid:void 0,id:"keep-starred-checkbox-id"}),c.jsx("label",{htmlFor:"keep-starred-checkbox-id",className:"x150mmf0 x1ypdohk",children:s._(/*BTDS*/"Mantener los mensajes destacados")})]}),y=c.jsxs("div",{children:[c.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDeemphasized",children:s._(/*BTDS*/"Estos chats quedar\u00e1n vac\u00edos, pero permanecer\u00e1n en tu lista de chats.")}),c.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDeemphasized",children:s._(/*BTDS*/"Esta acci\u00f3n no se puede deshacer.")}),h]});return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:g,onOK:f,okText:s._(/*BTDS*/"Vaciar chats"),okButtonType:"solid-warning",onCancel:o("WAWebModalManager").closeModalManager,children:y})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("useWAWebLexicalOnContentChange",["LexicalComposerContext","react","useWAWebStableCallback"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useEffect;function u(e){var t=o("LexicalComposerContext").useLexicalComposerContext(),n=t[0],a=r("useWAWebStableCallback")(e);s(function(){var e=n.registerTextContentListener(function(e){a(e)});return e},[n,a])}l.useLexicalOnContentChange=u}),98); __d("WAWebCommandPaletteController",["Lexical","LexicalComposer","LexicalComposerContext","WAWebCommandPaletteInput.react","WAWebFlex.react","WAWebLexicalUtils","WAWebModalManager","WAWebNoop","WAWebPREGatingUtils","WAWebToArray","err","react","useWAWebLexicalEvent","useWAWebLexicalOnContentChange"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.createContext,m=u.useCallback,p=u.useContext,_=u.useEffect,f=u.useMemo,g=u.useState,h=u.useTransition,y={container:{borderStartStartRadius:"x6nvzda",borderStartEndRadius:"x4i4b9w",borderEndEndRadius:"xhl9efl",borderEndStartRadius:"xj65ea0",backgroundColor:"x16w0wmm",color:"x14ug900",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},pluginContainer:{maxHeight:"x12f24lm",$$css:!0}},C=d(null);function b(){var e=p(C);if(e==null)throw r("err")("useCommandPalette must be used inside of a CommandPaletteContext");return e}function v(e){var t=e.children,n=e.defaultPlugin,r=e.triggeredPlugins,a=g([]),i=a[0],l=a[1],s=g(""),u=s[0],d=s[1],p=o("LexicalComposerContext").useLexicalComposerContext(),y=p[0],b=h(),v=b[0],S=b[1],R=i[i.length-1],L=m(function(e){o("WAWebLexicalUtils").setTextContent(y,e),d(e)},[y]),E=m(function(e,t){var n,r=(n=t==null?void 0:t.input)!=null?n:"";L(r),l([].concat(i,[{plugin:e,input:r}]))},[L,i]),k=m(function(e){var t=i.slice(0,i.length-1),n=t[t.length-1],r="";n!=null&&((e==null?void 0:e.input)!=null?r=e.input:n.plugin.restoreInputOnBack===!0&&(r=n.input)),L(r),l(t)},[L,i]),I=function(){return l([])},T=m(function(e,t){var n,r=(n=t==null?void 0:t.input)!=null?n:"";L(r),l([{plugin:e,input:r}])},[L,l]),D=function(){o("WAWebModalManager").ModalManager.close()};_(function(){if(i.length===0){var e=r==null?void 0:r.find(function(e){var t=o("WAWebToArray").toArray(e.trigger);if(t.includes(u))return e});e!=null&&E(e.plugin)}},[u]),o("useWAWebLexicalEvent").useLexicalCommandListener(y,o("Lexical").KEY_BACKSPACE_COMMAND,function(e){return u===""&&(e.preventDefault(),k()),!1}),o("useWAWebLexicalOnContentChange").useLexicalOnContentChange(function(e){R!=null&&(R.input=e),o("WAWebPREGatingUtils").isPRECommandPaletteEnabled()?S(function(){d(e)}):d(e)});var x=f(function(){var e;return{input:u,pushPlugin:E,popPlugin:k,clearStack:I,replaceStack:T,closeModal:D,activePlugin:(e=R==null?void 0:R.plugin)!=null?e:n,pluginStack:i,pluginList:r,isSearching:v}},[R==null?void 0:R.plugin,n,u,v,k,E,T,i,r]);return c.jsx(C.Provider,{value:x,children:t})}v.displayName=v.name+" [from "+i.id+"]";function S(){var e=b(),t=e.activePlugin;return t!=null?c.jsx(o("WAWebFlex.react").FlexColumn,{align:"stretch",xstyle:y.pluginContainer,children:c.jsx(t.Component,{})}):null}S.displayName=S.name+" [from "+i.id+"]";function R(e){var t=e.defaultPlugin,n=e.triggeredPlugins,a=f(function(){return{namespace:"CommandPaletteInput",onError:r("WAWebNoop")}},[]);return c.jsx(o("WAWebFlex.react").FlexColumn,{align:"stretch",xstyle:y.container,children:c.jsx(o("LexicalComposer").LexicalComposer,{initialConfig:a,children:c.jsxs(v,{defaultPlugin:t,triggeredPlugins:n,children:[c.jsx(r("WAWebCommandPaletteInput.react"),{}),c.jsx(S,{})]})})})}R.displayName=R.name+" [from "+i.id+"]",l.useCommandPalette=b,l.CommandPalette=R}),98); __d("WAWebCommandPaletteInput.react",["LexicalErrorBoundary","LexicalPlainTextPlugin","WAWebCommandPaletteController","WAWebFlex.react","WAWebMultilinePlugin","WAWebRichTextInputContentEditable.react","WAWebSearchIcon.react","WAWebUISpacing","WDSSpinner.react","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={container:{height:"xsdox4t",boxSizing:"x9f619",$$css:!0},relative:{position:"x1n2onr6",$$css:!0},contentEditable:{width:"xh8yej3",$$css:!0},prefix:{display:"x78zum5",alignItems:"x6s0dn4",color:"x1pse0pq",$$css:!0},prefixSeparator:{display:"x78zum5",fontWeight:"x1xlr1w8",$$css:!0}};function d(){var e,t=o("WAWebCommandPaletteController").useCommandPalette(),n=t.activePlugin,a=(e=n==null?void 0:n.placeholder)!=null?e:"Search chats, messages, settings, and more",i=t.pluginStack.length?u.jsx("div",{className:"x78zum5 x1q0g3np x6s0dn4",children:t.pluginStack.filter(function(e){return e.plugin.shortName}).map(function(e){return u.createElement("div",babelHelpers.extends({},(s||(s=r("stylex"))).props([c.prefix,o("WAWebUISpacing").uiMargin.start8]),{key:e.plugin.id}),u.jsx("div",{className:"x2aouup xlyipyv x6ikm8r x10wlt62 xuxw1ft",children:e.plugin.shortName}),u.jsx("div",babelHelpers.extends({},s.props([c.prefixSeparator,o("WAWebUISpacing").uiPadding.start8]),{children:"/"})))})}):null;return u.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",padding:[8,16],xstyle:c.container,children:[i==null?u.jsx(o("WAWebSearchIcon.react").SearchIcon,{}):i,u.jsx(o("WAWebFlex.react").FlexRow,{grow:1,xstyle:c.relative,marginStart:8,children:u.jsx(o("LexicalPlainTextPlugin").PlainTextPlugin,{contentEditable:u.jsx(o("WAWebRichTextInputContentEditable.react").InputContentEditable,{xstyle:[c.contentEditable,o("WAWebUISpacing").uiMargin.start4],focusOnMount:!0,placeholder:a}),ErrorBoundary:o("LexicalErrorBoundary").LexicalErrorBoundary})}),t.isSearching&&u.jsx(r("WDSSpinner.react"),{size:24}),u.jsx(o("WAWebMultilinePlugin").MultilinePlugin,{multiline:!1})]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebSettingsThemeIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="settings-theme";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M12,1 L15.219275,4.21927498 L19.780725,4.21927498 L19.780725,8.78072502 L23,12 L19.780725,15.219275 L19.780725,19.780725 L15.219275,19.780725 L12,23 L8.78072502,19.780725 L4.21927498,19.780725 L4.21927498,15.219275 L1,12 L4.21927498,8.78072502 L4.21927498,4.21927498 L8.78072502,4.21927498 L12,1 Z M12,6 L12,18 C15.31,18 18,15.31 18,12 C18,8.76522727 15.4308833,6.12259298 12.2246968,6.00414409 L12,6 Z",fill:"currentColor",fillRule:"nonzero"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.SettingsThemeIcon=m}),98); __d("WAWebThemeCommandPalettePlugin",["WAWebCommandPaletteController","WAWebLexicalWAWebMenu.react","WAWebMenuItems.react","WAWebSettingsThemeIcon.react","WAWebSystemTheme","WAWebThemeContext","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useContext;function d(){var e=o("WAWebCommandPaletteController").useCommandPalette(),t=c(o("WAWebThemeContext").ThemeContext),n=t.systemThemeMode?"system":t.theme,a=function(o){o==="system"?(t.setSystemThemeMode(!0),t.setTheme(r("WAWebSystemTheme").getCurrentTheme())):(t.setSystemThemeMode(!1),t.setTheme(o)),e.closeModal()},i=u.jsx(o("WAWebMenuItems.react").SelectMenuItem,{optionId:"dark",primary:"Dark",onSelect:function(){return a("dark")}},"dark"),l=u.jsx(o("WAWebMenuItems.react").SelectMenuItem,{optionId:"light",primary:"Light",onSelect:function(){return a("light")}},"light"),s=u.jsx(o("WAWebMenuItems.react").SelectMenuItem,{optionId:"system",primary:"System",onSelect:function(){return a("system")}},"system"),d=[];return t.theme==="light"?d=[i,l,s]:d=[l,i,s],u.jsx(o("WAWebLexicalWAWebMenu.react").LexicalWAWebMenu,{forceSelection:!0,children:u.jsx(o("WAWebMenuItems.react").SelectMenuItemGroup,{initialSelection:n,children:d.map(function(e){return e})})})}d.displayName=d.name+" [from "+i.id+"]";var m={plugin:{id:"ThemeCommandPalettePlugin",placeholder:"Choose a theme",shortName:u.jsx(o("WAWebSettingsThemeIcon.react").SettingsThemeIcon,{width:16,height:16}),Component:d},trigger:"/theme",doc:{name:"App Theme",description:"Switch between the light and dark themes"}};l.ThemeCommandPalettePlugin=m}),98); __d("WAWebCommandPalettePlugins",["WAWebThemeCommandPalettePlugin","cr:8750","gkx"],(function(t,n,r,o,a,i,l){function e(){var e=[o("WAWebThemeCommandPalettePlugin").ThemeCommandPalettePlugin];if(!r("gkx")("26258")){var t,a=(t=n("cr:8750")==null?void 0:n("cr:8750").filter(Boolean))!=null?t:[];e.unshift.apply(e,a)}return e}l.getAvailablePlugins=e}),98); __d("WAWebContactCell",["WAWebBizGatingUtils","WAWebChatStatus","WAWebChatTextStatusWrapper","WAWebContactGetters","WAWebContactImage.react","WAWebName.react","WAWebTextStatusGatingUtils","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=s.jsx(o("WAWebName.react").Name,{contact:e,showBusinessCheckmark:o("WAWebContactGetters").getShowBusinessCheckmarkAsPrimary(e),showLabelIcon:o("WAWebBizGatingUtils").canDisplayLabel(),titlify:!0,ellipsify:!0,you:!0}),n;o("WAWebTextStatusGatingUtils").receiveTextStatusEnabled()?n=s.jsx(o("WAWebChatTextStatusWrapper").TextStatus,{contactId:e.id}):n=s.jsx(o("WAWebChatStatus").StatusWrapper,{id:e.id});var a=s.jsx(r("WAWebContactImage.react"),{contact:e,size:40});return{primary:t,secondary:n,detailLeft:a}}l.getContactCellContent=u}),98); __d("WAWebContact.MenuItem",["WAWebContactCell","WAWebMenuItems.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.contact,n=e.onSelect;return s.jsx(o("WAWebMenuItems.react").ActionMenuItem,babelHelpers.extends({optionId:"contact-"+t.id.toString(),onSelect:n},o("WAWebContactCell").getContactCellContent(t)))}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebContactSearchModel",["WAWebContactCollection","WAWebContactGetters","WAWebPhoneNumberSearch","WAWebSearchModel","WAWebSearchUtils"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0&&d.jsx(h,{section:e},e.type)})})}C.displayName=C.name+" [from "+i.id+"]";var b={id:"DefaultCommand",placeholder:"Search anything",shortName:null,Component:C};l.DefaultCommandPalettePlugin=b}),98); __d("WAWebHelpCommandPalettePlugin",["WAWebCommandPaletteController","WAWebDevOnlyBadge.react","WAWebFlex.react","WAWebLexicalWAWebMenu.react","WAWebMenuItems.react","WAWebToArray","compactMap","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={trigger:{backgroundColor:"xyp3urf",color:"x14ug900",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",$$css:!0}};function c(e){var t=e.trigger,n=o("WAWebToArray").toArray(t);return s.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",align:"center",padding:8,xstyle:u.trigger,children:n[0]})}c.displayName=c.name+" [from "+i.id+"]";function d(e){var t=e.triggeredCommands,n=o("WAWebCommandPaletteController").useCommandPalette();return s.jsx(o("WAWebLexicalWAWebMenu.react").LexicalWAWebMenu,{children:r("compactMap")(t,function(e){return e.doc!=null?s.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:e.plugin.id,detailRight:s.jsx(c,{trigger:e.trigger}),primary:e.doc.isDevOnly===!0?s.jsx(o("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:e.doc.name}):e.doc.name,secondary:e.doc.description,onSelect:function(){return n.replaceStack(e.plugin)}},e.plugin.id):null})})}d.displayName=d.name+" [from "+i.id+"]";function m(e){return{plugin:{id:"HelpCommandPalettePlugin",placeholder:"Search extra command palette functionality",shortName:"?",Component:function(){return s.jsx(d,{triggeredCommands:e})}},trigger:["/?","/help"],doc:{name:"Help",description:"Discover all of the things the Command Palette can do"}}}l.buildHelpCommand=m}),98); __d("WAWebCommandPalette.react",["WAWebAdaptiveLayoutGatingUtils","WAWebChatlistPanelFunctional.react","WAWebChatlistPanelMode","WAWebChatlistPanel_DEPRECATED.react","WAWebCmd","WAWebCommandPaletteController","WAWebCommandPalettePlugins","WAWebCommandPaletteUtils","WAWebDefaultCommandPalettePlugin","WAWebHelpCommandPalettePlugin","WAWebModal.react","WAWebModalManager","WAWebSettingsGetters","react","useWAWebListener","useWAWebSettingsValues"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useEffect;function d(){var e=o("WAWebCommandPalettePlugins").getAvailablePlugins(),t=o("WAWebHelpCommandPalettePlugin").buildHelpCommand(e);return{defaultPlugin:o("WAWebDefaultCommandPalettePlugin").DefaultCommandPalettePlugin,triggeredPlugins:[].concat(e,[t])}}function m(e){var t=e.plugins,n=t==null?d():t,r=n.defaultPlugin,a=n.triggeredPlugins;return u.jsx(o("WAWebModal.react").Modal,{type:o("WAWebModal.react").ModalTheme.CommandPaletteV2,children:u.jsx(o("WAWebCommandPaletteController").CommandPalette,{defaultPlugin:r,triggeredPlugins:a})})}m.displayName=m.name+" [from "+i.id+"]";function p(e){o("WAWebModalManager").ModalManager.open(u.jsx(m,{plugins:e}))}function _(){var e=o("useWAWebSettingsValues").useSettingsValues([o("WAWebSettingsGetters").getShowArchiveV2]),t=e[0],n=o("WAWebAdaptiveLayoutGatingUtils").shouldUseFunctionalChatlistPanel();return u.jsx(o("WAWebModal.react").Modal,{type:o("WAWebModal.react").ModalTheme.CommandPalette,children:n?u.jsx(o("WAWebChatlistPanelFunctional.react").ChatlistPanelFunctional,{showArchiveV2:t,mode:r("WAWebChatlistPanelMode").CommandPalette}):u.jsx(o("WAWebChatlistPanel_DEPRECATED.react").ChatlistPanel,{showArchiveV2:t,mode:r("WAWebChatlistPanelMode").CommandPalette})})}_.displayName=_.name+" [from "+i.id+"]";function f(){return c(function(){return o("WAWebCommandPaletteUtils").setIsCommandPaletteOpen(!0),function(){o("WAWebCommandPaletteUtils").setIsCommandPaletteOpen(!1)}},[]),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"close_command_palette",function(){return o("WAWebModalManager").ModalManager.close()}),u.jsx(_,{})}f.displayName=f.name+" [from "+i.id+"]",l.openCommandPaletteV2Modal=p,l.CommandPaletteModal=f}),98); __d("WAWebCountrySelectorPopup.react",["fbt","WAWebBusinessProfileIconSection.react","WAWebButton.react","WAWebCatalogLogEvents","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFlex.react","WAWebFlexItem.react","WAWebModal.react","WAWebModalManager","WAWebRichTextField.react","WAWebSearchIcon.react","WAWebUISpacing","WAWebWamEnumSurfaceType","fbs","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useCallback,p=c.useState,_={inputWrapper:{display:"x78zum5",alignSelf:"xamitd3",paddingInlineEnd:"x1xnnf8n",$$css:!0},formWrapper:{overflowY:"x1odjw0f",$$css:!0},search:{backgroundColor:"x1od0jb8",paddingTop:"x889kno",paddingInlineEnd:"x5zjp28",paddingBottom:"x1a8lsjc",paddingInlineStart:"x162tt16",$$css:!0},description:{color:"xhslqc4",fontSize:"x1jchvi3",lineHeight:"xa7kkou",$$css:!0},footer:{paddingTop:"x889kno",paddingInlineEnd:"x2vl965",paddingBottom:"x1a8lsjc",paddingInlineStart:"xe2zdcy",backgroundColor:"x1280gxy",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xx42vgk",$$css:!0}};function f(e){var t=e.countries,n=e.countryCode,a=e.description,i=e.lastUsedCountryCode,l=e.onSave,u=e.surface,c=e.title,f=p(""),h=f[0],y=f[1],C=p(n||""),b=C[0],v=C[1],S=m(function(){o("WAWebCatalogLogEvents").logSMBCountryListClicked(u,o("WAWebCatalogLogEvents").SmbUserActionTargetEnum.Continue,{country:b}),o("WAWebModalManager").ModalManager.close(),l(b)},[b,l]),R=m(function(e){o("WAWebCatalogLogEvents").logSMBCountryListClicked(u,o("WAWebCatalogLogEvents").SmbUserActionTargetEnum.Country),v(e.target.value)},[]);return d.jsx(o("WAWebModal.react").Modal,{type:o("WAWebModal.react").ModalTheme.Box,children:d.jsxs(r("WAWebDrawer.react"),{theme:"settings",children:[d.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:c,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:function(){u===o("WAWebWamEnumSurfaceType").SURFACE_TYPE.ORIGIN_COUNTRY&&o("WAWebCatalogLogEvents").logSMBCountryListClicked(u,o("WAWebCatalogLogEvents").SmbUserActionTargetEnum.Back),o("WAWebModalManager").ModalManager.close()}}),d.jsx(r("WAWebDrawerBody.react"),{children:d.jsxs(o("WAWebFlex.react").FlexColumn,{align:"stretch",children:[d.jsx(r("WAWebFlexItem.react"),{shrink:0,xstyle:_.search,children:d.jsx(o("WAWebBusinessProfileIconSection.react").IconSection,{Icon:o("WAWebSearchIcon.react").SearchIcon,theme:o("WAWebBusinessProfileIconSection.react").IconSectionTheme.NoMarginSmallGutter,content:d.jsx(o("WAWebRichTextField.react").RichTextField,{value:h,editable:!0,inputPlaceholder:s._(/*BTDS*/"Buscar"),onChange:function(t){return y(t.text)},focusOnMount:!0,theme:"text-input",lowProfile:!0})})}),d.jsx(r("WAWebFlexItem.react"),{shrink:0,xstyle:[_.description,o("WAWebUISpacing").uiPadding.vert10,o("WAWebUISpacing").uiPadding.horiz30],children:a}),d.jsx(r("WAWebFlexItem.react"),{xstyle:_.formWrapper,grow:1,children:d.jsx("form",{className:"x123j3cw xyri2b xs9asl8 x1c1uobl",children:d.jsx("ol",{children:t.filter(function(e){var t=e[0],n=e[1];return t.toLowerCase().includes(h.toLowerCase())||n.toString().toLowerCase().includes(h.toLowerCase())}).map(function(e){var t=e[0],n=e[1];return d.jsx(g,{selectedCountryCode:b,lastUsedCountryCode:i,countryCode:t,label:n,onChange:R},t)})})})})]})}),d.jsx(o("WAWebFlex.react").FlexRow,{justify:"end",xstyle:_.footer,children:d.jsx(r("WAWebFlexItem.react"),{children:d.jsx(o("WAWebButton.react").WAWebButtonPrimary,{onClick:S,children:s._(/*BTDS*/"Guardar")})})})]})})}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.countryCode,n=e["data-testid"],a=n===void 0?"country-selector-popup-option":n,i=e.label,l=e.lastUsedCountryCode,s=e.onChange,u=e.selectedCountryCode;return d.jsx("li",{className:"x889kno x5zjp28 x1a8lsjc x162tt16 x1ypdohk",children:d.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",children:[d.jsx(r("WAWebFlexItem.react"),{xstyle:_.inputWrapper,children:d.jsx("input",{id:t,value:t,type:"radio",name:"countryCode",checked:t===u,className:"x1ypdohk",onChange:s})}),d.jsxs(r("WAWebFlexItem.react"),{grow:1,children:[d.jsx("label",{htmlFor:t,className:"x1lliihq x1lkfr7t x1ypdohk","data-testid":void 0,children:i}),l===t&&d.jsx("span",{className:"x1lliihq xhslqc4 x1jchvi3 xa7kkou",children:r("fbs")._(/*BTDS*/"(El \u00faltimo que se us\u00f3)")})]})]})})}g.displayName=g.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebGroupsV4InviteFlowLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingConfirmPopup.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebGroupsV4InviteFlow.react").__setRef("WAWebGroupsV4InviteFlowLoadable").load();return e}),"GroupsV4InviteFlow"),d=r("react-loadable")({loader:c,loading:function(t){return u.jsx(r("WAWebLoadingConfirmPopup.react"),{okText:s._(/*BTDS*/"Invitar al grupo"),error:!!t.error})}});l.requireBundle=c,l.GroupsV4InviteFlowLoadable=d}),226); __d("WAWebLabelChatHeaderButton.react",["fbt","WAWebCommonCTWADataSharing","WAWebHeader.react","WAWebIcLabelFilledIcon.react","WAWebLabelCollection","WAWebLabelGetters","WAWebLabelOutlineIcon.react","WAWebLabelStackIcon.react","WAWebLabels.react","WAWebScreenWidthThresholds","WAWebSmbDataSharingOptInModalDialog","WAWebTabOrder","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnstyledButton.react","WAWebWamEnumSmbDataSharingConsentScreenEntryPoint","WDSIconIcArrowDropDown.react","WDSText.react","react","useWAWebListener","useWAWebWindowSize"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useMemo,p=c.useRef,_=c.useState,f={button:{alignItems:"x6s0dn4",backgroundColor:"x1280gxy",borderTopColor:"xnj1f2r",borderInlineEndColor:"x2uibgs",borderBottomColor:"xkveyfu",borderInlineStartColor:"x12llq9",borderStartStartRadius:"xhpystz",borderStartEndRadius:"xhmftvz",borderEndEndRadius:"x11v37me",borderEndStartRadius:"x1tw5c3r",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",cursor:"x1ypdohk",display:"x78zum5",columnGap:"x1s70e7g",height:"x10kmny3",paddingInlineStart:"x12w63v0",paddingInlineEnd:"x1nzty39",paddingLeft:null,paddingRight:null,":hover_backgroundColor":"x1ubxc9n",$$css:!0},icon:{color:"x14ug900",height:"x8lyb6r",width:"x1mzsije",$$css:!0},labelStackIcon:{position:"x10l6tqk",top:"x16xtl6x",$$css:!0}};function g(e){if(e.length===0)return{primaryLabel:null,secondaryLabel:null};var t=e.map(function(e){return parseInt(e,10)}).filter(function(e){return!Number.isNaN(e)}),n;t.length>=2?(t.sort(function(e,t){return t-e}),n=t.map(function(e){return e.toString()})):n=e;var r=n[0],a=o("WAWebLabelCollection").LabelCollection.get(r),i={id:r,model:a,color:a?o("WAWebLabelGetters").getHexColor(a):null},l=null;if(n.length>=2){var s=n[1],u=o("WAWebLabelCollection").LabelCollection.get(s);l={id:s,model:u,color:u?o("WAWebLabelGetters").getHexColor(u):null}}return{primaryLabel:i,secondaryLabel:l}}function h(e){var t=e.chat,n=p(null),a=_(null),i=a[0],l=a[1],u=_(null),c=u[0],h=u[1],y=r("useWAWebWindowSize")(),C=y.width0&&o("WAWebLabelCollection").LabelCollection.addOrRemoveLabels(r,[t]),n.size>0){var i=Array.from(n);o("WAWebSmbMarkAsXLabelAction").logLabelSignalForModels([t],i,u),o("WAWebSmb3pdConversionSignalAction").log3pdConversionSignalForChatsOrMessages([t],i,u),o("WAWebCustomLabels3pdSignalUtils").processCustomLabels3pdSignals(i,[t],u)}}},[t,u]);var b=d(function(e){var n=l[e]||!1,r=!n;s(function(t){var n;return babelHelpers.extends({},t,(n={},n[e]=r,n))});var a=[{id:e,type:r?"add":"remove"}];o("WAWebLabelCollection").LabelCollection.addOrRemoveLabelsMD(a,[t]);var i=new(o("WAWebLabelEventWamEvent")).LabelEventWamEvent({labelOperation:r?o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.ADD:o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.DELETE,labelTarget:o("WAWebWamEnumLabelTargets").LABEL_TARGETS.CONTACT,labelOperationEntryPoint:"chat_header"});i.commit(),r?C.current.add(e):C.current.delete(e)},[l,t]),v=n.map(function(e){var t=l[e.id]||!1;return c.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return b(e.id),!1},children:c.jsxs("div",{className:"x6s0dn4 x9f619 x78zum5 x193iq5w x6ikm8r x10wlt62 x16ovd2e xde1mab x12xbjc7 x1iw51ew",children:[c.jsx("div",{className:"x2i0jwv x6ikm8r x10wlt62 x1jchvi3 xjb2p0i xo1l8bm x17mssa0 x1ic7a3i xav9cv8",children:c.jsx(o("WAWebLabels.react").Labels,{labels:[e.id],showName:!0,theme:"label-filter",iconXstyle:g.labelIcon})}),c.jsx("div",{className:"x1uvdrpn",children:c.jsx(o("WAWebCheckBox.react").CheckBox,{checked:t,onChange:r("WAWebNoop")})})]})},"label_item_"+e.id)});return c.jsx("div",{className:"xuyqlj2 x1odjw0f",children:v})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),98); __d("WAWebNewBroadcastHeaderButton.react",["fbt","WAWebBizBroadcastNewBroadcastFlowLoadable","WAWebDrawerManager","WAWebTabOrder","WAWebWamEnumEntryPoint","WDSButton.react","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=e.chat;return u.jsx("div",{className:"x150mmf0",children:u.jsx(r("WDSButton.react"),{label:s._(/*BTDS*/"Nueva difusi\u00f3n"),onPress:function(){o("WAWebDrawerManager").DrawerManager.closeDrawerRight(),o("WAWebDrawerManager").DrawerManager.openDrawerMid(u.jsx(o("WAWebBizBroadcastNewBroadcastFlowLoadable").WAWebBizBroadcastNewBroadcastFlowLoadable,{chat:t,entryPoint:o("WAWebWamEnumEntryPoint").ENTRY_POINT.CHATS_LIST,onBack:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerMid()}}))},tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WDSIconIcLogout.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-logout";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H11C11.2833 3 11.5208 3.09583 11.7125 3.2875C11.9042 3.47917 12 3.71667 12 4C12 4.28333 11.9042 4.52083 11.7125 4.7125C11.5208 4.90417 11.2833 5 11 5H5V19H11C11.2833 19 11.5208 19.0958 11.7125 19.2875C11.9042 19.4792 12 19.7167 12 20C12 20.2833 11.9042 20.5208 11.7125 20.7125C11.5208 20.9042 11.2833 21 11 21H5ZM17.175 13H10C9.71667 13 9.47917 12.9042 9.2875 12.7125C9.09583 12.5208 9 12.2833 9 12C9 11.7167 9.09583 11.4792 9.2875 11.2875C9.47917 11.0958 9.71667 11 10 11H17.175L15.3 9.125C15.1167 8.94167 15.025 8.71667 15.025 8.45C15.025 8.18333 15.1167 7.95 15.3 7.75C15.4833 7.55 15.7167 7.44583 16 7.4375C16.2833 7.42917 16.525 7.525 16.725 7.725L20.3 11.3C20.5 11.5 20.6 11.7333 20.6 12C20.6 12.2667 20.5 12.5 20.3 12.7L16.725 16.275C16.525 16.475 16.2875 16.5708 16.0125 16.5625C15.7375 16.5542 15.5 16.45 15.3 16.25C15.1167 16.05 15.0292 15.8125 15.0375 15.5375C15.0458 15.2625 15.1417 15.0333 15.325 14.85L17.175 13Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WDSIconIcSettings.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-settings";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M10.125 22C9.87497 22 9.6583 21.9167 9.47497 21.75C9.29164 21.5833 9.1833 21.375 9.14997 21.125L8.84997 18.8C8.6333 18.7167 8.42914 18.6167 8.23747 18.5C8.0458 18.3833 7.8583 18.2583 7.67497 18.125L5.49997 19.025C5.26664 19.125 5.0333 19.1375 4.79997 19.0625C4.56664 18.9875 4.3833 18.8417 4.24997 18.625L2.39997 15.4C2.26664 15.1833 2.22497 14.95 2.27497 14.7C2.32497 14.45 2.44997 14.25 2.64997 14.1L4.52497 12.675C4.5083 12.5583 4.49997 12.4458 4.49997 12.3375V11.6625C4.49997 11.5542 4.5083 11.4417 4.52497 11.325L2.64997 9.9C2.44997 9.75 2.32497 9.55 2.27497 9.3C2.22497 9.05 2.26664 8.81667 2.39997 8.6L4.24997 5.375C4.3833 5.15833 4.56664 5.0125 4.79997 4.9375C5.0333 4.8625 5.26664 4.875 5.49997 4.975L7.67497 5.875C7.8583 5.74167 8.04997 5.61667 8.24997 5.5C8.44997 5.38333 8.64997 5.28333 8.84997 5.2L9.14997 2.875C9.1833 2.625 9.29164 2.41667 9.47497 2.25C9.6583 2.08333 9.87497 2 10.125 2H13.875C14.125 2 14.3416 2.08333 14.525 2.25C14.7083 2.41667 14.8166 2.625 14.85 2.875L15.15 5.2C15.3666 5.28333 15.5708 5.38333 15.7625 5.5C15.9541 5.61667 16.1416 5.74167 16.325 5.875L18.5 4.975C18.7333 4.875 18.9666 4.8625 19.2 4.9375C19.4333 5.0125 19.6166 5.15833 19.75 5.375L21.6 8.6C21.7333 8.81667 21.775 9.05 21.725 9.3C21.675 9.55 21.55 9.75 21.35 9.9L19.475 11.325C19.4916 11.4417 19.5 11.5542 19.5 11.6625V12.3375C19.5 12.4458 19.4833 12.5583 19.45 12.675L21.325 14.1C21.525 14.25 21.65 14.45 21.7 14.7C21.75 14.95 21.7083 15.1833 21.575 15.4L19.725 18.6C19.5916 18.8167 19.4041 18.9667 19.1625 19.05C18.9208 19.1333 18.6833 19.125 18.45 19.025L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.85 21.125C14.8166 21.375 14.7083 21.5833 14.525 21.75C14.3416 21.9167 14.125 22 13.875 22H10.125ZM11 20H12.975L13.325 17.35C13.8416 17.2167 14.3208 17.0208 14.7625 16.7625C15.2041 16.5042 15.6083 16.1917 15.975 15.825L18.45 16.85L19.425 15.15L17.275 13.525C17.3583 13.2917 17.4166 13.0458 17.45 12.7875C17.4833 12.5292 17.5 12.2667 17.5 12C17.5 11.7333 17.4833 11.4708 17.45 11.2125C17.4166 10.9542 17.3583 10.7083 17.275 10.475L19.425 8.85L18.45 7.15L15.975 8.2C15.6083 7.81667 15.2041 7.49583 14.7625 7.2375C14.3208 6.97917 13.8416 6.78333 13.325 6.65L13 4H11.025L10.675 6.65C10.1583 6.78333 9.67914 6.97917 9.23747 7.2375C8.7958 7.49583 8.39164 7.80833 8.02497 8.175L5.54997 7.15L4.57497 8.85L6.72497 10.45C6.64164 10.7 6.5833 10.95 6.54997 11.2C6.51664 11.45 6.49997 11.7167 6.49997 12C6.49997 12.2667 6.51664 12.525 6.54997 12.775C6.5833 13.025 6.64164 13.275 6.72497 13.525L4.57497 15.15L5.54997 16.85L8.02497 15.8C8.39164 16.1833 8.7958 16.5042 9.23747 16.7625C9.67914 17.0208 10.1583 17.2167 10.675 17.35L11 20ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2375 8.84167 9.56247 9.525C8.88747 10.2083 8.54997 11.0333 8.54997 12C8.54997 12.9667 8.88747 13.7917 9.56247 14.475C10.2375 15.1583 11.0666 15.5 12.05 15.5Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebNewsletterChatMenuDropdown.react",["fbt","WAWebCheckRefreshedIcon.react","WAWebCloseCircleRefreshedIcon.react","WAWebCmd","WAWebDrawerManager","WAWebDropdown.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebExitRefreshedIcon.react","WAWebInfoFlowLoadable","WAWebInfoFlowStep","WAWebInfoRefreshedIcon.react","WAWebModalManager","WAWebNewsletterMembershipUtil","WAWebReportNewsletterPopup.react","WAWebSettingsRefreshedIcon.react","WAWebSpamConstants","WAWebStateUtils","WAWebThumbsDownRefreshedIcon.react","WAWebUnfollowNewsletterConfirmationModal.react","WAWebWamEnumChannelEventSurface","WAWebWamEnumTsSurface","WDSIconIcCheckBox.react","WDSIconIcClose.react","WDSIconIcInfo.react","WDSIconIcLogout.react","WDSIconIcSettings.react","WDSIconIcThumbDown.react","WDSMenu.react","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useCallback,p=c.useRef;function _(e){var t,n,a,i=e.chat,l=e.onSelectMessages,u=e.toContextMenuManager,c=e.useWdsMenuVersion,_=c===void 0?!1:c,f=p(null),g=i.newsletterMetadata,h=m(function(){o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebReportNewsletterPopup.react"),{chat:i,spamFlow:o("WAWebSpamConstants").SpamFlow.OverflowMenuReport}))},[i]),y=m(function(){o("WAWebCmd").Cmd.chatInfoDrawer(i)},[i]),C=m(function(){o("WAWebCmd").Cmd.closeChat(i)},[i]),b=m(function(){o("WAWebModalManager").ModalManager.open(d.jsx(o("WAWebUnfollowNewsletterConfirmationModal.react").UnfollowNewsletterConfirmationModal,{chat:o("WAWebStateUtils").unproxy(i),loggingOptions:{eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD,discoverySurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHANNEL_THREAD}}))},[i]),v=m(function(){o("WAWebDrawerManager").DrawerManager.openDrawerRight(d.jsx(o("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:i,initialStep:o("WAWebInfoFlowStep").InfoFlowStep.NewsletterSettings}))},[i]),S=s._(/*BTDS*/"Ajustes del canal"),R=null;o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(i==null?void 0:i.newsletterMetadata)&&!((t=i.newsletterMetadata)!=null&&t.isSuspendedOrTerminated)&&(R=_?d.jsx(r("WDSMenuItem.react"),{onPress:v,testid:void 0,Icon:r("WDSIconIcSettings.react"),title:S},"newsletter-overflow-menu-newsletter-settings"):d.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:v,testid:void 0,icon:d.jsx(o("WAWebSettingsRefreshedIcon.react").SettingsRefreshedIcon,{}),children:S},"newsletter-overflow-menu-newsletter-settings"));var L=s._(/*BTDS*/"Seleccionar actualizaciones"),E=null;(n=i.newsletterMetadata)!=null&&n.isSuspendedOrTerminated||(E=_?d.jsx(r("WDSMenuItem.react"),{testid:void 0,onPress:l,Icon:r("WDSIconIcCheckBox.react"),title:L},"newsletter-overflow-menu-select-messages"):d.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:l,icon:d.jsx(o("WAWebCheckRefreshedIcon.react").CheckRefreshedIcon,{}),children:L},"newsletter-overflow-menu-select-messages"));var k=s._(/*BTDS*/"Reportar"),I=null;(a=i.newsletterMetadata)!=null&&a.isSuspendedOrTerminated||(I=_?d.jsx(r("WDSMenuItem.react"),{onPress:h,testid:void 0,Icon:r("WDSIconIcThumbDown.react"),title:k},"newsletter-overflow-menu-report"):d.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:h,testid:void 0,icon:d.jsx(o("WAWebThumbsDownRefreshedIcon.react").ThumbsDownRefreshedIcon,{}),children:k},"newsletter-overflow-menu-report"));var T=s._(/*BTDS*/"Info. del canal"),D=s._(/*BTDS*/"Cerrar canal"),x=[_?d.jsx(r("WDSMenuItem.react"),{onPress:y,testid:void 0,Icon:r("WDSIconIcInfo.react"),title:T},"newsletter-overflow-menu-newsletter-info"):d.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:y,testid:void 0,icon:d.jsx(o("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{}),children:T},"newsletter-overflow-menu-newsletter-info"),R,E,_?d.jsx(r("WDSMenuItem.react"),{onPress:C,testid:void 0,Icon:r("WDSIconIcClose.react"),title:D},"newsletter-overflow-menu-close-channel"):d.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:C,testid:void 0,icon:d.jsx(o("WAWebCloseCircleRefreshedIcon.react").CloseCircleRefreshedIcon,{}),children:D},"newsletter-overflow-menu-close-channel"),_?d.jsx(r("WDSMenuItem.react"),{type:"separator"},"newsletter-overflow-menu-separator"):d.jsx(r("WAWebDropdownItemSeparator.react"),{},"newsletter-overflow-menu-separator"),I],$=s._(/*BTDS*/"Dejar de seguir");return o("WAWebNewsletterMembershipUtil").iAmSubscriber(g)&&x.push(_?d.jsx(r("WDSMenuItem.react"),{onPress:b,testid:void 0,Icon:r("WDSIconIcLogout.react"),title:$,destructive:!0},"newsletter-overflow-menu-unfollow"):d.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:b,testid:void 0,icon:d.jsx(o("WAWebExitRefreshedIcon.react").ExitRefreshedIcon,{}),theme:o("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:$},"newsletter-overflow-menu-unfollow")),_?d.jsx(r("WDSMenu.react"),{testid:void 0,children:x}):u!=null?d.jsx("div",{ref:f,"data-testid":void 0,children:x}):d.jsx(o("WAWebDropdown.react").Dropdown,{ref:function(t){f.current=t},type:o("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:o("WAWebDropdown.react").DirX.LEFT,testid:void 0,children:x},"NewsletterMenuDropdown")}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebNewsletterSubscribeButton.react",["fbt","WAWebButton.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.isLoading,n=e.onClick;return u.jsx(o("WAWebButton.react").WAWebButtonPrimary,{testid:void 0,onClick:n,spinner:t,disabled:t,children:s._(/*BTDS*/"Seguir")})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebNewsletterConversationPanelHeader.react",["fbt","Promise","WAWebChatGetters","WAWebCommonNewsletterEnums","WAWebCommonNewsletterStrings","WAWebDrawerManager","WAWebDrawerManagerContext","WAWebFollowNewsletter","WAWebFrontendChatGetters","WAWebInfoFlowLoadable","WAWebInfoFlowStep","WAWebKeyboardTabUtils","WAWebLinkRefreshedIcon.react","WAWebMenuBar.react","WAWebModalManager","WAWebMuteNotificationsRefreshedIcon.react","WAWebNewsletterDirectorySearchAction","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNewsletterModelUtils","WAWebNewsletterSubscribeButton.react","WAWebNewsletterToggleAdminActivityMuteStateAction","WAWebSpinner.react","WAWebStateUtils","WAWebTabOrder","WAWebUnfollowNewsletterConfirmationModal.react","WAWebUnmuteNotificationsRefreshedIcon.react","WAWebWamEnumChannelEventSurface","WAWebWamEnumChannelLinkShareEntryPoint","WAWebWamEnumTsSurface","WDSButton.react","asyncToGeneratorRuntime","react","useWAWebChatValues","useWAWebModelValues","useWAWebOnUnmount","useWAWebPrevious"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useCallback,_=d.useState;function f(t){var a=t.chat,i=o("useWAWebChatValues").useChatValues(a.id,[o("WAWebChatGetters").getIsNewsletter,o("WAWebFrontendChatGetters").getNewsletterMetadata,o("WAWebChatGetters").getMuteExpiration]),l=i[0],u=i[1],c=i[2],d=o("useWAWebModelValues").useOptionalModelValues(a.newsletterMetadata,["membershipType","suspended","terminated","isSuspendedOrTerminated","canBeMuted"]);r("useWAWebOnUnmount")(function(){d==null||d.resetRecentlyFollowedFrom()});var f=_(!1),h=f[0],y=f[1],C=_(!1),b=C[0],v=C[1],S=r("useWAWebPrevious")(c);S!==c&&b&&v(!1);var R=p(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){y(!0),yield(e||(e=n("Promise"))).allSettled([o("WAWebFollowNewsletter").followNewsletter(o("WAWebStateUtils").unproxy(a),{eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD,discoverySurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHANNEL_THREAD}),o("WAWebNewsletterGatingUtils").isSimilarNewsletterInThreadEnabled()&&o("WAWebNewsletterDirectorySearchAction").getSimilarNewslettersAction(o("WAWebStateUtils").unproxy(a))]),y(!1)}),[a]),L=p(function(){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebUnfollowNewsletterConfirmationModal.react").UnfollowNewsletterConfirmationModal,{chat:o("WAWebStateUtils").unproxy(a),loggingOptions:{eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD}}))},[a]),E=o("WAWebDrawerManagerContext").useDrawerManagerContext("mid"),k=p(function(){var e,t=(e=E.existsDrawer())!=null?e:!1;t||o("WAWebDrawerManager").DrawerManager.openDrawerRight(m.jsx(o("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:a,initialStep:o("WAWebInfoFlowStep").InfoFlowStep.NewsletterLink,newsletterLinkShareScreenEntryPoint:o("WAWebWamEnumChannelLinkShareEntryPoint").CHANNEL_LINK_SHARE_ENTRY_POINT.CHANNEL_THREAD}),{transition:"slide-left",focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,noFocus:!0})},[a,E]),I=p(function(){v(!0),o("WAWebNewsletterToggleAdminActivityMuteStateAction").toggleNewsletterAdminActivityMuteStateAction(a.id,o("WAWebNewsletterModelUtils").isMuted(c)?o("WAWebNewsletterModelUtils").UNMUTED_STATE:o("WAWebNewsletterModelUtils").MUTED_STATE,{eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD}).catch(function(){return v(!1)})},[a.id,c]);if(!l||d==null)return null;if(d.isSuspendedOrTerminated)return d.membershipType===o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Subscriber?m.jsx(r("WDSButton.react"),{label:s._(/*BTDS*/"Dejar de seguir"),onPress:L,testid:void 0}):null;var T=null;d.canBeMuted&&!o("WAWebNewsletterGatingUtils").isNewsletterAdminNotificationsEnabled(a.newsletterMetadata)&&(T=o("WAWebNewsletterModelUtils").isMuted(c)?m.jsx(o("WAWebMenuBar.react").MenuBarItem,{tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:b?m.jsx(g,{}):m.jsx(o("WAWebMuteNotificationsRefreshedIcon.react").MuteNotificationsRefreshedIcon,{}),onClick:I,disabled:b,title:s._(/*BTDS*/"Desactivar silencio")}):m.jsx(o("WAWebMenuBar.react").MenuBarItem,{tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:b?m.jsx(g,{}):m.jsx(o("WAWebUnmuteNotificationsRefreshedIcon.react").UnmuteNotificationsRefreshedIcon,{}),onClick:I,disabled:b,title:s._(/*BTDS*/"Silenciar")}));var D=o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(d)?m.jsx(o("WAWebMenuBar.react").MenuBarItem,{tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:m.jsx(o("WAWebLinkRefreshedIcon.react").LinkRefreshedIcon,{}),onClick:k,title:o("WAWebCommonNewsletterStrings").getShareText()}):null,x=o("WAWebNewsletterMembershipUtil").iAmGuest(d)?m.jsx(r("WAWebNewsletterSubscribeButton.react"),{onClick:R,isLoading:h}):null;return m.jsxs(m.Fragment,{children:[D,T,x]})}f.displayName=f.name+" [from "+i.id+"]";function g(){return m.jsx(o("WAWebSpinner.react").Spinner,{color:"wdsSecondaryLighter",size:20})}g.displayName=g.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebSubgroupSwitcherButton.react",["fbt","WAWebCommunityFeatureUsageWamEvent","WAWebCommunityGroupJourneyEventImpl","WAWebCommunitySubgroupSwitcher.react","WAWebDetailImage.react","WAWebFlex.react","WAWebModalManager","WAWebTabOrder","WAWebUISpacing","WAWebUnstyledButton.react","WAWebWamEnumChatFilterActionTypes","WAWebWamEnumCommunityFeatureUiActionTakenType","WAWebWamEnumCommunityUiFeatureType","WAWebWamEnumSurfaceType","WDSIconIcArrowDropDown.react","WDSTooltip.react","react","stylex","useWAWebABPropConfigValue"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={buttonMargin:{marginInlineStart:"x150mmf0",$$css:!0},parentGroupImage:{height:"x1fgtraw",width:"xgd8bvy",$$css:!0},menuBarBtnContainer:{display:"x78zum5",position:"x1n2onr6",height:"x5yr21d",borderStartStartRadius:"x1ekkm8c",borderStartEndRadius:"x1143rjc",borderEndEndRadius:"xum4auv",borderEndStartRadius:"xj21bgg",transitionProperty:"x15406qy",transitionDuration:"x1d8287x",transitionTimingFunction:"xwji4o3","@media screen and (max-width: 720px)_paddingTop":"xj8bxqt","@media screen and (max-width: 720px)_paddingInlineEnd":"xe3rdy5","@media screen and (max-width: 720px)_paddingBottom":"xpbnuc5","@media screen and (max-width: 720px)_paddingInlineStart":"x1gzssx3","@media screen and (max-width: 720px)_marginTop":"x86at4b","@media screen and (max-width: 720px)_marginInlineEnd":"x1ua388o","@media screen and (max-width: 720px)_marginBottom":"x1ad89wd","@media screen and (max-width: 720px)_marginInlineStart":"x1rs47hk",$$css:!0},hoverBg:{":hover_backgroundColor":"x17gydlx",$$css:!0},iconGroup:{color:"x14ug900",$$css:!0}};function m(e){var t=e.parentGroupId,n=e.size;return c.jsx(o("WAWebDetailImage.react").DetailImage,{id:t,size:n,shape:o("WAWebDetailImage.react").DetailImageShape.Squircle,xstyle:d.parentGroupImage})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t,n=e.chat,a=(t=n.groupMetadata)==null?void 0:t.parentGroup,i=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_tooltip");if(a==null)return null;var l=function(t){t==null||t.stopPropagation(),new(o("WAWebCommunityFeatureUsageWamEvent")).CommunityFeatureUsageWamEvent({communityId:a.toString(),communityUiAction:o("WAWebWamEnumCommunityFeatureUiActionTakenType").COMMUNITY_FEATURE_UI_ACTION_TAKEN_TYPE.ENTRY,communityUiFeature:o("WAWebWamEnumCommunityUiFeatureType").COMMUNITY_UI_FEATURE_TYPE.SUBGROUP_SWITCH}).commit(),new(o("WAWebCommunityGroupJourneyEventImpl")).CommunityGroupJourneyEvent({action:o("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.SUBGROUP_SWITCHER_CLICK,surface:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.CHAT,chat:n}).commit(),o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebCommunitySubgroupSwitcher.react"),{chat:n}))},p=c.jsx(m,{parentGroupId:a,size:28}),_=s._(/*BTDS*/"Selector de subgrupo"),f=c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(d.menuBarBtnContainer,d.buttonMargin,o("WAWebUISpacing").uiPadding.horiz10,o("WAWebUISpacing").uiPadding.top8,o("WAWebUISpacing").uiPadding.bottom5,d.hoverBg,o("WAWebUISpacing").uiPadding.start12,o("WAWebUISpacing").uiPadding.end6,o("WAWebUISpacing").uiPadding.top6,o("WAWebUISpacing").uiPadding.bottom6),{children:c.jsx(r("WAWebUnstyledButton.react"),{testid:void 0,title:i?void 0:_,"aria-label":_,dataTab:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,onClick:l,children:c.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:d.iconGroup,children:[p,c.jsx(r("WDSIconIcArrowDropDown.react"),{xstyle:o("WAWebUISpacing").uiMargin.start4,width:20,height:20})]})})}));return i?c.jsx(r("WDSTooltip.react"),{label:_,children:f}):f}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebHeader.react",["fbt","WAWebActions","WAWebBizGatingUtils","WAWebBlockContactUtils","WAWebBlockContants","WAWebBotGating","WAWebBroadcastMenuDropdown.react","WAWebBusinessProfileCollection","WAWebCallButtonsSurface","WAWebChatAssignmentNux.react","WAWebChatAssignmentUtils","WAWebChatGetters","WAWebChatGroupUtils","WAWebChatSearchDrawer.react","WAWebCmd","WAWebCommerceButton.react","WAWebConnModel","WAWebContactGetters","WAWebContactMenuDropdown.react","WAWebConversationMenus","WAWebConversationPanelStyleUtils","WAWebDetailImage.react","WAWebDrawerManager","WAWebDrawerManagerContext","WAWebDrawerManagerGlobalContext","WAWebDropdown.react","WAWebEnvironment","WAWebErrorBoundary.react","WAWebFrontendChatGetters","WAWebFrontendContactGetters","WAWebGroupChatImage.react","WAWebGroupMenuDropdown.react","WAWebGroupSubtitle.react","WAWebGroupType","WAWebHostedGroupUtils","WAWebIcLabelFilledIcon.react","WAWebInfoFlowLoadable","WAWebKeyboardTabUtils","WAWebL10N","WAWebLabelChatHeaderButton.react","WAWebLabelCollection","WAWebLabelOutlineIcon.react","WAWebLabelStackIcon.react","WAWebLabels.react","WAWebLabelsDropdown.react","WAWebMenuBar.react","WAWebMessageLogQplEvents","WAWebMmSignalSharingExpirationWindowUtils","WAWebMmSignalSharingGatingUtils","WAWebMmSignalSharingTos","WAWebMobilePlatforms","WAWebMoreRefreshedIcon.react","WAWebName.react","WAWebNewBroadcastHeaderButton.react","WAWebNewsletterChatHeaderSubtitle.react","WAWebNewsletterChatMenuDropdown.react","WAWebNewsletterConversationPanelHeader.react","WAWebNewsletterGatingUtils","WAWebPREGatingUtils","WAWebSearchRefreshedIcon.react","WAWebSingleChevronInCircleIcon.react","WAWebStackedCirclesImage.react","WAWebStateUtils","WAWebStylesEnv","WAWebSubgroupSwitcherButton.react","WAWebTabOrder","WAWebThemeContext","WAWebTos","WAWebUISpacing","WAWebUseBusinessProfile.react","WAWebUseIsKeyboardUser","WAWebUserSubtitle.react","WAWebVoipCallButtonsLoadable","WAWebWDSGatingUtils","WAWebWamEnumCallFromUi","WAWebWamEnumLobbyEntryPointType","WAWebWamEnumProfileEntryPoint","WDSFocusStateStyles","WDSMenuBarItem.react","WDSTooltip.react","asyncToGeneratorRuntime","nullthrows","react","stylex","useWAWebABPropConfigValue","useWAWebChatValues","useWAWebContactValues","useWAWebForceUpdate","useWAWebListener","useWAWebModelValues","useWAWebStaticButtonA11y","useWAWebUIM","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useEffect,_=d.useRef,f=d.useState,g={buttonMargin:{marginInlineStart:"x150mmf0",$$css:!0},chatHeader:{position:"x1n2onr6",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",width:"xh8yej3",height:"x7j6532",backgroundColor:"x1h3rtpe","::after_position":"x1j6awrg","::after_bottom":"x1te75w5","::after_insetInlineStart":"x1iygr5g","::after_width":"x4eaejv","::after_height":"xcock1l","::after_content":"x1s928wv","::after_backgroundColor":"xl9llhp","::after_borderBottomWidth":"x1qj619r","::after_borderBottomStyle":"x1r9ni5o","::after_borderBottomColor":"xb1pvdl",$$css:!0},chatHeaderDarkOverride:{boxShadow:"xu306ak","::after_display":"x1h1zc6f",$$css:!0},chatHeaderStylesOverride:{backgroundColor:"x1280gxy",borderInlineStartStyle:"xstzfhl",$$css:!0},chatHeaderMaterial:{"::after_content":"x1s928wv","::after_display":"x1h1zc6f",$$css:!0},chatBody:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",minWidth:"xeuugli",$$css:!0},chevronInCircleIcon:{position:"x10l6tqk",insetInlineEnd:"xo2ifbc",left:null,right:null,bottom:"x1o583il",backgroundColor:"x1280gxy",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",cursor:"x1ypdohk",$$css:!0},singleLabelIcon:{width:"xvy4d1p",height:"xxk0z11",$$css:!0},labelStackIcon:{position:"x10l6tqk",top:"xnfr1j",insetInlineStart:"x1o0tod",left:null,right:null,$$css:!0}};function h(e){return{menu:m.jsx(r("WAWebLabelsDropdown.react"),{chat:e}),type:o("WAWebDropdown.react").MenuType.DropdownMenu,dirX:r("WAWebL10N").isRTL()?o("WAWebDropdown.react").DirX.RIGHT:o("WAWebDropdown.react").DirX.LEFT,dirY:o("WAWebDropdown.react").DirY.BOTTOM,offsetY:5,offsetX:0}}function y(e){var t,n,r,a,i,l=e!=null&&(t=e.groupMetadata)!=null&&t.participants.iAmAdmin()&&(n=e.groupMetadata)!=null&&n.announce?s._(/*BTDS*/"Solo los administradores pueden enviar mensajes"):s._(/*BTDS*/"haz clic aqu\u00ed para ver la informaci\u00f3n del grupo"),u;if(((r=e.groupMetadata)==null?void 0:r.groupType)===o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP){var c;e!=null&&(c=e.groupMetadata)!=null&&c.participants.iAmAdmin()?u=s._(/*BTDS*/"Solo los administradores pueden enviar mensajes."):u=s._(/*BTDS*/"Avisos")}else if(((a=e.groupMetadata)==null?void 0:a.groupType)===o("WAWebGroupType").GroupType.LINKED_SUBGROUP&&(i=e.groupMetadata)!=null&&i.participants.iAmMember()){var d,m=(d=e.groupMetadata)==null?void 0:d.getParentGroupChat(),p=m==null?void 0:m.contact,_=p!=null?o("WAWebFrontendContactGetters").getFormattedName(p):null;_!=null&&(u=s._(/*BTDS*/"{community}",[s._param("community",_)]))}return u!=null?u:l}function C(e){var t,n=(t=e.groupMetadata)==null?void 0:t.groupType;return n===o("WAWebGroupType").GroupType.COMMUNITY||n===o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP||n===o("WAWebGroupType").GroupType.LINKED_SUBGROUP||n===o("WAWebGroupType").GroupType.LINKED_GENERAL_GROUP}function b(e,t,n,r){var a,i,l=(a=(i=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("mid"))==null?void 0:i.existsDrawer())!=null?a:!1;l||(e.contact.isBusiness&&o("WAWebMessageLogQplEvents").qplStartProfileView("Header"),(o("WAWebChatGetters").getIsUser(e)||o("WAWebChatGetters").getIsBroadcast(e)||o("WAWebChatGetters").getIsGroup(e)||o("WAWebChatGetters").getIsNewsletter(e))&&o("WAWebDrawerManager").DrawerManager.openDrawerRight(m.jsx(o("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:o("WAWebStateUtils").unproxy(e),profileEntryPoint:n,sourceGroupChatOrNewsletter:o("WAWebChatGetters").getIsGroup(e)?e:void 0,threadId:r},"info-"+e.id.toString()),{transition:"slide-left",uim:t,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE}))}function v(){var e,t,n=(e=(t=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("right"))==null?void 0:t.existsDrawer())!=null?e:!1;n&&o("WAWebDrawerManager").DrawerManager.closeDrawerRight()}function S(e){if(!o("WAWebMobilePlatforms").isSMB()||!o("WAWebBizGatingUtils").isCTWAChatHeaderLabelEntryPointEnabled()||r("WAWebEnvironment").isGuest||!e.canSend||r("WAWebEnvironment").isWindows&&C(e))return null;var t=r("WAWebEnvironment").isWindows||C(e)?m.jsx(o("WAWebMenuBar.react").MenuBarItem,{tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:(function(){var t=e==null?void 0:e.labels;if(!t||t.length===0)return m.jsx(o("WAWebLabelOutlineIcon.react").LabelOutlineIcon,{});if(t.length===1)return m.jsx(o("WAWebLabels.react").Labels,{iconXstyle:g.singleLabelIcon,labels:[t[0]],showName:!1});var n=o("WAWebLabelChatHeaderButton.react").getLabelStackInfo(t),r=n.primaryLabel,a=n.secondaryLabel;return m.jsxs("div",{className:"xxk0z11 x1n2onr6 xvy4d1p",children:[m.jsx(o("WAWebIcLabelFilledIcon.react").IcLabelFilledIcon,{width:24,height:24,style:{color:(r==null?void 0:r.color)!=null?r.color:void 0},xstyle:g.labelStackIcon}),m.jsx(o("WAWebLabelStackIcon.react").LabelStackIcon,{width:24,height:24,style:{color:(a==null?void 0:a.color)!=null?a.color:void 0},xstyle:g.labelStackIcon})]})})(),title:s._(/*BTDS*/"Etiquetas"),dropdownMenu:h(e)}):m.jsx(o("WAWebLabelChatHeaderButton.react").LabelChatHeaderButton,{chat:e});return m.jsx(r("WDSTooltip.react"),{label:s._(/*BTDS*/"Etiquetar chat"),shortcut:o("WAWebActions").Action.LABEL_CHAT,children:t})}S.displayName=S.name+" [from "+i.id+"]";function R(e){"use no forget";var t,a,i,l,c,d=e.chat,h=e.onSelectMessages,C=e.threadId,R=r("useWAWebUIM")(),L=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),E=_(null),k=_(null),I=d.contact,T=f(function(){return o("WAWebMmSignalSharingTos").isMmSignalSharingDisclosureTosAccepted()}),D=T[0],x=T[1];o("useWAWebListener").useListener(o("WAWebTos").TosManager,"change",function(){if(o("WAWebMmSignalSharingGatingUtils").isMmSignalSharingDisclosureEnabled()){var e=o("WAWebMmSignalSharingTos").isMmSignalSharingDisclosureTosAccepted();D!==e&&x(e)}});var $=o("useWAWebChatValues").useChatValues(d.id,[(i=o("WAWebChatGetters")).getId,(l=o("WAWebFrontendChatGetters")).getFormattedTitle,l.getPresence,i.getIsUser,i.getIsNewsletter,i.getIsGroup,i.getIsBroadcast,l.getGroupMetadata,i.getIsPSA,l.getContact,i.getName,l.getAssignedAgent,l.getIsAssignedToMe,l.getNewsletterMetadata,l.getMmSignalSharingExpirationWindow,i.getCapiThreadControl,l.getAttachMediaContents]),P=$[0],N=$[1],M=$[2],w=$[3],A=$[4],F=$[5],O=$[6],B=$[7],W=$[8],q=$[9],U=$[10],V=$[11],H=$[12],G=$[13],z=$[14],j=$[15],K=$[16],Q=r("WAWebUseIsKeyboardUser")(),X=Q.isKeyboardUser,Y=o("WAWebThemeContext").useIsDarkTheme(),J=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_button"),Z=o("useWAWebModelValues").useModelValues(M.chatstate,["type"]),ee=o("useWAWebContactValues").useContactValues(I.id,[(c=o("WAWebContactGetters")).getIsMe,c.getShowBusinessCheckmarkAsPrimary,c.getShowBusinessCheckmarkAsSecondary,c.getShouldForceBusinessUpdate,o("WAWebFrontendContactGetters").getShowBiz3pBotVerifiedNameAsSecondary]),te=ee[0],ne=ee[1],re=ee[2],oe=ee[3],ae=ee[4],ie=(t=o("WAWebUseBusinessProfile.react").useBusinessProfile(o("WAWebBotGating").isBizBot3pAvailable()?I.id:null,["isBizBot3p"]))!=null?t:{},le=ie.isBizBot3p,se=ae&&le===!0,ue=o("useWAWebModelValues").useOptionalModelValues(G,["membershipType","suspended","terminated","isSuspendedOrTerminated"]),ce=r("useWAWebUnmountSignal")(),de=f(null),me=de[0],pe=de[1],_e=_(null);p(function(){function e(){return t.apply(this,arguments)}function t(){return t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebBusinessProfileCollection").BusinessProfileCollection.find(I.id),L()}),t.apply(this,arguments)}oe&&e()},[]);var fe=f(!0),ge=fe[0],he=fe[1],ye=o("WAWebDrawerManagerContext").useDrawerManagerContext("mid"),Ce=function(t){var e=ye.existsDrawer();e&&(t==null||t.preventDefault())},be=function(t){t==null||t.preventDefault();var e=ye.existsDrawer();e||o("WAWebDrawerManager").DrawerManager.openDrawerRight(m.jsx(r("WAWebChatSearchDrawer.react"),{chat:o("WAWebStateUtils").unproxy(d)},"chat-search-"+P.toString()),{transition:"slide-left",uim:R,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},ve=function(){return!!(o("WAWebHostedGroupUtils").isWAHostedGroupEnabled()&&(B==null?void 0:B.hasCapi)===!0)},Se=function(t){var e;t((e=E.current)==null?void 0:e.getBoundingClientRect())},Re=function(){b(d,R,o("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.CHAT_HEADER,C)},Le=r("useWAWebStaticButtonA11y")(Re),Ee=Le[0],ke=Le[1];o("useWAWebListener").useListener(I.businessProfile,["change:profileOptions","change:catalogStatus"],L),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"get_conversation_header_offset",Se),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"update_chatlist_selection",function(){return v()}),o("useWAWebListener").useListener(d,"change:labels",L),o("useWAWebListener").useListener(o("WAWebLabelCollection").LabelCollection,"all",L),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"open_current_chat_info",function(){b(d,R,o("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.CHAT_HEADER,C)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"block_current_chat",function(){o("WAWebBlockContactUtils").handleBlock(d,o("WAWebBlockContants").BlockEntryPoint.OverflowMenuBlock)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"clear_current_chat_conversation_history",function(){o("WAWebCmd").Cmd.clearChat(d)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"exit_current_group",function(){F&&o("WAWebConversationMenus").handleDeleteOrExitChat(d)});var Ie=!!K,Te=o("useWAWebModelValues").useModelValues(o("WAWebConnModel").Conn,["pushname"]),De=Te.pushname,xe=f(null),$e=xe[0],Pe=xe[1];p(function(){if(o("WAWebChatAssignmentUtils").canAssignChat(d)&&V!=null){var e=H?s._(/*BTDS*/"Asignado a ti"):s._(/*BTDS*/"Asignado a {agentName}",[s._param("agentName",V.name)]);Pe(e)}},[De,d,V,H]);var Ne,Me,we=o("WAWebWDSGatingUtils").isWDSMenuM1Enabled();if(w)Ne=m.jsx(r("WAWebContactMenuDropdown.react"),{chat:d,onSelectMessages:h,toContextMenuManager:!0,enableChatThreadLogging:!0,threadId:C,useWdsMenuVersion:J&&we}),Me=m.jsx(r("WAWebUserSubtitle.react"),{contact:I,presence:M,chatstate:M.chatstate,location:"title",showBusinessCheckmark:re,showVerifiedName:se,assignmentSubtitle:$e,chatId:P,threadId:C});else if(O)Ne=m.jsx(r("WAWebBroadcastMenuDropdown.react"),{chat:o("WAWebStateUtils").unproxy(d),onSelectMessages:h,toContextMenuManager:!0,useWdsMenuVersion:J&&we}),Me=null;else if(F){var Ae=r("nullthrows")(B);Ne=m.jsx(r("WAWebGroupMenuDropdown.react"),{chat:o("WAWebStateUtils").unproxy(d),onSelectMessages:h,toContextMenuManager:!0,useWdsMenuVersion:J&&we}),Ae.isSuspendedOrTerminated()?Me=null:!Ae.isUnnamed||Z.type==="typing"?Me=m.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"group-subtitle",children:m.jsx(r("WAWebGroupSubtitle.react"),{chatstate:M.chatstate,groupMetadata:Ae,presence:M,placeholder:y(d),location:"title",assignmentSubtitle:$e,chatId:P})}):Me=null}else A&&(Ne=m.jsx(r("WAWebNewsletterChatMenuDropdown.react"),{chat:d,toContextMenuManager:!0,onSelectMessages:h,useWdsMenuVersion:J&&we}),Me=(ue==null?void 0:ue.suspended)===!0?null:m.jsx(r("WAWebNewsletterChatHeaderSubtitle.react"),{newsletterMetadata:ue}));var Fe;Ne&&(Fe={menu:Ne,anchor:me,anchorRef:_e,autoFocus:X,dirX:r("WAWebL10N").isRTL()?o("WAWebDropdown.react").DirX.RIGHT:o("WAWebDropdown.react").DirX.LEFT,dirY:o("WAWebDropdown.react").DirY.BOTTOM,offsetY:5,type:o("WAWebDropdown.react").MenuType.DropdownMenu});var Oe=null,Be=F&&((B==null?void 0:B.participants.iAmMember())!==!0||(B==null?void 0:B.announce)===!0&&!((a=B==null?void 0:B.participants.iAmAdmin())!=null&&a)||(B==null?void 0:B.isSuspendedOrTerminated())===!0);(B==null?void 0:B.groupType)!==o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP&&!ve()&&!te&&!A&&!P.isBot()&&!I.isEnterprise&&!W&&!Be&&!O&&(Oe=m.jsx(o("WAWebVoipCallButtonsLoadable").WAWebCallButtonsLoadable,{callFromUI:F?o("WAWebWamEnumCallFromUi").CALL_FROM_UI.GROUP_CHAT_DIRECT:o("WAWebWamEnumCallFromUi").CALL_FROM_UI.CONVERSATION,lobbyEntryPoint:o("WAWebWamEnumLobbyEntryPointType").LOBBY_ENTRY_POINT_TYPE.NOT_OPENED,surface:o("WAWebCallButtonsSurface").WAWebCallButtonsSurface.ChatHeader,chat:d}));var We=(B==null?void 0:B.parentGroup)!=null&&B.participants.iAmMember(),qe=We?m.jsx(r("WAWebSubgroupSwitcherButton.react"),{chat:d}):null,Ue;C==null&&A===!1&&o("WAWebChatGroupUtils").isSuspendedGroup(d)===!1&&(Ue=J?m.jsx(r("WDSMenuBarItem.react"),{tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:o("WAWebSearchRefreshedIcon.react").SearchRefreshedIcon,title:s._(/*BTDS*/"Buscar"),onClick:be,marginInlineXstyle:g.buttonMargin,disabled:Ie}):m.jsx(o("WAWebMenuBar.react").MenuBarItem,{tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:m.jsx(o("WAWebSearchRefreshedIcon.react").SearchRefreshedIcon,{}),title:s._(/*BTDS*/"Buscar"),onClick:be,disabled:Ie})),W&&(Me=m.jsx(r("WAWebUserSubtitle.react"),{contact:I,presence:M,chatstate:M.chatstate,location:"title",showBusinessCheckmark:re,chatId:P}));var Ve;if(ge&&(Ve=m.jsx(r("WAWebChatAssignmentNux.react"),{targetRef:k,chat:d})),ce.aborted)return null;var He=J&&we,Ge;return He?Ge=m.jsx(r("WDSMenuBarItem.react"),{ref:k,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,icon:o("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,title:s._(/*BTDS*/"Men\u00fa"),onClick:function(t){he(!1),Ce(t)},testid:void 0,wdsMenuToRender:Ne,menuAlign:"end",disabled:Ie}):J?Ge=m.jsx(r("WDSMenuBarItem.react"),{ref:k,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,icon:o("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,title:s._(/*BTDS*/"Men\u00fa"),onClick:function(t){he(!1),Ce(t)},testid:void 0,dropdownMenu:Fe,disabled:Ie}):Ge=m.jsx(o("WAWebMenuBar.react").MenuBarItem,{ref:k,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,icon:m.jsx(o("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,{}),title:s._(/*BTDS*/"Men\u00fa"),onClick:function(t){he(!1),Ce(t)},testid:void 0,dropdownMenu:Fe,disabled:Ie}),m.jsxs("header",babelHelpers.extends({ref:E},(u||(u=r("stylex"))).props(g.chatHeader,r("WAWebConversationPanelStyleUtils").sharedLayer,o("WAWebUISpacing").uiPadding.vert10,o("WAWebUISpacing").uiPadding.horiz16,Y&&g.chatHeaderDarkOverride,g.chatHeaderMaterial,g.chatHeaderStylesOverride,r("WAWebConversationPanelStyleUtils").sharedShadow),{"data-testid":void 0,children:[m.jsx("div",{className:"x1n2onr6 x1c4vz4f x2lah0s xdl72j9 x1cbfl22 x1y332i5",onClick:function(){return b(d,R,o("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.CHAT_HEADER,C)},title:s._(/*BTDS*/"Detalles del perfil"),role:W?null:"button",children:m.jsx(r("WAWebGroupChatImage.react"),{chat:d,theme:o("WAWebStackedCirclesImage.react").SubgroupImageTheme.CHAT_HEADER,regularChatImage:m.jsxs(m.Fragment,{children:[m.jsx(o("WAWebDetailImage.react").DetailImage,{id:P,size:40,ephemeralIcon:"conversation-header",hiddenSubgroupIcon:"conversation-header",enableAdsDataSharingIcon:!0,enableBizAiDataSharingIcon:!0}),o("WAWebMmSignalSharingExpirationWindowUtils").isMmSignalSharingUserDisclosedInCollectionWindow(z)&&m.jsx(o("WAWebSingleChevronInCircleIcon.react").SingleChevronInCircleIcon,{iconXstyle:g.chevronInCircleIcon})]}),showCommunityInfo:!0})}),m.jsxs("div",babelHelpers.extends({},u.props(g.chatBody,o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus),ke,{ref:Ee,"data-testid":void 0,"data-tab":o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,children:[m.jsx("div",{className:"x78zum5 x1cy8zhl x1y332i5 xggjnk3 x1yc453h",children:m.jsx("div",babelHelpers.extends({},{0:{className:"x78zum5 x1q0g3np x1iyjqo2 x6ikm8r x10wlt62 x1jchvi3 x1fcty0u xdod15v x14ug900 x1yc453h xlyipyv xuxw1ft xh8yej3"},2:{className:"x78zum5 x1q0g3np x1iyjqo2 x6ikm8r x10wlt62 x1jchvi3 xdod15v x14ug900 x1yc453h xlyipyv xuxw1ft xh8yej3 x1s688f"},1:{className:"x78zum5 x1q0g3np x6ikm8r x10wlt62 x1jchvi3 x1fcty0u xdod15v x14ug900 x1yc453h xlyipyv xuxw1ft xh8yej3 x1c4vz4f x2lah0s xdl72j9"},3:{className:"x78zum5 x1q0g3np x6ikm8r x10wlt62 x1jchvi3 xdod15v x14ug900 x1yc453h xlyipyv xuxw1ft xh8yej3 x1s688f x1c4vz4f x2lah0s xdl72j9"}}[!!Y<<1|!!o("WAWebStylesEnv").hasEmoji<<0],{children:m.jsx(o("WAWebName.react").Name,{chat:d,ellipsify:!0,showBusinessCheckmark:ne,testid:void 0,showMessageYourselfName:te,truncateName:!0})}))}),Me]})),m.jsx("div",{className:"x1c4vz4f x2lah0s xdl72j9 xlese2p",children:m.jsxs(o("WAWebMenuBar.react").MenuBar,{children:[qe,!o("WAWebMobilePlatforms").isSMB()&&Oe,m.jsx(r("WAWebCommerceButton.react"),{chat:d,disabled:Ie}),o("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&m.jsx(r("WAWebNewsletterConversationPanelHeader.react"),{chat:d}),S(d),O&&m.jsx(r("WAWebNewBroadcastHeaderButton.react"),{chat:d}),o("WAWebMobilePlatforms").isSMB()&&Oe,Ue,Ne!=null&&m.jsx("div",{className:"x1n2onr6 x150mmf0",ref:o("WAWebPREGatingUtils").isPREChatMovingEnabled()?_e:pe,children:Ge})]},"conversation-header")}),Ve]}))}R.displayName=R.name+" [from "+i.id+"]",l.createLabelsDropdownMenu=h,l.isCommunityRelatedChat=C,l.openInfoPanel=b,l.ConversationHeader=R}),226); __d("WAWebMutePopup.react",["fbt","WAWebConfirmPopup.react","WAWebEmojiText.react","WAWebModalManager","WAWebMuteExpirations","WAWebRadio.react","WAWebText.react","WAWebUserPrefsGeneral","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useState;function _(){o("WAWebModalManager").ModalManager.close()}function f(e){var t=e.children,n=e.onMute,r=o("useWAWebModelValues").useModelValues(e.mute,["id","expiration","callExpiration"]),a=p(null),i=a[0],l=a[1],u=function(t){l(t)},c=function(){return i!=null&&i!==0?i:o("WAWebUserPrefsGeneral").getLastChatMuteDuration()||o("WAWebMuteExpirations").getDefaultMuteDuration()},f=function(){o("WAWebModalManager").ModalManager.close();var t=c();o("WAWebUserPrefsGeneral").setLastChatMuteDuration(t),n(o("WAWebMuteExpirations").calculateMuteExpiration(t),t,e.entryPoint==null?0:e.entryPoint)};m(function(){r.expiration!=null&&r.expiration!==0&&r.callExpiration!=null&&r.callExpiration!==0&&_()},[r.callExpiration,r.expiration,e]);var g=e.onCancel||_,h=c(),y=d.jsx(o("WAWebRadio.react").RadioGroup,{name:"ractionMuteDuration",theme:o("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:h,options:o("WAWebMuteExpirations").ALL_MUTE_DURATIONS.map(function(e){var t=e.duration,n=e.getLabel,r=e.radioId;return{value:t,label:n(),testid:r,onChange:function(){return u(t)}}})});return d.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{title:d.jsx(o("WAWebEmojiText.react").EmojiText,{text:e.title}),okText:s._(/*BTDS*/"Silenciar"),onOK:f,onCancel:g,testid:void 0,children:[t!=null&&d.jsx(o("WAWebText.react").WAWebTextMuted,{paddingBottom:12,children:t}),y]})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebNewsletterRevokeMsgAction",["Promise","WAAckLevel","WALogger","WATimeUtils","WAWebAssociatedMessagesRevokeUtils","WAWebChatSendMessages","WAWebDBStoreRevokeMsgs","WAWebMsgActionCapability","WAWebMsgKey","WAWebMsgModel","WAWebMsgType","WAWebNewsletterSendMessageJob","WAWebNewsletterValidationUtils","WAWebSendMsgResultAction","WAWebUpdateNewsletterMsgUIAction","WAWebUserPrefsMeUser","WAWebViewMode.flow","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s,u,c,d;function m(e,t,r){return(d||(d=n("Promise"))).all(t.map(function(t){return p(e,t,r)}))}function p(e,t,n){return _.apply(this,arguments)}function _(){return _=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,r){var a=yield f(e,t,r);return a.messageSendResult!==o("WAWebSendMsgResultAction").SendMsgResult.OK||(d||(d=n("Promise"))).all(yield o("WAWebAssociatedMessagesRevokeUtils").getAssociatedChildMessageRevokePromises(t,function(t){return f(e,t,r)})),a}),_.apply(this,arguments)}function f(e,t,n){return g.apply(this,arguments)}function g(){return g=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n,r){if(!o("WAWebMsgActionCapability").canRevokeNewsletterMsg(n))return o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["sendNewsletterRevokeMsg: msg cannot be revoked"]))),{messageSendResult:o("WAWebSendMsgResultAction").SendMsgResult.ERROR_CANCELLED};var a=n.serverId;if(a==null)return o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[sendNewsletterRevokeMsg] missing serverId"]))).tags("newsletter").sendLogs("newsletter-revoke-missing-id"),{messageSendResult:o("WAWebSendMsgResultAction").SendMsgResult.ERROR_CANCELLED};var i=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),l=h(n,r,i);try{var d=o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(t.id.toJid()),m=yield o("WAWebNewsletterSendMessageJob").sendNewsletterMessageJob({newsletterJid:d,messageId:n.id.id,isContentMedia:n.mediaObject!=null,type:"revoke",isWamoSub:n.isWamoSub});return m.success?yield y({chat:t,msgToBeRevoked:n,revokeMsg:l,me:i}):m.ack.error==="404"?b({chat:t,msgToBeRevoked:n,clearMedia:r}):(o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[newsletter] Failed to send message, "," from server"])),m.ack.error).tags("newsletter").sendLogs("newsletter-send-revoke-message-fail-server"),l.updateAck(o("WAAckLevel").ACK.FAILED,!0),{messageSendResult:o("WAWebSendMsgResultAction").SendMsgResult.ERROR_NETWORK})}catch(e){return o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[newsletter] Failed to send message"]))).tags("newsletter").sendLogs("newsletter-send-revoke-message-fail-client"),l.updateAck(o("WAAckLevel").ACK.FAILED,!0),{messageSendResult:o("WAWebSendMsgResultAction").SendMsgResult.ERROR_UNKNOWN}}}),g.apply(this,arguments)}function h(e,t,n){var a=new(r("WAWebMsgKey"))({id:r("WAWebMsgKey").newId_DEPRECATED(),remote:e.id.remote,fromMe:!0}),i="admin_revoke",l=o("WATimeUtils").unixTime(),s={id:a,from:n,to:e.id.remote,t:l,type:o("WAWebMsgType").MSG_TYPE.PROTOCOL,subtype:i,protocolMessageKey:e.id,clearMedia:t,local:!0,revokeDuration:l-e.t,revokeTimestamp:l,serverId:e.serverId,viewMode:o("WAWebViewMode.flow").ViewModeType.NEWSLETTER_TOMBSTONE};return new(o("WAWebMsgModel")).Msg(s)}function y(e){return C.apply(this,arguments)}function C(){return C=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.chat,n=e.me,r=e.msgToBeRevoked,a=e.revokeMsg;return yield o("WAWebDBStoreRevokeMsgs").processRevokeMsgs([{revokeMsgKey:r.id,newMsgKey:a.id,timestamp:r.t,revokeTimestamp:a.t,subtype:a.subtype,sender:n,viewMode:a.viewMode}]),o("WAWebUpdateNewsletterMsgUIAction").updateNewsletterMessageUI(a,t.id),{messageSendResult:o("WAWebSendMsgResultAction").SendMsgResult.OK}}),C.apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return v=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.chat,n=e.clearMedia,r=e.msgToBeRevoked;return yield o("WAWebChatSendMessages").sendDeleteMsgs(t,{type:"message",list:[r]},n),{messageSendResult:o("WAWebSendMsgResultAction").SendMsgResult.OK}}),v.apply(this,arguments)}l.sendNewsletterRevokeMsgs=m,l.sendNewsletterRevokeMsg=p}),98); __d("WAWebPipOgVideoPlayer.react",["WAWebPipConst","WAWebPipSharedVideoPlayer.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){return s.jsx(o("WAWebPipSharedVideoPlayer.react").WrappedSharedVideoPlayer,{type:o("WAWebPipConst").PlayerType.OG_FLOATER,ogVideoInfo:e.ogVideoInfo,startTime:e.startTime,onClose:e.onClose,onVideoEnded:e.onVideoEnded,onError:e.onError,onAspectRatio:e.onAspectRatio,onVideoDimensions:e.onVideoDimensions,autoPlay:e.autoPlay,disablePiPControls:e.disablePiPControls,onRefSet:e.onRefSet,onVideoMetadataChange:e.onVideoMetadataChange,onSetFullscreenToggleCallback:e.onSetFullscreenToggleCallback})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebProductCatalogProductImageViewerHeader.react",["WAWebCellFrame.react","WAWebContactCollection","WAWebDescriptionRefreshedIcon.react","WAWebDetailImage.react","WAWebEmojiText.react","WAWebFbtCommon","WAWebMenuBar.react","WAWebName.react","WAWebText.react","WAWebUISpacing","WAWebXViewerIcon.react","react","stylex","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={productNameIcon:{color:"xhslqc4",$$css:!0},info:{flexGrow:"x1iyjqo2",order:"x14yy4lh",marginInlineEnd:"x1yh7se0",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},mediaPanelTools:{order:"x9ek82g",$$css:!0}};function d(e){var t=e.isImgZoomedIn,n=e.onClose,a=e.product,i=o("useWAWebModelValues").useModelValues(a,["name","catalogWid"]),l=u.jsx(o("WAWebXViewerIcon.react").XViewerIcon,{}),d=o("WAWebContactCollection").ContactCollection.get(i.catalogWid),m;if(d){var p=u.jsx(o("WAWebName.react").Name,{contact:d,selectable:!0,useVerifiedName:!0}),_=u.jsx(o("WAWebDetailImage.react").DetailImage,{id:d.id,size:40}),f=o("WAWebDescriptionRefreshedIcon.react").DescriptionRefreshedIcon,g=u.jsxs("div",{children:[u.jsx(f,{xstyle:[c.productNameIcon,o("WAWebUISpacing").uiMargin.end2],displayInline:!0,width:17,height:20}),u.jsx(o("WAWebEmojiText.react").EmojiText,{text:i.name,titlify:!0,ellipsify:!0})]});m=u.jsx(r("WAWebCellFrame.react"),{idle:!0,image:_,primary:p,secondary:g,theme:"media"})}else m=u.jsx(o("WAWebText.react").WAWebTextLarge,{as:"span",paddingStart:12,children:u.jsx(o("WAWebEmojiText.react").EmojiText,{text:i.name,titlify:!0,ellipsify:!0})});return u.jsxs("div",babelHelpers.extends({},{0:{className:"x78zum5 x1c4vz4f x15zctf7 x6s0dn4 xng8ra x1280gxy xeg851g x1d8287x xeerw82"},1:{className:"x78zum5 x1c4vz4f x15zctf7 x6s0dn4 xng8ra x1280gxy xeg851g x1d8287x xeerw82 xlshs6z xg01cxk"}}[!!t<<0],{children:[u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.info,o("WAWebUISpacing").uiMargin.start5),{children:m})),u.jsx("div",babelHelpers.extends({},s.props(c.mediaPanelTools,o("WAWebUISpacing").uiMargin.end18),{children:u.jsx(o("WAWebMenuBar.react").MenuBar,{theme:"strong",children:u.jsx(o("WAWebMenuBar.react").MenuBarItem,{testid:void 0,icon:l,title:r("WAWebFbtCommon")("Close"),onClick:n})},"media-panel-header")}))]}))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebProductCatalogProductImageViewerModal.react",["WANullthrows","WATypeUtils","WAWebChevronButton.react","WAWebEmojiText.react","WAWebMediaData","WAWebMediaImage.react","WAWebMediaTypes","WAWebMediaViewerConstants","WAWebObjectFit.react","WAWebPipOgVideoPlayer.react","WAWebProductCatalogProductImageViewerHeader.react","WAWebTextSizeUtils","WAWebUISpacing","WAWebUimUie.react","WAWebVelocityAnimate","react","stylex","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useRef,p=c.useState,_="xekv6nw-B",f={mediaCaption:{flexShrink:"xs83m0k",width:"x14atkfc",maxWidth:"x14r61f",minHeight:"xisnujt",maxHeight:"x569fbc",overflowY:"x10wlt62",color:"xhslqc4",wordWrap:"x1vvkbs",whiteSpace:"x126k92a",transitionProperty:"xeg851g",transitionDuration:"x1d8287x",transitionTimingFunction:"xeerw82",$$css:!0},imgZoomedInMediaCaption:{visibility:"xlshs6z",opacity:"xg01cxk",$$css:!0},btnMediaNext:{position:"x1n2onr6",marginInlineStart:"x1w35cxx",$$css:!0},btnMediaPrev:{position:"x1n2onr6",marginInlineEnd:"x487x9m",$$css:!0},mediaContent:{boxSizing:"x9f619",display:"x78zum5",flexGrow:"x1iyjqo2",flexShrink:"x2lah0s",flexDirection:"x1q0g3np",alignItems:"x6s0dn4",justifyContent:"x1qughib",height:"x4t50tc",$$css:!0}},g=800;function h(e){var t=e.getZoomNode,n=e.onBack,a=e.onExitAnimation,i=e.onImgZoomIn,l=e.zoomIn,u=m(null),c=m(!1),_=m(!1),h=m(!1),y=m(null),C=o("useWAWebModelValues").useModelValues(e.mediaData,["mediaStage","renderableUrl","isGif","type"]),b=o("useWAWebModelValues").useModelValues(e.product,["description"]),v=o("useWAWebModelValues").useModelValues(e.productImage,["videoUrl","mediaUrl"]),S=p(!1),R=S[0],L=S[1],E=p(function(){return C.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED&&l&&t?t():null}),k=E[0],I=p({width:g,height:g}),T=I[0],D=I[1],x=o("WAWebTextSizeUtils").getWAWebTextSizeStyles(),$=function(t,n){var e=n.getBoundingClientRect(),a=t.getBoundingClientRect(),i=a.top-e.top,l=a.left-e.left,s=t.clientWidth/n.clientWidth,c=(n.clientHeight-t.clientHeight)/2,d=(n.clientWidth-t.clientWidth)/2;i-=c,l-=d,r("WAWebVelocityAnimate")(n,{opacity:[1,0],translateX:[0,l],translateY:[0,i],scale:[1,s]},{duration:o("WAWebMediaViewerConstants").ANIMATION_DURATION,easing:[.1,.82,.25,1]}),u.current&&r("WAWebVelocityAnimate")(u.current,{opacity:[1,0]},{duration:o("WAWebMediaViewerConstants").ANIMATION_DURATION})},P=function(t){if(!c.current){c.current=!0;var e=k,n=t.currentTarget;!e||!n||!l||n instanceof HTMLElement&&$(e,n)}},N=function(t){var e=y.current;t&&e&&(h.current=e.getHeightOverflow()>0||e.getWidthOverflow()>0),L(t),i(t)},M=function(t){var e=y.current;e&&R&&e.onClick(t)},w=function(t,n){var e=y.current;if(e){var a=e.getInsideContainer();if(!(!a||!(a instanceof HTMLElement))){var i=e.getOutsideContainer();if(!(!i||!(i instanceof HTMLElement))){var l=e.getTranslatePosition(i,t,n),s=l.translateX,u=l.translateY;r("WAWebVelocityAnimate")(a,"stop"),r("WAWebVelocityAnimate")(a,{translateX:s,translateY:u,scale:o("WAWebMediaViewerConstants").ZOOM_IN_FACTOR},{duration:0})}}}},A=function(t){w(t.pageX,t.pageY)},F=function(){if(!_.current){_.current=!0,o("WATypeUtils").isFunction(a)&&a();var e=t();if(!e||!(y!=null&&y.current))return n();var i=r("WANullthrows")(y.current.getInsideContainer()),l=i.getBoundingClientRect(),s=e.getBoundingClientRect(),u=s.top-l.top,c=s.left-l.left,d=e.clientWidth/i.clientWidth,m=(i.clientHeight-e.clientHeight)/2,p=(i.clientWidth-e.clientWidth)/2;u-=m,c-=p,r("WAWebVelocityAnimate")(i,{translateX:[c,0],translateY:[u,0],scale:[d,1]},{duration:200,easing:[.1,.82,.25,1]}).then(function(){n()})}},O=function(t){Math.abs(t.deltaY)>7&&F()},B;v.videoUrl!=null?B=d.jsx(r("WAWebObjectFit.react"),{type:"scaleDown",position:"relative",objectPosition:"relative",size:T,children:d.jsx(r("WAWebPipOgVideoPlayer.react"),{autoPlay:!0,ogVideoInfo:{videoUrl:v.videoUrl,previewUrl:""},onVideoDimensions:D,onClose:F,startTime:0})}):B=d.jsx(r("WAWebMediaImage.react"),{mediaData:C,onLoad:P,onImgZoomIn:N,ref:y,preventDownload:!1},C.renderableUrl);var W;if(b.description!=null&&b.description!==""){var q=e.zoomIn&&(C.isGif||C.type===r("WAWebMediaData").TYPE.IMAGE);W=d.jsx("span",babelHelpers.extends({},{0:{},1:{className:"xg01cxk"}}[!!q<<0],{ref:u,children:d.jsx(o("WAWebEmojiText.react").EmojiText,{text:b.description,className:(s||(s=r("stylex")))(f.mediaCaption,o("WAWebUISpacing").uiMargin.top12,e.isImgZoomedIn&&f.imgZoomedInMediaCaption,x.mediaCaptionTextSize)})}))}var U=function(n){e.onPrev==null||e.onPrev(n)},V=function(n){e.onNext==null||e.onNext(n)},H=d.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(f.btnMediaNext,o("WAWebUISpacing").uiMargin.end18),{children:d.jsx(o("WAWebChevronButton.react").ChevronButton,{type:o("WAWebChevronButton.react").ButtonType.Next,onClick:V,onKeyDown:V,disabled:!e.onNext||R})})),G=d.jsx("div",babelHelpers.extends({},s.props(f.btnMediaPrev,o("WAWebUISpacing").uiMargin.start18),{children:d.jsx(o("WAWebChevronButton.react").ChevronButton,{type:o("WAWebChevronButton.react").ButtonType.Prev,onClick:U,onKeyDown:U,disabled:!e.onPrev||R})})),z=R?null:O,j=R?null:F,K=R&&h.current?A:null,Q=R?M:null;return d.jsx(o("WAWebUimUie.react").UIE,{displayName:"ProductViewer",escapable:!0,requestDismiss:F,children:d.jsxs("div",babelHelpers.extends({},{0:{className:"x1oyvh86 x78zum5 xdt5ytf xn4wywj x1ecsr37 xixxii4 x13vifvy x1o0tod x9f619 xh8yej3 x5yr21d"},2:{className:"x127lhb5 xfbpl4g x1alahoq x1oyvh86 x78zum5 xdt5ytf xn4wywj x1ecsr37 xixxii4 x13vifvy x1o0tod x9f619 xh8yej3 x5yr21d"},1:{className:"xzuqxi3 x1oyvh86 x78zum5 xdt5ytf xn4wywj x1ecsr37 xixxii4 x13vifvy x1o0tod x9f619 xh8yej3 x5yr21d"},3:{className:"x127lhb5 xfbpl4g x1alahoq xzuqxi3 x1oyvh86 x78zum5 xdt5ytf xn4wywj x1ecsr37 xixxii4 x13vifvy x1o0tod x9f619 xh8yej3 x5yr21d"}}[!!e.zoomIn<<1|!!R<<0],{"data-animate-media-viewer":!0,onClick:Q,onMouseMove:K,children:[d.jsx(r("WAWebProductCatalogProductImageViewerHeader.react"),{onClose:F,product:b,isImgZoomedIn:e.isImgZoomedIn}),d.jsxs("div",babelHelpers.extends({},s.props(f.mediaContent,o("WAWebUISpacing").uiPadding.top10,o("WAWebUISpacing").uiPadding.bottom15),{dir:"ltr",onWheel:z,onClick:j,children:[G,d.jsxs("div",babelHelpers.extends({},{0:{className:"x1n2onr6 x78zum5 x6s0dn4 xl56j7k xh8yej3 xeuugli x5yr21d"},1:{className:"xdt5ytf x1n2onr6 x78zum5 x6s0dn4 xl56j7k xh8yej3 xeuugli x5yr21d"}}[!!W<<0],{children:[d.jsx("div",{className:"x1n2onr6 x78zum5 x6s0dn4 xl56j7k xh8yej3 xeuugli x5yr21d",children:B}),W]})),H]}))]}))})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),98); __d("WAWebProductCatalogProductImageViewFlow.react",["Keys","WAWebModalManager","WAWebProductCatalogLogEvents","WAWebProductCatalogProductImageViewerModal.react","WAWebProductCatalogProductThumb.react","WAWebStateUtils","WAWebUISpacing","WAWebVelocityAnimate","WAWebVelocityTransitionGroup","react","stylex","useWAWebListener","useWAWebPrevious","useWAWebRenderCallbacks"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useCallback,p=c.useEffect,_=c.useRef,f=c.useState,g={viewerThumbs:{display:"x78zum5",width:"xh8yej3",overflowX:"x14aock7",$$css:!0}};function h(e){var t=e.activeProductImage,n=e.product,a=e.productImageCollection,i=e.sessionId,l=_(!1),u=_(null),c=_(null),h=_(null),y=f(function(){return a.toArray().indexOf(t)}),C=y[0],b=y[1],v=f(!1),S=v[0],R=v[1],L=r("useWAWebPrevious")(n),E=r("useWAWebPrevious")(i),k=r("useWAWebPrevious")(C),I=m(function(e){e!==C&&(o("WAWebProductCatalogLogEvents").logImageNavigate({product:o("WAWebStateUtils").unproxy(n),catalogSessionId:i}),o("WAWebProductCatalogLogEvents").logImageListClick({product:o("WAWebStateUtils").unproxy(n),catalogSessionId:i})),b(e)},[C,n,i]),T=m(function(e,t){if(e&&e.stopPropagation(),!S){var n=a.length,r=C+t,o=r<0?n-1:r%n;I(o)}},[C,I,S,a.length]),D=function(t){t&&t.preventDefault(),t.keyCode===r("Keys").LEFT?T(t,-1):t.keyCode===r("Keys").RIGHT&&T(t,1)};o("useWAWebListener").useListener(window,"keydown",D);var x=function(t){var e;t===void 0&&(t=!1);var n=c.current,o=(e=h.current)==null?void 0:e.firstChild,a=u.current;if(!(!n||!o||!a)){var i=0;a instanceof HTMLElement&&(i=a.clientWidth/2-n.clientWidth/2),r("WAWebVelocityAnimate")(a,"stop");var l=0;t&&(l=300),r("WAWebVelocityAnimate")(a,"scroll",{duration:l,container:o,offset:i,axis:"x",easing:[.1,.82,.25,1]})}};r("useWAWebRenderCallbacks")({onMount:function(){x(),c.current&&r("WAWebVelocityAnimate")(c.current,{opacity:[1,0],translateY:["0%","100%"]},{duration:300,delay:100,easing:[.1,.82,.25,1]}),o("WAWebProductCatalogLogEvents").logImageCarouselModalView({product:o("WAWebStateUtils").unproxy(n),catalogSessionId:i})}});var $=function(t){R(t)},P=function(){o("WAWebModalManager").ModalManager.closeMedia()},N=function(){c.current&&r("WAWebVelocityAnimate")(c.current,{opacity:[0,1],translateY:["100%","0%"]},{duration:300,easing:[.1,.82,.25,1]})};p(function(){k!==C&&(x(!0),o("WAWebProductCatalogLogEvents").logFullImageView({product:o("WAWebStateUtils").unproxy(n),catalogSessionId:i}))},[C,k,L,E,n,i]);var M=a.length,w=C>0?function(e){return T(e,-1)}:null,A=C+1=n)throw new(o("WAWebBackendErrors")).ServerStatusCodeError(405,"Pin limit exceeded");return o("WAWebChatPinBridge").setPin(t.id,u,d,_)}):o("WAWebChatPinBridge").setPin(t.id,u,d,_),C=a?new(o("WAWebActionToast.react")).ActionType(p.getPinningText(t)):new(o("WAWebActionToast.react")).ActionType(p.getUnpinningText(t)),b=y.then(function(){if(g.aborted)throw new(o("WAAbortError")).AbortError;var e=a?p.getPinnedText(t):p.getUnpinnedText(t);return new(o("WAWebActionToast.react")).ActionType(e,{actionText:s._(/*BTDS*/"Deshacer"),actionHandler:function(){return m(t,!a,i)}})}).catch(o("WAAbortError").catchAbort(r("WAWebNoop"))).catch(function(l){if(l.status===405)return h&&n("cr:12385")?(o("WAWebToastManager").ToastManager.close(i),o("WAWebModalManager").ModalManager.open(c.jsx(n("cr:12385"),{chat:t,onTryForFree:r("WAWebNoop")})),new(o("WAWebActionToast.react")).ActionType(p.getFailedToPinText(t))):new(o("WAWebActionToast.react")).ActionType(p.getPinLimitExceededText(t));if(l.status>=400)return a?new(o("WAWebActionToast.react")).ActionType(p.getFailedToPinText(t)):new(o("WAWebActionToast.react")).ActionType(p.getFailedToUnpinText(t));o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["models:chat:setPin dropped"])));var u=a?p.getFailedToPinText(t):p.getFailedToUnpinText(t);return new(o("WAWebActionToast.react")).ActionType(u,{actionText:s._(/*BTDS*/"Vuelve a intentarlo."),actionHandler:function(){return m(t,a,i)}})});o("WAWebToastManager").ToastManager.open(c.jsx(o("WAWebActionToast.react").ActionToast,{id:i,initialAction:C,pendingAction:b}));var v=y.then(function(){t.pin=u}).finally(function(){l.setPin=null});return l.setPin={promise:v,abortController:f},v}var p={getPinnedText:function(t){return o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"Canal fijado"):s._(/*BTDS*/"Chat fijado")},getUnpinnedText:function(t){return o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"Canal desfijado"):s._(/*BTDS*/"Chat desfijado")},getPinningText:function(t){return o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"Fijando canal\u2026"):s._(/*BTDS*/"Fijando el chat\u2026")},getUnpinningText:function(t){return o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"Desfijando canal\u2026"):s._(/*BTDS*/"Desfijando el chat\u2026")},getFailedToPinText:function(t){return o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"No se pudo fijar el canal"):s._(/*BTDS*/"No se pudo fijar el chat.")},getFailedToUnpinText:function(t){return o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"No se pudo desfijar el canal"):s._(/*BTDS*/"No se pudo desfijar el chat.")},getPinLimitExceededText:function(t){var e=o("WAWebChatPinBridge").getPinLimit(t.id);return o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"_j{\"*\":\"Solo puedes fijar hasta {number} canales.\",\"_1\":\"Solo puedes fijar hasta 1 canal.\"}",[s._plural(e,"number")]):s._(/*BTDS*/"_j{\"*\":\"Solo puedes fijar hasta {number} chats.\",\"_1\":\"Solo puedes fijar hasta 1 chat.\"}",[s._plural(e,"number")])}};l.setPin=d}),226); __d("WAWebUseNewsletterActionListeners",["WAWebChatEntryPoint","WAWebCmd","WAWebDrawerManager","WAWebInfoFlowLoadable","WAWebKeyboardTabUtils","WAWebNewsletterCollection","WAWebNewsletterTabFlowLoadable","react","useWAWebListener","useWAWebUIM"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(){var e=r("useWAWebUIM")(),t=function(n){var t=r("WAWebNewsletterCollection").get(n);t!=null&&(o("WAWebDrawerManager").DrawerManager.openDrawerLeft(s.jsx(o("WAWebNewsletterTabFlowLoadable").NewsletterTabFlowLoadable,{}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"slide-left",uim:e}),o("WAWebCmd").Cmd.openChatBottom({chat:t,chatEntryPoint:o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterCreationFlow}))},n=function(t,n){o("WAWebDrawerManager").DrawerManager.openDrawerRight(s.jsx(o("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:t,initialStep:n}),{transition:"slide-left",focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,noFocus:!0})};o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"open_created_newsletter",t),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"open_newsletter_profile",n)}l.default=u}),98); __d("WAWebMetaAiThreadDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebMetaAiThreadDrawer.react").__setRef("WAWebMetaAiThreadDrawerLoadable").load();return e}),"MetaAiThreadDrawer"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.MetaAiThreadDrawerFlowLoadable=c}),98); __d("useWAWebBotActionListeners",["WAWebCmd","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebMetaAiThreadDrawerLoadable","WAWebNavBarTypes","react","useWAWebListener","useWAWebUIM"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e,t){var n=r("useWAWebUIM")(),a=function(a,i){e!==o("WAWebNavBarTypes").NavBarItems.MetaAI&&t(o("WAWebNavBarTypes").NavBarItems.MetaAI),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(s.jsx(o("WAWebMetaAiThreadDrawerLoadable").MetaAiThreadDrawerFlowLoadable,{chat:a,threadEntryPoint:i}),{uim:n,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0})};o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"open_meta_ai_thread_drawer",a)}l.default=u}),98); __d("useWAWebCommunityActionListeners",["WAWebChatCollection","WAWebChatCommunityUtils","WAWebCmd","WAWebCommunityDailyUtils","WAWebCommunityFlow.react","WAWebCommunityFlowLoadable","WAWebCommunityHomeWrapper.react","WAWebCommunitySettingsDrawer.react","WAWebCommunityTabbedInfoDrawer.react","WAWebDrawerManager","WAWebGroupMetadataCollection","WAWebKeyboardTabUtils","WAWebManageCommunityGroupsFlowLoadable","WAWebModalManager","WAWebNewGroupFlow.react","WAWebNewGroupFlowLoadable","WAWebNewSubgroupSuggestionFlowLoadable","WAWebNoop","WAWebSubgroupJoinModal.react","react","useWAWebListener","useWAWebUIM"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(){var e,t,n=r("useWAWebUIM")(),a=function(t,r){o("WAWebCommunityDailyUtils").incrementCommunityHomeEvent(t,o("WAWebCommunityDailyUtils").CommunityDailyHomeMetricsType.HOME_VIEWS),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(s.jsx(o("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{jid:t,hasFetchedSubgroups:r,initialStep:o("WAWebCommunityFlow.react").CommunityFlowStep.CommunityHome},"community-nav-"+t.toString()),{transition:"slide-left",uim:n,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},i=function(t,r,a,i){r===void 0&&(r=o("WAWebCommunityTabbedInfoDrawer.react").CommunityInfoTabs.Community),o("WAWebCommunityDailyUtils").incrementCommunityHomeEvent(t,o("WAWebCommunityDailyUtils").CommunityDailyHomeMetricsType.HOME_VIEWS),o("WAWebDrawerManager").DrawerManager.openDrawerRight(s.jsx(o("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{jid:t,initialStep:o("WAWebCommunityFlow.react").CommunityFlowStep.CommunityHome,initialTab:r,homeTheme:o("WAWebCommunityHomeWrapper.react").CommunityHomeTheme.TabbedInfo,scrollToMemberList:i,showFullDescription:a,onBack:function(){o("WAWebDrawerManager").DrawerManager.closeDrawerRight()}},"community-info-"+t.toString()),{transition:"slide-left",uim:n,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},l=function(t){o("WAWebDrawerManager").DrawerManager.openDrawerLeft(s.jsx(o("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{jid:t,initialStep:o("WAWebCommunityFlow.react").CommunityFlowStep.PendingGroups,onBack:function(){o("WAWebCmd").Cmd.openCommunityHome(t)}}),{transition:"slide-left",uim:n,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},u=function(t){o("WAWebDrawerManager").DrawerManager.openDrawerLeft(s.jsx(o("WAWebManageCommunityGroupsFlowLoadable").ManageCommunityGroupsFlowLoadable,{parentGroupMetadata:r("WAWebGroupMetadataCollection").assertGet(t),onBack:function(){return a(t,!1)}}))},c=function(t){var e,n=o("WAWebChatCollection").ChatCollection.get(t);!n||!((e=n.groupMetadata)!=null&&e.hasJoined())||o("WAWebDrawerManager").DrawerManager.openDrawerLeft(s.jsx(r("WAWebCommunitySettingsDrawer.react"),{chat:n,onBack:function(){return a(t,!1)}}),{transition:"flow-transition-drawer-push",focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},d=function(t,n,r){var e;o("WAWebChatCommunityUtils").isSubgroupSuggestionCreation(t)?e=s.jsx(o("WAWebNewSubgroupSuggestionFlowLoadable").NewSubgroupSuggestionFlowLoadable,{parentGroup:t,onBack:function(){return a(t,!1)}}):e=s.jsx(o("WAWebNewGroupFlowLoadable").NewGroupFlowLoadable,{onCreateGroup:n,parentGroupWid:t,onEnd:function(){return a(t,!1)},initialSelectedSubgroup:r,initialStep:o("WAWebNewGroupFlow.react").NewGroupFlowStep.SET_GROUP_INFO_DRAWER,shortenedCreationFlow:!0}),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(e,{transition:"flow-transition-drawer-push",focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},m=function(t,n){o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebSubgroupJoinModal.react"),{subgroupMetadata:t,onSuccess:r("WAWebNoop"),source:n}))};(e=o("useWAWebListener")).useListener((t=o("WAWebCmd")).Cmd,"open_subgroup_join_modal",m),e.useListener(t.Cmd,"open_community_home",a),e.useListener(t.Cmd,"open_community_tabbed_info",i),e.useListener(t.Cmd,"open_community_pending_groups_drawer",l),e.useListener(t.Cmd,"open_community_home_manage_groups",u),e.useListener(t.Cmd,"open_community_add_new_group",d),e.useListener(t.Cmd,"open_community_settings_drawer",c)}l.default=u}),98); __d("WAWebActionListener",["fbt","JSResourceForInteraction","Promise","WAAbortError","WALogger","WAPromiseDelays","WAWebABProps","WAWebAIAgentAIReplyUtils","WAWebActionListenerHelpers","WAWebActionToast.react","WAWebAddToFavoritesAction","WAWebBizAiAgentStatusUtils","WAWebBizAiRepliesControlPopup.react","WAWebBizChatAssignmentAiRepliesModal.react","WAWebBizChatAssignmentModal.react","WAWebBizMerchantDetailsEntityTypePopup.react","WAWebBusinessMuteWamEvent","WAWebBusinessUnmuteWamEvent","WAWebChatAssignmentLogEvents.flow","WAWebChatAssignmentUtils","WAWebChatEphemerality","WAWebChatGetters","WAWebChatSendMessages","WAWebClearChatPopup.react","WAWebClearSelectedChatsPopup.react","WAWebCmd","WAWebCommandPalette.react","WAWebConfirmPopup.react","WAWebCountrySelectorPopup.react","WAWebCurrentUser","WAWebDeleteChatPopup.react","WAWebDrawerManager","WAWebEventInfoFlowLoadable","WAWebGroupsV4InviteFlowLoadable","WAWebHeader.react","WAWebKeyboardTabUtils","WAWebLazyLoadedRetriable","WAWebMiscErrors","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgType","WAWebMuteCollection","WAWebMuteExpirations","WAWebMutePopup.react","WAWebNewsletterRevokeMsgAction","WAWebNoop","WAWebProductCatalogProductImageViewFlow.react","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebRemoveFromFavoritesAction","WAWebSendMsgResultAction","WAWebSendProductModalLoadable","WAWebSetArchiveChatAction","WAWebSetPinChatAction","WAWebToast.react","WAWebToastManager","WAWebUpdateUnreadChatAction","WAWebUseNewsletterActionListeners","WAWebWamChatPSALogger","WAWebWamEnumMuteEntryPoint","WAWebWamEnumProfileEntryPoint","asyncToGeneratorRuntime","countWhere","err","isStringNullOrEmpty","react","useWAWebBotActionListeners","useWAWebCommunityActionListeners","useWAWebListener","useWAWebUIM"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m=d||(d=r("react"));function p(t){var a,i,l=t.activeNavBarItem,d=t.updateActiveNavBarItem,p=r("useWAWebUIM")(),_=function(t){var e=t.onSend,n=t.product;o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebSendProductModalLoadable").SendProductModalLoadable,{product:n,onSend:e}),{transition:"modal-flow",uim:p})},f=function(t,n){o("WAWebModalManager").ModalManager.openMedia(m.jsx(r("WAWebProductCatalogProductImageViewFlow.react"),{activeProductImage:t.activeProductImage,productImageCollection:t.productImageCollection,getZoomNode:t.getZoomNode,product:t.product,sessionId:n}),{transition:"media-viewer",uim:p})},g=function(t,n,r,a){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebGroupsV4InviteFlowLoadable").GroupsV4InviteFlowLoadable,{participantNeedInvite:t,groupGid:n,subject:r,groupDesc:a}))},h=function(t){o("WAWebHeader.react").openInfoPanel(t,p,o("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.NOTIFICATION_BLOCK_ACTION)},y=function(t,n,a,i,l){if(i===void 0&&(i=!0),l===void 0&&(l=!0),n){var e=function(n,r,i){if(o("WAWebChatGetters").getIsPSA(t)&&a!==0){var e;switch(i){case 1:e=o("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CHAT_LIST_SCREEN;break;case 2:e=o("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONTACT_INFO;break;default:e=o("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONVERSATION_SCREEN;break}o("WAWebWamChatPSALogger").logChatPSAMute(e,r===1/0?-1:r)}t.pendingAction++,t.mute.mute({expiration:n,sendDevice:!0,showToast:l}).finally(function(){t.pendingAction--}),(t.isBusinessGroup()||t.contact.isBusiness)&&new(o("WAWebBusinessMuteWamEvent")).BusinessMuteWamEvent().commit()};if(i){var u=s._(/*BTDS*/"Silencia las notificaciones");o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebMutePopup.react"),{title:u,mute:t.mute,onMute:e,entryPoint:a,children:s._(/*BTDS*/"Ning\u00fan participante ver\u00e1 que silenciaste este chat, y seguir\u00e1s recibiendo una notificaci\u00f3n cuando te mencionen.")}),{transition:"modal",uim:p})}else{var c=Number.POSITIVE_INFINITY,d=o("WAWebMuteExpirations").calculateMuteExpiration(c);e(d,c,a!=null?a:0)}}else{if(t.pendingAction++,t.mute.unmute({sendDevice:!0,showToast:l}).finally(function(){t.pendingAction--}),o("WAWebChatGetters").getIsPSA(t)&&a!==0){var _;switch(a){case 1:_=o("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CHAT_LIST_SCREEN;break;case 2:_=o("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONTACT_INFO;break;default:_=o("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONVERSATION_SCREEN;break}o("WAWebWamChatPSALogger").logChatPSAUnmute(_)}(t.isBusinessGroup()||t.contact.isBusiness)&&new(o("WAWebBusinessUnmuteWamEvent")).BusinessUnmuteWamEvent().commit()}},C=function(t,n,a){if(t){var e=s._(/*BTDS*/"_j{\"*\":\"Silenciar los chats seleccionados por\\u2026\",\"_1\":\"Silenciar el chat seleccionado por\\u2026\"}",[s._plural(t.length)]);if(n){var i=function(n,r,o){t.forEach(function(e){e.pendingAction++,e.mute.mute({expiration:n,sendDevice:!0,fromMultiselect:!0}).finally(function(){e.pendingAction--})}),a()};o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebMutePopup.react"),{title:e,mute:t[0].mute,onMute:i}),{transition:"modal",uim:p})}else t.forEach(function(e){e.pendingAction++,e.mute.unmute({sendDevice:!0,fromMultiselect:!0}).finally(function(){e.pendingAction--})}),a()}},b=function(t,n,r,o){return y(t,n,0,r,o)},v=function(t){var e=o("WAWebABProps").getABPropConfigValue("wa_web_enable_granular_notifications");e||(o("WAWebMuteCollection").MuteCollection.setGlobalNotificationReactionsEnabled(t),o("WAWebMuteCollection").MuteCollection.setGlobalGroupNotificationReactionsEnabled(t),o("WAWebMuteCollection").MuteCollection.setGlobalStatusNotificationReactionsEnabled(t))},S=function(t,n,a){a===void 0&&(a=!1);var e=s._(/*BTDS*/"Desactivar todas las notificaciones de reacciones por:"),i=s._(/*BTDS*/"Notificaciones de reacciones activadas"),l=s._(/*BTDS*/"\u00bfDeseas activar los sonidos y las notificaciones para las reacciones?");if(n){var u=function(n,r){t.mute({expiration:n}),v(!1),o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:o("WAWebActionListenerHelpers").getMuteAllDurationLabel(r),id:o("WAWebToast.react").genId()}))};o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebMutePopup.react"),{mute:t,title:e,onMute:u,muteAll:!0}),{transition:"modal",uim:p})}else{if(a){t.unmute(),v(!0);return}var c=function(){t.unmute(),v(!0),o("WAWebModalManager").ModalManager.close(),o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:i,id:o("WAWebToast.react").genId()}))},d=function(){return o("WAWebModalManager").ModalManager.close()};o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:c,okText:s._(/*BTDS*/"Desactivar silencio"),onCancel:d,cancelText:s._(/*BTDS*/"Cancelar"),children:l}))}},R=function(t,n){var e=function(r){if(t.pendingAction++,o("WAWebChatGetters").getIsPSA(t)&&n!==0){var e=t.msgs.last();o("WAWebWamChatPSALogger").logChatPSARemove(e,6,n)}r.finally(function(){t.pendingAction--})};o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebDeleteChatPopup.react"),{chat:t,onDeleteOrExit:e}),{transition:"modal",uim:p})},L=function(t){R(t,0)},E=function(t,n){t.pendingAction++,o("WAWebSetPinChatAction").setPin(t,n).catch(r("WAWebNoop")).finally(function(){t.pendingAction--})},k=function(t,n,a){t.pendingAction++,n?o("WAWebAddToFavoritesAction").addToFavoritesAction([t.id],{entryPoint:a}).catch(r("WAWebNoop")).finally(function(){t.pendingAction--}):o("WAWebRemoveFromFavoritesAction").removeFromFavoritesAction(t.id,{entryPoint:a}).catch(r("WAWebNoop")).finally(function(){t.pendingAction--})},I=function(t){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebClearChatPopup.react"),{chat:t}),{transition:"modal",uim:p})},T=function(t,n){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebClearSelectedChatsPopup.react"),{chats:t,onComplete:n}),{transition:"modal",uim:p})},D=function(t,n,a,i){if(o("WAWebChatGetters").getIsPSA(t)&&a!==0&&t.msgs.length>0){var e=t.msgs.last();o("WAWebWamChatPSALogger").logChatPSARemove(e,n?3:4,a)}t.pendingAction++,o("WAWebSetArchiveChatAction").setArchive(t,n,i).catch(r("WAWebNoop")).finally(function(){t.pendingAction--})},x=function(t,n,r){D(t,n,0,r)},$=function(t,n){t.pendingAction++,o("WAWebUpdateUnreadChatAction").markUnread(t,n).finally(function(){t.pendingAction--})},P=function(t,n){if(!t||t.some(function(e){return!e.id}))throw new(o("WAWebMiscErrors")).ActionError;var e=r("isStringNullOrEmpty")(n)?o("WAWebActionToast.react").genId():n;o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{id:e,msg:s._(/*BTDS*/"_j{\"*\":\"Se restauraron los mensajes.\",\"_1\":\"Se restaur\\u00f3 el mensaje.\"}",[s._plural(t.length)])}))},N=function(t,n){if(o("WAWebChatAssignmentUtils").canAssignChat(t)===!1){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizChatAssignmentAiRepliesModal.react"),{chat:t}));return}var e=o("WAWebChatAssignmentLogEvents.flow").ChatAssignmentEntryPointType.getName(n);o("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(o("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_FETCH_ASSIGN_CHAT_AGENT_LIST,{annotations:{string:{CHAT_ASSIGNMENT_ENTRY_POINT:e}}}),o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizChatAssignmentModal.react"),{chats:[t],entryPoint:n}))},M=function(t,n){o("WAWebBizAiAgentStatusUtils").isChatEligibleForAiAgent(t)&&(n?o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizAiRepliesControlPopup.react"),{chat:t})):o("WAWebAIAgentAIReplyUtils").mutateAiReplyStatus(t))},w=function(a,i,l,u,d,p){d===void 0&&(d="LEFT");var t=i.list;if(!t||t.some(function(e){return!e.id}))return(c||(c=n("Promise"))).reject(new(o("WAWebMiscErrors")).ActionError);var _=r("isStringNullOrEmpty")(u)?o("WAWebActionToast.react").genId():u,f=t.length,g=new AbortController,h=g.signal,y;if(i.type!=="addon"){o("WAWebActionListenerHelpers").logSnackbarDeleteUndoMetric(a,i,"shown"),i.list.forEach(function(e){e.pendingDeleteForMe=!0,e.hideParentMessageInChat({duringDetach:!1});var t=o("WAWebMsgGetters").getBotPluginSearchProvider(e),n=!!(t==null&&o("WAWebMsgGetters").getBotPluginMaybeParent(e)),r=o("WAWebMsgGetters").getBotResponseTargetId(e);(n||t!=null&&r!=null)&&o("WAWebCmd").Cmd.botTogglePluginSearchDetailsToggle(r,!1)}),a.pendingDeleteForMeCount+=i.list.length;var C=s._(/*BTDS*/"_j{\"*\":\"Se eliminaron {number_of_messages} elementos.\",\"_1\":\"Se elimin\\u00f3 1 elemento.\"}",[s._plural(f,"number_of_messages")]),b=f===1?s._(/*BTDS*/"Mensaje eliminado para m\u00ed"):s._(/*BTDS*/"_j{\"*\":\"{number_of_messages} mensajes eliminados para m\\u00ed\",\"4\":\"{number_of_messages} mensaje eliminado para m\\u00ed\",\"_1\":\"1 mensaje eliminado para m\\u00ed\"}",[s._plural(f,"number_of_messages")]),v=p==="mediaHub"?C:b;y=new(o("WAWebActionToast.react")).ActionType(v,{actionText:s._(/*BTDS*/"Deshacer"),actionHandler:(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){g.abort(),i.list.forEach(function(e){e.pendingDeleteForMe=!1}),o("WAWebMsgCollection").MsgCollection.makeParentMessagesVisibleInChat(i.list),a.pendingDeleteForMeCount-=i.list.length,o("WAWebActionListenerHelpers").logSnackbarDeleteUndoMetric(a,i,"undo"),yield P(i.list,_)});function t(){return e.apply(this,arguments)}return t})()})}else y=new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"Eliminando mensajes\\u2026\",\"_1\":\"Eliminando mensaje\\u2026\"}",[s._plural(f)]));var S=(c||(c=n("Promise"))).resolve();return i.type!=="addon"&&(S=S.then(function(){return o("WAPromiseDelays").delayMs(o("WAWebActionListenerHelpers").MESSAGE_DELETE_DELAY_DURATION)})),S=S.then(function(){if(h.aborted)throw new(o("WAAbortError")).AbortError;return o("WAWebChatSendMessages").sendDeleteMsgs(a,i,l)}).then(function(e){if(a.pendingDeleteForMeCount-=e,e===f)return o("WAWebActionListenerHelpers").logMessageDeleteActionsMetric(a,i,!1),i.type!=="addon"?null:new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"{count} mensajes eliminados\",\"_1\":\"1 mensaje eliminado\"}",[s._plural(f,"count")]));var t=f-e;return new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"No se pudieron eliminar los mensajes\",\"_1\":\"No se pudo eliminar el mensaje\"}",[s._plural(t)]))}).catch(o("WAAbortError").catchAbort(r("WAWebNoop"))).catch(function(t){return o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendDeleteMsgs dropped"]))),new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"No se pudieron eliminar los mensajes\",\"_1\":\"No se pudo eliminar el mensaje\"}",[s._plural(f)]),{actionText:s._(/*BTDS*/"Vuelve a intentarlo."),actionHandler:function(){return w(a,i,!1,_,d)}})}),o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebActionToast.react").ActionToast,{id:_,toastPosition:d,initialAction:y,pendingAction:S})),S},A=function(t,n){throw r("err")("This call is not supported")},F=function(t,a,i){var e,l,d=i.clearMedia,p=(e=i.toastId)!=null?e:o("WAWebActionToast.react").genId(),_=(l=i.toastPosition)!=null?l:"LEFT",f=a.list;if(!f)return(c||(c=n("Promise"))).reject(new(o("WAWebMiscErrors")).ActionError);var g=f.reduce(function(e,t){var n=o("WAWebMsgActionCapability").canSenderRevokeMsg(t)||o("WAWebMsgActionCapability").canAdminRevokeMsg(t)||o("WAWebMsgActionCapability").canBotResponseBeRevokeByInvoker(t),r=t.type===o("WAWebMsgType").MSG_TYPE.GROUPS_V4_INVITE&&!o("WAWebMsgGetters").getIsGroupsV4InviteExpired(t)?t:null;return[e[0]||!n,e[1]||r]},[!1,null]),h=g[0],y=g[1];if(h)return(c||(c=n("Promise"))).reject(new(o("WAWebMiscErrors")).ActionError);y&&A(t,y);var C=f.length,b=new(o("WAWebActionToast.react")).ActionType(o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"_j{\"*\":\"Eliminando actualizaciones\\u2026\",\"_1\":\"Eliminando actualizaci\\u00f3n\\u2026\"}",[s._plural(C)]):s._(/*BTDS*/"_j{\"*\":\"Eliminando mensajes\\u2026\",\"_1\":\"Eliminando mensaje\\u2026\"}",[s._plural(C)])),v;a.type==="addon"?v=o("WAWebChatSendMessages").sendRevokeMsgs(t,a,d):o("WAWebChatGetters").getIsNewsletter(t)?v=o("WAWebNewsletterRevokeMsgAction").sendNewsletterRevokeMsgs(t,a.list,d):v=o("WAWebChatSendMessages").sendRevokeMsgs(t,a,d);var S=v.then(function(e){var n=r("countWhere")(e,function(e){return e.messageSendResult!==o("WAWebSendMsgResultAction").SendMsgResult.OK});if(n>0)throw r("err")(n+" / "+e.length+" dropped");return o("WAWebActionListenerHelpers").logMessageDeleteActionsMetric(t,a,!0),new(o("WAWebActionToast.react")).ActionType(o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"_j{\"*\":\"{number_of_updates} actualizaciones eliminadas\",\"_1\":\"Actualizaci\\u00f3n eliminada\"}",[s._plural(C,"number_of_updates")]):s._(/*BTDS*/"_j{\"*\":\"{count} mensajes eliminados\",\"_1\":\"1 mensaje eliminado\"}",[s._plural(C,"count")]))}).catch(function(e){return o("WALogger").WARN(u||(u=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendRevokeMsgs fail"]))),o("WAWebChatEphemerality").isEphemeralSettingOn(t)?new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"_j{\"*\":\"No se pudieron eliminar {count} mensajes, es posible que hayan vencido\",\"4\":\"No se pudo eliminar el mensaje, es posible que haya vencido\",\"_1\":\"No se pudo eliminar el mensaje, es posible que haya vencido\"}",[s._plural(C,"count")])):new(o("WAWebActionToast.react")).ActionType(o("WAWebChatGetters").getIsNewsletter(t)?s._(/*BTDS*/"_j{\"*\":\"No se pudieron eliminar {number_of_updates} actualizaciones.\",\"_1\":\"No se pudo eliminar la actualizaci\\u00f3n.\"}",[s._plural(C,"number_of_updates")]):s._(/*BTDS*/"_j{\"*\":\"No se pudieron eliminar los mensajes\",\"_1\":\"No se pudo eliminar el mensaje\"}",[s._plural(C)]))});return o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebActionToast.react").ActionToast,{id:p,toastPosition:_,initialAction:b,pendingAction:S})),S},O=function(t,n){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizMerchantDetailsEntityTypePopup.react"),{legalEntityDetails:t,onSave:n}),{transition:"modal",uim:p})},B=function(t,n,a,i,l,s,u){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebCountrySelectorPopup.react"),{title:t,description:n,countryCode:a,lastUsedCountryCode:i,countries:l,onSave:s,surface:u}),{transition:"modal",uim:p})},W=function(){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebCommandPalette.react").CommandPaletteModal,{}),{transition:"modal",uim:p})},q=function(t,a,i){o("WAWebCurrentUser").isEmployee()&&r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBugnubV2Popup.react").__setRef("WAWebActionListener").load();return e.openBugNubV2Popup}),"bugnub_v2_popup")().then(function(e){e(t,a,i)})},U=function(t,n,r,a){o("WAWebDrawerManager").DrawerManager.openDrawerRight(m.jsx(o("WAWebEventInfoFlowLoadable").EventInfoFlowLoadable,{chat:t,msg:n,onBack:r,onEnd:a},"event-info-drawer-"+n.id.toString()),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})};return(a=o("useWAWebListener")).useListener((i=o("WAWebCmd")).Cmd,["mute_all_reactions"],S),a.useListener(i.Cmd,["mute_chat"],b),a.useListener(i.Cmd,["mute_chat_multiselect"],C),a.useListener(i.Cmd,["mute_chat_from_entrypoint"],y),a.useListener(i.Cmd,["archive_chat"],x),a.useListener(i.Cmd,["archive_chat_from_entrypoint"],D),a.useListener(i.Cmd,["clear_chat"],I),a.useListener(i.Cmd,["clear_selected_chats"],T),a.useListener(i.Cmd,["mark_chat_unread"],$),a.useListener(i.Cmd,["pin_chat"],E),a.useListener(i.Cmd,["assign_chat"],N),a.useListener(i.Cmd,["favorite_chat"],k),a.useListener(i.Cmd,["send_star_msgs"],o("WAWebActionListenerHelpers").handleSendStarMsgs),a.useListener(i.Cmd,["send_unstar_msgs"],o("WAWebActionListenerHelpers").handleSendUnstarMsgs),a.useListener(i.Cmd,["send_delete_msgs"],w),a.useListener(i.Cmd,["send_revoke_msgs"],F),a.useListener(i.Cmd,["delete_or_exit_chat"],L),a.useListener(i.Cmd,["delete_or_exit_chat_from_entrypoint"],R),a.useListener(i.Cmd,["product_image_viewer_modal"],f),a.useListener(i.Cmd,["mute_all_reactions"],S),a.useListener(i.Cmd,["attach_product"],_),a.useListener(i.Cmd,["show_country_selector_popup"],B),a.useListener(i.Cmd,"show_merchant_details_entity_type_popup",O),a.useListener(i.Cmd,["open_groups_v4_invite_request_flow"],g),a.useListener(i.Cmd,["open_profile"],h),a.useListener(i.Cmd,["open_command_palette"],W),r("useWAWebBotActionListeners")(l,d),r("useWAWebCommunityActionListeners")(),r("WAWebUseNewsletterActionListeners")(),a.useListener(i.Cmd,["trigger_bugreport_v2"],q),a.useListener(i.Cmd,["open_event_info_drawer"],U),a.useListener(i.Cmd,["change_ai_reply_status"],M),null}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebAdsCreationChatlistHeaderDropdownItem.react",["WAWebAdCreationDropdownItem.react","WAWebBizGatingUtils","WAWebMobilePlatforms","WAWebWamEnumLwiEntryPoint","react","useWAWebServerGatedAdEntryPoint"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.activeAccountInfo,n=e.useWdsMenuVersion,a=n===void 0?!1:n,i=o("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_ad_creation_home_menu_item",t),l=i[0],u=i[1],c=o("WAWebMobilePlatforms").isSMB()&&t!=null&&(t!=="not-linked"||o("WAWebBizGatingUtils").nativeAdsCreationEnabledNoExposure())&&!l&&o("WAWebBizGatingUtils").shouldShowAdCreationDropdown()?s.jsx(r("WAWebAdCreationDropdownItem.react"),{adCreationUrlInput:{sourceAdCreation:"whatsapp_smb_web_ad_creation_home_menu_item",activeAccountInfo:t},ctaText:u==null?void 0:u.content,lwiEntryPoint:o("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_OVERFLOW_MENU_ITEM,useWdsMenuVersion:a}):null;return c}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WDSIconIcBolt.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-bolt";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M10.55 18.2001L15.725 12.0001H11.725L12.45 6.32509L7.82497 13.0001H11.3L10.55 18.2001ZM8.99997 15.0001H5.89997C5.49997 15.0001 5.20414 14.8209 5.01247 14.4626C4.8208 14.1043 4.84164 13.7584 5.07497 13.4251L12.55 2.67509C12.7166 2.44175 12.9333 2.27925 13.2 2.18759C13.4666 2.09592 13.7416 2.10009 14.025 2.20009C14.3083 2.30009 14.5166 2.47509 14.65 2.72509C14.7833 2.97509 14.8333 3.24175 14.8 3.52509L14 10.0001H17.875C18.3083 10.0001 18.6125 10.1918 18.7875 10.5751C18.9625 10.9584 18.9083 11.3168 18.625 11.6501L10.4 21.5001C10.2166 21.7168 9.99164 21.8584 9.72497 21.9251C9.4583 21.9918 9.19997 21.9668 8.94997 21.8501C8.69997 21.7334 8.50414 21.5543 8.36247 21.3126C8.2208 21.0709 8.16664 20.8084 8.19997 20.5251L8.99997 15.0001Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WDSIconWdsIcMetaAiReasoning.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-ic-meta-ai-reasoning";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M19.115 0.377895C19.3156 -0.0888555 19.979 -0.0888555 20.1795 0.377895L20.9459 2.16117C21.0045 2.29753 21.1133 2.40612 21.2501 2.46457L23.0381 3.22885C23.5061 3.42886 23.5061 4.09051 23.0381 4.29052L21.2501 5.05481C21.1133 5.11326 21.0045 5.22184 20.9459 5.3582L20.1639 7.17781C19.9658 7.63899 19.3127 7.6461 19.1045 7.1893L18.2646 5.34665C18.2057 5.21733 18.101 5.11418 17.9707 5.057L16.235 4.29532C15.7714 4.0919 15.7745 3.43481 16.2401 3.23578L18.0445 2.46457C18.1812 2.40612 18.2901 2.29753 18.3487 2.16117L19.115 0.377895Z",fill:"currentColor"}),c.jsx("path",{d:"M18.6222 9.32772C18.5906 10.449 18.296 11.4708 17.7358 12.4251C17.2191 13.3054 16.5546 14.0259 15.7276 14.6H8.27239C7.44539 14.0259 6.78093 13.3054 6.26421 12.4251C5.67047 11.4135 5.375 10.3262 5.375 9.125C5.375 7.25355 6.00709 5.72759 7.30484 4.42984C8.60259 3.13209 10.1285 2.5 12 2.5C12.7427 2.5 13.431 2.59956 14.0723 2.80078C14.3072 2.2072 14.768 1.6902 15.4539 1.39698L15.6963 1.29335C14.5776 0.764451 13.3454 0.5 12 0.5C9.60417 0.5 7.56771 1.33854 5.89062 3.01562C4.21354 4.69271 3.375 6.72917 3.375 9.125C3.375 10.6775 3.76313 12.115 4.53938 13.4375C5.31563 14.76 6.365 15.8142 7.6875 16.6H16.3125C17.635 15.8142 18.6844 14.76 19.4606 13.4375C20.2018 12.1748 20.5891 10.8073 20.6226 9.33501C19.9858 9.59443 19.2579 9.59264 18.6222 9.32772Z",fill:"currentColor"}),c.jsx("path",{d:"M10.3756 22.8243C10.8261 23.2747 11.3675 23.5 12 23.5C12.6325 23.5 13.174 23.2747 13.6244 22.8243C14.0748 22.3739 14.3 21.8325 14.3 21.2H9.70001C9.70001 21.8325 9.92522 22.3739 10.3756 22.8243Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.46748 18.9C7.46748 18.3477 7.91519 17.9 8.46748 17.9H15.4675C16.0198 17.9 16.4675 18.3477 16.4675 18.9C16.4675 19.4523 16.0198 19.9 15.4675 19.9H8.46748C7.91519 19.9 7.46748 19.4523 7.46748 18.9Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebAiModeSelectorUtils",["fbt","WAWebBotModeSelectionTypes","WDSIconIcBolt.react","WDSIconWdsIcMetaAiReasoning.react"],(function(t,n,r,o,a,i,l,s){"use strict";function e(e){return e===o("WAWebBotModeSelectionTypes").BotUserSelectionMode.ThinkHard?s._(/*BTDS*/"Reflexivo"):e===o("WAWebBotModeSelectionTypes").BotUserSelectionMode.Default||e===null||e===void 0?s._(/*BTDS*/"R\u00e1pido"):(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+e)})()}function u(e){return e===o("WAWebBotModeSelectionTypes").BotUserSelectionMode.ThinkHard?s._(/*BTDS*/"Reflexiona durante m\u00e1s tiempo para ofrecer una respuesta detallada"):e===o("WAWebBotModeSelectionTypes").BotUserSelectionMode.Default||e===null||e===void 0?s._(/*BTDS*/"Responde de inmediato."):(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+e)})()}function c(e){return e===o("WAWebBotModeSelectionTypes").BotUserSelectionMode.ThinkHard?r("WDSIconWdsIcMetaAiReasoning.react"):e===o("WAWebBotModeSelectionTypes").BotUserSelectionMode.Default||e===null||e===void 0?r("WDSIconIcBolt.react"):(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+e)})()}l.getBotUserSelectModeTitle=e,l.getBotUserSelectModeSubtitle=u,l.getBotUserSelectModeIcon=c}),226); __d("useWAWebGlobalBotMode",["WAWebGlobalBotModeSelection","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(e||(e=o("react"))).useSyncExternalStore;function u(){return s(o("WAWebGlobalBotModeSelection").subscribeToGlobalBotModeChanges,o("WAWebGlobalBotModeSelection").getGlobalBotModeSelection)}l.useWAWebGlobalBotModeSelection=u}),98); __d("useWAWebBotModeSelection",["useWAWebGlobalBotMode","useWAWebModelValues"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){var n,r=t!=null?(n=e.aiThreads)==null?void 0:n.get(t):null,a=o("useWAWebModelValues").useOptionalModelValues(r,["botModeSelection"]),i=o("useWAWebGlobalBotMode").useWAWebGlobalBotModeSelection();return t!=null&&(a==null?void 0:a.botModeSelection)!=null?a.botModeSelection:i}l.useWAWebBotModeSelection=e}),98); __d("WAWebAiModeSelector.react",["WAWebAiModeSelectorUtils","WAWebBotModeSelectionTypes","WDSChip.react","WDSTooltip.react","react","useWAWebBotModeSelection"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t=e.chat,n=e.threadId,a=o("useWAWebBotModeSelection").useWAWebBotModeSelection(t,n),i=a!=null&&a.length>0?a[0]:o("WAWebBotModeSelectionTypes").BotUserSelectionMode.Default,l=o("WAWebAiModeSelectorUtils").getBotUserSelectModeIcon(i),u=o("WAWebAiModeSelectorUtils").getBotUserSelectModeTitle(i),c=o("WAWebAiModeSelectorUtils").getBotUserSelectModeSubtitle(i);return s.jsx("div",{children:s.jsx(r("WDSTooltip.react"),{label:c,children:s.jsx(r("WDSChip.react"),{Icon:l,label:u,isNeutral:!0})})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebAlertSyncPausedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="alert-sync-paused";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=21,R=20;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 20 21",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0.5C4.48 0.5 0 4.98 0 10.5C0 16.02 4.48 20.5 10 20.5C15.52 20.5 20 16.02 20 10.5C20 4.98 15.52 0.5 10 0.5ZM10 11.5C9.45 11.5 9 11.05 9 10.5V6.5C9 5.95 9.45 5.5 10 5.5C10.55 5.5 11 5.95 11 6.5V10.5C11 11.05 10.55 11.5 10 11.5ZM9 13.5V15.5H11V13.5H9Z",fill:"#FFD279"}),c.jsx("path",{d:"M9 13.5V15.5H11V13.5H9Z",fill:"#667781"}),c.jsx("path",{d:"M10 11.5C9.45 11.5 9 11.05 9 10.5V6.5C9 5.95 9.45 5.5 10 5.5C10.55 5.5 11 5.95 11 6.5V10.5C11 11.05 10.55 11.5 10 11.5Z",fill:"#54656F"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.AlertSyncPausedIcon=m}),98); __d("WAWebAnimationGroupItem.react",["react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.children,n=e.ref;return s.jsx("div",{ref:n,children:t})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebAppRatingModalLoadable",["JSResourceForInteraction","WAWebAppRatingCommonFbt","WAWebFbtCommon","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingConfirmPopup.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebAppRatingModal.react").__setRef("WAWebAppRatingModalLoadable").load();return e}),"AppRatingModal"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingConfirmPopup.react"),{title:o("WAWebAppRatingCommonFbt").getModalTitle(),okText:r("WAWebFbtCommon")("Submit"),error:!!t.error})}});l.WAWebAppRatingModalLoadable=c}),98); __d("WAWebWamEnumCloseTypeEnum",[],(function(t,n,r,o,a,i){var e=Object.freeze({SUBMITTED:1,CLOSED:2});i.CLOSE_TYPE_ENUM=e}),66); __d("WAWebWamEnumSourceType",[],(function(t,n,r,o,a,i){var e=Object.freeze({NAVBAR:1,SETTINGS:2,CONTEXTUAL:3});i.SOURCE_TYPE=e}),66); __d("WAWebWebAppRateAndReviewDialogShownWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumCloseTypeEnum","WAWebWamEnumSourceType"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({WebAppRateAndReviewDialogShown:[6788,{reviewDialogAction:[1,o("WAWebWamEnumCloseTypeEnum").CLOSE_TYPE_ENUM],reviewSource:[2,o("WAWebWamEnumSourceType").SOURCE_TYPE]},[1,1,1],"regular"]},{WebAppRateAndReviewDialogShown:[]});l.WebAppRateAndReviewDialogShownWamEvent=e}),98); __d("WAWebAppRatingWamLogger",["WAWebWamEnumCloseTypeEnum","WAWebWamEnumSourceType","WAWebWebAppRateAndReviewDialogShownWamEvent"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("WAWebWamEnumSourceType").SOURCE_TYPE.CONTEXTUAL;t==="navbar"?n=o("WAWebWamEnumSourceType").SOURCE_TYPE.NAVBAR:t==="settings"&&(n=o("WAWebWamEnumSourceType").SOURCE_TYPE.SETTINGS);var r=e==="submitted"?o("WAWebWamEnumCloseTypeEnum").CLOSE_TYPE_ENUM.SUBMITTED:o("WAWebWamEnumCloseTypeEnum").CLOSE_TYPE_ENUM.CLOSED;new(o("WAWebWebAppRateAndReviewDialogShownWamEvent")).WebAppRateAndReviewDialogShownWamEvent({reviewDialogAction:r,reviewSource:n}).commit()}l.logAppRatingDialogAction=e}),98); __d("WAWebAppRatingDialogTrigger",["WALogger","WAWebABProps","WAWebAppRatingActiveUsageDays","WAWebAppRatingModalLoadable","WAWebAppRatingWamLogger","WAWebClock","WAWebModalManager","WAWebNux","WAWebUserPrefsNuxPreferences","gkx","react"],(function(t,n,r,o,a,i,l){var e,s,u,c,d,m,p,_,f,g=f||(f=r("react"));function h(e){var t=function(){o("WAWebAppRatingWamLogger").logAppRatingDialogAction("closed",e)},n=function(){o("WAWebAppRatingWamLogger").logAppRatingDialogAction("submitted",e)};o("WAWebModalManager").ModalManager.open(g.jsx(o("WAWebAppRatingModalLoadable").WAWebAppRatingModalLoadable,{onCancel:t,onSubmit:n}))}function y(){var t=o("WAWebAppRatingActiveUsageDays").getActiveUsageDaysSinceDialogOpened(),n=o("WAWebABProps").getABPropConfigValue("rnr_min_days_user_active"),r=o("WAWebABProps").getABPropConfigValue("rnr_days_cooldown");if(o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[AppRating] usage: days="," min="," cooldown=",""])),t,n,r),t0?(h.processAttachmentsForChat(u,o("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.POLL_CREATION,i,y,function(){u.length>y&&o("WAWebToastManager").ToastManager.open(c.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pueden a\u00f1adir m\u00e1s de {max number of media} fotos.",[s._param("max number of media",y)])}))}),n!=null&&!a?h.forEach(function(e){var t;e.updateCaption((t=d[n])==null?void 0:t.name)}):h.forEach(function(e,t){var n;e.updateCaption((n=d[t])==null?void 0:n.name)})):o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["PollAttachMediaPicker: receive empty attachments"])));var C=c.jsx(o("WAWebPollAttachMediaViewLoadable.react").PollAttachMediaViewLoadable,{chat:i,onSend:g,onCancel:f,mediaCollection:h,getComposeBoxEditorRef:l,question:p,options:d,allowMultipleMedia:a,pollType:m,activeOptionIndex:n,correctOptionKey:t.correctOptionKey});o("WAWebModalManager").ModalManager.openMedia(C,{transition:"menu"})},f=r("useWAWebUIM")(),g=function(){f==null||f.requestDismiss()},h=function(t){var e;if(!t){g();return}t.stopPropagation();var n=Array.from((e=t.target.files)!=null?e:[]);g(),n.length&&_({attachments:n.map(function(e){return{file:e}})})};return c.jsx(r("WAWebFilePicker.react"),{ref:u,mimes:o("WAWebMimeTypes").IMAGE_MIMES,onChange:h,multiple:a})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebPollsOptionInput",["fbt","WAWebCheckBox.react","WAWebDragIconWrapper.react","WAWebFlex.react","WAWebImageRefreshedIcon.react","WAWebImg.react","WAWebPollCreationUtils","WAWebPollsGatingUtils","WAWebRichTextField.react","WAWebSvgComponentBase","WAWebUnstyledButton.react","WAWebXAltIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={photoPreviewWrapper:{width:"x15yg21f",height:"xnnlda6",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",justifyContent:"xl56j7k",alignItems:"x6s0dn4",display:"x78zum5",backgroundColor:"x1h3rtpe",flexShrink:"x2lah0s",objectFit:"xl1xv1r",marginInlineStart:"xlese2p",$$css:!0},deleteBtn:{position:"x10l6tqk",insetInlineEnd:"x185fuhz",left:null,right:null,top:"x1ctoq22",zIndex:"x11uqc5h",color:"x17t9dm2",opacity:"xg01cxk",transition:"xid8q7e",":hover_opacity":"x1o7uuvo",$$css:!0},deleteIcon:{stroke:"x1c8i944",strokeWidth:"x1ns0lul",$$css:!0},photoPollCheckboxColumn:{paddingTop:"x1tiyuxx",paddingInlineEnd:"xyo0t3i",$$css:!0},pollCheckboxColumn:{paddingTop:"x1tiyuxx",paddingInlineEnd:"x1nzty39",$$css:!0}};function d(e){var t=e.chat,n=e.checked,a=e.error,i=e.handleCheckBoxClick,l=e.image,d=e.initialText,p=e.isPhotoPoll,_=p===void 0?!1:p,f=e.onChange,g=e.onDeletePhoto,h=e.onDragThumbMouseDown,y=e.onInputBlur,C=e.onInputFocus,b=e.onPhotoIconClick,v=e.onPhotoThumbnailClick,S=e.onTextInputRef,R=e.pollType,L=R===void 0?o("WAWebPollCreationUtils").PollType.POLL:R,E=e.testid,k=o("WAWebPollsGatingUtils").isPhotoPollSenderEnabled(t)?s._(/*BTDS*/"A\u00f1ade texto o foto"):s._(/*BTDS*/"A\u00f1ade texto");return u.jsxs("div",{className:"xh8yej3 x78zum5 x1q0g3np x6s0dn4",children:[L===o("WAWebPollCreationUtils").PollType.QUIZ&&u.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:_?c.photoPollCheckboxColumn:c.pollCheckboxColumn,children:u.jsx(o("WAWebCheckBox.react").CheckBox,{checked:n||!1,id:"quiz-option-checkbox",theme:o("WAWebCheckBox.react").CheckboxTheme.POLLS_SENDER,onChange:function(){i==null||i()},testid:void 0})}),u.jsx("div",{className:"xh8yej3 x78zum5 x6s0dn4",children:u.jsx("div",{className:"xh8yej3",children:u.jsx(o("WAWebRichTextField.react").RichTextField,{ref:function(t){S(t)},onPhotoIconClick:b,testid:void 0,hideFloatingLabel:!0,showRemaining:!0,emojiBtnPosition:"side",photoBtnPosition:o("WAWebPollsGatingUtils").isPhotoPollSenderEnabled(t)&&!_?"side":"none",textFormatEnabled:!0,value:d,error:a!=null?a:void 0,maxLength:o("WAWebPollsGatingUtils").getMaxPollOptionLength(),maxCodeUnits:o("WAWebPollsGatingUtils").getMaxPollOptionLengthForIncomingMessages(),placeholder:k,onChange:function(t){var e=t.text;return f(e)},onDragThumbMouseDown:h,onFocus:C,onBlur:y,showDraggableIcon:_})})}),_?u.jsxs(u.Fragment,{children:[u.jsx(m,{image:l,onDeletePhoto:g,onClick:v}),u.jsx("div",{className:"xlese2p",children:u.jsx(r("WAWebDragIconWrapper.react"),{onDragThumbMouseDown:h})})]}):null]})}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.image,n=e.onClick,a=e.onDeletePhoto;return u.jsxs("div",{children:[(t==null?void 0:t.preview)&&u.jsx(r("WAWebUnstyledButton.react"),{role:"button",xstyle:c.deleteBtn,onClick:a,children:u.jsx(o("WAWebXAltIcon.react").XAltIcon,{xstyle:c.deleteIcon})}),u.jsx(r("WAWebUnstyledButton.react"),{xstyle:c.photoPreviewWrapper,onClick:n,children:t!=null&&t.preview?u.jsx(r("WAWebImg.react"),{src:t==null?void 0:t.preview,alt:"",className:"x15yg21f xnnlda6 xyi3aci xwf5gio x1p453bz x1suzm8a xl56j7k x6s0dn4 x78zum5 x1h3rtpe x2lah0s xl1xv1r"}):u.jsx(o("WAWebImageRefreshedIcon.react").ImageRefreshedIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.GRAY,width:15,height:15})})]})}m.displayName=m.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebPollsOrderableList",["WANullthrows","react","useLazyRef","useWAWebDebouncedCallback","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.useEffect,m=u.useRef,p=u.useState;function _(e){var t=e.items,n=e.onReordered,a=e.renderItem,i=m(null),l=r("useLazyRef")(function(){return new Map}),s=m(0),u=p(),d=u[0],_=u[1],h=p(null),y=h[0],C=h[1],b=p(null),v=b[0],S=b[1],R=p(null),L=R[0],E=R[1],k=L!=null,I=L==null||v==null||d==null?t:f({items:L,draggedItemKey:y,getItemHeight:function(t){var e,n;return(e=(n=d.get(t.key))==null?void 0:n.height)!=null?e:0},dragPosition:v}),T=function(t){var e=i.current;if(e==null)return null;var n=l.current,r=n.get(t);if(r==null)return null;var o=e.getBoundingClientRect().y,a=r.getBoundingClientRect();return{clientTop:a.top,startTop:a.top-o,height:a.height}},D=function(){var e=new Map;for(var n of t)e.set(n.key,T(n.key));_(e)},x=function(t){var e=i.current;if(e!=null){var n=t.clientY-e.getBoundingClientRect().y;S(n)}};o("useWAWebListener").useListener(y==null?null:document,"mousemove",x);var $=r("useWAWebDebouncedCallback")(function(){E(null),_(null)},300),P=function(n,r){var e;if(L==null){var o=(e=T(n))==null?void 0:e.clientTop;o!=null&&(s.current=o-r.clientY,D(),C(n),E(t))}};o("useWAWebListener").useListener(y==null?null:document,"mouseup",function(e){$(),n(I),C(null),S(null)}),g(y!=null);var N=null,M=0,w=0;if(d!=null){N=new Map;var A=0;for(var F of I){var O=d.get(F.key);if(O!=null){var B=A;N.set(F.key,B),M=B,A+=O.height}}}var W=(L!=null?L:t).map(function(e,t){var n=d==null?void 0:d.get(e.key),o;if(e.key===y&&v!=null){var i,u=r("WANullthrows")(n==null?void 0:n.startTop),m=(i=s.current)!=null?i:0,p=Math.min(Math.max(w,v+m),M);o=p-u}else{var _,f=n==null?void 0:n.startTop,g=(_=N)==null?void 0:_.get(e.key);o=!k||g==null||f==null?0:g-f}return c.jsx("div",{ref:function(n){n==null?l.current.delete(e.key):l.current.set(e.key,n)},className:{0:"xh8yej3",1:"xh8yej3 x11xpdln x13dflua xz4gly6"}[!!(y!==e.key&&k)<<0],style:{transform:"translateY("+o+"px)"},children:a({item:e,startDrag:P,index:t})},e.key)});return c.jsx("div",{ref:i,className:"x78zum5 xdt5ytf",children:W})}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t=e.draggedItemKey,n=e.dragPosition,r=e.getItemHeight,o=e.items,a=t!=null?o.find(function(e){return e.key===t}):null;if(a==null||n==null)return o;var i=[].concat(o),l=i.findIndex(function(e){return e.key===t});i.splice(l,1);var s=0,u=0,c=0;for(var d of o){n>s&&(c=u);var m=r(d);s+=m,u++}return i.splice(c,0,a),i}function g(e){d(function(){if(e){var t=document,n=t.body;if(n!=null){var r=document.createElement("div");return r.className="xi9pz9s xixxii4 x13vifvy x1o0tod xh8yej3 x5yr21d x1lfen1e",n.appendChild(r),function(){r.remove()}}}},[e])}l.default=_}),98); __d("WAWebPollsCreatePollModal",["fbt","WANullthrows","WAWebAttachMediaCollection","WAWebAttachmentMenuLogger","WAWebBizBotTosUtils","WAWebChatGetters","WAWebConfirmPopup.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFrontendChatGetters","WAWebKeyboardHotKeys.react","WAWebModal.react","WAWebModalManager","WAWebNewsletterGatingUtils","WAWebNewsletterWamoSubMessageType","WAWebNewsletterWamoSubMessageTypePopup.react","WAWebNewsletterWamoSubUtils","WAWebPollAttachMediaPicker.react","WAWebPollAttachMediaViewLoadable.react","WAWebPollCreationUtils","WAWebPollOptionsRenderUtils","WAWebPollsActionsMetricUtils","WAWebPollsGatingUtils","WAWebPollsOptionInput","WAWebPollsOrderableList","WAWebPollsSendPollCreationMsgAction","WAWebRichTextField.react","WAWebRound.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebWdsIcSendFilledIcon.react","WDSSwitch.react","WDSText.react","asyncToGeneratorRuntime","react","stylex","useLazyRef","useWAWebChatValues","useWAWebOnUnmount","useWAWebUIM"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useCallback,_=d.useEffect,f=d.useLayoutEffect,g=d.useMemo,h=d.useRef,y=d.useState,C=25,b={bodyContainer:{boxSizing:"x9f619",width:"x1esq4s8",paddingInlineStart:"xvahy20",paddingInlineEnd:"x1a4sjiy",display:"x78zum5",flexDirection:"xdt5ytf",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},sectionTitle:{fontSize:"xlm9qay",fontWeight:"xk50ysn",$$css:!0},createPollButtonContainer:{width:"xh8yej3",display:"x78zum5",justifyContent:"x13a6bvl",height:"xwvwv9b",backgroundColor:"x1jn9dgz",$$css:!0},optionsContainer:{overflowY:"x1odjw0f",$$css:!0},drawer:{backgroundColor:"x1280gxy",marginInlineStart:"x137kccz",width:"x14n2pz4",$$css:!0},sendButton:{transform:"x1cb1t30",marginInlineEnd:"x1wcu8vx",transitionProperty:"xs2xxs2",transitionDuration:"x1d8287x",$$css:!0},sendButtonRefreshed:{color:"x1pse0pq",backgroundColor:"xfn3atn",$$css:!0},singleOptionContainer:{display:"x78zum5",alignItems:"x6s0dn4",width:"xh8yej3",fontSize:"x1jchvi3",lineHeight:"xdod15v",$$css:!0},singleOptionLabel:{width:"xh8yej3",display:"x1rg5ohu",cursor:"x1ypdohk",$$css:!0}};function v(e){var t,a=e.chat,i=e.getComposeBoxEditorRef,l=e.initialCheckedKey,c=e.initialOptions,d=e.initialQuestion,C=e.onSend,v=e.pollType,S=r("useLazyRef")(function(){var e,t;return o("WAWebPollsGatingUtils").isPrefillPollQuestionEnabled()&&(e=(t=i())==null||(t=t.getTextContent())==null?void 0:t.substring(0,o("WAWebPollsGatingUtils").getMaxPollNameLength()))!=null?e:""}).current,R=y(S),L=R[0],E=R[1],k=y(!1),I=k[0],T=k[1],D=y(l),x=D[0],$=D[1],P=h(),N=y(void 0),M=N[0],w=N[1],A=y(!1),F=A[0],O=A[1],B=y(!1),W=B[0],q=B[1],U=y(null),V=U[0],H=U[1],G=(t=o("useWAWebChatValues").useOptionalChatValues(a.id,[o("WAWebChatGetters").getIsNewsletter,o("WAWebFrontendChatGetters").getNewsletterMetadata]))!=null?t:[!1,null],z=G[0],j=G[1],K=o("WAWebPollsGatingUtils").getMaxPollOptionCount(),Q=y(function(){return o("WAWebPollOptionsRenderUtils").formatOptions(c!=null?c:[],{maxOptionsCount:K})}),X=Q[0],Y=Q[1],J=h(new Map),Z=h(null),ee=h(),te=r("useWAWebUIM")(),ne=p(function(e,t){Y(o("WAWebPollOptionsRenderUtils").formatOptions(e,{maxOptionsCount:K,focusedKey:t}))},[K]);_(function(){o("WAWebPollsActionsMetricUtils").commitPollOpenCreationModal(a)},[]);var re=h(),oe=h(X.length);f(function(){var e=Z.current,t=oe.current,n=X.findIndex(function(e){return e.key===re.current});e!=null&&t0||X.some(function(e){return e.name.length>0})},[a,L,X]),r("useWAWebOnUnmount")(function(){a.isComposingPoll=!1});var se=X[K-2],ue=X[K-1],ce=X.length===K&&!o("WAWebPollOptionsRenderUtils").isEmptyAfterTrimming(se)&&o("WAWebPollOptionsRenderUtils").isEmptyAfterTrimming(ue),de=h(),me=function(t){t===void 0&&(t=!1),o("WAWebModalManager").ModalManager.close(),t&&o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(a,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.POLL)},pe=L!==""||X.some(function(e){return e.name!==""||e.image}),_e=function(){pe&&o("WAWebPollsGatingUtils").isPollsCancellationPromptEnabled()?O(!0):me(!0)},fe=function(){pe&&o("WAWebPollsGatingUtils").isPollsCancellationPromptEnabled()?F||O(!0):me(!0)},ge=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t;q(!0),me(!1),yield o("WAWebBizBotTosUtils").maybeShowBizBot1pTos(a);var n=X.filter(function(e){return!o("WAWebPollOptionsRenderUtils").isEmptyAfterTrimming(e)}),l={name:L,selectableOptionsCount:I||v===o("WAWebPollCreationUtils").PollType.QUIZ?1:0,correctOptionIndex:v===o("WAWebPollCreationUtils").PollType.QUIZ?n.findIndex(function(e){return e.key===x}):void 0},s=ie?babelHelpers.extends({},l,{contentType:"IMAGE",options:n.map(function(e){var t=e.image,n=e.name;return{name:n,image:r("WANullthrows")(t)}}),pollType:v}):babelHelpers.extends({},l,{contentType:"TEXT",options:n.map(function(e){var t=e.name;return{name:t}}),pollType:v});o("WAWebPollsSendPollCreationMsgAction").sendPollCreation({poll:s,chat:a,quotedMsg:o("WAWebPollsGatingUtils").arePollsFastFollowsEnabled()?a.composeQuotedMsg:null,isWamoSub:e===o("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub}),a.composeQuotedMsg=null,a.setComposeContents({}),(t=i())==null||t.reset(),o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(a,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.POLL)});return function(n){return e.apply(this,arguments)}})(),he=function(){if(z&&o("WAWebNewsletterWamoSubUtils").newsletterSupportsSubscriptions(j)&&ee.current&&o("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()){var e=function(t){ge(t)};H({popupAnchorEl:ee.current,handleSelect:e})}else ge();C==null||C()},ye=function(){var e=o("WAWebPollOptionsRenderUtils").validatePoll({question:L,options:X,isPhotoPoll:ie,pollType:v,correctOptionKey:x});if(e!=null){o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:e}));return}he()},Ce=g(function(){return{chat:a,getComposeBoxEditorRef:i,options:X}},[a,i,X]),be=p(function(e,t){var n=[].concat(X);n[e]=babelHelpers.extends({},X[e],{image:void 0}),ne(n,t)},[X,ne]),ve=p(function(e){var t=X[e],n=babelHelpers.extends({question:L,allowMultipleMedia:!1,activeOptionIndex:e},Ce,{pollType:v,correctOptionKey:x});if(t.image){var i=t.image,l=new(r("WAWebAttachMediaCollection"))({chatParticipantCount:a.getParticipantCount()});l.add(i),l.forEach(function(e){e.updateCaption(t.name)}),l.setActive(i),te==null||te.requestDismiss();var s=m.jsx(o("WAWebPollAttachMediaViewLoadable.react").PollAttachMediaViewLoadable,babelHelpers.extends({mediaCollection:l},n));o("WAWebModalManager").ModalManager.openMedia(s,{transition:"menu"})}else{var u;w(e),(u=P.current)==null||u.open()}},[a,x,Ce,X,v,L,te]);return m.jsxs(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:{esc:function(t){t.stopPropagation(),_e()}},children:[m.jsx(o("WAWebModal.react").Modal,{type:o("WAWebModal.react").ModalTheme.Tower,testid:void 0,onOverlayClick:fe,children:m.jsxs(r("WAWebDrawer.react"),{xstyle:b.drawer,children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:v===o("WAWebPollCreationUtils").PollType.QUIZ?s._(/*BTDS*/"Crea un cuestionario"):s._(/*BTDS*/"Crea una encuesta"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:_e}),m.jsx(r("WAWebDrawerBody.react"),{children:m.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(b.bodyContainer,o("WAWebUISpacing").uiPadding.top32),{children:[m.jsx("span",{className:"xlm9qay xk50ysn",children:s._(/*BTDS*/"Pregunta")}),m.jsx(o("WAWebRichTextField.react").RichTextField,{ref:de,testid:void 0,focusOnMount:!0,hideFloatingLabel:!0,showRemaining:!0,emojiBtnPosition:"side",textFormatEnabled:!0,value:d!=null?d:S,maxLength:o("WAWebPollsGatingUtils").getMaxPollNameLength(),maxVisibleLines:5,maxCodeUnits:o("WAWebPollsGatingUtils").getMaxPollNameLengthForIncomingMessages(),onChange:ae,placeholder:s._(/*BTDS*/"Haz una pregunta")}),m.jsx("span",babelHelpers.extends({},u.props(b.sectionTitle,o("WAWebUISpacing").uiMargin.top25),{children:s._(/*BTDS*/"Opciones")})),m.jsxs("div",babelHelpers.extends({ref:Z},u.props(b.optionsContainer,o("WAWebUISpacing").uiMargin.top2,o("WAWebUISpacing").uiMargin.bottom10),{children:[m.jsx(r("WAWebPollsOrderableList"),{items:X,onReordered:ne,renderItem:function(t){var e=t.index,n=t.item,o=t.startDrag;return m.jsx(r("WAWebPollsOptionInput"),{chat:a,onPhotoThumbnailClick:function(){ve(e)},onPhotoIconClick:function(){var e;return(e=P.current)==null?void 0:e.open()},initialText:n.name,error:le.get(n.key),testid:void 0,onTextInputRef:function(t){t?J.current.set(n.key,t):J.current.delete(n.key)},pollType:v,isPhotoPoll:ie,onChange:function(r){var t=[].concat(X);t[e]=babelHelpers.extends({},n,{name:r}),ne(t,n.key)},onDeletePhoto:function(){be(e,n.key)},onDragThumbMouseDown:function(t){t.button===0&&o(n.key,t)},onInputFocus:function(){re.current=n.key},onInputBlur:function(){re.current=null},image:n.image,handleCheckBoxClick:function(){return n.key===x?$(null):$(n.key)},checked:n.key===x})}}),v===o("WAWebPollCreationUtils").PollType.QUIZ&&!pe&&m.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(o("WAWebUISpacing").uiPadding.top10),{children:m.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDeemphasized",children:s._(/*BTDS*/"Selecciona una respuesta correcta")})}))]})),m.jsx("h3",{"data-testid":void 0,className:{0:"x1nxh6w3",1:"x1nxh6w3 xlshs6z"}[!ce<<0],children:s._(/*BTDS*/"Puedes a\u00f1adir una opci\u00f3n m\u00e1s.")}),v===o("WAWebPollCreationUtils").PollType.POLL&&o("WAWebPollsGatingUtils").isSingleOptionPollsSendingEnabled(a.id)&&m.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(b.singleOptionContainer,o("WAWebUISpacing").uiPadding.bottom20),{children:[m.jsx("label",babelHelpers.extends({htmlFor:"polls-single-option-switch"},(u||(u=r("stylex"))).props(b.singleOptionLabel,o("WAWebUISpacing").uiPadding.vert4),{children:s._(/*BTDS*/"Permitir varias respuestas")})),m.jsx(r("WDSSwitch.react"),{id:"polls-single-option-switch",value:!I,onChange:function(){T(!I)},testid:void 0})]}))]}))}),m.jsx("div",babelHelpers.extends({},u.props(b.createPollButtonContainer,o("WAWebUISpacing").uiMargin.top30),{children:m.jsxs(o("WAWebRound.react").Round,{ref:ee,xstyle:[b.sendButton,b.sendButtonRefreshed],theme:o("WAWebRound.react").RoundTheme.DrawerFooter,large:!0,onClick:ye,disabled:le.size!==0||W,label:s._(/*BTDS*/"Enviar"),testid:void 0,children:[m.jsx(o("WAWebWdsIcSendFilledIcon.react").WdsIcSendFilledIcon,{width:28,directional:!0})," "]})})),V!=null&&m.jsx(r("WAWebNewsletterWamoSubMessageTypePopup.react"),{handleSelect:V.handleSelect,popupAnchorEl:V.popupAnchorEl,onDismiss:function(){return H(null)}})]})}),o("WAWebPollsGatingUtils").isPollsCancellationPromptEnabled()&&F&&m.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{cancelButtonType:"warning-secondary",title:v===o("WAWebPollCreationUtils").PollType.QUIZ?s._(/*BTDS*/"\u00bfQuieres salir del cuestionario?"):s._(/*BTDS*/"\u00bfDeseas salir de la encuesta?"),okText:s._(/*BTDS*/"Seguir editando"),onOK:function(){var e;O(!1),(e=de.current)==null||e.restoreFocus()},cancelText:s._(/*BTDS*/"Salir"),onCancel:function(){me(!0)},onOverlayClick:fe,children:s._(/*BTDS*/"No se guardar\u00e1n los cambios.")}),m.jsx(r("WAWebPollAttachMediaPicker.react"),{mediaPickerRef:P,chat:a,options:X,getComposeBoxEditorRef:i,question:L,allowMultipleMedia:!ie,activeOptionIndex:M!=null?M:void 0,pollType:v,correctOptionKey:x})]})}v.displayName=v.name+" [from "+i.id+"]",l.CreatePollModal=v}),226); __d("WDSIconWdsIcPoll.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-ic-poll";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M4 18C4 17.45 4.19583 16.9792 4.5875 16.5875C4.97917 16.1958 5.45 16 6 16H9C9.55 16 10.0208 16.1958 10.4125 16.5875C10.8042 16.9792 11 17.45 11 18C11 18.55 10.8042 19.0208 10.4125 19.4125C10.0208 19.8042 9.55 20 9 20H6C5.45 20 4.97917 19.8042 4.5875 19.4125C4.19583 19.0208 4 18.55 4 18ZM4 12C4 11.45 4.19583 10.9792 4.5875 10.5875C4.97917 10.1958 5.45 10 6 10H18C18.55 10 19.0208 10.1958 19.4125 10.5875C19.8042 10.9792 20 11.45 20 12C20 12.55 19.8042 13.0208 19.4125 13.4125C19.0208 13.8042 18.55 14 18 14H6C5.45 14 4.97917 13.8042 4.5875 13.4125C4.19583 13.0208 4 12.55 4 12ZM4 6C4 5.45 4.19583 4.97917 4.5875 4.5875C4.97917 4.19583 5.45 4 6 4L13 4C13.55 4 14.0208 4.19583 14.4125 4.5875C14.8042 4.97917 15 5.45 15 6C15 6.55 14.8042 7.02083 14.4125 7.4125C14.0208 7.80417 13.55 8 13 8H6C5.45 8 4.97917 7.80417 4.5875 7.4125C4.19583 7.02083 4 6.55 4 6Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebAttachMenuPopupItemPolls.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebModalManager","WAWebPollCreationUtils","WAWebPollsCreatePollModal","WAWebPollsGatingUtils","WAWebPrepareMessageSendingAction","WDSIconWdsIcPoll.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={refreshedIcon:{color:"xxeg2eo",$$css:!0}};function c(e){var t=e.chat,n=e.getComposeBoxEditorRef,a=e.useWdsMenuVersion,i=a===void 0?!1:a,l=function(){o("WAWebModalManager").ModalManager.open(s.jsx(o("WAWebPollsCreatePollModal").CreatePollModal,{chat:t,getComposeBoxEditorRef:n,pollType:o("WAWebPollCreationUtils").PollType.POLL}),{blockClose:o("WAWebPollsGatingUtils").isPollsCancellationPromptEnabled()}),o("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(t),o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.POLL)},c=function(){l()},d=function(t){return t.preventDefault(),l(),!0};return s.jsx(r("WAWebAttachMenuPopupItem.react"),{useWdsMenuVersion:i,testid:void 0,action:d,onPress:c,Icon:r("WDSIconWdsIcPoll.react"),iconXstyle:u.refreshedIcon,text:o("WAWebAttachMenuStrings").PollText()})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WDSIconIcHelpFilled.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-help-filled";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M11.95 18C12.3 18 12.5958 17.8792 12.8375 17.6375C13.0792 17.3958 13.2 17.1 13.2 16.75C13.2 16.4 13.0792 16.1042 12.8375 15.8625C12.5958 15.6208 12.3 15.5 11.95 15.5C11.6 15.5 11.3042 15.6208 11.0625 15.8625C10.8208 16.1042 10.7 16.4 10.7 16.75C10.7 17.1 10.8208 17.3958 11.0625 17.6375C11.3042 17.8792 11.6 18 11.95 18ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12.1 7.7C12.5167 7.7 12.8792 7.83333 13.1875 8.1C13.4958 8.36667 13.65 8.7 13.65 9.1C13.65 9.46667 13.5375 9.79167 13.3125 10.075C13.0875 10.3583 12.8333 10.625 12.55 10.875C12.1667 11.2083 11.8292 11.575 11.5375 11.975C11.2458 12.375 11.1 12.825 11.1 13.325C11.1 13.5583 11.1875 13.7542 11.3625 13.9125C11.5375 14.0708 11.7417 14.15 11.975 14.15C12.225 14.15 12.4375 14.0667 12.6125 13.9C12.7875 13.7333 12.9 13.525 12.95 13.275C13.0167 12.925 13.1667 12.6125 13.4 12.3375C13.6333 12.0625 13.8833 11.8 14.15 11.55C14.5333 11.1833 14.8625 10.7833 15.1375 10.35C15.4125 9.91667 15.55 9.43333 15.55 8.9C15.55 8.05 15.2042 7.35417 14.5125 6.8125C13.8208 6.27083 13.0167 6 12.1 6C11.4667 6 10.8625 6.13333 10.2875 6.4C9.7125 6.66667 9.275 7.075 8.975 7.625C8.85833 7.825 8.82083 8.0375 8.8625 8.2625C8.90417 8.4875 9.01667 8.65833 9.2 8.775C9.43333 8.90833 9.675 8.95 9.925 8.9C10.175 8.85 10.3833 8.70833 10.55 8.475C10.7333 8.225 10.9625 8.03333 11.2375 7.9C11.5125 7.76667 11.8 7.7 12.1 7.7Z",fill:"currentColor"}),c.jsx("path",{d:"M11.95 18C12.3 18 12.5958 17.8792 12.8375 17.6375C13.0792 17.3958 13.2 17.1 13.2 16.75C13.2 16.4 13.0792 16.1042 12.8375 15.8625C12.5958 15.6208 12.3 15.5 11.95 15.5C11.6 15.5 11.3042 15.6208 11.0625 15.8625C10.8208 16.1042 10.7 16.4 10.7 16.75C10.7 17.1 10.8208 17.3958 11.0625 17.6375C11.3042 17.8792 11.6 18 11.95 18ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12.1 7.7C12.5167 7.7 12.8792 7.83333 13.1875 8.1C13.4958 8.36667 13.65 8.7 13.65 9.1C13.65 9.46667 13.5375 9.79167 13.3125 10.075C13.0875 10.3583 12.8333 10.625 12.55 10.875C12.1667 11.2083 11.8292 11.575 11.5375 11.975C11.2458 12.375 11.1 12.825 11.1 13.325C11.1 13.5583 11.1875 13.7542 11.3625 13.9125C11.5375 14.0708 11.7417 14.15 11.975 14.15C12.225 14.15 12.4375 14.0667 12.6125 13.9C12.7875 13.7333 12.9 13.525 12.95 13.275C13.0167 12.925 13.1667 12.6125 13.4 12.3375C13.6333 12.0625 13.8833 11.8 14.15 11.55C14.5333 11.1833 14.8625 10.7833 15.1375 10.35C15.4125 9.91667 15.55 9.43333 15.55 8.9C15.55 8.05 15.2042 7.35417 14.5125 6.8125C13.8208 6.27083 13.0167 6 12.1 6C11.4667 6 10.8625 6.13333 10.2875 6.4C9.7125 6.66667 9.275 7.075 8.975 7.625C8.85833 7.825 8.82083 8.0375 8.8625 8.2625C8.90417 8.4875 9.01667 8.65833 9.2 8.775C9.43333 8.90833 9.675 8.95 9.925 8.9C10.175 8.85 10.3833 8.70833 10.55 8.475C10.7333 8.225 10.9625 8.03333 11.2375 7.9C11.5125 7.76667 11.8 7.7 12.1 7.7Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebAttachMenuPopupItemQuestion.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebModalManager","WAWebPrepareMessageSendingAction","WAWebQuestions.flow","WAWebQuestionsInputModalLoadable","WDSIconIcHelpFilled.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={icon:{color:"x11i6shi",$$css:!0}};function c(e){var t=e.chat,n=e.getComposeBoxEditorRef,a=e.useWdsMenuVersion,i=a===void 0?!1:a,l=function(){o("WAWebModalManager").ModalManager.open(s.jsx(o("WAWebQuestionsInputModalLoadable").QuestionsInputModalLoadable,{chat:t,getComposeBoxEditorRef:n,questionType:o("WAWebQuestions.flow").QuestionType.Question})),o("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(t)},c=function(){l()},d=function(t){return t.preventDefault(),l(),!0};return s.jsx(r("WAWebAttachMenuPopupItem.react"),{useWdsMenuVersion:i,testid:void 0,action:d,onPress:c,Icon:r("WDSIconIcHelpFilled.react"),iconXstyle:u.icon,text:o("WAWebAttachMenuStrings").QuestionText()})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebBoltFilledIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="bolt-filled";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M8.99997 15H5.89997C5.49997 15 5.20414 14.8209 5.01247 14.4625C4.8208 14.1042 4.84164 13.7584 5.07497 13.425L12.55 2.67503C12.7166 2.44169 12.9333 2.27919 13.2 2.18753C13.4666 2.09586 13.7416 2.10003 14.025 2.20003C14.3083 2.30003 14.5166 2.47503 14.65 2.72503C14.7833 2.97503 14.8333 3.24169 14.8 3.52503L14 10H17.875C18.3083 10 18.6125 10.1917 18.7875 10.575C18.9625 10.9584 18.9083 11.3167 18.625 11.65L10.4 21.5C10.2166 21.7167 9.99164 21.8584 9.72497 21.925C9.4583 21.9917 9.19997 21.9667 8.94997 21.85C8.69997 21.7334 8.50414 21.5542 8.36247 21.3125C8.2208 21.0709 8.16664 20.8084 8.19997 20.525L8.99997 15Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.BoltFilledIcon=m}),98); __d("WAWebAttachMenuPopupItemQuickReplies.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebBoltFilledIcon.react","WAWebComposeBoxActions","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={icon:{color:"x1ev1nr0",$$css:!0}};function c(e){var t=e.chat,n=e.useWdsMenuVersion,a=n===void 0?!1:n,i=function(){o("WAWebComposeBoxActions").ComposeBoxActions.toggleQuickReplies(),o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.QUICK_REPLY)},l=function(t){return t.preventDefault(),i(),!0},c=function(){i()};return s.jsx(r("WAWebAttachMenuPopupItem.react"),{testid:void 0,action:l,onPress:c,Icon:o("WAWebBoltFilledIcon.react").BoltFilledIcon,iconXstyle:u.icon,text:o("WAWebAttachMenuStrings").QuickRepliesText(),useWdsMenuVersion:a})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebAttachMenuPopupItemQuiz.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebModalManager","WAWebPollCreationUtils","WAWebPollsCreatePollModal","WAWebPollsGatingUtils","WAWebPrepareMessageSendingAction","WDSIconIcTrophyFilled.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={refreshedIcon:{color:"x1xy43o6",$$css:!0}};function c(e){var t=e.chat,n=e.getComposeBoxEditorRef,a=e.useWdsMenuVersion,i=a===void 0?!1:a,l=function(){o("WAWebModalManager").ModalManager.open(s.jsx(o("WAWebPollsCreatePollModal").CreatePollModal,{chat:t,getComposeBoxEditorRef:n,pollType:o("WAWebPollCreationUtils").PollType.QUIZ}),{blockClose:o("WAWebPollsGatingUtils").isPollsCancellationPromptEnabled()}),o("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(t),o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.POLL)},c=function(){l()},d=function(t){return t.preventDefault(),l(),!0};return s.jsx(r("WAWebAttachMenuPopupItem.react"),{useWdsMenuVersion:i,testid:void 0,action:d,onPress:c,Icon:r("WDSIconIcTrophyFilled.react"),iconXstyle:u.refreshedIcon,text:o("WAWebAttachMenuStrings").QuizText()})}c.displayName=c.name+" [from "+i.id+"]",l.AttachMenuPopupItemQuiz=c}),98); __d("WDSIconWdsIcStickerPlusCreateFilled.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-ic-sticker-plus-create-filled";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.27273 2C5.25611 2 2 5.25611 2 9.27273V14.7273C2 18.7439 5.25611 22 9.27273 22H13.2329V21.9951C13.9587 21.9951 14.543 21.399 14.5284 20.6733L14.5149 19.9966V19.6598C14.5149 16.8203 16.8167 14.5185 19.6561 14.5185L20.8584 14.5185C21.4463 14.5185 21.9311 14.0774 22 13.5081V9.27273C22 5.25611 18.7439 2 14.7273 2H9.27273ZM11 16V13H8C7.71667 13 7.47917 12.9042 7.2875 12.7125C7.09583 12.5208 7 12.2833 7 12C7 11.7167 7.09583 11.4792 7.2875 11.2875C7.47917 11.0958 7.71667 11 8 11H11V8C11 7.71667 11.0958 7.47917 11.2875 7.2875C11.4792 7.09583 11.7167 7 12 7C12.2833 7 12.5208 7.09583 12.7125 7.2875C12.9042 7.47917 13 7.71667 13 8V11H16C16.2833 11 16.5208 11.0958 16.7125 11.2875C16.9042 11.4792 17 11.7167 17 12C17 12.2833 16.9042 12.5208 16.7125 12.7125C16.5208 12.9042 16.2833 13 16 13H13V16C13 16.2833 12.9042 16.5208 12.7125 16.7125C12.5208 16.9042 12.2833 17 12 17C11.7167 17 11.4792 16.9042 11.2875 16.7125C11.0958 16.5208 11 16.2833 11 16Z",fill:"currentColor"}),c.jsx("path",{d:"M18.9787 19.8647C18.175 20.732 17.1642 21.3608 16.0565 21.703C16.1745 21.3712 16.2356 21.0126 16.2281 20.6393L16.2149 19.9796V19.6598C16.2149 17.7592 17.7556 16.2185 19.6561 16.2185L20.8584 16.2185C21.1163 16.2185 21.3663 16.1843 21.6039 16.12C21.2774 17.0685 20.7554 17.9475 20.0617 18.6961L18.9787 19.8647Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebAttachMenuPopupItemStickers.react",["WAWebAttachMenuFilePicker","WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebPrepareMessageSendingAction","WAWebWamEnumWebcStickerMakerEventNameType","WAWebWebcStickerMakerEventsWamEvent","WDSIconWdsIcStickerPlusCreateFilled.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={refreshedIcon:{color:"x1w53qhl",$$css:!0}};function c(e,t,n){new(o("WAWebWebcStickerMakerEventsWamEvent")).WebcStickerMakerEventsWamEvent({stickerMakerEventName:o("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.STICKER_MAKER_BUTTON_TAP}).commit(),o("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(e),o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(e,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.STICKER_MAKER),o("WAWebAttachMenuFilePicker").createFilePicker({accept:o("WAWebAttachMenuFilePicker").FilePickerMimeType.IMAGE,multiple:!1,transformAttachment:function(t){return{file:t,stickerMaker:!0}}},function(e){new(o("WAWebWebcStickerMakerEventsWamEvent")).WebcStickerMakerEventsWamEvent({stickerMakerEventName:o("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.IMAGE_UPLOADED}).commit(),n(e)},t)}function d(e){var t=e.chat,n=e.dismissMenu,a=e.onMediaPick,i=e.useWdsMenuVersion,l=i===void 0?!1:i,d=function(){c(t,n,a)},m=function(r){return r.preventDefault(),c(t,n,a),!1};return s.jsx(r("WAWebAttachMenuPopupItem.react"),{useWdsMenuVersion:l,testid:void 0,action:m,onPress:d,Icon:r("WDSIconWdsIcStickerPlusCreateFilled.react"),iconXstyle:u.refreshedIcon,text:o("WAWebAttachMenuStrings").StickerMakerText()})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebAttachMenuPopupPix.react",["PixPaymentRequestFeature","WAWebAttachMenuPopupItem.react","WAWebBizOrderDetailsParams","WAWebBusinessAddPixModalLoadable","WAWebModalManager","WAWebPixLogoIcon.react","WAWebSendPaymentRequestFlowLoadable","WAWebSendPixConfirmModalLoadable","WAWebUserPrefsCustomPaymentMethods","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={iconBackground:{opacity:"xg01cxk",$$css:!0},iconPrimary:{fill:"xfifr3o",$$css:!0},iconSize:{transform:"x1omdec3",$$css:!0}};function c(e){return s.jsx(o("WAWebPixLogoIcon.react").PixLogoIcon,babelHelpers.extends({},e,{innerStyles:{background:u.iconBackground,primary:u.iconPrimary}}))}c.displayName=c.name+" [from "+i.id+"]";function d(e){var t=e.chat,n=e.useWdsMenuVersion,a=n===void 0?!1:n,i=function(){var e=o("WAWebUserPrefsCustomPaymentMethods").getPIX(),n=e!=null;o("PixPaymentRequestFeature").shouldOpenPaymentRequestFlow(t)?o("WAWebModalManager").ModalManager.open(s.jsx(o("WAWebSendPaymentRequestFlowLoadable").SendPaymentRequestFlowLoadable,{chat:t,previousScreen:"chat",referral:"chat_attachment"}),{transition:"modal-flow"}):n&&e?o("WAWebModalManager").ModalManager.open(s.jsx(o("WAWebSendPixConfirmModalLoadable").WAWebSendPixConfirmModalLoadable,{chat:t,pixData:e,previousScreenName:"chat",referral:"chat_attachment",orderReferral:o("WAWebBizOrderDetailsParams").OrderReferral.CHAT_ATTACHMENT})):o("WAWebModalManager").ModalManager.open(s.jsx(o("WAWebBusinessAddPixModalLoadable").WAWebBizPaymentsBrazilAddPixModalLoadable,{previousScreen:"chat",referral:"chat_attachment"}))},l=function(){return i(),!0},d=function(){i()};return s.jsx(r("WAWebAttachMenuPopupItem.react"),{testid:void 0,action:l,onPress:d,Icon:c,iconXstyle:u.iconSize,text:"Pix",useWdsMenuVersion:a})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebAttachMenuUtils",["WAWebBizGatingUtils","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebChatGetters","WAWebConnModel","WAWebContactGetters","WAWebL10NCountryCodes","WAWebLidMigrationUtils","WAWebLinkedCatalogHelper","WAWebProductCatalogMetaLinkingGatingUtils","WAWebUserPrefsMeUser"],(function(t,n,r,o,a,i,l){function e(e){if(o("WAWebChatGetters").getIsNewsletter(e))return!1;var t=o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(o("WAWebUserPrefsMeUser").getMePnUserOrThrow());return!(!c()||o("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(t)||o("WAWebProductCatalogMetaLinkingGatingUtils").shouldDisableCatalogDueToMetaLinkingForSelf())}function s(){return o("WAWebProductCatalogMetaLinkingGatingUtils").shouldShowMetaLinkedDisabledCatalogTooltipForSelf()}function u(e){if(!o("WAWebConnModel").Conn.isSMB||o("WAWebChatGetters").getIsGroup(e)||o("WAWebChatGetters").getIsNewsletter(e)||o("WAWebChatGetters").getIsBroadcast(e)||o("WAWebLinkedCatalogHelper").shouldHideComponentForSMBLinkedCatalog())return!1;if(o("WAWebBizGatingUtils").orderDetailsCustomItemEnabled())return!0;var t=o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(o("WAWebUserPrefsMeUser").getMePnUserOrThrow());return o("WAWebBizGatingUtils").orderDetailsFromCatalogEnabled()&&o("WAWebBusinessProfileUtils").hasCatalog(t)}function c(){if(!o("WAWebConnModel").Conn.isSMB)return!1;var e=o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(o("WAWebUserPrefsMeUser").getMePnUserOrThrow());return!o("WAWebBusinessProfileUtils").hasShop(e)}function d(e){var t=o("WAWebLidMigrationUtils").toPn(e.contact.id),n=o("WAWebL10NCountryCodes").getCountryShortcodeByPhone(t==null?void 0:t.user);return!(!o("WAWebConnModel").Conn.isSMB||o("WAWebChatGetters").getIsGroup(e)||o("WAWebContactGetters").getIsMe(e.contact)||n!=="BR"||e.contact.isEnterprise)}l.shouldShowCatalogOption=e,l.shouldShowDisabledCatalogOption=s,l.canSendOrder=u,l.canSendPix=d}),98); __d("WAWebPixFeature",["WAWebMobilePlatforms","WAWebPrimaryFeaturesModel"],(function(t,n,r,o,a,i,l){function e(){return o("WAWebMobilePlatforms").isSMB()&&o("WAWebPrimaryFeaturesModel").PrimaryFeatures.customPaymentMethodsSyncSupport}l.isPixEnabled=e}),98); __d("WAWebPixAttachmentTrayFeature",["WAWebABProps","WAWebAddEditPixFeature","WAWebConnModel","WAWebContactGetters","WAWebGetMessageChatTypeFromWid","WAWebPaymentsChat","WAWebPaymentsConstants","WAWebPixFeature","WAWebPixQuickReplyFeature","WAWebWamEnumMessageChatType"],(function(t,n,r,o,a,i,l){function e(){return o("WAWebABProps").getABPropConfigValue("payments_br_pix_web_attachment_tray")}function s(t){if(!o("WAWebConnModel").Conn.isSMB||o("WAWebContactGetters").getIsMe(t.contact)||t.contact.isEnterprise||!o("WAWebPixFeature").isPixEnabled()||!o("WAWebAddEditPixFeature").isAddEditPixEnabled()||!e())return!1;var n=o("WAWebGetMessageChatTypeFromWid").getMessageChatTypeFromWid(t.id);return n===o("WAWebWamEnumMessageChatType").MESSAGE_CHAT_TYPE.INDIVIDUAL?o("WAWebPaymentsChat").doesUserHaveCountryPhoneNumber(t.id,o("WAWebPaymentsConstants").BRAZIL_COUNTRY_CODE):n===o("WAWebWamEnumMessageChatType").MESSAGE_CHAT_TYPE.GROUP?o("WAWebPixQuickReplyFeature").showPixQuickReplyInAttachmentTrayForGroups(t):!1}l.shouldShowPixInAttachmentTray=s}),98); __d("WAWebAttachMenuPopup.react",["WAWebAttachMenuPopupItemAudio.react","WAWebAttachMenuPopupItemCamera.react","WAWebAttachMenuPopupItemCatalog.react","WAWebAttachMenuPopupItemContacts.react","WAWebAttachMenuPopupItemDocuments.react","WAWebAttachMenuPopupItemEvents.react","WAWebAttachMenuPopupItemOrders.react","WAWebAttachMenuPopupItemPhotos.react","WAWebAttachMenuPopupItemPolls.react","WAWebAttachMenuPopupItemQuestion.react","WAWebAttachMenuPopupItemQuickReplies.react","WAWebAttachMenuPopupItemQuiz.react","WAWebAttachMenuPopupItemStickers.react","WAWebAttachMenuPopupPix.react","WAWebAttachMenuUtils","WAWebAttachmentMenuLogger","WAWebBizGatingUtils","WAWebChatGetters","WAWebCmd","WAWebContactGetters","WAWebMediaGatingUtils","WAWebModalManager","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebPixAttachmentTrayFeature","WAWebQuestions.flow","WAWebQuestionsGatingUtils","WAWebUISpacing","WAWebWamEnumMediaPickerOriginType","WDSMenu.react","WDSMenuItem.react","react","stylex","useWAWebChatValues","useWAWebUIM"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react"));function c(e){var t=e.chat,n=e.getComposeBoxEditorRef,a=e.getComposeContents,i=e.onMenuComplete,l=e.questionReplyQuotedMessage,s=e.questionType,c=e.useWdsMenuVersion,d=c===void 0?!1:c,p=o("useWAWebChatValues").useChatValues(t.id,[o("WAWebChatGetters").getIsNewsletter]),_=p[0],f=o("useWAWebChatValues").useChatValues(t.id,[o("WAWebChatGetters").getIsBroadcast]),g=f[0],h=r("useWAWebUIM")(),y=function(){h==null||h.requestDismiss()},C=function(n){var e=n.attachments,r=n.onCancel,u=n.onSend,c=n.sendAsSticker,d=c===void 0?!1:c;o("WAWebCmd").Cmd.attachMediaDrawer({chat:t,attachments:e,fileOrigin:o("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_PHOTO_LIBRARY,initCaption:a==null?void 0:a(),onComplete:function(t,n){i(t,n)},onSend:u,onCancel:r,sendAsSticker:d,isQuestion:s===o("WAWebQuestions.flow").QuestionType.Question,questionReplyQuotedMessage:l})},b=o("WAWebAttachMenuUtils").shouldShowDisabledCatalogOption(),v=o("WAWebAttachMenuUtils").shouldShowCatalogOption(t),S=o("WAWebBizGatingUtils").canSendQuickReplyInChat(t),R=o("WAWebAttachMenuUtils").canSendOrder(t)&&!o("WAWebContactGetters").getIsMe(t.contact),L=v||S||R,E=o("WAWebMediaGatingUtils").getSupportedMediaTypesForChat(t),k=[];if(s==null){E.has(o("WAWebMsgType").MSG_TYPE.DOCUMENT)&&k.push(u.jsx(r("WAWebAttachMenuPopupItemDocuments.react"),{chat:t,dismissMenu:y,useWdsMenuVersion:d,onDocumentPick:function(n){C({attachments:n,onSend:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.DOCUMENT)},onCancel:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.DOCUMENT)}})}})),k.push(u.jsx(o("WAWebAttachMenuPopupItemPhotos.react").AttachMenuPopupItemPhotos,{chat:t,dismissMenu:y,multiple:o("WAWebMediaGatingUtils").supportsMultipleUploads(t.id),useWdsMenuVersion:d,onMediaPick:function(n){C({attachments:n,onSend:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.PHOTO_AND_VIDEO_LIBRARY)},onCancel:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.PHOTO_AND_VIDEO_LIBRARY)}})},mediaSelectionType:o("WAWebAttachMenuPopupItemPhotos.react").MediaSelectionType.PHOTOS_AND_VIDEOS})),k.push(u.jsx(r("WAWebAttachMenuPopupItemCamera.react"),{chat:t,useWdsMenuVersion:d,onCaptureClick:function(){o("WAWebCmd").Cmd.openCaptureMedia({onMenuComplete:i})}})),o("WAWebQuestionsGatingUtils").isQuestionSenderEnabled(t)&&k.push(u.jsx(r("WAWebAttachMenuPopupItemQuestion.react"),{chat:t,useWdsMenuVersion:d,getComposeBoxEditorRef:n})),(_&&o("WAWebNewsletterGatingUtils").isNewsletterAudioFileSendingEnabled()||!_&&!g)&&k.push(u.jsx(r("WAWebAttachMenuPopupItemAudio.react"),{chat:t,dismissMenu:y,multiple:o("WAWebMediaGatingUtils").supportsMultipleUploads(t.id),useWdsMenuVersion:d,onMediaPick:function(n){C({attachments:n,onSend:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.AUDIO)},onCancel:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.AUDIO)}})}})),!_&&!g&&k.push(u.jsx(r("WAWebAttachMenuPopupItemContacts.react"),{chat:t,useWdsMenuVersion:d,onMenuComplete:i})),t.canSendPolls()&&k.push(u.jsx(r("WAWebAttachMenuPopupItemPolls.react"),{chat:t,useWdsMenuVersion:d,getComposeBoxEditorRef:n})),_&&o("WAWebNewsletterGatingUtils").isNewsletterQuizSenderEnabled()&&k.push(u.jsx(o("WAWebAttachMenuPopupItemQuiz.react").AttachMenuPopupItemQuiz,{useWdsMenuVersion:d,chat:t,getComposeBoxEditorRef:n}));var I=E.has(o("WAWebMsgType").MSG_TYPE.STICKER)?u.jsx(r("WAWebAttachMenuPopupItemStickers.react"),{chat:t,dismissMenu:y,useWdsMenuVersion:d,onMediaPick:function(n){C({attachments:n,sendAsSticker:!0,onSend:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.STICKER_MAKER)},onCancel:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.STICKER_MAKER)}})}}):null,T=o("WAWebChatGetters").getIsGroup(t)||o("WAWebChatGetters").getIsUser(t)?u.jsx(r("WAWebAttachMenuPopupItemEvents.react"),{chat:t,useWdsMenuVersion:d}):null;k.push([T,I])}else{var D=o("WAWebQuestionsGatingUtils").getEnabledAttachmentTypesForQuestionType(s),x;D.has(o("WAWebMsgType").MSG_TYPE.IMAGE)?D.has(o("WAWebMsgType").MSG_TYPE.VIDEO)?x=o("WAWebAttachMenuPopupItemPhotos.react").MediaSelectionType.PHOTOS_AND_VIDEOS:x=o("WAWebAttachMenuPopupItemPhotos.react").MediaSelectionType.PHOTOS:D.has(o("WAWebMsgType").MSG_TYPE.VIDEO)&&(x=o("WAWebAttachMenuPopupItemPhotos.react").MediaSelectionType.VIDEOS),x!=null&&k.push(u.jsx(o("WAWebAttachMenuPopupItemPhotos.react").AttachMenuPopupItemPhotos,{chat:t,dismissMenu:y,multiple:!1,useWdsMenuVersion:d,onMediaPick:function(n){o("WAWebModalManager").ModalManager.close(),C({attachments:n,onSend:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.PHOTO_AND_VIDEO_LIBRARY)},onCancel:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(t,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.PHOTO_AND_VIDEO_LIBRARY)}})},mediaSelectionType:x})),D.has(o("WAWebMsgType").MSG_TYPE.IMAGE)&&k.push(u.jsx(r("WAWebAttachMenuPopupItemCamera.react"),{chat:t,useWdsMenuVersion:d,onCaptureClick:function(){o("WAWebCmd").Cmd.openCaptureMedia({onMenuComplete:i,questionType:s,questionReplyQuotedMessage:l})}}))}var $=u.jsxs(u.Fragment,{children:[k,L&&u.jsx(m,{useWdsMenuVersion:d}),o("WAWebPixAttachmentTrayFeature").shouldShowPixInAttachmentTray(t)&&u.jsx(r("WAWebAttachMenuPopupPix.react"),{chat:t,useWdsMenuVersion:d}),v&&u.jsx(r("WAWebAttachMenuPopupItemCatalog.react"),{chat:t,disabled:b,useWdsMenuVersion:d}),S&&u.jsx(r("WAWebAttachMenuPopupItemQuickReplies.react"),{chat:t,useWdsMenuVersion:d}),R&&u.jsx(r("WAWebAttachMenuPopupItemOrders.react"),{chat:t,useWdsMenuVersion:d})]});return d?u.jsx(r("WDSMenu.react"),{children:$}):u.jsx("div",{children:$})}c.displayName=c.name+" [from "+i.id+"]";var d={divider:{height:"xjm9jq1",backgroundColor:"xfw0ycb",$$css:!0}};function m(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t;return n?u.jsx(r("WDSMenuItem.react"),{type:"separator"}):u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(d.divider,o("WAWebUISpacing").uiMargin.top3,o("WAWebUISpacing").uiMargin.bottom4)))}m.displayName=m.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebAttachMenuBarItem.react",["fbt","WAWebAttachMenuPopup.react","WAWebAttachmentMenuLogger","WAWebCmd","WAWebDrawerManagerContext","WAWebDropdown.react","WAWebPlusRoundedIcon.react","WAWebStateUtils","WAWebSvgButton.react","WAWebTabOrder","WAWebUISpacing","WAWebUim","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUseBusinessProfile.react","WAWebVelocityTransitionGroup","WAWebWDSGatingUtils","WDSMenuBarItem.react","react","useWAWebABPropConfigValue","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useImperativeHandle,_=d.useRef,f=d.useState,g={button:{display:"x78zum5",width:"xh8yej3",height:"x5yr21d",alignItems:"x6s0dn4",justifyContent:"xl56j7k",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",transition:"xlkovuz",color:"x14ug900",":active_transition":"x16j0l1c",$$css:!0},hoverBg:{":hover_backgroundColor":"x1ubxc9n",$$css:!0},activeButton:{backgroundColor:"x4wrhlh",$$css:!0},icon:{transitionProperty:"x11xpdln",transitionDuration:"x1d8287x",transitionTimingFunction:"x1h4ghdb",$$css:!0},rotateIcon:{transform:"x11t6m9b",$$css:!0}};function h(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.chat,l=a.iconWidth,u=l===void 0?30:l,c=a.questionReplyQuotedMessage,d=a.questionType,h=_(null),y=_(null),C=f(null),b=C[0],v=C[1];o("WAWebUseBusinessProfile.react").useBusinessProfile(i.id,["isBizBot3p"]);var S=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_button"),R=o("WAWebDrawerManagerContext").useDrawerManagerContext("mid"),L=function(t){var e,n=(e=R.existsDrawer())!=null?e:!1;n&&t.preventDefault()},E=o("WAWebWDSGatingUtils").isWDSMenuM1Enabled(),k=function(t){if(t&&L(t),y.current){y.current.open();return}h.current&&v({menu:m.jsx(r("WAWebAttachMenuPopup.react"),{chat:o("WAWebStateUtils").unproxy(i),getComposeContents:a.getComposeContents,getComposeBoxEditorRef:a.getComposeBoxEditorRef,onMenuComplete:a.onMenuComplete,questionType:d,questionReplyQuotedMessage:c}),dirY:o("WAWebDropdown.react").DirY.TOP,dirX:o("WAWebDropdown.react").DirX.CENTER,type:o("WAWebDropdown.react").MenuType.AttachMenuPopup,flipOnRTL:!0,testid:"attach-menu-popup",anchor:h.current,offsetY:-25}),o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentMenuOpen(i)};p(n,function(){return{open:function(){k()}}});var I=function(t){t===o("WAWebUim").DismissReason.UIM_INTERACTION&&o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentMenuClose(i),v(null)};o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"close_context_menu",I);var T=o("WAWebPlusRoundedIcon.react").PlusRoundedIcon,D=!!b,x=[g.button,o("WAWebUISpacing").uiPadding.all8,D&&g.activeButton,g.hoverBg],$=[g.icon,D&&g.rotateIcon],P=m.jsx(r("WAWebAttachMenuPopup.react"),{chat:o("WAWebStateUtils").unproxy(i),getComposeContents:a.getComposeContents,getComposeBoxEditorRef:a.getComposeBoxEditorRef,onMenuComplete:a.onMenuComplete,questionType:d,questionReplyQuotedMessage:c,useWdsMenuVersion:E});return S?m.jsx(r("WDSMenuBarItem.react"),babelHelpers.extends({imperativeRef:y,ref:h,onClick:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentMenuOpen(i)},icon:T,tabOrder:o("WAWebTabOrder").TAB_ORDER.COMPOSE_BOX_ATTACH_BUTTON,title:s._(/*BTDS*/"Adjuntar"),testid:void 0},E?{wdsMenuToRender:P,menuAlign:"middle",menuPosition:"above"}:{dropdownMenu:{menu:P,dirY:o("WAWebDropdown.react").DirY.TOP,dirX:o("WAWebDropdown.react").DirX.CENTER,type:o("WAWebDropdown.react").MenuType.AttachMenuPopup,flipOnRTL:!0,testid:"attach-menu-popup",offsetY:-25,offsetX:10}})):m.jsxs(m.Fragment,{children:[m.jsx(r("WAWebSvgButton.react"),{containerRef:h,onClick:k,Icon:T,iconXstyle:$,width:u,dataTab:o("WAWebTabOrder").TAB_ORDER.COMPOSE_BOX_ATTACH_BUTTON,xstyle:x,title:s._(/*BTDS*/"Adjuntar"),testid:void 0,"aria-haspopup":"menu","aria-expanded":D}),m.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"dropdown",children:b?m.jsx(o("WAWebUimUie.react").UIE,{displayName:"AttachMenuPopup",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:I,children:m.jsx(r("WAWebUimUieMenu.react"),{contextMenu:b})}):null})]})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebBetaIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="beta";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=10,R=30;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p,height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M3.68 8.94h-2.4c-.35 0-.6-.08-.75-.23C.38 8.55.3 8.3.3 7.96V2.04c0-.35.07-.6.22-.75.16-.15.4-.23.75-.23h2.55c.37 0 .7.03.97.07a2.08 2.08 0 0 1 1.24.7 1.82 1.82 0 0 1 .44 1.21c0 .79-.4 1.36-1.18 1.73 1.03.33 1.55.97 1.55 1.92 0 .44-.11.84-.34 1.2-.22.35-.53.6-.91.77-.24.1-.52.17-.83.22a8.8 8.8 0 0 1-1.09.06Zm-.12-3.5H1.9v2.3h1.72c1.08 0 1.61-.39 1.61-1.17 0-.4-.14-.68-.41-.86-.28-.18-.7-.27-1.26-.27ZM1.9 2.26V4.3h1.47c.4 0 .7-.04.91-.12a.88.88 0 0 0 .5-.43.97.97 0 0 0 .14-.5c0-.4-.14-.66-.43-.8a3.2 3.2 0 0 0-1.3-.19H1.9ZM13.83 2.3h-3.6v1.93h3.31c.24 0 .42.05.54.16.12.11.19.25.19.43s-.06.33-.18.44c-.12.11-.3.17-.55.17h-3.3v2.24h3.7c.26 0 .45.06.57.18.13.11.2.27.2.46a.6.6 0 0 1-.2.46c-.12.11-.31.17-.56.17H9.6c-.34 0-.6-.08-.75-.23-.15-.16-.22-.4-.22-.75V2.04c0-.23.03-.41.1-.56a.62.62 0 0 1 .32-.31c.14-.07.33-.1.55-.1h4.22c.25 0 .44.05.56.16.12.12.19.26.19.45 0 .18-.07.33-.2.45-.11.1-.3.16-.55.16ZM21.49 2.38h-1.74V8.1c0 .33-.08.57-.22.73a.74.74 0 0 1-.57.24.76.76 0 0 1-.58-.24c-.15-.16-.22-.4-.22-.73V2.38h-1.74c-.28 0-.48-.06-.61-.18a.62.62 0 0 1-.2-.48c0-.2.07-.36.2-.48a.9.9 0 0 1 .6-.18h5.08c.27 0 .48.06.6.19.15.12.21.28.21.47 0 .2-.06.36-.2.48s-.34.18-.61.18ZM27.99 8.05l-.38-1h-3.2l-.37 1.02c-.15.4-.28.66-.38.8-.1.13-.27.2-.51.2a.75.75 0 0 1-.53-.22.67.67 0 0 1-.23-.5c0-.1.01-.22.05-.33l.18-.48 2.01-5.11.2-.53c.09-.2.17-.38.26-.51a1.05 1.05 0 0 1 .92-.46 1.08 1.08 0 0 1 .91.45c.1.13.17.28.23.43l.24.6 2.06 5.09c.16.38.24.67.24.84a.7.7 0 0 1-.23.5.75.75 0 0 1-.55.23.7.7 0 0 1-.55-.25c-.06-.07-.12-.2-.2-.35L28 8.05Zm-3.16-2.2h2.35L26 2.62l-1.17 3.25Z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.BetaIcon=m}),98); __d("WAWebWamEnumWebcNavbarItemLabel",[],(function(t,n,r,o,a,i){var e=Object.freeze({CHATS:1,COMMUNITIES:2,NEWSLETTERS:3,STATUS:4,STARRED:5,ARCHIVED:6,SETTINGS_HELP:7,SETTINGS:8,PROFILE:9,ADS_CREATION:10,BUSINESS_TOOLS:11,UPDATES:12});i.WEBC_NAVBAR_ITEM_LABEL=e}),66); __d("WAWebWebcNavbarWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumWebcNavbarItemLabel"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({WebcNavbar:[5258,{webcNavbarItemLabel:[1,o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL]},[1,1,1],"regular"]},{WebcNavbar:[]});l.WebcNavbarWamEvent=e}),98); __d("WAWebNavBarLogEvents",["WAWebWebcNavbarWamEvent"],(function(t,n,r,o,a,i,l){function e(e){var t=new(o("WAWebWebcNavbarWamEvent")).WebcNavbarWamEvent({webcNavbarItemLabel:e});t.commit()}l.logNavBarEvent=e}),98); __d("WAWebBetaNavBarItem.react",["fbt","WAWebBetaIcon.react","WAWebDrawerManager","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebSettingsConst","WAWebSettingsFlowLoadable","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebExternalBetaOptIn"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={betaIcon:{display:"x78zum5",alignItems:"x6s0dn4",height:"xxk0z11",marginInlineStart:"x4h0osi",$$css:!0}};function d(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,r=o("useWAWebExternalBetaOptIn").useExternalBetaOptIn(),a=r[0];if(!a)return null;var i=function(){t!==o("WAWebNavBarTypes").NavBarItems.Beta&&(n(o("WAWebNavBarTypes").NavBarItems.Beta),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:o("WAWebDrawerManager").closeDrawerLeft,initialStep:o("WAWebSettingsConst").SettingsSteps.Help}),{transition:"pop-drawer-fast"}),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS_HELP))},l=u.jsx(o("WAWebBetaIcon.react").BetaIcon,{xstyle:c.betaIcon}),d=s._(/*BTDS*/"Beta"),m=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:l,title:d,testid:void 0,isActive:t===o("WAWebNavBarTypes").NavBarItems.Beta,onClick:i});return m}d.displayName=d.name+" [from "+i.id+"]",l.BetaNavBarItem=d}),226); __d("WDSIconIcCampaignMegaphoneFilled.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-campaign-megaphone-filled";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M21.0967 12.9345H19.0967C18.8133 12.9345 18.5758 12.8387 18.3842 12.647C18.1925 12.4553 18.0967 12.2178 18.0967 11.9345C18.0967 11.6512 18.1925 11.4137 18.3842 11.222C18.5758 11.0303 18.8133 10.9345 19.0967 10.9345H21.0967C21.38 10.9345 21.6175 11.0303 21.8092 11.222C22.0008 11.4137 22.0967 11.6512 22.0967 11.9345C22.0967 12.2178 22.0008 12.4553 21.8092 12.647C21.6175 12.8387 21.38 12.9345 21.0967 12.9345ZM16.6967 16.7345C16.8633 16.5012 17.08 16.3678 17.3467 16.3345C17.6133 16.3012 17.8633 16.3678 18.0967 16.5345L19.6967 17.7345C19.93 17.9012 20.0633 18.1178 20.0967 18.3845C20.13 18.6512 20.0633 18.9012 19.8967 19.1345C19.73 19.3678 19.5133 19.5012 19.2467 19.5345C18.98 19.5678 18.73 19.5012 18.4967 19.3345L16.8967 18.1345C16.6633 17.9678 16.53 17.7512 16.4967 17.4845C16.4633 17.2178 16.53 16.9678 16.6967 16.7345ZM19.6967 6.13451L18.0967 7.33451C17.8633 7.50117 17.6133 7.56784 17.3467 7.53451C17.08 7.50117 16.8633 7.36784 16.6967 7.13451C16.53 6.90117 16.4633 6.65117 16.4967 6.38451C16.53 6.11784 16.6633 5.90117 16.8967 5.73451L18.4967 4.53451C18.73 4.36784 18.98 4.30117 19.2467 4.33451C19.5133 4.36784 19.73 4.50117 19.8967 4.73451C20.0633 4.96784 20.13 5.21784 20.0967 5.48451C20.0633 5.75117 19.93 5.96784 19.6967 6.13451ZM5.09668 14.9345H4.09668C3.54668 14.9345 3.07585 14.7387 2.68418 14.347C2.29251 13.9553 2.09668 13.4845 2.09668 12.9345V10.9345C2.09668 10.3845 2.29251 9.91367 2.68418 9.52201C3.07585 9.13034 3.54668 8.9345 4.09668 8.9345H8.09668L11.5717 6.83451C11.905 6.63451 12.2425 6.63451 12.5842 6.83451C12.9258 7.03451 13.0967 7.32617 13.0967 7.70951V16.1595C13.0967 16.5428 12.9258 16.8345 12.5842 17.0345C12.2425 17.2345 11.905 17.2345 11.5717 17.0345L8.09668 14.9345H7.09668V17.9345C7.09668 18.2178 7.00085 18.4553 6.80918 18.647C6.61751 18.8387 6.38001 18.9345 6.09668 18.9345C5.81335 18.9345 5.57585 18.8387 5.38418 18.647C5.19251 18.4553 5.09668 18.2178 5.09668 17.9345V14.9345ZM14.0967 15.2845V8.58451C14.5467 8.98451 14.9092 9.47201 15.1842 10.047C15.4592 10.622 15.5967 11.2512 15.5967 11.9345C15.5967 12.6178 15.4592 13.247 15.1842 13.822C14.9092 14.397 14.5467 14.8845 14.0967 15.2845Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebBizAdCreationNavBarItem.react",["fbt","WAWebActiveAccountInfoContext.react","WAWebAdCreationLogger","WAWebBizGatingUtils","WAWebChatlistUtils","WAWebMobilePlatforms","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebUISpacing","WAWebWamEnumLwiEntryPoint","WAWebWamEnumWebcNavbarItemLabel","WDSIconIcCampaignMegaphone.react","WDSIconIcCampaignMegaphoneFilled.react","react","useWAWebServerGatedAdEntryPoint"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useEffect;function m(e){var t,n=e.activeNavBarItem,a=o("WAWebActiveAccountInfoContext.react").useActiveAccountInfo(),i=o("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_ad_creation_home_screen_icon",a),l=i[0],u=i[1],m=s._(/*BTDS*/"Anunciar"),p=(t=u==null?void 0:u.content)!=null?t:s._(/*BTDS*/"Anunciar en Facebook");d(function(){a!=null&&o("WAWebAdCreationLogger").logAdCreationImpression(o("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON,a!=="not-linked"&&a.hasFacebookPage)},[a]);var _=function(){n!==o("WAWebNavBarTypes").NavBarItems.AdCreation&&(a!=null&&o("WAWebChatlistUtils").handleAdCreation({adCreationUrlInput:{activeAccountInfo:a,sourceAdCreation:"whatsapp_smb_web_ad_creation_home_screen_icon"},lwiEntryPoint:o("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON}),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.ADS_CREATION))},f=n===o("WAWebNavBarTypes").NavBarItems.AdCreation?c.jsx(r("WDSIconIcCampaignMegaphoneFilled.react"),{height:24,width:24}):c.jsx(r("WDSIconIcCampaignMegaphone.react"),{height:24,width:24}),g=c.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:f,title:o("WAWebBizGatingUtils").nativeAdsCreationEnabledNoExposure()?m:p,testid:void 0,isActive:n===o("WAWebNavBarTypes").NavBarItems.AdCreation,onClick:_,spacingXstyle:o("WAWebUISpacing").uiPadding.all8});return o("WAWebMobilePlatforms").isSMB()&&a!=null&&(a!=="not-linked"||o("WAWebBizGatingUtils").nativeAdsCreationEnabledNoExposure())&&!l&&o("WAWebBizGatingUtils").shouldShowAdCreationIcon()?g:null}m.displayName=m.name+" [from "+i.id+"]",l.BizAdCreationNavBarItem=m}),226); __d("WAWebBizCtwaPreviewFlowLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBizCtwaAdPreviewFlow.react").__setRef("WAWebBizCtwaPreviewFlowLoadable").load();return e}),"CtwaAdPreviewFlow"),d=r("react-loadable")({loader:c,loading:function(t){return u.jsx(r("WAWebLoadingDrawer.react"),{title:s._(/*BTDS*/"Vista previa del anuncio"),error:!!t.error})}});l.requireBundle=c,l.CtWAAdPreviewFlowLoadable=d}),226); __d("WAWebQueryCtwaContextJob",["WABase64","WADeprecatedSendIq","WADeprecatedWapParser","WALogger","WAWap","WAWapDeprecatedSmaxID","WAWebBackendErrors","WAWebCtwaAGMUtils","WAWebProtobufsE2E.pb","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){var e;function s(t){var n=t&&t.maybeAttrString("code"),r=t&&t.maybeAttrString("text");o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["getCtwaContext error: code "," text ",""])),n,r)}var u=new(r("WADeprecatedWapParser"))("ctwaContext",function(e){e.assertTag("iq"),e.assertFromServer();var t=e.child("context");if(e.hasChild("error"))throw s(e.child("error")),r("err")("invalid response");var n={sourceUrl:t.child("source").child("url").contentString(),sourceId:t.child("source").child("id").contentString(),sourceType:t.child("source").child("type").contentString()};t.hasChild("headline")&&(n.title=t.child("headline").contentString()),t.hasChild("body")&&(n.description=t.child("body").contentString()),t.hasChild("thumbnail")&&(t.child("thumbnail").hasChild("url")&&(n.thumbnailUrl=t.child("thumbnail").child("url").contentString()),t.child("thumbnail").hasChild("bytes")&&(n.thumbnail=o("WABase64").encodeB64(t.child("thumbnail").child("bytes").contentBytes())),t.hasChild("video")?(n.mediaUrl=t.child("video").child("url").contentString(),n.mediaType=o("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.VIDEO):n.mediaType=o("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.IMAGE);var a=t.maybeChild("sourceApp");a!=null&&(n.sourceApp=a.contentString());var i=o("WAWebCtwaAGMUtils").isWamoAGMIntegrationEnabled(n.sourceApp);if(i){t.hasChild("greetingMessageBody")&&(n.greetingMessageBody=t.child("greetingMessageBody").contentString()),t.hasChild("automatedGreetingMessageShown")&&(n.automatedGreetingMessageShown=t.child("automatedGreetingMessageShown").contentString()==="true");var l=t.maybeChild("ctaPayload");l!=null&&(n.ctaPayload=l.contentString());var u=t.maybeChild("originalImageUrl");u!=null&&(n.originalImageUrl=u.contentString())}return n});function c(e,t,n){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){var a,i=o("WAWebWidFactory").createWid(e).toString({legacy:!0}),l=(a=o("WAWap")).wap("iq",{xmlns:"fb:thrift_iq",id:a.generateId(),type:"get",to:a.S_WHATSAPP_NET,smax_id:a.SMAX_ID(r("WAWapDeprecatedSmaxID").CtwaGetContext)},a.wap("account_number",null,i),a.wap("code",null,t),a.wap("expected_source_url",null,n)),s=yield o("WADeprecatedSendIq").deprecatedSendIq(l,u);if(s.success)return s.result;throw new(o("WAWebBackendErrors")).ServerStatusCodeError(s.errorCode)}),d.apply(this,arguments)}l.default=c}),98); __d("WAWebBizQueryCtwaContextBridge",["Promise","WAWebQueryCtwaContextJob","err"],(function(t,n,r,o,a,i,l){var e;function s(t){var o=t.context,a=t.phone,i=t.sourceUrl;if(a==null||a===""||i==null||i===""||o==null||o==="")return(e||(e=n("Promise"))).reject(r("err")("Invalid params passed to fetchCtwaContextData"));var l=r("WAWebQueryCtwaContextJob")(a,o,i);return l}l.fetchCtwaContextData=s}),98); __d("WAWebBizQuickRepliesDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBizQuickRepliesDrawer.react").__setRef("WAWebBizQuickRepliesDrawerLoadable").load();return e}),"WAWebBizQuickRepliesDrawer"),c=r("react-loadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.WAWebBizQuickRepliesDrawerLoadable=c}),98); __d("WAWebBizSmbTosModal.react",["fbt","WALogger","WAWebConfirmPopup.react","WAWebConnModel","WAWebModalManager","WAWebSmbLearnMore.react","WAWebSocketModel","react","useWAWebListener","vulture"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react"));function d(){r("vulture")("xih5WpfVAJMeDiuzgf5dWD0of_I=");var t=s._(/*BTDS*/"Hemos actualizado las Condiciones del servicio de WhatsApp Business. Acepta las nuevas Condiciones en tu tel\u00e9fono para continuar usando WhatsApp Business."),n=function(){o("WAWebConnModel").Conn.smbTos||o("WAWebModalManager").ModalManager.close()};o("useWAWebListener").useListener(o("WAWebConnModel").Conn,"change:smbTos",n);var a=function(){o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["SMB: terms of service modal, user clicked logout"]))),o("WAWebModalManager").ModalManager.close(),o("WAWebSocketModel").Socket.logout()},i=s._(/*BTDS*/"Cerrar sesi\u00f3n"),l=a;return c.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:l,okText:i,children:[t,"\xA0",c.jsx(r("WAWebSmbLearnMore.react"),{})]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebBizToolsChatlistHeaderDropdownItem.react",["fbt","WAWebBizGatingUtils","WAWebBizToolsFlowLoadable","WAWebChatlistHeaderDropdownLogEvents","WAWebDrawerManager","WAWebDropdownItem.react","WAWebKeyboardTabUtils","WAWebNavBarTypes","WAWebStorefrontIcon.react","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumWebcMenuItemLabel","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.activeAccountInfo,n=e.updateActiveNavBarItem,a=e.useWdsMenuVersion,i=a===void 0?!1:a;if(!o("WAWebBizGatingUtils").isBizToolsDrawerEnabled())return null;var l=function(r){r==null||r.stopPropagation(),o("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(o("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.BUSINESS_TOOLS),n!=null&&n(o("WAWebNavBarTypes").NavBarItems.BizTools),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebBizToolsFlowLoadable").BizToolsFlowLoadable,{adsAccountInfo:t,entryPoint:o("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_CONVERSATIONS}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"})},c=s._(/*BTDS*/"Herramientas para la empresa"),d="mi-biz-tools menu-item";if(i)return u.jsx(r("WDSMenuItem.react"),{testid:void 0,Icon:o("WAWebStorefrontIcon.react").StorefrontIcon,onPress:l,title:c});var m=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:u.jsx(o("WAWebStorefrontIcon.react").StorefrontIcon,{}),action:l,children:c});return m}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebBizToolsNavBarItem.react",["fbt","WAWebBizGatingUtils","WAWebBizToolsFlowLoadable","WAWebBusinessProfileCollection","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebMobilePlatforms","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebNux","WAWebStorefrontFilledIcon.react","WAWebStorefrontIcon.react","WAWebUnreadActivityIndicator.react","WAWebUserPrefsMeUser","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebAudienceImportIsFeatureSupported","useWAWebForceUpdate","useWAWebListener","useWAWebNux"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useMemo,p=c.useState;function _(e){"use no forget";var t=e.activeAccountInfo,n=e.activeNavBarItem,a=e.updateActiveNavBarItem,i=o("WAWebMobilePlatforms").isSMB(),l=m(function(){return o("WAWebUserPrefsMeUser").getMePnUserOrThrow()},[]),u=p(!1),c=u[0],_=u[1];i&&o("WAWebBusinessProfileCollection").BusinessProfileCollection.find(l).then(function(){_(!0)});var f=m(function(){return o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(l)},[l]),g=o("useWAWebAudienceImportIsFeatureSupported").useWAWebAudienceImportIsFeatureSupported(),h=r("useWAWebNux")(o("WAWebNux").NUX.BUSINESS_BROADCAST_AUDIENCE_UPLOAD),y=h[0],C=o("useWAWebForceUpdate").useForceUpdateDONOTUSE();o("useWAWebListener").useListener(f,"change:profileOptions",C);var b=c&&!o("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(f),v=n===o("WAWebNavBarTypes").NavBarItems.BizTools?d.jsx(o("WAWebStorefrontFilledIcon.react").StorefrontFilledIcon,{}):d.jsx(o("WAWebStorefrontIcon.react").StorefrontIcon,{}),S=function(){n!==o("WAWebNavBarTypes").NavBarItems.BizTools&&(a(o("WAWebNavBarTypes").NavBarItems.BizTools),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(d.jsx(o("WAWebBizToolsFlowLoadable").BizToolsFlowLoadable,{adsAccountInfo:t,entryPoint:o("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_BUSINESS_TOOLS_TAB}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0}),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.BUSINESS_TOOLS))},R=s._(/*BTDS*/"Herramientas"),L=d.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:v,title:R,testid:void 0,isActive:n===o("WAWebNavBarTypes").NavBarItems.BizTools,onClick:S,inlineActivityIndicator:y&&g===!0?d.jsx(r("WAWebUnreadActivityIndicator.react"),{}):null,inlineActivityIndicatorType:o("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot});return i&&b&&o("WAWebBizGatingUtils").isBizToolsDrawerEnabled()?L:null}_.displayName=_.name+" [from "+i.id+"]",l.BizToolsNavBarItem=_}),226); __d("WAWebBotCommandSuggestionResult.react",["cx","WAWebBotCommandSuggestions.react","WAWebClassnames","WAWebDetailImage.react","WAWebEmojiText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t,n=e.command,r=e.imageWid,a=e.onMouseDown,i=e.onMouseEnter,l=e.onMouseUp,s=e.query,c=e.selected,d=n.description,m=n.name,p=m.slice(0,s.length),_=m.slice(s.length);return u.jsxs("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((t={},t._aopp=!0,t),{0:"x78zum5 x6s0dn4 x1qx5ct2 xyamay9 xl3akx1 x1l90r2v x11ahuha x6ikm8r x10wlt62 x1f6kntn xhslqc4 xlyipyv xuxw1ft xxymvpz",1:"x78zum5 x6s0dn4 x1qx5ct2 xyamay9 xl3akx1 x1l90r2v x11ahuha x6ikm8r x10wlt62 x1f6kntn xhslqc4 xlyipyv xuxw1ft xxymvpz x1ru9bj0"}[!!c<<0]),onMouseDown:a,onMouseUp:l,onMouseEnter:i,children:[r!=null&&u.jsx("div",{className:"x17pgkn5 xav9cv8 x1sa5p1d",children:u.jsx(o("WAWebDetailImage.react").DetailImage,{id:r,size:32})}),u.jsx(o("WAWebEmojiText.react").EmojiText,{className:"xyqdw3p x14ug900",text:o("WAWebBotCommandSuggestions.react").QUERY_TRIGGER}),u.jsx(o("WAWebEmojiText.react").EmojiText,{className:"xyqdw3p x117nqv4 x1v5yvga",text:p}),u.jsx(o("WAWebEmojiText.react").EmojiText,{className:"xyqdw3p x14ug900",text:_}),u.jsx(o("WAWebEmojiText.react").EmojiText,{className:"xyqdw3p x1hm9lzh xhslqc4 x1yc453h",testid:void 0,ellipsify:!0,text:d})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebBotCommandSuggestions.react",["Lexical","WAWebBotCommandSuggestionResult.react","WAWebBotProfileGetters","WAWebLexicalUtils","WAWebListSuggestionsPanel.react","WAWebUseBotProfileValues","react","useWAWebLexicalTypeAhead","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.useEffect,m=u.useMemo,p=u.useState,_="/",f=52,g=25;function h(e){var t,n=e.editor,a=e.kind,i=e.metaBotId,l=o("useWAWebModelValues").useOptionalModelValues(e.businessProfile,["id","commands"]),s=o("WAWebUseBotProfileValues").useOptionalBotProfileValues(i,[o("WAWebBotProfileGetters").getCommands]),u=s[0],h=(t=l==null?void 0:l.commands)!=null?t:u,C=i!=null?i:l==null?void 0:l.id,b=o("useWAWebLexicalTypeAhead").useTypeAhead(n,_,{boundary:!0,maxQueryLength:g}),v=b.omitQuery,S=b.query,R=b.replaceQuery,L=p(function(){return y(n)}),E=L[0],k=L[1];d(function(){return n.registerUpdateListener(function(){k(y(n))})},[n]);var I=function(t,n){return c.jsx(r("WAWebBotCommandSuggestionResult.react"),{command:t.command,query:t.query,selected:n,imageWid:C},t.itemKey)},T=function(t){var e=t.command;R(""+_+e.name+" ")},D=function(){v()},x=m(function(){return S==null||!h||E?null:h.filter(function(e){return e.name.toLowerCase().startsWith(S.toLowerCase())}).map(function(e,t){return{height:f,itemKey:e.name,contentKey:S,index:t,command:e,query:S,selectable:!0}})},[S,h,E]);return c.jsx(r("WAWebListSuggestionsPanel.react"),{kind:a,editor:n,items:x,renderItem:I,onSelect:T,onDismiss:D})}h.displayName=h.name+" [from "+i.id+"]";function y(e){return e.getEditorState().read(function(){for(var e of o("WAWebLexicalUtils").textNodesIterator(o("Lexical").$getRoot())){var t;if((t=e.getStyle())!=null&&t.includes("bot-command-text"))return!0}return!1})}l.QUERY_TRIGGER=_,l.BotCommandSuggestions=h}),98); __d("WAWebBotPluginCarouselWrapper.react",["cx","invariant","WANullthrows","WAWebCarouselNavigationButton","WAWebChevronButton.react","WAWebClassnames","WAWebCmd","WAWebDisplayType","WAWebDomScroll","WAWebErrorBoundary.react","WAWebKeyboardHotKeys.react","WAWebMediaLinkPreviewContainer.react","WAWebMsgGetters","WAWebProtobufsAICommon.pb","WAWebVelocityTransitionGroup","WAWebWrapperListeners.react","react","useWAWebCarouselScrollUtils","useWAWebListener"],(function(t,n,r,o,a,i,l,s,u){var e=["ref"],c,d,m=d||(d=o("react")),p=c||(c=r("react")),_=m.useCallback,f=m.useEffect,g=m.useImperativeHandle,h=m.useRef,y=m.useState,C=100;function b(t){var n,a,i,l,s=t.ref,c=babelHelpers.objectWithoutPropertiesLoose(t,e),d=h(null),m=c.botPluginCarouselId,b=c.isFocused,v=c.msgs,S=(n=v[0])==null||(n=n.id)==null||(n=n.remote)==null?void 0:n.isUser(),R=h(null),L=o("WAWebMsgGetters").getBotPluginType(v[0])===o("WAWebProtobufsAICommon.pb").BotPluginMetadata$PluginType.REELS,E=y(!0),k=E[0],I=E[1],T=y(null),D=T[0],x=T[1],$=y(!1),P=$[0],N=$[1],M=(a=o("WAWebMsgGetters").getBotResponseTargetId(v[0]))!=null?a:"NULL_MSG_BOT_PLUGIN_TARGET_ID";o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"bot_toggle_plugin_search_details_for_target_id_"+M,function(e){e===void 0&&(e=!0),I(e),self.setTimeout(function(){o("WAWebCmd").Cmd.scrollChatHeight(C)})});var w=_(function(e,t){var n=R.current;if(n){var r=n.offsetParent;r&&(r instanceof HTMLElement||u(0,56542),o("WAWebDomScroll").scrollAt(n,r,t).then(e))}},[]),A=function(){return d.current},F=function(){return r("WANullthrows")(R.current)};g(s,function(){return{getElement:A,getContainerElement:F}}),f(function(){D==null&&v.length>1&&x(!0)},[v,D]);var O=r("useWAWebCarouselScrollUtils")(d,N,x,v),B=O[0],W=O[1],q=v.toSorted(function(e,t){var n=e.botPluginReferenceIndex,r=t.botPluginReferenceIndex;return n!=null&&r!=null?n>r?1:-1:0}).map(function(e){return p.jsx("div",babelHelpers.extends({},{0:{},1:{className:"x1e03a83 x1vd4hg5"}}[!!L<<0],{children:p.jsx(o("WAWebMediaLinkPreviewContainer.react").LinkPreviewContainer,{msg:e.unsafe(),displayType:L?o("WAWebDisplayType").DISPLAY_TYPE.BOT_REELS_PLUGIN:o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION,theme:"bot_plugin_link"})}),e.id.id)}),U=P===!0?p.jsx(o("WAWebCarouselNavigationButton").CarouselNavigationButton,{buttonType:o("WAWebChevronButton.react").ButtonType.Prev,onButtonClick:function(){return W(!1)},displayType:L?o("WAWebChevronButton.react").ChevronButtonDisplayType.BotReelsPluginCarousel:o("WAWebChevronButton.react").ChevronButtonDisplayType.BotPluginCarousel}):null,V=D===!0?p.jsx(o("WAWebCarouselNavigationButton").CarouselNavigationButton,{buttonType:o("WAWebChevronButton.react").ButtonType.Next,onButtonClick:function(){return W(!0)},displayType:L?o("WAWebChevronButton.react").ChevronButtonDisplayType.BotReelsPluginCarousel:o("WAWebChevronButton.react").ChevronButtonDisplayType.BotPluginCarousel}):null,H=b?p.jsx(o("WAWebWrapperListeners.react").WhileFocusedListener,{parent:{scrollMsg:w}}):null;return p.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"bot-plugin-carousel",children:p.jsxs(o("WAWebKeyboardHotKeys.react").HotKeys,{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((i={},i._aopv=!0,i._aopw=!k,i._amjz=S,i._amjy=!S,i)),ref:R,tabIndex:-1,children:[p.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"bot-plugin-carousel",children:k?p.jsxs("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((l={},l._aopx=!0,l._amkd=!0,l._ap4k=!!L&&v.length===1,l._ap4m=!!L&&v.length===2,l._ap4n=!!L&&v.length===3,l)),children:[U,p.jsx("div",babelHelpers.extends({},{0:{className:"x1rife3k xlrljjx xp43t2z x5j5mwf xptal55 xjodkme x1xmf6yo xod5an3"},1:{className:"x1rife3k xlrljjx xp43t2z x5j5mwf xptal55 xjodkme x1xmf6yo xod5an3 x1rohswg"}}[(v.length===1)<<0],{onScroll:B,ref:d,children:p.jsx("div",babelHelpers.extends({},{0:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x75ztot"},8:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x2vq7qx xtfe9a7 xeq5yr9"},4:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x14atkfc x15x72sd"},12:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 x14atkfc x15x72sd"},2:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xwv353n"},10:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x2vq7qx xtfe9a7 xwv353n"},6:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x15x72sd xwv353n"},14:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 x15x72sd xwv353n"},1:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x75ztot xgqtt45"},9:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 xeq5yr9 xgqtt45"},5:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x14atkfc xgqtt45"},13:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 x14atkfc xgqtt45"},3:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xwv353n xgqtt45"},11:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 xwv353n xgqtt45"},7:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xwv353n xgqtt45"},15:{className:"x123j3cw x1gabggj xs9asl8 xaso8d8 xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 xwv353n xgqtt45"}}[!!L<<3|(v.length===1)<<2|(v.length===2)<<1|(v.length===4)<<0],{"data-id":m,children:q}))})),V]}):null}),H]})})}b.displayName=b.name+" [from "+i.id+"]",l.default=b}),98); __d("WAWebBotSuggestions.react",["WAWebBotProfileGetters","WAWebUISpacing","WAWebUseBotProfileValues","WAWebUseBusinessProfile.react","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={container:{display:"x78zum5",position:"x10l6tqk",bottom:"xmgkm54",maxHeight:"x1nu74zi",overflowX:"x14aock7",whiteSpace:"xuxw1ft",width:"x19sv2k2",$$css:!0},pill:{fontSize:"x1f6kntn",lineHeight:"xdod15v",borderStartStartRadius:"x12l2aii",borderStartEndRadius:"x1mbk4o",borderEndEndRadius:"x14vvt0a",borderEndStartRadius:"x1w3ol1v",fontWeight:"xk50ysn",backgroundColor:"x1w7vc3g",cursor:"x1ypdohk",$$css:!0},emoji:{display:"x1rg5ohu",$$css:!0}};function d(e){var t=e.id,n=e.onPromptSelect,a=o("WAWebUseBusinessProfile.react").useBusinessProfile(t,["prompts"]),i=o("WAWebUseBotProfileValues").useOptionalBotProfileValues(t,[o("WAWebBotProfileGetters").getPrompts]),l=i[0],d=l!=null?l:a==null?void 0:a.prompts;return d==null||d.length===0?null:u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.container,o("WAWebUISpacing").uiPadding.vert8,o("WAWebUISpacing").uiPadding.horiz20),{children:d.map(function(e){return u.jsx(m,{prompt:e,onClick:function(){n(e.text)}},e.text)})}))}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.onClick,n=e.prompt;return u.jsxs("div",babelHelpers.extends({onClick:t},(s||(s=r("stylex"))).props(c.pill,o("WAWebUISpacing").uiPadding.vert8,o("WAWebUISpacing").uiPadding.start12,o("WAWebUISpacing").uiPadding.end16,o("WAWebUISpacing").uiMargin.horiz4),{children:[u.jsx("span",babelHelpers.extends({},s.props(c.emoji,o("WAWebUISpacing").uiMargin.end4),{children:n.emoji})),u.jsx("span",{children:n.text})]}))}m.displayName=m.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebBugnubNavBarItem.react",["WAWebBugnubLoadable","WAWebBugnubRefreshedIcon.react","WAWebCurrentUser","WAWebNavBarItem.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(){var e=function(){r("WAWebBugnubLoadable")()},t="Report a bug (internal)",n=s.jsx(o("WAWebNavBarItem.react").NavBarItem,{testid:void 0,icon:s.jsx(o("WAWebBugnubRefreshedIcon.react").BugnubRefreshedIcon,{}),title:t,onClick:e,isActive:!1});return o("WAWebCurrentUser").isEmployee()?n:null}u.displayName=u.name+" [from "+i.id+"]",l.BugnubNavBarItem=u}),98); __d("WAWebUserPrefsEvents",["WATimeUtils","WAWebUserPrefsKeys","WAWebUserPrefsStore"],(function(t,n,r,o,a,i,l){var e=null;function s(){if(e!=null)return e;var t=parseInt(r("WAWebUserPrefsStore").getUser(o("WAWebUserPrefsKeys").UserPrefs.CagEventsAwarenessBannerFirstSeenTimestamp),10);return Number.isNaN(t)||(e=o("WATimeUtils").castToUnixTime(t)),e}function u(){r("WAWebUserPrefsStore").setUser(o("WAWebUserPrefsKeys").UserPrefs.CagEventsAwarenessBannerFirstSeenTimestamp,o("WATimeUtils").unixTime())}function c(){var e=s();return e==null?o("WATimeUtils").unixTime():o("WATimeUtils").futureUnixTime(o("WATimeUtils").WEEK_SECONDS,e)}l.getCagEventsAwarenessBannerFirstSeenTimestamp=s,l.setCagEventsAwarenessBannerFirstSeenTimestamp=u,l.getCagEventsAwarenessBannerAutoDismissalExpiration=c}),98); __d("WAWebCagEventsAwarenessBanner.react",["fbt","WAWebAnnouncementSpeakerIcon.react","WAWebConversationBanner.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebFlexItem.react","WAWebTabOrder","WAWebText.react","WAWebUISpacing","WAWebUimUie.react","WAWebUserPrefsEvents","react","useWAWebTimeout"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={banner:{backgroundColor:"x1280gxy",$$css:!0},announcementSpeaker:{color:"xo1mcw5",$$css:!0}};function d(e){var t=e.onClose,n=e.ref;o("WAWebUserPrefsEvents").getCagEventsAwarenessBannerFirstSeenTimestamp()||o("WAWebUserPrefsEvents").setCagEventsAwarenessBannerFirstSeenTimestamp(),o("useWAWebTimeout").useAlarm(t,o("WAWebUserPrefsEvents").getCagEventsAwarenessBannerAutoDismissalExpiration(),{immediate:!0,isGlobal:!0});var a=o("WAWebFaqUrl").getEventsLearnMoreFaqUrl(),i=o("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON;return u.jsx(o("WAWebUimUie.react").UIE,{displayName:"CagEventsAwarenessBanner",escapable:!0,children:u.jsx(r("WAWebConversationBanner.react"),{ref:n,xstyle:c.banner,onClose:t,"data-tab":i,children:u.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",children:[u.jsx(r("WAWebFlexItem.react"),{xstyle:o("WAWebUISpacing").uiPadding.end18,children:u.jsx(o("WAWebAnnouncementSpeakerIcon.react").AnnouncementSpeakerIcon,{iconXstyle:c.announcementSpeaker,width:40,height:40})}),u.jsx(r("WAWebFlexItem.react"),{children:u.jsxs(o("WAWebText.react").WAWebTextMuted,{as:"span",children:[s._(/*BTDS*/"Crea eventos en los grupos de avisos.")," ",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:a,tabIndex:0,"data-tab":i,children:r("WAWebFbtCommon")("Learn more")})]})})]})})})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebCallRingtone",["WAWebCallCollection","WAWebNoop","WAWebVoipWaCallEnums","bx","once"],(function(t,n,r,o,a,i,l){var e=new window.Audio(r("bx").getURL(r("bx")("78755")));e.loop=!0;function s(){var e=r("WAWebCallCollection").activeCall;if(e==null)return!1;var t=e.getState();return t===o("WAWebVoipWaCallEnums").CallState.ReceivedCall||t===o("WAWebVoipWaCallEnums").CallState.ReceivedCallWithoutOffer}var u=r("once")(function(){e.addEventListener("playing",function(){s()||(e.pause(),e.currentTime=0)})});function c(){u(),e.play().catch(r("WAWebNoop"))}function d(){try{e.pause(),e.currentTime=0}catch(e){}}l.playCallRingtone=c,l.stopCallRingtone=d}),98); __d("WAWebCallsNavBarItemLoadable.react",["JSResourceForInteraction","WALogger","WAWebEnvironment","WAWebLazyLoadedRetriable","WAWebLoadable","asyncToGeneratorRuntime","react","useWAWebABPropConfigValue"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{var t=yield r("JSResourceForInteraction")("WAWebCallsNavBarItem.react").__setRef("WAWebCallsNavBarItemLoadable.react").load();return t}catch(t){throw o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Failed to load WAWebCallsNavBarItem bundle: ",""])),t),t}}),"WAWebCallsNavBarItemLoadable"),d=r("WAWebLoadable")({loader:c,loading:function(t){return u.jsx(u.Fragment,{})}});function m(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,a=o("useWAWebABPropConfigValue").useABPropConfigValue("enable_web_calls_tab");return!r("WAWebEnvironment").isWindows&&!a?null:u.jsx(d,{activeNavBarItem:t,updateActiveNavBarItem:n})}m.displayName=m.name+" [from "+i.id+"]",l.CallsNavBarItemLoadable=m}),98); __d("WAWebCaptureMediaDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebCaptureMediaDrawer.react").__setRef("WAWebCaptureMediaDrawerLoadable").load();return e}),"CaptureMediaDrawer"),c=r("react-loadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.requireBundle=u,l.CaptureMediaDrawerLoadable=c}),98); __d("WAWebCatalogChatlistHeaderDropdownItem.react",["fbt","WAWebBizGatingUtils","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebCatalogManagementFlowLoadable","WAWebChatlistHeaderDropdownLogEvents","WAWebConfirmPopup.react","WAWebDropdownItem.react","WAWebGridRefreshedIcon.react","WAWebMobilePlatforms","WAWebModalManager","WAWebProductCatalogMetaLinkingGatingUtils","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebShopsLog","WAWebUserPrefsMeUser","WAWebWamEnumCatalogEntryPoint","WAWebWamEnumShopsManagementAction","WAWebWamEnumWebcMenuItemLabel","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t,a=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),i=o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(a);if(!(o("WAWebMobilePlatforms").isSMB()&&!o("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(i)&&!o("WAWebProductCatalogMetaLinkingGatingUtils").shouldDisableCatalogDueToMetaLinkingForSelf()))return null;var l=o("WAWebProductCatalogMetaLinkingGatingUtils").shouldShowMetaLinkedDisabledCatalogTooltipForSelf(),c=o("WAWebBusinessProfileUtils").hasShop(i),d=function(){o("WAWebBusinessProfileUtils").goToCommerceManager(i),o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_COMMERCE_MANAGER_IN_CATALOG_SETTING)},m=function(t){if(t==null||t.preventDefault(),c){var e=o("WAWebBizGatingUtils").bannedShopsEnabled()&&o("WAWebBusinessProfileUtils").isShopBanned(i);o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"Cat\u00e1logo desactivado"),onOK:d,okText:s._(/*BTDS*/"Admin. de ventas"),onCancel:function(){o("WAWebModalManager").ModalManager.close(),o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CANCEL_IN_CATALOG_SETTING)},children:e?s._(/*BTDS*/"No puedes restaurar el cat\u00e1logo en este momento porque se desactiv\u00f3 la tienda debido a que no cumple con nuestras pol\u00edticas. Obt\u00e9n m\u00e1s informaci\u00f3n en el administrador de ventas."):s._(/*BTDS*/"Tu cat\u00e1logo est\u00e1 desactivado temporalmente porque WhatsApp es un canal de ventas para tu tienda. Si quieres restaurar tu cat\u00e1logo, ve al administrador de ventas y configura la visibilidad de la tienda como \"oculta\" o quita WhatsApp de la cuenta del administrador comercial.")})),o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CATALOG_SETTING)}else o("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(o("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_CATALOG_COLLECTIONS_VIEW,{annotations:{string:{EntryPoint:"ToolsMenu"}}}),o("WAWebCatalogManagementFlowLoadable").openCatalogManagementFlow({entryPoint:o("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_SETTINGS,isInitialStep:!0}),o("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(o("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.CATALOG)},p=c?s._(/*BTDS*/"Cat\u00e1logo (desactivado temporalmente)"):s._(/*BTDS*/"Cat\u00e1logo"),_="mi-catalog menu-item";if(n)return u.jsx(r("WDSMenuItem.react"),{testid:void 0,Icon:o("WAWebGridRefreshedIcon.react").GridRefreshedIcon,onPress:m,title:p,disabled:l});var f=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{icon:u.jsx(o("WAWebGridRefreshedIcon.react").GridRefreshedIcon,{}),tooltip:l?o("WAWebProductCatalogMetaLinkingGatingUtils").getDisabledMetaLinkedCatalogTooltipText():null,testid:void 0,disabled:l,action:m,children:p});return f}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebChannelOpenWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumChannelEntryPoint","WAWebWamEnumChannelEntryPointMetadata","WAWebWamEnumChannelUserType","WAWebWamEnumTsSurface"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({ChannelOpen:[4316,{channelDirectorySessionId:[8,e.TYPES.INTEGER],channelDiscoveryQueryId:[18,e.TYPES.STRING],channelDiscoverySearchId:[19,e.TYPES.STRING],channelEntryPoint:[1,o("WAWebWamEnumChannelEntryPoint").CHANNEL_ENTRY_POINT],channelEntryPointMetadata:[9,o("WAWebWamEnumChannelEntryPointMetadata").CHANNEL_ENTRY_POINT_METADATA],channelSessionId:[3,e.TYPES.INTEGER],channelUserType:[4,o("WAWebWamEnumChannelUserType").CHANNEL_USER_TYPE],cid:[6,e.TYPES.STRING],discoverySurface:[15,o("WAWebWamEnumTsSurface").TS_SURFACE],entryPointMetadata:[12,e.TYPES.STRING],hasNetworkConnection:[7,e.TYPES.BOOLEAN],isPremium:[14,e.TYPES.BOOLEAN],similarChannelsSessionId:[11,e.TYPES.INTEGER],unifiedSessionId:[16,e.TYPES.STRING],unreadMessages:[5,e.TYPES.INTEGER],unreadPremiumMessages:[13,e.TYPES.INTEGER],updatesTabSessionId:[17,e.TYPES.INTEGER]},[1,1,1],"regular"]},{ChannelOpen:[]});l.ChannelOpenWamEvent=s}),98); __d("WAWebChatFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="chat-filled-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.0002 6.66667C22.0002 5.19391 20.8062 4 19.3335 4H1.79015C1.01286 4 0.540213 4.86348 0.940127 5.53L3.00016 9V17.3333C3.00016 18.8061 4.19406 20 5.66682 20H19.3335C20.8062 20 22.0002 18.8061 22.0002 17.3333V6.66667ZM7.00016 10C7.00016 9.44772 7.44787 9 8.00016 9H17.0002C17.5524 9 18.0002 9.44772 18.0002 10C18.0002 10.5523 17.5524 11 17.0002 11H8.00016C7.44787 11 7.00016 10.5523 7.00016 10ZM8.00016 13C7.44787 13 7.00016 13.4477 7.00016 14C7.00016 14.5523 7.44787 15 8.00016 15H14.0002C14.5524 15 15.0002 14.5523 15.0002 14C15.0002 13.4477 14.5524 13 14.0002 13H8.00016Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ChatFilledRefreshedIcon=m}),98); __d("WAWebLabelFlowLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBizLabelFlow.react").__setRef("WAWebLabelFlowLoadable").load();return e}),"LabelFlow"),d=r("react-loadable")({loader:c,loading:function(t){return u.jsx(r("WAWebLoadingDrawer.react"),{title:s._(/*BTDS*/"Etiquetas"),error:!!t.error})}});l.requireBundle=c,l.LabelFlowLoadable=d}),226); __d("WAWebListsChatlistHeaderDropdownItem.react",["fbt","WAWebChatlistHeaderDropdownLogEvents","WAWebDrawerManager","WAWebDropdownItem.react","WAWebLabelFlowLoadable","WAWebLabelOutlineIcon.react","WAWebListPeopleIcon.react","WAWebListsGatingUtils","WAWebMobilePlatforms","WAWebWamEnumWebcMenuItemLabel","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t;if(!o("WAWebMobilePlatforms").isSMB())return null;var a=o("WAWebListsGatingUtils").isListsEnabled(),i=function(t){t==null||t.stopPropagation(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebLabelFlowLoadable").LabelFlowLoadable,{isInitialStep:!0})),o("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(o("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.LABELS)},l=a?s._(/*BTDS*/"Listas"):s._(/*BTDS*/"Etiquetas"),c=a?"mi-lists menu-item":"mi-labels menu-item",d=a?u.jsx(o("WAWebListPeopleIcon.react").ListPeopleIcon,{}):u.jsx(o("WAWebLabelOutlineIcon.react").LabelOutlineIcon,{});if(n)return u.jsx(r("WDSMenuItem.react"),{testid:void 0,Icon:a?o("WAWebListPeopleIcon.react").ListPeopleIcon:o("WAWebLabelOutlineIcon.react").LabelOutlineIcon,onPress:i,title:l});var m=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d,action:i,children:l});return m}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebLogoutChatlistHeaderDropdownItem.react",["fbt","WAWebChatlistHeaderDropdownLogEvents","WAWebConfirmLogoutModal.react","WAWebDropdownItem.react","WAWebExitRefreshedIcon.react","WAWebModalManager","WAWebWamEnumWebcMenuItemLabel","WAWebWamUtils","WDSIconIcLogout.react","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t,a=function(t){t==null||t.stopPropagation(),o("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(o("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.LOG_OUT),o("WAWebWamUtils").forceFlushAllWamAndQplBuffers(),o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebConfirmLogoutModal.react"),{checkUnsent:!0}))},i=s._(/*BTDS*/"Cerrar sesi\u00f3n"),l="mi-logout menu-item",c=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:u.jsx(o("WAWebExitRefreshedIcon.react").ExitRefreshedIcon,{}),action:a,theme:o("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:i}),d=u.jsx(r("WDSMenuItem.react"),{Icon:r("WDSIconIcLogout.react"),title:i,onPress:a,testid:void 0,destructive:!0});return n?d:c}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebManageAdsDropdownItem.react",["fbt","WAWebAdCreationLogger","WAWebAdsStackRefreshedIcon.react","WAWebChatlistUtils","WAWebDropdownItem.react","WAWebWamEnumManageAdsEntryPoint","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useEffect;function m(e){var t=e.activeAccountInfo,n=e.useWdsMenuVersion,a=n===void 0?!1:n;d(function(){o("WAWebAdCreationLogger").logManageAdsEntryPointImpression(o("WAWebWamEnumManageAdsEntryPoint").MANAGE_ADS_ENTRY_POINT.WEB_OVERFLOW_MENU)},[t]);var i=function(n){n==null||n.preventDefault(),o("WAWebChatlistUtils").handleManageAds(t,"whatsapp_smb_web_manage_ads_home_menu_item",o("WAWebWamEnumManageAdsEntryPoint").MANAGE_ADS_ENTRY_POINT.WEB_OVERFLOW_MENU)},l=s._(/*BTDS*/"Administrar anuncios"),u="manage-ads-menu-item";return a?c.jsx(r("WDSMenuItem.react"),{testid:void 0,Icon:o("WAWebAdsStackRefreshedIcon.react").AdsStackRefreshedIcon,onPress:i,title:l}):c.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:c.jsx(o("WAWebAdsStackRefreshedIcon.react").AdsStackRefreshedIcon,{directional:!0}),action:i,children:l})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebMarkAllChatsAsReadChatlistHeaderDropdownItem.react",["fbt","WAWebChatCollection","WAWebChatMessageSearch","WAWebChatRefreshedIcon.react","WAWebChatSearchFilters","WAWebConfirmPopup.react","WAWebDropdownItem.react","WAWebFrontendChatGetters","WAWebModalManager","WAWebUpdateUnreadChatAction","WDSIconWdsIcChat.react","WDSMenuItem.react","promiseDone","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t,a=function(){var e=o("WAWebChatCollection").ChatCollection.filter(function(e){if(!o("WAWebFrontendChatGetters").getShouldAppearInList(e))return!1;var t=o("WAWebChatMessageSearch").matchFilter(e,{kind:o("WAWebChatSearchFilters").SearchFilters.UNREAD}),n=e.archive;return t&&!n});e.forEach(function(e){var t=!1;r("promiseDone")(o("WAWebUpdateUnreadChatAction").markUnread(e,t,!1))})},i=function(t){t==null||t.stopPropagation(),o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"\u00bfDeseas marcar todos los chats como le\u00eddos?"),onOK:function(){o("WAWebModalManager").ModalManager.close(),a()},onCancel:function(){o("WAWebModalManager").ModalManager.close()}}))},l=s._(/*BTDS*/"Marcar todos como le\u00eddos"),c="mi-mark-all-as-read",d=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{icon:u.jsx(o("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{}),testid:void 0,action:i,children:l}),m=u.jsx(r("WDSMenuItem.react"),{Icon:r("WDSIconWdsIcChat.react"),title:l,onPress:i,testid:void 0});return n?m:d}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebNewGroupChatlistHeaderDropdownItem.react",["fbt","WAWebChatlistHeaderDropdownLogEvents","WAWebDrawerManager","WAWebDropdownItem.react","WAWebModalManager","WAWebNewGroupFlowLoadable","WAWebNewGroupRefreshedIcon.react","WAWebReachoutTimelockRestrictedModalLoadable","WAWebReachoutTimelockUtils","WAWebWamEnumWebcMenuItemLabel","WDSIconIcGroupAdd.react","WDSMenuItem.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,a=t===void 0?!1:t,i=function(t){if(o("WAWebReachoutTimelockUtils").isUserReachoutTimelocked()){o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebReachoutTimelockRestrictedModalLoadable").ReachoutTimelockRestrictedModalLoadable,{}));return}t==null||t.stopPropagation(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebNewGroupFlowLoadable").NewGroupFlowLoadable,{onEnd:o("WAWebDrawerManager").closeDrawerLeft,onCreateGroup:(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){yield e,o("WAWebDrawerManager").DrawerManager.closeDrawerLeft()});return function(t){return e.apply(this,arguments)}})(),isSubFlow:!1})),o("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(o("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.NEW_GROUP)},l=s._(/*BTDS*/"Nuevo grupo"),c="mi-new-group menu-item",d=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:u.jsx(o("WAWebNewGroupRefreshedIcon.react").NewGroupRefreshedIcon,{}),action:i,children:l}),m=u.jsx(r("WDSMenuItem.react"),{Icon:r("WDSIconIcGroupAdd.react"),title:l,onPress:i,testid:void 0});return a?m:d}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebOrderManagementFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBizOrderManagementFlow.react").__setRef("WAWebOrderManagementFlowLoadable").load();return e}),"OrderManagementFlow"),c=r("react-loadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}}),d=c;l.default=d}),98); __d("WAWebReceiptRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="receipt-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M3 21.4V2.59995C3 2.48328 3.05 2.40412 3.15 2.36245C3.25 2.32078 3.34167 2.34162 3.425 2.42495L4.15 3.14995C4.25 3.24995 4.36667 3.29995 4.5 3.29995C4.63333 3.29995 4.75 3.24995 4.85 3.14995L5.65 2.34995C5.75 2.24995 5.86667 2.19995 6 2.19995C6.13333 2.19995 6.25 2.24995 6.35 2.34995L7.15 3.14995C7.25 3.24995 7.36667 3.29995 7.5 3.29995C7.63333 3.29995 7.75 3.24995 7.85 3.14995L8.65 2.34995C8.75 2.24995 8.86667 2.19995 9 2.19995C9.13333 2.19995 9.25 2.24995 9.35 2.34995L10.15 3.14995C10.25 3.24995 10.3667 3.29995 10.5 3.29995C10.6333 3.29995 10.75 3.24995 10.85 3.14995L11.65 2.34995C11.75 2.24995 11.8667 2.19995 12 2.19995C12.1333 2.19995 12.25 2.24995 12.35 2.34995L13.15 3.14995C13.25 3.24995 13.3667 3.29995 13.5 3.29995C13.6333 3.29995 13.75 3.24995 13.85 3.14995L14.65 2.34995C14.75 2.24995 14.8667 2.19995 15 2.19995C15.1333 2.19995 15.25 2.24995 15.35 2.34995L16.15 3.14995C16.25 3.24995 16.3667 3.29995 16.5 3.29995C16.6333 3.29995 16.75 3.24995 16.85 3.14995L17.65 2.34995C17.75 2.24995 17.8667 2.19995 18 2.19995C18.1333 2.19995 18.25 2.24995 18.35 2.34995L19.15 3.14995C19.25 3.24995 19.3667 3.29995 19.5 3.29995C19.6333 3.29995 19.75 3.24995 19.85 3.14995L20.575 2.42495C20.6583 2.34162 20.75 2.32078 20.85 2.36245C20.95 2.40412 21 2.48328 21 2.59995V21.4C21 21.5166 20.95 21.5958 20.85 21.6375C20.75 21.6791 20.6583 21.6583 20.575 21.575L19.85 20.85C19.75 20.75 19.6333 20.7 19.5 20.7C19.3667 20.7 19.25 20.75 19.15 20.85L18.35 21.65C18.25 21.75 18.1333 21.8 18 21.8C17.8667 21.8 17.75 21.75 17.65 21.65L16.85 20.85C16.75 20.75 16.6333 20.7 16.5 20.7C16.3667 20.7 16.25 20.75 16.15 20.85L15.35 21.65C15.25 21.75 15.1333 21.8 15 21.8C14.8667 21.8 14.75 21.75 14.65 21.65L13.85 20.85C13.75 20.75 13.6333 20.7 13.5 20.7C13.3667 20.7 13.25 20.75 13.15 20.85L12.35 21.65C12.25 21.75 12.1333 21.8 12 21.8C11.8667 21.8 11.75 21.75 11.65 21.65L10.85 20.85C10.75 20.75 10.6333 20.7 10.5 20.7C10.3667 20.7 10.25 20.75 10.15 20.85L9.35 21.65C9.25 21.75 9.13333 21.8 9 21.8C8.86667 21.8 8.75 21.75 8.65 21.65L7.85 20.85C7.75 20.75 7.63333 20.7 7.5 20.7C7.36667 20.7 7.25 20.75 7.15 20.85L6.35 21.65C6.25 21.75 6.13333 21.8 6 21.8C5.86667 21.8 5.75 21.75 5.65 21.65L4.85 20.85C4.75 20.75 4.63333 20.7 4.5 20.7C4.36667 20.7 4.25 20.75 4.15 20.85L3.425 21.575C3.34167 21.6583 3.25 21.6791 3.15 21.6375C3.05 21.5958 3 21.5166 3 21.4ZM7 17H17C17.2833 17 17.5208 16.9041 17.7125 16.7125C17.9042 16.5208 18 16.2833 18 16C18 15.7166 17.9042 15.4791 17.7125 15.2875C17.5208 15.0958 17.2833 15 17 15H7C6.71667 15 6.47917 15.0958 6.2875 15.2875C6.09583 15.4791 6 15.7166 6 16C6 16.2833 6.09583 16.5208 6.2875 16.7125C6.47917 16.9041 6.71667 17 7 17ZM7 13H17C17.2833 13 17.5208 12.9041 17.7125 12.7125C17.9042 12.5208 18 12.2833 18 12C18 11.7166 17.9042 11.4791 17.7125 11.2875C17.5208 11.0958 17.2833 11 17 11H7C6.71667 11 6.47917 11.0958 6.2875 11.2875C6.09583 11.4791 6 11.7166 6 12C6 12.2833 6.09583 12.5208 6.2875 12.7125C6.47917 12.9041 6.71667 13 7 13ZM7 8.99995H17C17.2833 8.99995 17.5208 8.90412 17.7125 8.71245C17.9042 8.52078 18 8.28328 18 7.99995C18 7.71662 17.9042 7.47912 17.7125 7.28745C17.5208 7.09578 17.2833 6.99995 17 6.99995H7C6.71667 6.99995 6.47917 7.09578 6.2875 7.28745C6.09583 7.47912 6 7.71662 6 7.99995C6 8.28328 6.09583 8.52078 6.2875 8.71245C6.47917 8.90412 6.71667 8.99995 7 8.99995ZM5 19.1H19V4.89995H5V19.1Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ReceiptRefreshedIcon=m}),98); __d("WDSIconIcReceipt.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-receipt";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M3 21.4V2.59995C3 2.48328 3.05 2.40412 3.15 2.36245C3.25 2.32078 3.34167 2.34162 3.425 2.42495L4.15 3.14995C4.25 3.24995 4.36667 3.29995 4.5 3.29995C4.63333 3.29995 4.75 3.24995 4.85 3.14995L5.65 2.34995C5.75 2.24995 5.86667 2.19995 6 2.19995C6.13333 2.19995 6.25 2.24995 6.35 2.34995L7.15 3.14995C7.25 3.24995 7.36667 3.29995 7.5 3.29995C7.63333 3.29995 7.75 3.24995 7.85 3.14995L8.65 2.34995C8.75 2.24995 8.86667 2.19995 9 2.19995C9.13333 2.19995 9.25 2.24995 9.35 2.34995L10.15 3.14995C10.25 3.24995 10.3667 3.29995 10.5 3.29995C10.6333 3.29995 10.75 3.24995 10.85 3.14995L11.65 2.34995C11.75 2.24995 11.8667 2.19995 12 2.19995C12.1333 2.19995 12.25 2.24995 12.35 2.34995L13.15 3.14995C13.25 3.24995 13.3667 3.29995 13.5 3.29995C13.6333 3.29995 13.75 3.24995 13.85 3.14995L14.65 2.34995C14.75 2.24995 14.8667 2.19995 15 2.19995C15.1333 2.19995 15.25 2.24995 15.35 2.34995L16.15 3.14995C16.25 3.24995 16.3667 3.29995 16.5 3.29995C16.6333 3.29995 16.75 3.24995 16.85 3.14995L17.65 2.34995C17.75 2.24995 17.8667 2.19995 18 2.19995C18.1333 2.19995 18.25 2.24995 18.35 2.34995L19.15 3.14995C19.25 3.24995 19.3667 3.29995 19.5 3.29995C19.6333 3.29995 19.75 3.24995 19.85 3.14995L20.575 2.42495C20.6583 2.34162 20.75 2.32078 20.85 2.36245C20.95 2.40412 21 2.48328 21 2.59995V21.4C21 21.5166 20.95 21.5958 20.85 21.6375C20.75 21.6791 20.6583 21.6583 20.575 21.575L19.85 20.85C19.75 20.75 19.6333 20.7 19.5 20.7C19.3667 20.7 19.25 20.75 19.15 20.85L18.35 21.65C18.25 21.75 18.1333 21.8 18 21.8C17.8667 21.8 17.75 21.75 17.65 21.65L16.85 20.85C16.75 20.75 16.6333 20.7 16.5 20.7C16.3667 20.7 16.25 20.75 16.15 20.85L15.35 21.65C15.25 21.75 15.1333 21.8 15 21.8C14.8667 21.8 14.75 21.75 14.65 21.65L13.85 20.85C13.75 20.75 13.6333 20.7 13.5 20.7C13.3667 20.7 13.25 20.75 13.15 20.85L12.35 21.65C12.25 21.75 12.1333 21.8 12 21.8C11.8667 21.8 11.75 21.75 11.65 21.65L10.85 20.85C10.75 20.75 10.6333 20.7 10.5 20.7C10.3667 20.7 10.25 20.75 10.15 20.85L9.35 21.65C9.25 21.75 9.13333 21.8 9 21.8C8.86667 21.8 8.75 21.75 8.65 21.65L7.85 20.85C7.75 20.75 7.63333 20.7 7.5 20.7C7.36667 20.7 7.25 20.75 7.15 20.85L6.35 21.65C6.25 21.75 6.13333 21.8 6 21.8C5.86667 21.8 5.75 21.75 5.65 21.65L4.85 20.85C4.75 20.75 4.63333 20.7 4.5 20.7C4.36667 20.7 4.25 20.75 4.15 20.85L3.425 21.575C3.34167 21.6583 3.25 21.6791 3.15 21.6375C3.05 21.5958 3 21.5166 3 21.4ZM7 17H17C17.2833 17 17.5208 16.9041 17.7125 16.7125C17.9042 16.5208 18 16.2833 18 16C18 15.7166 17.9042 15.4791 17.7125 15.2875C17.5208 15.0958 17.2833 15 17 15H7C6.71667 15 6.47917 15.0958 6.2875 15.2875C6.09583 15.4791 6 15.7166 6 16C6 16.2833 6.09583 16.5208 6.2875 16.7125C6.47917 16.9041 6.71667 17 7 17ZM7 13H17C17.2833 13 17.5208 12.9041 17.7125 12.7125C17.9042 12.5208 18 12.2833 18 12C18 11.7166 17.9042 11.4791 17.7125 11.2875C17.5208 11.0958 17.2833 11 17 11H7C6.71667 11 6.47917 11.0958 6.2875 11.2875C6.09583 11.4791 6 11.7166 6 12C6 12.2833 6.09583 12.5208 6.2875 12.7125C6.47917 12.9041 6.71667 13 7 13ZM7 8.99995H17C17.2833 8.99995 17.5208 8.90412 17.7125 8.71245C17.9042 8.52078 18 8.28328 18 7.99995C18 7.71662 17.9042 7.47912 17.7125 7.28745C17.5208 7.09578 17.2833 6.99995 17 6.99995H7C6.71667 6.99995 6.47917 7.09578 6.2875 7.28745C6.09583 7.47912 6 7.71662 6 7.99995C6 8.28328 6.09583 8.52078 6.2875 8.71245C6.47917 8.90412 6.71667 8.99995 7 8.99995ZM5 19.1H19V4.89995H5V19.1Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebOrdersChatlistHeaderDropdownItem.react",["fbt","WAWebBizEntryPoint","WAWebBizGatingUtils","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebDrawerManager","WAWebDropdownItem.react","WAWebMobilePlatforms","WAWebOrderDetailsActionCategory","WAWebOrderDetailsActionsSmbWamEvent","WAWebOrderManagementFlowLoadable","WAWebReceiptRefreshedIcon.react","WAWebUserPrefsMeUser","WAWebWamEnumOrderDetailsCreationAction","WDSIconIcReceipt.react","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t;if(!(o("WAWebMobilePlatforms").isSMB()&&o("WAWebBizGatingUtils").orderManagementEnabled()))return null;var a=function(t){t==null||t.stopPropagation();var e=o("WAWebUserPrefsMeUser").getMePnUserOrThrow();new(o("WAWebOrderDetailsActionsSmbWamEvent")).OrderDetailsActionsSmbWamEvent({orderDetailsCreationAction:o("WAWebWamEnumOrderDetailsCreationAction").ORDER_DETAILS_CREATION_ACTION.VIEW_ORDER_DETAILS_HUB,actionCategory:String(r("WAWebOrderDetailsActionCategory").ORDER_DETAILS_MANAGEMENT),orderDetailEntryPoint:String(r("WAWebBizEntryPoint").FROM_BUSINESS_TOOLS),hasCatalog:o("WAWebBusinessProfileUtils").hasCatalog(o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(e))}).commit(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(r("WAWebOrderManagementFlowLoadable"),{isInitialStep:!0}))},i=o("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?s._(/*BTDS*/"Cargos"):s._(/*BTDS*/"Pedidos"),l="mi-orders menu-item";if(n)return u.jsx(r("WDSMenuItem.react"),{testid:void 0,Icon:r("WDSIconIcReceipt.react"),onPress:a,title:i});var c=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:u.jsx(o("WAWebReceiptRefreshedIcon.react").ReceiptRefreshedIcon,{}),action:a,children:i});return c}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebQuickRepliesFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBizQuickRepliesFlow.react").__setRef("WAWebQuickRepliesFlowLoadable").load();return e}),"QuickRepliesFlow"),c=r("react-loadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.QuickRepliesFlowLoadable=c}),98); __d("WAWebQuickRepliesChatlistHeaderDropdownItem.react",["fbt","WAWebBizGatingUtils","WAWebBoltIcon.react","WAWebDrawerManager","WAWebDropdownItem.react","WAWebKeyboardTabUtils","WAWebQuickRepliesFlowLoadable","WDSIconIcBolt.react","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t;if(!o("WAWebBizGatingUtils").quickRepliesManagementEnabled())return null;var a=function(t){t==null||t.stopPropagation(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebQuickRepliesFlowLoadable").QuickRepliesFlowLoadable,{isInitialStep:!0}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},i=s._(/*BTDS*/"Respuestas r\u00e1pidas"),l="mi-quick-replies menu-item";if(n)return u.jsx(r("WDSMenuItem.react"),{testid:void 0,Icon:r("WDSIconIcBolt.react"),onPress:a,title:i});var c=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:u.jsx(o("WAWebBoltIcon.react").BoltIcon,{}),action:a,children:i});return c}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebScreenLockChatlistHeaderDropdownItem.react",["fbt","WAWebChatlistHeaderDropdownLogEvents","WAWebConfirmPopup.react","WAWebDrawerManager","WAWebDropdownItem.react","WAWebKeyboardTabUtils","WAWebLockScreenResolver","WAWebModalManager","WAWebMsgCollection","WAWebSettingsConst","WAWebSettingsFlow.react","WAWebUserPrefsScreenLock","WAWebWamEnumWebcMenuItemLabel","WDSIconIcLock.react","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t,a=o("WAWebUserPrefsScreenLock").getScreenLockEnabled(),i=function(t){if(t==null||t.stopPropagation(),o("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(o("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.APP_LOCK),!a){o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebSettingsFlow.react").SettingsFlow,{initialStep:o("WAWebSettingsConst").SettingsSteps.ScreenLock,onEnd:o("WAWebDrawerManager").closeDrawerLeft}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE});return}var e=o("WAWebMsgCollection").MsgCollection.hasUnsentMessages();e?o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"\u00bfDeseas bloquear la aplicaci\u00f3n?"),onOK:function(){o("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow()},okText:s._(/*BTDS*/"Bloquear"),onCancel:o("WAWebModalManager").closeModalManager,cancelText:s._(/*BTDS*/"Cancelar"),children:s._(/*BTDS*/"Algunos de tus mensajes todav\u00eda se est\u00e1n enviando.")})):o("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow()},l=a?s._(/*BTDS*/"Bloquear aplicaci\u00f3n"):s._(/*BTDS*/"Bloqueo de aplicaci\u00f3n"),c="mi-screen-lock menu-item",d=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:u.jsx(r("WDSIconIcLock.react"),{}),action:i,children:l}),m=u.jsx(r("WDSMenuItem.react"),{title:l,onPress:i,testid:void 0,Icon:r("WDSIconIcLock.react")});return n?m:d}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebSelectChatsChatlistHeaderDropdownItem.react",["fbt","WAWebCheckRefreshedIcon.react","WAWebDropdownItem.react","WAWebMobilePlatforms","WDSIconIcCheckBox.react","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.chatListCollapsed,n=e.isMultiSelectMode,a=e.startMultiSelect,i=e.useWdsMenuVersion,l=i===void 0?!1:i,c=s._(/*BTDS*/"Seleccionar chats"),d="mi-select-chats",m=l?u.jsx(r("WDSMenuItem.react"),{Icon:r("WDSIconIcCheckBox.react"),title:c,onPress:a,testid:void 0}):u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:u.jsx(o("WAWebCheckRefreshedIcon.react").CheckRefreshedIcon,{}),action:a,children:c});return!o("WAWebMobilePlatforms").isSMB()&&!t&&!n?m:null}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebShopsChatlistHeaderDropdownItem.react",["fbt","WAWebBizGatingUtils","WAWebBizShopsManagePopup.react","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebDropdownItem.react","WAWebMobilePlatforms","WAWebModalManager","WAWebShopIcon.react","WAWebShopsLog","WAWebUserPrefsMeUser","WAWebWamEnumShopsManagementAction","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t;if(!o("WAWebMobilePlatforms").isSMB())return null;var a=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),i=o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(a),l=o("WAWebBusinessProfileUtils").hasShop(i),c=function(t){t==null||t.preventDefault(),o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebBizShopsManagePopup.react"),{onViewShopClick:function(){o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_VIEW_SHOPS_IN_SHOPS_SETTING)},onCommerceManagerClick:function(){o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_COMMERCE_MANAGER_IN_SHOPS_SETTING)},onCancelClick:function(){o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CANCEL_IN_SHOPS_SETTING)}})),o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_SHOPS_SETTING)},d=o("WAWebBizGatingUtils").bannedShopsEnabled()&&o("WAWebBusinessProfileUtils").isShopBanned(i)?s._(/*BTDS*/"Tienda (desactivada)"):s._(/*BTDS*/"Tienda"),m="mi-shop menu-item";if(!l)return null;if(n)return u.jsx(r("WDSMenuItem.react"),{testid:void 0,Icon:o("WAWebShopIcon.react").ShopIcon,onPress:c,title:d});var p=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:u.jsx(o("WAWebShopIcon.react").ShopIcon,{}),action:c,children:d});return p}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebStarredChatlistHeaderDropdownItem.react",["fbt","WAWebChatlistHeaderDropdownLogEvents","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDropdownItem.react","WAWebKeyboardTabUtils","WAWebStarRefreshedIcon.react","WAWebStarredDrawerLoadable","WAWebStarredMsgCollection","WAWebWamEnumWebcMenuItemLabel","WDSIconIcGrade.react","WDSMenuItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.useWdsMenuVersion,n=t===void 0?!1:t,a=function(t){t==null||t.stopPropagation(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebStarredDrawerLoadable").StarredDrawerLoadable,{starredMsgs:o("WAWebStarredMsgCollection").AllStarredMsgsCollection,onClose:o("WAWebDrawerManager").closeDrawerLeft,headerType:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE}),o("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(o("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.STARRED)},i=s._(/*BTDS*/"Mensajes destacados"),l="mi-starred menu-item",c=u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:u.jsx(o("WAWebStarRefreshedIcon.react").StarRefreshedIcon,{}),action:a,children:i}),d=u.jsx(r("WDSMenuItem.react"),{Icon:r("WDSIconIcGrade.react"),title:i,onPress:a,testid:void 0});return n?d:c}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebChatlistHeaderDropdown.react",["WAWebAdsCreationChatlistHeaderDropdownItem.react","WAWebArchivedChatlistHeaderDropdownItem.react","WAWebBizGatingUtils","WAWebBizToolsChatlistHeaderDropdownItem.react","WAWebCatalogChatlistHeaderDropdownItem.react","WAWebChatlistHeaderDropdownLogEvents","WAWebDropdownItemSeparator.react","WAWebEligibilityLogging","WAWebListsChatlistHeaderDropdownItem.react","WAWebLogoutChatlistHeaderDropdownItem.react","WAWebManageAdsDropdownItem.react","WAWebMarkAllChatsAsReadChatlistHeaderDropdownItem.react","WAWebNewGroupChatlistHeaderDropdownItem.react","WAWebOrdersChatlistHeaderDropdownItem.react","WAWebQuickRepliesChatlistHeaderDropdownItem.react","WAWebScreenLockChatlistHeaderDropdownItem.react","WAWebSelectChatsChatlistHeaderDropdownItem.react","WAWebSettingsGetters","WAWebShopsChatlistHeaderDropdownItem.react","WAWebStarredChatlistHeaderDropdownItem.react","WAWebUserPrefsScreenLock","WAWebWamEnumWebcMenuItemLabel","WAWebWamEnumWebcNativeUpsellCtaSourceType","WDSMenu.react","WDSMenuItem.react","react","useWAWebDesktopUpsellWamImpression","useWAWebExternalBetaOptIn","useWAWebSettingsValues"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useEffect;function d(e){var t=o("useWAWebSettingsValues").useSettingsValues([o("WAWebSettingsGetters").getShowArchiveV2]),n=t[0],a=e.activeAccountInfo,i=e.chatListCollapsed,l=e.isMultiSelectMode,s=e.startMultiSelect,d=e.updateActiveNavBarItem,m=e.useWdsMenuVersion,p=m===void 0?!1:m;c(function(){o("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(o("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.OPEN)},[]);var _=o("useWAWebExternalBetaOptIn").useExternalBetaOptIn(),f=_[0],g=o("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb();o("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:!1,source:o("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.CHATLIST_DROPDOWN,isBeta:g,isBetaUser:f});var h=o("WAWebUserPrefsScreenLock").getScreenLockEnabled(),y=o("WAWebEligibilityLogging").eligibilityLogger.getValue("wa_web_app_lock_upsell"),C=u.jsxs(u.Fragment,{children:[u.jsx(r("WAWebBizToolsChatlistHeaderDropdownItem.react"),{activeAccountInfo:a,updateActiveNavBarItem:d,useWdsMenuVersion:p}),u.jsx(r("WAWebNewGroupChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),u.jsx(r("WAWebShopsChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),u.jsx(r("WAWebAdsCreationChatlistHeaderDropdownItem.react"),{activeAccountInfo:a,useWdsMenuVersion:p}),a!=null&&a!=="not-linked"&&o("WAWebBizGatingUtils").shouldShowManageAdsDropdown(a)&&u.jsx(r("WAWebManageAdsDropdownItem.react"),{activeAccountInfo:a,useWdsMenuVersion:p}),u.jsx(r("WAWebCatalogChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),u.jsx(r("WAWebOrdersChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),!n&&u.jsx(r("WAWebArchivedChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),u.jsx(r("WAWebQuickRepliesChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),u.jsx(r("WAWebStarredChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),u.jsx(r("WAWebSelectChatsChatlistHeaderDropdownItem.react"),{chatListCollapsed:i,isMultiSelectMode:l,startMultiSelect:s,useWdsMenuVersion:p}),u.jsx(r("WAWebListsChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),u.jsx(r("WAWebMarkAllChatsAsReadChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),p?u.jsx(r("WDSMenuItem.react"),{type:"separator"}):u.jsx(r("WAWebDropdownItemSeparator.react"),{}),h?u.jsx(r("WAWebScreenLockChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}):u.jsxs(u.Fragment,{children:[y&&u.jsx(r("WAWebScreenLockChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p}),u.jsx(r("WAWebLogoutChatlistHeaderDropdownItem.react"),{useWdsMenuVersion:p})]})]});return p?u.jsx(r("WDSMenu.react"),{children:C}):C}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebNewChatFlowFlyout.react",["WAWebDrawerViewType","WAWebNewChatFlowLoadable","react","vulture"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(){return r("vulture")("1faHc-Rrun2x8dPdY5221s-4mIs="),s.jsx("div",{className:"x1tsk2h8 xwl9fdd",children:s.jsx(o("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{viewType:r("WAWebDrawerViewType").FLYOUT})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebNewChatOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="new-chat-outline";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M9.53277 12.9911H11.5086V14.9671C11.5086 15.3999 11.7634 15.8175 12.1762 15.9488C12.8608 16.1661 13.4909 15.6613 13.4909 15.009V12.9911H15.4672C15.9005 12.9911 16.3181 12.7358 16.449 12.3226C16.6659 11.6381 16.1606 11.0089 15.5086 11.0089H13.4909V9.03332C13.4909 8.60007 13.2361 8.18252 12.8233 8.05119C12.1391 7.83391 11.5086 8.33872 11.5086 8.991V11.0089H9.49088C8.83941 11.0089 8.33411 11.6381 8.55097 12.3226C8.68144 12.7358 9.09947 12.9911 9.53277 12.9911Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.944298 5.52617L2.99998 8.84848V17.3333C2.99998 18.8061 4.19389 20 5.66665 20H19.3333C20.8061 20 22 18.8061 22 17.3333V6.66667C22 5.19391 20.8061 4 19.3333 4H1.79468C1.01126 4 0.532088 4.85997 0.944298 5.52617ZM4.99998 8.27977V17.3333C4.99998 17.7015 5.29845 18 5.66665 18H19.3333C19.7015 18 20 17.7015 20 17.3333V6.66667C20 6.29848 19.7015 6 19.3333 6H3.58937L4.99998 8.27977Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.NewChatOutlineIcon=m}),98); __d("WAWebChatlistHeaderV2.react",["fbt","WAWebActions","WAWebActiveAccountInfoContext.react","WAWebBusinessProfileCollection","WAWebChatlistHeaderDropdown.react","WAWebCmd","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDrawerViewType","WAWebDropdown.react","WAWebFbtCommon","WAWebMenuBar.react","WAWebMessageYourselfMetricUtils","WAWebModal.react","WAWebModalManager","WAWebMoreRefreshedIcon.react","WAWebNewChatFlowFlyout.react","WAWebNewChatFlowLoadable","WAWebNewChatOutlineIcon.react","WAWebTabOrder","WAWebThemeContext","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebWDSGatingUtils","WAWebWaWordmarkRefreshedIcon.react","WDSMenuBarItem.react","cr:23046","react","useWAWebABPropConfigValue","useWAWebForceUpdate","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.memo,p=c.useMemo,_=c.useRef,f=c.useState,g={primaryFill:{fill:"xgz6z4f",$$css:!0},primaryFillDark:{fill:"xd25hor",$$css:!0}};function h(e){"use no forget";var t,a=e.headerRef,i=e.isMultiSelectMode,l=e.onSelectChatClick,u=(t=n("cr:23046")==null?void 0:n("cr:23046").isWindowsHybridEnabled())!=null?t:!1,c=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),m=o("WAWebThemeContext").useIsDarkTheme(),h=o("WAWebActiveAccountInfoContext.react").useActiveAccountInfo(),y=p(function(){return o("WAWebUserPrefsMeUser").getMePnUserOrThrow()},[]),C=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_button"),b=f(!0),v=b[0],S=b[1],R=p(function(){return o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(y)},[y]);o("useWAWebListener").useListener(R,"change:profileOptions",c);var L=(n("cr:23046")==null?void 0:n("cr:23046").isWindowsNewChatFlyoutEnabled())===!0||o("WAWebUIRefreshGatingUtils").newChatFlowRefreshVariant()===2,E=function(t){if(L){o("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.startSession(),o("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.newChatPressed();return}t==null||t.preventDefault(),o("WAWebUIRefreshGatingUtils").newChatFlowRefreshVariant()===1?o("WAWebModalManager").ModalManager.open(d.jsx(o("WAWebModal.react").Modal,{type:o("WAWebModal.react").ModalTheme.Tower,children:d.jsx(o("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{onEnd:o("WAWebModalManager").closeModalManager,viewType:r("WAWebDrawerViewType").MODAL})})):o("WAWebDrawerManager").DrawerManager.openDrawerLeft(d.jsx(o("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{onEnd:o("WAWebDrawerManager").closeDrawerLeft})),o("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.startSession(),o("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.newChatPressed()},k=C?d.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:o("WAWebNewChatOutlineIcon.react").NewChatOutlineIcon,onClick:E,title:s._(/*BTDS*/"Nuevo chat"),tabOrder:v===!0?o("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER:void 0,disabled:!v,keyboardShortcutAction:o("WAWebActions").Action.OPEN_NEW_CHAT,dropdownMenu:{menu:L?d.jsx(r("WAWebNewChatFlowFlyout.react"),{}):[],type:o("WAWebDropdown.react").MenuType.Dropdown,flipOnRTL:!0,dirX:o("WAWebDropdown.react").DirX.RIGHT,dirY:o("WAWebDropdown.react").DirY.BOTTOM,testid:"chatlist-header-newchat-dropdown"}},"btn-new-chat"):d.jsx(o("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:v===!0?o("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER:void 0,disabled:!v,icon:d.jsx(o("WAWebNewChatOutlineIcon.react").NewChatOutlineIcon,{directional:!0}),title:s._(/*BTDS*/"Nuevo chat"),onClick:E,dropdownMenu:{menu:L?d.jsx(r("WAWebNewChatFlowFlyout.react"),{}):[],type:o("WAWebDropdown.react").MenuType.Dropdown,flipOnRTL:!0,dirX:o("WAWebDropdown.react").DirX.RIGHT,dirY:o("WAWebDropdown.react").DirY.BOTTOM,testid:"chatlist-header-newchat-dropdown"}},"btn-new-chat"),I=o("WAWebWDSGatingUtils").isWDSMenuM1Enabled(),T=d.jsx(r("WAWebChatlistHeaderDropdown.react"),{startMultiSelect:l,isMultiSelectMode:i,activeAccountInfo:h,updateActiveNavBarItem:e.updateActiveNavBarItem,useWdsMenuVersion:C&&I}),D=C?d.jsx(r("WDSMenuBarItem.react"),babelHelpers.extends({testid:void 0,icon:o("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,title:s._(/*BTDS*/"Men\u00fa"),tabOrder:v===!0?o("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER:void 0,disabled:!v,marginInlineXstyle:o("WAWebUISpacing").uiMargin.start8},o("WAWebWDSGatingUtils").isWDSMenuM1Enabled()?{wdsMenuToRender:T}:{dropdownMenu:{menu:T,type:o("WAWebDropdown.react").MenuType.Dropdown,flipOnRTL:!0,dirX:o("WAWebDropdown.react").DirX.RIGHT,dirY:o("WAWebDropdown.react").DirY.BOTTOM,testid:"chatlist-header-dropdown"}}),"btn-menu"):d.jsx(o("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:v===!0?o("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER:void 0,disabled:!v,icon:d.jsx(o("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,{}),title:s._(/*BTDS*/"Men\u00fa"),dropdownMenu:{menu:d.jsx(r("WAWebChatlistHeaderDropdown.react"),{startMultiSelect:l,isMultiSelectMode:i,activeAccountInfo:h,updateActiveNavBarItem:e.updateActiveNavBarItem}),type:o("WAWebDropdown.react").MenuType.Dropdown,flipOnRTL:!0,dirX:o("WAWebDropdown.react").DirX.RIGHT,dirY:o("WAWebDropdown.react").DirY.BOTTOM,testid:"chatlist-header-dropdown"}},"btn-menu"),x=!u,$=!x&&{title:s._(/*BTDS*/"Chats")},P=_(null),N=function(t){S(t)},M=function(t){var e,n=(e=a.current)==null?void 0:e.parentElement;t(n==null?void 0:n.getBoundingClientRect())};return o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"chat_list_visibility_change",N),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"get_chat_list_panel_offset",M),d.jsx("header",{"data-testid":void 0,ref:a,children:d.jsx(o("WAWebDrawerHeader.react").DrawerHeader,babelHelpers.extends({ref:P},$,{type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB,menu:[k,D],focusBackOrCancel:!0,children:x&&d.jsx(o("WAWebWaWordmarkRefreshedIcon.react").WaWordmarkRefreshedIcon,{"aria-hidden":!1,"aria-label":r("WAWebFbtCommon")("WhatsApp"),innerStyles:{primary:m?g.primaryFillDark:g.primaryFill}})}))})}h.displayName=h.name+" [from "+i.id+"]";var y=m(h);l.WAWebChatlistHeaderV2=y}),226); __d("WAWebChatlistPanelWrapper.react",["WAWebABProps","WAWebAdaptiveLayoutGatingUtils","WAWebAppRootInteractionContext.react","WAWebBotGating","WAWebChatlistHeaderV2.react","WAWebChatlistPanelFunctional.react","WAWebChatlistPanelMode","WAWebChatlistPanel_DEPRECATED.react","WAWebInteractionTracePolicy","WAWebMultiSelectEntryPointConstants","WAWebSettingsGetters","WAWebSettingsModel","WAWebUsernameGatingUtils","hero-tracing","react","useWAWebChatLockSettings","useWAWebSettingsValues"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=e,c=u.useCallback,d=u.useState;function m(e){var t=e.chatlistHeaderRef,n=e.chatlistPanelRef,a=e.handleActiveNavBarItemUpdate,i=e.leftDrawerStyle,l=e.leftPaneClassName,u=e.resizeHandle,m=o("useWAWebSettingsValues").useSettingsValues([o("WAWebSettingsGetters").getShowArchiveV2]),p=m[0],_=d(!1),f=_[0],g=_[1],h=o("useWAWebChatLockSettings").useChatLockSettings(),y=c(function(){return g(!0)},[]),C=c(function(){return g(!1)},[]),b=o("WAWebBotGating").isMetaAISearchExperienceEnabled(),v=o("WAWebUsernameGatingUtils").usernameGlobalSearchEnabled(),S=o("WAWebABProps").getABPropConfigValue("web_phone_number_global_search"),R=o("WAWebAppRootInteractionContext.react").useInteractionWithAppRootContext(r("WAWebInteractionTracePolicy").NAVIGATION_CHATS_OPEN_CHAT,!1,!0),L=R.startInteraction,E=o("WAWebAdaptiveLayoutGatingUtils").shouldUseFunctionalChatlistPanel(),k=E?s.jsx(o("WAWebChatlistPanelFunctional.react").ChatlistPanelFunctional,{chatlistPanelRef:n,showArchiveV2:p,mode:r("WAWebChatlistPanelMode").Chatlist,selectable:f,endMultiSelect:C,multiSelectEntryPoint:f?o("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.ChatListHeaderDropdown:null,hideLockedChats:h.hideLockedChats,startChatInteraction:L,aiSearchExperienceEnabled:b,unknownContactUsernameSearchEnabled:v,unknownContactPhoneSearchEnabled:S},f?"inMultiSelectMode":"inNonSelectableMode"):s.jsx(o("WAWebChatlistPanel_DEPRECATED.react").ChatlistPanel,{ref:n,showArchiveV2:p,mode:r("WAWebChatlistPanelMode").Chatlist,selectable:f,endMultiSelect:C,multiSelectEntryPoint:f?o("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.ChatListHeaderDropdown:null,hideLockedChats:h.hideLockedChats,startChatInteraction:L,aiSearchExperienceEnabled:b},f?"inMultiSelectMode":"inNonSelectableMode");return s.jsx(o("hero-tracing").HeroPagelet,{name:"Chat List Panel",children:function(n,c){return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:l,style:i,ref:n,children:[r("WAWebSettingsModel")&&s.jsx(o("WAWebChatlistHeaderV2.react").WAWebChatlistHeaderV2,{headerRef:t,onSelectChatClick:y,isMultiSelectMode:f,updateActiveNavBarItem:a}),k,u]}),s.jsx(c,{})]})}})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebChatlistResizeHandle.react",["fbt","react","stylex","useHoverState"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useRef,_=d.useState,f=24,g=8,h={zIndex:"x1ks9yow",pointerEvents:"x47corl",position:"x10l6tqk",width:"x1xc55vz",top:"x13vifvy",bottom:"x1ey2m1c",insetInlineEnd:"xqxgn94",left:"",right:"",background:"xudi1rl",$$css:!0},y={resizeIndicator:function(t){return[h,{"--x-insetInlineEnd":(function(e){return typeof e=="number"?e+"px":e!=null?e:void 0})("calc("+t+"px - "+g+"px)")}]}};function C(e){var t=e.offset;return m.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(y.resizeIndicator(t)),{"data-testid":void 0}))}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=e.maxWidth,n=e.minWidth,o=e.onResize,a=e.onResizeEnd,i=e.onResizeReset,l=p(0),u=p(0),c=p(null),d=p(!1),f=_(!1),g=f[0],h=f[1],y=_(0),b=y[0],v=y[1],S=r("useHoverState")(),R=S.isHovered,L=S.onMouseEnter,E=S.onMouseLeave,k=function(r){var e=r-l.current;return Math.max(n,Math.min(t,u.current+e))},I=function(t){if(t.button===0){t.preventDefault(),d.current=!0,h(!0);var e=t.currentTarget;e.setPointerCapture(t.pointerId),l.current=t.clientX;var n=e.parentElement;n&&(u.current=n.getBoundingClientRect().width)}},T=function(t){if(d.current){var e=k(t.clientX);v(u.current-e),o==null||o(e)}},D=function(t){var e=t.currentTarget;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId);var n=k(t.clientX);a==null||a(n),d.current=!1,h(!1),v(0)},x=function(t){d.current&&D(t)};return m.jsxs(m.Fragment,{children:[(g||R)&&m.jsx(C,{offset:b}),m.jsx("button",{ref:c,onMouseEnter:L,onMouseLeave:E,onDoubleClick:i,className:"x10l6tqk xvy4d1p x13vifvy x1ey2m1c x15z6fc2 x7eptgl x1oy9qf3",onPointerDown:I,onPointerMove:T,onPointerUp:D,onPointerLeave:x,"aria-label":s._(/*BTDS*/"Cambiar el tama\u00f1o del panel de la lista de chats"),"data-testid":void 0})]})}b.displayName=b.name+" [from "+i.id+"]",l.default=b}),226); __d("WAWebOpenLastActiveChatAction",["Promise","WAWebBotFrontendUtils","WAWebBotGating","WAWebBotUtils","WAWebChatCollection","WAWebChatEntryPoint","WAWebCmd","WAWebDrawerManager","WAWebSideNavButtonsActivityModel","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=o("WAWebSideNavButtonsActivityModel").getLastActiveChat();try{var r=t!=null?o("WAWebChatCollection").ChatCollection.get(t):null;if(o("WAWebDrawerManager").DrawerManager.closeDrawerMid(),r!=null&&!r.isLocked){if(o("WAWebBotUtils").isMetaAiBot(r.id)&&o("WAWebBotGating").isAiChatThreadsEnabled()){r.composeQuotedMsg=null;var a=yield o("WAWebBotFrontendUtils").openLatestOrNewMetaAiThread(r,o("WAWebChatEntryPoint").ChatEntryPoint.ChatsTab);return a.success}return o("WAWebCmd").Cmd.openChatFromUnread({chat:r,chatEntryPoint:o("WAWebChatEntryPoint").ChatEntryPoint.ChatsTab})}return(e||(e=n("Promise"))).resolve(!1)}catch(t){return(e||(e=n("Promise"))).resolve(!1)}});return function(){return t.apply(this,arguments)}})();l.openLastActiveChatIfNotLocked=s}),98); __d("useWAWebChatsActivityIndicator",["WAWebChatCollection","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useState;function u(){var e=function(){return o("WAWebChatCollection").ChatCollection.getUnreadCount()},t=s(e),n=t[0],r=t[1],a=function(){r(e())};return o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"add remove reset change:showUnreadInTitle",a),{unreadChatCount:n}}l.useChatsActivityIndicator=u}),98); __d("WAWebChatsNavBarItem.react",["fbt","WAWebChatFilledRefreshedIcon.react","WAWebChatRefreshedIcon.react","WAWebChatUnreadCount.react","WAWebDrawerManager","WAWebInteractionTracePolicy","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebOpenLastActiveChatAction","WAWebSideNavButtonsActivityModel","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebChatsActivityIndicator"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,a=function(){o("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),o("WAWebDrawerManager").DrawerManager.closeDrawerFullscreen(),t!==o("WAWebNavBarTypes").NavBarItems.Chats&&(n(o("WAWebNavBarTypes").NavBarItems.Chats),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.CHATS),o("WAWebSideNavButtonsActivityModel").setLastActiveButton(o("WAWebNavBarTypes").NavBarItems.Chats),o("WAWebOpenLastActiveChatAction").openLastActiveChatIfNotLocked())},i=t===o("WAWebNavBarTypes").NavBarItems.Chats?u.jsx(o("WAWebChatFilledRefreshedIcon.react").ChatFilledRefreshedIcon,{directional:!0}):u.jsx(o("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{directional:!0}),l=o("useWAWebChatsActivityIndicator").useChatsActivityIndicator(),c=l.unreadChatCount,d=c>0?u.jsx(o("WAWebChatUnreadCount.react").UnreadCount,{count:c,maxCount:100,theme:o("WAWebChatUnreadCount.react").UnreadCountTheme.Outlined}):null,m=s._(/*BTDS*/"Chats"),p=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:i,inlineActivityIndicator:d,inlineActivityIndicatorType:o("WAWebNavBarItem.react").InlineActivityIndicatorType.Counter,title:m,testid:void 0,isActive:t===o("WAWebNavBarTypes").NavBarItems.Chats,onClick:a,tracePolicy:r("WAWebInteractionTracePolicy").NAVIGATION_CHATS});return p}c.displayName=c.name+" [from "+i.id+"]",l.ChatsNavBarItem=c}),226); __d("WAWebCommunityRefreshed32Icon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="community-refreshed-32";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=32,R=32;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 32 32",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M7.85445 17.0075C7.73851 17.0026 7.62033 17 7.50003 17C6.60797 17 5.83268 17.1426 5.22106 17.3148C4.69554 17.4627 4.0988 17.7054 3.5974 18.0919C3.08634 18.4858 2.62143 19.0755 2.52966 19.8877C2.48679 20.2672 2.50003 21.0796 2.51038 21.5399C2.52882 22.3601 3.20095 23 4.00656 23H7.35217C7.15258 22.5784 7.03459 22.1084 7.01993 21.6087C7.01572 21.4651 7.00943 21.25 7.00505 21H4.50165C4.49773 20.6191 4.50034 20.2599 4.51702 20.1123C4.5308 19.9903 4.59776 19.846 4.81844 19.6759C5.04878 19.4983 5.38363 19.3468 5.7631 19.2399C6.12883 19.137 6.57191 19.0478 7.07407 19.0142C7.12499 18.6798 7.20695 18.3652 7.31207 18.0721C7.45559 17.6719 7.64219 17.3186 7.85445 17.0075Z",fill:"currentColor"}),c.jsx("path",{d:"M24.6478 23H27.9935C28.7991 23 29.4712 22.3601 29.4897 21.5399C29.5 21.0796 29.5133 20.2672 29.4704 19.8877C29.3786 19.0755 28.9137 18.4858 28.4027 18.0919C27.9013 17.7054 27.3045 17.4627 26.779 17.3148C26.1674 17.1426 25.3921 17 24.5 17C24.3797 17 24.2615 17.0026 24.1456 17.0075C24.3578 17.3186 24.5444 17.6719 24.6879 18.0721C24.793 18.3652 24.875 18.6798 24.9259 19.0142C25.4281 19.0478 25.8712 19.1369 26.237 19.2399C26.6164 19.3468 26.9513 19.4983 27.1816 19.6759C27.4023 19.846 27.4693 19.9903 27.483 20.1123C27.4997 20.2599 27.5023 20.6191 27.4984 21H24.9949C24.9906 21.25 24.9843 21.4651 24.9801 21.6087C24.9654 22.1084 24.8474 22.5784 24.6478 23Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18C14.6099 18 13.4517 18.2363 12.6506 18.4683C12.2195 18.5931 11.8437 18.7329 11.5552 18.9105C11.275 19.0829 11.1382 19.2525 11.0772 19.4224C11.0547 19.4853 11.0366 19.5555 11.0259 19.6343C10.9955 19.8585 10.996 20.4459 11.0064 21H20.9936C21.004 20.4459 21.0045 19.8585 20.9741 19.6343C20.9634 19.5555 20.9453 19.4853 20.9228 19.4224C20.8618 19.2525 20.725 19.0829 20.4448 18.9105C20.1563 18.7329 19.7805 18.5931 19.3494 18.4683C18.5483 18.2363 17.3901 18 16 18ZM12.0944 16.5472C13.0378 16.274 14.3855 16 16 16C17.6145 16 18.9622 16.274 19.9056 16.5472C20.392 16.688 20.9732 16.8873 21.493 17.2071C22.0211 17.532 22.5438 18.0181 22.8053 18.7473C22.8735 18.9373 22.9259 19.1436 22.956 19.3657C23.0234 19.8633 22.9976 20.9826 22.9809 21.5501C22.957 22.3659 22.287 23 21.4851 23H10.5149C9.71301 23 9.043 22.3659 9.01907 21.5501C9.00243 20.9826 8.97657 19.8633 9.04404 19.3657C9.07414 19.1436 9.1265 18.9373 9.19466 18.7473C9.45616 18.0181 9.97894 17.532 10.507 17.2071C11.0268 16.8873 11.608 16.688 12.0944 16.5472Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.5 12C23.9477 12 23.5 12.4477 23.5 13C23.5 13.5523 23.9477 14 24.5 14C25.0523 14 25.5 13.5523 25.5 13C25.5 12.4477 25.0523 12 24.5 12ZM21.5 13C21.5 11.3431 22.8431 10 24.5 10C26.1569 10 27.5 11.3431 27.5 13C27.5 14.6569 26.1569 16 24.5 16C22.8431 16 21.5 14.6569 21.5 13Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 9C14.8954 9 14 9.89543 14 11C14 12.1046 14.8954 13 16 13C17.1046 13 18 12.1046 18 11C18 9.89543 17.1046 9 16 9ZM12 11C12 8.79086 13.7909 7 16 7C18.2091 7 20 8.79086 20 11C20 13.2091 18.2091 15 16 15C13.7909 15 12 13.2091 12 11Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 12C6.94772 12 6.5 12.4477 6.5 13C6.5 13.5523 6.94772 14 7.5 14C8.05228 14 8.5 13.5523 8.5 13C8.5 12.4477 8.05228 12 7.5 12ZM4.5 13C4.5 11.3431 5.84315 10 7.5 10C9.15685 10 10.5 11.3431 10.5 13C10.5 14.6569 9.15685 16 7.5 16C5.84315 16 4.5 14.6569 4.5 13Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.CommunityRefreshed32Icon=m}),98); __d("WAWebCommunityRefreshedFilled32Icon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="community-refreshed-filled-32";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=32,R=32;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 32 32",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M7.85445 17.0075C7.73851 17.0026 7.62033 17 7.50003 17C6.60797 17 5.83268 17.1426 5.22106 17.3148C4.69554 17.4627 4.0988 17.7054 3.5974 18.0919C3.08634 18.4858 2.62143 19.0755 2.52966 19.8877C2.48679 20.2672 2.50003 21.0796 2.51038 21.5399C2.52882 22.3601 3.20095 23 4.00656 23H7.35217C7.15258 22.5784 7.03459 22.1084 7.01993 21.6087C7.00557 21.1191 6.9671 19.7982 7.06216 19.097C7.1117 18.7316 7.19832 18.3892 7.31207 18.0721C7.45559 17.6719 7.64219 17.3186 7.85445 17.0075Z",fill:"currentColor"}),c.jsx("path",{d:"M24.6478 23H27.9935C28.7991 23 29.4712 22.3601 29.4897 21.5399C29.5 21.0796 29.5133 20.2672 29.4704 19.8877C29.3786 19.0755 28.9137 18.4858 28.4027 18.0919C27.9013 17.7054 27.3045 17.4627 26.779 17.3148C26.1674 17.1426 25.3921 17 24.5 17C24.3797 17 24.2615 17.0026 24.1456 17.0075C24.3578 17.3186 24.5444 17.6719 24.6879 18.0721C24.8017 18.3892 24.8883 18.7316 24.9378 19.097C25.0329 19.7982 24.9944 21.1191 24.9801 21.6087C24.9654 22.1084 24.8474 22.5784 24.6478 23Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0944 16.5472C13.0378 16.274 14.3855 16 16 16C17.6145 16 18.9622 16.274 19.9056 16.5472C20.392 16.688 20.9732 16.8873 21.493 17.2071C22.0211 17.532 22.5438 18.0181 22.8053 18.7473C22.8735 18.9373 22.9259 19.1436 22.956 19.3657C23.0234 19.8633 22.9976 20.9826 22.9809 21.5501C22.957 22.3659 22.287 23 21.4851 23H10.5149C9.71301 23 9.043 22.3659 9.01907 21.5501C9.00243 20.9826 8.97657 19.8633 9.04404 19.3657C9.07414 19.1436 9.1265 18.9373 9.19466 18.7473C9.45616 18.0181 9.97894 17.532 10.507 17.2071C11.0268 16.8873 11.608 16.688 12.0944 16.5472Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 13C21.5 11.3431 22.8431 10 24.5 10C26.1569 10 27.5 11.3431 27.5 13C27.5 14.6569 26.1569 16 24.5 16C22.8431 16 21.5 14.6569 21.5 13Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 11C12 8.79086 13.7909 7 16 7C18.2091 7 20 8.79086 20 11C20 13.2091 18.2091 15 16 15C13.7909 15 12 13.2091 12 11Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 13C4.5 11.3431 5.84315 10 7.5 10C9.15685 10 10.5 11.3431 10.5 13C10.5 14.6569 9.15685 16 7.5 16C5.84315 16 4.5 14.6569 4.5 13Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.CommunityRefreshedFilled32Icon=m}),98); __d("WAWebOpenLastActiveCommunityAction",["Promise","WALogger","WAWebChatCollection","WAWebChatEntryPoint","WAWebCmd","WAWebDrawerManager","WAWebGroupType","WAWebNavBarEmptyState.react","WAWebNavBarTypes","WAWebSideNavButtonsActivityModel","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=r("react")),d=function(){return o("WAWebDrawerManager").DrawerManager.openDrawerMid(c.jsx(o("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:o("WAWebNavBarTypes").NavBarItems.Communities}),{transition:"none",disableRotateFocus:!0}),(s||(s=n("Promise"))).resolve(!1)},m=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=o("WAWebSideNavButtonsActivityModel").getLastActiveCommunity();if(t==null)return d();try{var r=o("WAWebChatCollection").ChatCollection.get(t);if(r==null||r.groupType==null)return d();switch(r.groupType){case o("WAWebGroupType").GroupType.COMMUNITY:case o("WAWebGroupType").GroupType.LINKED_SUBGROUP:case o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP:case o("WAWebGroupType").GroupType.LINKED_GENERAL_GROUP:return o("WAWebDrawerManager").DrawerManager.closeDrawerMid(),o("WAWebCmd").Cmd.openChatFromUnread({chat:r,chatEntryPoint:o("WAWebChatEntryPoint").ChatEntryPoint.CommunitiesTab});case o("WAWebGroupType").GroupType.DEFAULT:return o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[debug] openLastActiveCommunity Attempted to open a group which is not a community"]))).sendLogs("open-last-active-community-error-not-a-community-group"),d()}}catch(e){return(s||(s=n("Promise"))).resolve(!1)}});return function(){return t.apply(this,arguments)}})();l.openLastActiveCommunity=m}),98); __d("WAWebCommunitiesNavBarItem.react",["fbt","WAWebCommunityActivityCollection","WAWebCommunityDailyUtils","WAWebCommunityFlow.react","WAWebCommunityRefreshed32Icon.react","WAWebCommunityRefreshedFilled32Icon.react","WAWebDrawerManager","WAWebInteractionTracePolicy","WAWebKeyboardTabUtils","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebOpenLastActiveCommunityAction","WAWebSideNavButtonsActivityModel","WAWebUISpacing","WAWebUnreadActivityIndicator.react","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebEventTargetValue"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={dotIndicatorPosition:{insetInlineStart:"x1pe450p",left:null,right:null,bottom:"x1oozmrk",$$css:!0}};function d(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,a=function(){t!==o("WAWebNavBarTypes").NavBarItems.Communities&&(n(o("WAWebNavBarTypes").NavBarItems.Communities),o("WAWebCommunityDailyUtils").incrementCommunityTabEvent(o("WAWebCommunityDailyUtils").CommunityDailyTabMetricsType.TAB_VIEWS),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.COMMUNITIES),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebCommunityFlow.react").CommunityFlow,{}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0}),o("WAWebSideNavButtonsActivityModel").setLastActiveButton(o("WAWebNavBarTypes").NavBarItems.Communities),o("WAWebOpenLastActiveCommunityAction").openLastActiveCommunity())},i=t===o("WAWebNavBarTypes").NavBarItems.Communities?u.jsx(o("WAWebCommunityRefreshedFilled32Icon.react").CommunityRefreshedFilled32Icon,{}):u.jsx(o("WAWebCommunityRefreshed32Icon.react").CommunityRefreshed32Icon,{}),l=r("useWAWebEventTargetValue")(r("WAWebCommunityActivityCollection"),"add change remove community_tab_view",function(){return r("WAWebCommunityActivityCollection").shouldShowTabBadge()}),d=l?u.jsx(r("WAWebUnreadActivityIndicator.react"),{}):null,m=s._(/*BTDS*/"Comunidades"),p=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:i,inlineActivityIndicator:d,inlineActivityIndicatorType:o("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:m,testid:void 0,isActive:t===o("WAWebNavBarTypes").NavBarItems.Communities,onClick:a,spacingXstyle:o("WAWebUISpacing").uiPadding.all4,dotIndicatorPositionXstyle:c.dotIndicatorPosition,tracePolicy:r("WAWebInteractionTracePolicy").NAVIGATION_COMMUNITIES});return p}d.displayName=d.name+" [from "+i.id+"]",l.CommunitiesNavBarItem=d}),226); __d("WAWebConversationNewBanner.react",["WAWebButton.react","WAWebFlex.react","WAWebText.react","react","useWAWebWindowSize"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=1250,c={container:{borderStartStartRadius:"x6nvzda",borderStartEndRadius:"x4i4b9w",borderEndEndRadius:"xhl9efl",borderEndStartRadius:"xj65ea0",backgroundColor:"x1280gxy",display:"x78zum5",justifyContent:"x1l1ennw",$$css:!0}};function d(e){var t=e.buttons,n=e.primaryText,a=e.secondaryText,i=e.testId,l=r("useWAWebWindowSize")(),d=l.width,m=d<=u?o("WAWebFlex.react").FlexColumn:o("WAWebFlex.react").FlexRow;return s.jsx(o("WAWebFlex.react").FlexColumn,{padding:8,children:s.jsxs(m,{alignSelf:"stretch",align:"center",justify:"all",xstyle:c.container,padding:[16,16,16,16],gap:16,testid:void 0,children:[s.jsxs(o("WAWebFlex.react").FlexColumn,{children:[s.jsx(o("WAWebText.react").WAWebTextTitle,{children:n}),a!=null&&s.jsx(o("WAWebText.react").WAWebTextMuted,{children:a})]}),s.jsx(o("WAWebButton.react").ButtonGroup,{direction:"horizontal",shrink:0,children:t})]})})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebConversationSpam.react",["fbt","WAWebBlockContactUtils","WAWebBlockContants","WAWebBlocklistCollection","WAWebBox.react","WAWebBusinessProfileTypes","WAWebButton.react","WAWebChatGetters","WAWebChatGroupUtils","WAWebCheckmarkIcon.react","WAWebClickableLink.react","WAWebCmd","WAWebContactGetters","WAWebConversationNewBanner.react","WAWebExitIcon.react","WAWebFbtCommon","WAWebFrontendChatGetters","WAWebFrontendContactGetters","WAWebGroupGatingUtils","WAWebGroupSafetyToolsModal.react","WAWebLeaveCommunityModal.react","WAWebMiscGatingUtils","WAWebModalManager","WAWebReportContactPopup.react","WAWebReportSpamPopup.react","WAWebSendSpamChatAction","WAWebSettingsBlockedIcon.react","WAWebSpamConstants","WAWebSuspendedGroupUtils","WAWebSvgComponentBase","WAWebThumbsDownIcon.react","WAWebUISpacing","WAWebUnstyledButton.react","WAWebXIcon.react","fbs","react","useWAWebChatValues","useWAWebContactValues","useWAWebForceUpdate","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={link:{display:"xt0psk2",$$css:!0}};function d(e){"use no forget";var t,n,a,i=e.chat,l=e.onClickDismissSpam,d=e.onClickNotSpam,p=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),_=o("useWAWebChatValues").useChatValues(i.id,[(t=o("WAWebChatGetters")).getId,t.getIsPSA,t.getIsIAS,(n=o("WAWebFrontendChatGetters")).getShouldAppearInList,n.getTrusted,t.getIsGroup,n.getContact,n.getGroupMetadata]),f=_[0],g=_[1],h=_[2],y=_[3],C=_[4],b=_[5],v=_[6],S=_[7],R=o("useWAWebContactValues").useContactValues(i.contact.id,[(a=o("WAWebContactGetters")).getId,a.getIsBusiness,a.getIsSupportAccount,a.getVerifiedLevel,o("WAWebFrontendContactGetters").getFormattedName,a.getIsMe,o("WAWebFrontendContactGetters").getBusinessProfile,o("WAWebFrontendContactGetters").getIsMyContact]),L=R[0],E=R[1],k=R[2],I=R[3],T=R[4],D=R[5],x=R[6],$=R[7];o("useWAWebListener").useListener(o("WAWebBlocklistCollection").BlocklistCollection,["add","remove","reset"],p);var P=function(){o("WAWebSendSpamChatAction").sendReport({chat:i,spamFlow:b===!0?o("WAWebSpamConstants").SpamFlow.GroupSpamBannerReport:o("WAWebSpamConstants").SpamFlow.OneToOneChatSpamBannerReport}),o("WAWebModalManager").ModalManager.close()},N=function(){o("WAWebSendSpamChatAction").sendSpamExitClear(i,o("WAWebSpamConstants").SpamFlow.GroupSpamBannerReport),o("WAWebModalManager").ModalManager.close()},M=function(){var e=S==null?void 0:S.getParentGroupChat();e!=null&&o("WAWebChatGroupUtils").isCommunityAnnouncementGroup(i)?o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebLeaveCommunityModal.react"),{chat:e,enableDeactivateIfSuperAdmin:!0,spamFlow:o("WAWebSpamConstants").SpamFlow.GroupSpamBannerReport})):o("WAWebChatGroupUtils").isGroupExitExperienceEnabledForChat(i)?o("WAWebSuspendedGroupUtils").openLeaveAndReportGroupModal(i,o("WAWebSpamConstants").SpamFlow.GroupSpamBannerReport):o("WAWebCmd").Cmd.deleteOrExitChat(i)},w=function(){if(!b){o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebReportContactPopup.react"),{chat:i,spamFlow:o("WAWebSpamConstants").SpamFlow.OneToOneChatSpamBannerReport}));return}o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebReportSpamPopup.react"),{isMessage:!1,isGroupChat:!0,onReport:P,onReportExitClear:N,onCancel:function(){return o("WAWebModalManager").ModalManager.close()}}))},A=function(){o("WAWebGroupSafetyToolsModal.react").displayGroupSafetyToolsModal()};if(g||h||!y||C||k||D)return null;var F=o("WAWebBlocklistCollection").BlocklistCollection.get(f),O=o("WAWebButton.react").WAWebButtonSecondary,B=o("WAWebButton.react").WAWebButtonSecondaryDestructive,W=s._(/*BTDS*/"Continuar"),q=u.jsxs(O,{testid:void 0,onClick:d,children:[u.jsx("span",{className:"x1rg5ohu xt8t1vi x1xc408v x129tdwq x15urzxu xjbqb8w x5see2y x16hg961 x1pzews7 x1x3agtl x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x1whkhu0 x3emv5x x1ydeqjr xyg86qh x1120s5i",children:u.jsx(o("WAWebCheckmarkIcon.react").CheckmarkIcon,{width:14,height:12})}),W]},"not_spam"),U=u.jsx(r("WAWebUnstyledButton.react"),{testid:void 0,onClick:l,role:"button",xstyle:[o("WAWebUISpacing").uiMargin.topAuto,o("WAWebUISpacing").uiMargin.bottomAuto],children:u.jsx(o("WAWebXIcon.react").XIcon,{height:24,width:24,DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.GRAY_LIGHTER})},"dismiss_spam"),V=u.jsx(B,{testid:void 0,onClick:w,icon:o("WAWebThumbsDownIcon.react").ThumbsDownIcon,children:s._(/*BTDS*/"Reportar")},"report_spam"),H=u.jsx(B,{testid:void 0,onClick:M,icon:o("WAWebExitIcon.react").ExitIcon,children:m(i)},"exit_group"),G,z,j=[];b?(G=s._(/*BTDS*/"Alguien que no est\u00e1 entre tus contactos te a\u00f1adi\u00f3. Consulta las {safety_tools}.",[s._param("safety_tools",u.jsx(r("WAWebClickableLink.react"),{onClick:A,xstyle:c.link,children:r("fbs")._(/*BTDS*/"herramientas de seguridad")}))]),j.push(V),j.push(H),j.push(q)):(G=u.jsx(r("WAWebBox.react"),{xstyle:o("WAWebUISpacing").uiPadding.end15,children:s._(/*BTDS*/"El remitente no ver\u00e1 si le\u00edste sus mensajes hasta que le respondas o lo a\u00f1adas como contacto.")}),E&&(I!==o("WAWebBusinessProfileTypes").VERIFIED_LEVEL.HIGH?G=s._(/*BTDS*/"La empresa no ver\u00e1 si le\u00edste sus mensajes hasta que le respondas o la a\u00f1adas como contacto."):I===o("WAWebBusinessProfileTypes").VERIFIED_LEVEL.HIGH?G=o("WAWebMiscGatingUtils").isBlueStringsEnabled()?s._(/*BTDS*/"Esta cuenta verificada no est\u00e1 guardada en tu lista de contactos."):s._(/*BTDS*/"Esta cuenta de empresa oficial no est\u00e1 en tu lista de contactos."):G=s._(/*BTDS*/"Esta cuenta de empresa no est\u00e1 en tu lista de contactos")),F?z=u.jsx(O,{testid:void 0,onClick:function(){return o("WAWebBlockContactUtils").handleUnblock(i.contact,E?o("WAWebBlockContants").BlockEntryPoint.BizSpamBannerBlock:o("WAWebBlockContants").BlockEntryPoint.OneToOneOldSpamBannerBlock)},grow:1,children:r("WAWebFbtCommon")("Unblock")},"unblock"):z=u.jsx(B,{testid:void 0,onClick:function(){return o("WAWebBlockContactUtils").handleBlock(i,E?o("WAWebBlockContants").BlockEntryPoint.BizSpamBannerBlock:o("WAWebBlockContants").BlockEntryPoint.OneToOneOldSpamBannerBlock)},icon:o("WAWebSettingsBlockedIcon.react").SettingsBlockedIcon,grow:1,children:r("WAWebFbtCommon")("Block")},"block"),j.push(V,z,q));var K;return b?K=[H,q]:E?K=[z,q]:K=[z,U],u.jsx(r("WAWebConversationNewBanner.react"),{primaryText:G,buttons:K})}d.displayName=d.name+" [from "+i.id+"]";function m(e){return o("WAWebGroupGatingUtils").isGroupExitExperienceEnabled()&&!o("WAWebChatGroupUtils").isCommunityAnnouncementGroup(e)?r("WAWebFbtCommon")("Exit Group"):o("WAWebChatGroupUtils").isCommunityAnnouncementGroup(e)?r("WAWebFbtCommon")("Exit Community"):r("WAWebFbtCommon")("Leave Group")}l.default=d}),226); __d("WAWebComposeBoxPopupPanels.react",["WAWebABProps","WAWebAnimationGroupItem.react","WAWebBizCtwaContextImagePreview.react","WAWebChatGetters","WAWebChatInternalStatusHookWrapper","WAWebComposeBoxExpressionPanels.react","WAWebComposeBoxPanelsMenu.react","WAWebComposeBoxPopupPanel.react","WAWebConversationSpam.react","WAWebDisplayType","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebMediaLinkPreview.react","WAWebMediaLinkPreviewContainer.react","WAWebNoop","WAWebPREGatingUtils","WAWebQuestionReplyQuotedMessage.react","WAWebQuestions.flow","WAWebQuotedMessageUserJourneyLogger","WAWebQuotedMsg.react","WAWebQuotedMsgAdminGroupName.react","WAWebResizeObserver.react","WAWebUISpacing","WAWebUim","WAWebUimUie.react","WAWebVelocityTransitionGroup","cr:5981","gkx","react","stylex","useWAWebChatValues","useWAWebForceUpdate","useWAWebListener","useWAWebMeasure","useWAWebSetModelValue"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useImperativeHandle,_=c.useRef,f={overlay:{position:"x10l6tqk",bottom:"x1ey2m1c",insetInlineStart:"x1o0tod",left:null,right:null,boxSizing:"x9f619",width:"xh8yej3",$$css:!0},overlayRefresh:{width:"x8pckko",$$css:!0},topPanelContainer:{borderStartStartRadius:"x12l2aii",borderStartEndRadius:"x1mbk4o",maxWidth:"xazf962",display:"x1lliihq",$$css:!0},inputBoxShadow:{boxShadow:"xkfubxc",$$css:!0}};function g(e){var t=e.chat,n=e.onClickDismissSpam,o=e.onClickNotSpam;return d.jsx(r("WAWebConversationSpam.react"),{chat:t,onClickNotSpam:o,onClickDismissSpam:n})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.getComposeBlockWidth,n=e.onEmoji,a=e.onExpressionPanelChange,i=e.onExpressionPanelClose,l=e.onGif,s=e.onSticker,u=e.ref,c=e.restoreFocus,m=e.selectedExpressionPanel,f=_(null),g=_(),h=function(t){g.current=t};p(u,function(){return{restoreFocus:function(t){var e;(e=f.current)==null||e.restoreFocus(t)}}});var y=r("useWAWebMeasure")(),C=y[0],b=y[1],v=b.width>0?b.width:t(),S=function(){c()};return d.jsx(r("WAWebAnimationGroupItem.react"),{ref:C,children:d.jsx(r("WAWebComposeBoxExpressionPanels.react"),{displayCache:g.current,width:v,onDisplayCache:h,onEmoji:n,onFocusRelease:S,onGif:l,onExpressionPanelChange:a,onSticker:s,requestDismiss:i,ref:f,selectedExpressionPanel:m,theme:o("WAWebComposeBoxPanelsMenu.react").PanelsTheme.ChatComposeBox})})}h.displayName=h.name+" [from "+i.id+"]";function y(e){"use no forget";var t=e.chat,n=e.isTopmostPanel,a=e.questionType,i=e.rawQuotedMsg,l=e.ref,s=e.restoreFocus,u=o("useWAWebForceUpdate").useForceUpdateDONOTUSE();o("useWAWebListener").useListener(t.composeQuotedMsg,"change:latestEditMsgKey",u);var c=o("useWAWebSetModelValue").useSetModelValue(t,"composeQuotedMsg"),m=function(n){n===void 0&&(n=o("WAWebUim").DismissReason.UIM_INTERACTION),n!==o("WAWebUim").DismissReason.LIFECYCLE&&(c(null),o("WAWebQuotedMessageUserJourneyLogger").QuotedMessageUserJourneyLogger.quotedMessageDeleted(t.id))};return d.jsx(o("WAWebUimUie.react").UIE,{ref:l,displayName:"ComposeBoxQuotedMsg",escapable:!0,requestFocus:s,requestDismiss:m,children:d.jsx(r("WAWebComposeBoxPopupPanel.react"),{onOmit:m,questionType:a,isTopmostPanel:n,children:d.jsx(r("WAWebQuotedMsg.react"),{msg:i.safe(),displayType:o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION,composeQuotedMsgRemoteJid:t.composeQuotedMsgRemoteJid,theme:"composeBox",chat:o("WAWebFrontendMsgGetters").getChat(i),onClick:function(){o("WAWebQuotedMessageUserJourneyLogger").QuotedMessageUserJourneyLogger.quotedMessageTappedInComposer(t.id)},shouldHideQuotedMsgAuthor:i.shouldHideQuotedMsgAuthor},i.id.toString())})})}y.displayName=y.name+" [from "+i.id+"]";function C(e){var t=e.isTopmostPanel,n=e.questionReplyQuotedMessage,a=e.ref;return d.jsx(o("WAWebUimUie.react").UIE,{ref:a,displayName:"QuestionReplyQuotedMsg",escapable:!1,children:d.jsx(r("WAWebComposeBoxPopupPanel.react"),{onOmit:r("WAWebNoop"),isTopmostPanel:t,questionType:o("WAWebQuestions.flow").QuestionType.Reply,showCloseButton:!1,children:d.jsx(r("WAWebQuestionReplyQuotedMessage.react"),{questionReplyQuotedMessage:n})})})}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=e.chat,n=e.questionType,a=e.quotedGroupJid,i=e.ref,l=e.restoreFocus,s=o("useWAWebSetModelValue").useSetModelValue(t,"quotedMsgAdminGroupJid"),u=function(t){t===void 0&&(t=o("WAWebUim").DismissReason.UIM_INTERACTION),t!==o("WAWebUim").DismissReason.LIFECYCLE&&s(null)};return d.jsx(o("WAWebUimUie.react").UIE,{ref:i,displayName:"QuotedMsgAdminGroupName",escapable:!0,requestFocus:l,requestDismiss:u,children:d.jsx(r("WAWebComposeBoxPopupPanel.react"),{questionType:n,onOmit:u,isTopmostPanel:!0,children:d.jsx(o("WAWebQuotedMsgAdminGroupName.react").QuotedMsgAdminGroupName,{isComposePreview:!0,quotedGroupJid:a,quotedParentGroupJid:t.quotedMsgAdminGroupSubject!=null?t.quotedMsgAdminParentGroupJid:void 0,quotedGroupSubject:t.quotedMsgAdminGroupSubject},a.toString())})})}b.displayName=b.name+" [from "+i.id+"]";function v(e){var t=e.isTopmostPanel,n=e.linkPreviewData,a=e.omitLinkPreview,i=e.questionType,l=e.ref,s=n.description,u=n.inviteGrpType,c=n.isLoading,m=n.matchedText,p=n.thumbnail,_=n.thumbnailHeight,f=n.thumbnailHQ,g=n.thumbnailWidth,h=n.title,y=o("WAWebMediaLinkPreviewContainer.react").getHostnameForUrl(m);return d.jsx(o("WAWebUimUie.react").UIE,{ref:l,displayName:"ComposeBoxLinkPreview",escapable:!0,requestDismiss:a,children:d.jsx("div",{"data-testid":void 0,className:"x6ikm8r",children:d.jsx(r("WAWebComposeBoxPopupPanel.react"),{onOmit:a,bodyBackground:!1,isTopmostPanel:t,questionType:i,children:d.jsx(r("WAWebMediaLinkPreview.react"),{title:h,compose:!0,thumbnailJpegHQ:f,matchedText:y!=null?y:m,description:s,thumbnailJpeg:p,inviteGrpType:u,isLoading:c,thumbnailJpegWidth:g,thumbnailJpegHeight:_})})})})}v.displayName=v.name+" [from "+i.id+"]";function S(e){var t=e.ctwaContextData,n=e.ctwaContextLinkData,a=e.isTopmostPanel,i=e.omitCtwa,l=e.questionType,s=e.ref;return d.jsx(o("WAWebUimUie.react").UIE,{ref:s,displayName:"ComposeBoxCtwaContextPreview",escapable:!0,requestDismiss:i,children:d.jsx(r("WAWebComposeBoxPopupPanel.react"),{onOmit:i,questionType:l,isTopmostPanel:a,children:d.jsx(r("WAWebBizCtwaContextImagePreview.react"),{context:t,sourceUrl:n.sourceUrl,compose:!0})})})}S.displayName=S.name+" [from "+i.id+"]";function R(e,t){var a,i,l=t.chat,u=t.ctwaContextData,c=t.ctwaContextLinkData,p=t.getComposeBlockWidth,R=t.linkPreviewData,L=t.omitCtwa,E=t.omitLinkPreview,k=t.onClickDismissSpam,I=t.onClickNotSpam,T=t.onComposeHeightChange,D=t.onEmoji,x=t.onExpressionPanelChange,$=t.onExpressionPanelClose,P=t.onGif,N=t.onSticker,M=t.questionReplyQuotedMessage,w=t.questionType,A=t.restoreFocus,F=t.selectedExpressionPanel,O=t.showSpamPanel,B=_(null),W=[],q=[],U=o("useWAWebChatValues").useChatValues(l.id,[o("WAWebChatGetters").getIsPSA,(i=o("WAWebFrontendChatGetters")).getShouldAppearInList,i.getComposeQuotedMsg,i.getComposeQuotedMsgRemoteJid,i.getQuotedMsgAdminGroupJid,i.getQuotedMsgAdminGroupSubject,i.getQuotedMsgAdminParentGroupJid,i.getMsgs,i.getContact]),V=U[0],H=U[1],G=U[2],z=U[3],j=U[4],K=U[5],Q=U[6],X=U[7],Y=U[8];O&&!V&&H&&X&&X.length>0?q.push(d.jsx(g,{chat:l,onClickNotSpam:I,onClickDismissSpam:k})):q.push(null),F&&p()!=null?q.push(d.jsx(h,{getComposeBlockWidth:p,onEmoji:D,onExpressionPanelChange:x,onExpressionPanelClose:$,onGif:P,onSticker:N,restoreFocus:A,ref:e,selectedExpressionPanel:F})):q.push(null);var J=(a=r("WAWebChatInternalStatusHookWrapper")(l.id))!=null?a:{},Z=J.hasActiveStatus;r("gkx")("26258")===!1&&o("WAWebChatGetters").getIsGroup(l)===!1&&n("cr:5981")!=null&&Z===!0?W.push(d.jsx(n("cr:5981").InternalStatusWarningComposeBox,{id:l.contact.id,renderImmediately:!0})):W.push(null),M?W.push(d.jsx(C,{questionReplyQuotedMessage:M,isTopmostPanel:W.filter(Boolean).length===0})):G?W.push(d.jsx(y,{chat:l,rawQuotedMsg:G,isTopmostPanel:W.filter(Boolean).length===0,restoreFocus:A,questionType:w})):j?W.push(d.jsx(b,{chat:l,restoreFocus:A,quotedGroupJid:j,questionType:w})):W.push(null),R?W.push(d.jsx(v,{linkPreviewData:R,isTopmostPanel:W.filter(Boolean).length===0,omitLinkPreview:E,questionType:w})):W.push(null),c?W.push(d.jsx(S,{ctwaContextLinkData:c,isTopmostPanel:W.filter(Boolean).length===0,omitCtwa:L,ctwaContextData:u,questionType:w})):W.push(null);var ee=W.filter(Boolean).length>0,te=[f.overlay];te.push(f.overlayRefresh,o("WAWebUISpacing").uiMargin.horiz12),ee&&te.push(o("WAWebUISpacing").uiMargin.top6);var ne=_(null),re=function(){var e,t=B==null||(e=B.current)==null?void 0:e.clientHeight;ne.current===t&&o("WAWebPREGatingUtils").isPREResizeEnabled()||(T({overlay:t},!0),ne.current=t)};m(function(){if(o("WAWebABProps").getABPropConfigValue("wa_web_reduce_forced_layout_chat_open")){var e=window.requestAnimationFrame(function(){re()});return function(){return window.cancelAnimationFrame(e)}}re()},[]);var oe=d.jsx("div",{className:"x10l6tqk x13vifvy x1o0tod xh8yej3",children:d.jsxs("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(te),{ref:B,children:[q,d.jsx(r("WAWebResizeObserver.react"),{onResize:re,children:d.jsx(r("WAWebVelocityTransitionGroup"),{displayName:"ComposeBoxPanels",transitionName:"compose-panel-down",xstyle:[f.topPanelContainer,w==null&&f.inputBoxShadow,o("WAWebUISpacing").uiMargin.horizAuto],children:W})})]}))});return{PopupPanels:oe,hasTopPanels:ee}}l.useComposePopupPanels=R}),98); __d("WAWebPttCancelButton.react",["fbt","WDSIconIcDelete.react","WDSMenuBarItem.react","react"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=r("react")),m=(u||(u=o("react"))).useRef;function p(t){var n=t.ref,o=babelHelpers.objectWithoutPropertiesLoose(t,e),a=o.confirmOnMouseUp,i=o.onConfirm,l=o.tabOrder,u=m(!1),c=function(t){u.current=!0,window.addEventListener("mouseup",function(){u.current=!1},{once:!0})},p=function(t){a&&(u.current||t.button===0&&i(t))},_=function(t){t!=null&&i(t)},f=s._(/*BTDS*/"Cancelar");return d.jsx("div",{onMouseUp:p,onMouseDown:c,"aria-label":f,children:d.jsx(r("WDSMenuBarItem.react"),{ref:n,testid:void 0,onClick:_,tabOrder:l,title:f,icon:r("WDSIconIcDelete.react")})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebRecordingSessionStateEnum",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum").Mirrored(["NOT_STARTED","RECORDING","PAUSED","STOPPED","ERROR"]);i.RecordingSessionState=e}),66); __d("WAWebPttComposerRecordingSessionGetters",["WAWebGetters","WAWebGettersCaches","WAWebRecordingSessionStateEnum"],(function(t,n,r,o,a,i,l){var e=o("WAWebGetters").createGetterFactories({createCache:o("WAWebGettersCaches").createRecordingSessionCache}),s=e.clearCacheFor,u=e.computed,c=e.field,d=s,m=c("exceedsMinDuration"),p=c("recordingState"),_=u(function(e){var t=e[0];return t===o("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING},[p]),f=c("isViewOnce");l.clearRecordingSessionGetterCacheFor=d,l.getExceedsMinDuration=m,l.getIsRecording=_,l.getIsViewOnce=f}),98); __d("WAWebPttComposerStreamingEncryptor",["Promise","WACryptoAesCbc","WACryptoHmac","WAMediaCalculateFilehash","WAMediaCrypto","WATypedArraysConcat","WAWebCryptoCreateMediaKeys","WAWebMmsMediaTypes","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){var e,s=(function(){function t(t){var r=t.encKey,a=t.mediaKeys,i=t.onChunkEncrypted,l=t.onEncryptionCompleted;this.$6=(e||(e=n("Promise"))).resolve(),this.$3=a,this.$4=r,this.$5=o("WACryptoAesCbc").getIv(this.$3.iv),this.$2=[this.$5],this.$1=new Uint8Array([]),this.$8=i,this.$9=l,this.$7=!1}var a=t.prototype;return a.getMediaKeys=function(){return this.$3},a.encryptChunk=function(t,a){var e=this;if(this.$7)throw r("err")("Encryption was already finalized");a&&(this.$7=!0);var i=this.$10(t,a);i!=null&&(this.$6=this.$6.then(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=yield o("WACryptoAesCbc").aesCbcEncryptChunk(a,i,e.$5,e.$4);e.$8==null||e.$8(t.encryptedChunk),e.$11(t,a)})))},a.$11=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n;if(this.$2.push(e.encryptedChunk),this.$5=e.nextIv,!!t){var r=o("WATypedArraysConcat").concatTypedArrays(Uint8Array,this.$2,o("WAMediaCrypto").HMAC_LENGTH),a=this.$2[0].byteLength,i=r.byteLength-o("WAMediaCrypto").HMAC_LENGTH,l=r.subarray(0,i),s=yield o("WACryptoHmac").hmacSha256(this.$3.macKey,l,o("WAMediaCrypto").HMAC_LENGTH);r.set(new Uint8Array(s),i);var u=r.subarray(a),c=yield o("WAMediaCalculateFilehash").calculateFilehash(u);(n=this.$9)==null||n.call(this,s,c)}});function t(t,n){return e.apply(this,arguments)}return t})(),a.$10=function(t,n){if(this.$1=o("WATypedArraysConcat").concatTypedArrays(Uint8Array,[this.$1,t]),this.$1.length>=o("WACryptoAesCbc").AES_CBC_BLOCK_SIZE||n){var e=n?this.$1.length:Math.floor(this.$1.length-this.$1.length%o("WACryptoAesCbc").AES_CBC_BLOCK_SIZE),r=this.$1.slice(0,e);r.subarray();var a=new Uint8Array(this.$1.length-e);return a.set(this.$1.slice(e,this.$1.length)),this.$1=a,r}},t})();function u(e){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=yield r("WAWebCryptoCreateMediaKeys")(o("WAWebMmsMediaTypes").MEDIA_TYPES.PTT,e.mediaKey),n=yield o("WACryptoAesCbc").importRawKey(t.encKey);return new s({mediaKeys:t,encKey:n,onChunkEncrypted:e.onChunkEncrypted,onEncryptionCompleted:e.onEncryptionCompleted})}),c.apply(this,arguments)}l.StreamingEncryptor=s,l.createStreamingEncryptor=u}),98); __d("WAWebWamEnumPttResultType",[],(function(t,n,r,o,a,i){var e=Object.freeze({SENT:1,CANCELLED:2,TOO_SHORT:3});i.PTT_RESULT_TYPE=e}),66); __d("WAWebWamEnumPttSourceType",[],(function(t,n,r,o,a,i){var e=Object.freeze({FROM_CONVERSATION:0,FROM_VOICEMAIL:1});i.PTT_SOURCE_TYPE=e}),66); __d("WAWebPttWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumPttResultType","WAWebWamEnumPttSourceType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({Ptt:[458,{isMetaAiThread:[15,e.TYPES.BOOLEAN],pttAuddevRecorderAvgCbT:[17,e.TYPES.TIMER],pttAuddevRecorderInitT:[18,e.TYPES.TIMER],pttAuddevRecorderStartT:[19,e.TYPES.TIMER],pttAuddevRecorderStopT:[20,e.TYPES.TIMER],pttAudioEngine:[16,e.TYPES.INTEGER],pttAvgNoiseLoudness:[11,e.TYPES.NUMBER],pttAvgNoiseLoudnessReduction:[12,e.TYPES.NUMBER],pttAvgSpeechLoudness:[13,e.TYPES.NUMBER],pttAvgSpeechLoudnessReduction:[14,e.TYPES.NUMBER],pttDraftPlayCnt:[7,e.TYPES.INTEGER],pttDraftSeekCnt:[8,e.TYPES.INTEGER],pttDuration:[5,e.TYPES.TIMER],pttLock:[4,e.TYPES.BOOLEAN],pttPauseCnt:[9,e.TYPES.INTEGER],pttRecorderCbBucketGte20msPct:[21,e.TYPES.NUMBER],pttRecorderCbBucketLt10msPct:[22,e.TYPES.NUMBER],pttRecorderCbBucketLt15msPct:[23,e.TYPES.NUMBER],pttRecorderCbBucketLt20msPct:[24,e.TYPES.NUMBER],pttRecorderCbBucketLt5msPct:[25,e.TYPES.NUMBER],pttRecorderNoiseDurationMs:[26,e.TYPES.TIMER],pttRecorderSpeechDurationMs:[27,e.TYPES.TIMER],pttResult:[1,o("WAWebWamEnumPttResultType").PTT_RESULT_TYPE],pttSize:[3,e.TYPES.NUMBER],pttSource:[2,o("WAWebWamEnumPttSourceType").PTT_SOURCE_TYPE],pttStop:[6,e.TYPES.BOOLEAN],pttStopTapCnt:[10,e.TYPES.INTEGER]},[1,1,1],"regular"]},{Ptt:[]});l.PttWamEvent=s}),98); __d("WAWebUploadStreamerRefactorGatingUtils",["WAWebABProps"],(function(t,n,r,o,a,i,l){function e(){return o("WAWebABProps").getABPropConfigValue("web_ptt_streamer_upload")}l.isUploadStreamerRefactorEnabled=e}),98); __d("WAWebPttComposerRecordingSession",["fbt","invariant","$InternalEnum","Promise","WAAbortError","WALogger","WAMediaCalculateFilehash","WANullthrows","WAPromiseRaceAbort","WAPttComposerRecorder","WAPttComposerScaleWaveform","WARandomHex","WAWebAppTracker","WAWebBaseModel","WAWebBotProfileCollection","WAWebBotUtils","WAWebCallCollection","WAWebConfirmPopup.react","WAWebCreateMediaUploadMetrics","WAWebCryptoRandomMediaKey","WAWebFrontendChatGetters","WAWebGuidePopup.react","WAWebMedia","WAWebMediaCapture","WAWebMediaCaptureStreamType","WAWebMediaGetUploadOriginForChat","WAWebMediaLoad","WAWebMediaOpaqueData","WAWebMiscErrors","WAWebMmsClientUploadStreamer","WAWebMmsMediaTypes","WAWebModalManager","WAWebNoop","WAWebPresenceChatAction","WAWebPresenceCollection","WAWebPttAudioChannels","WAWebPttAudioManager","WAWebPttComposerRecordingSessionGetters","WAWebPttComposerStreamingEncryptor","WAWebPttDailyUtils","WAWebPttWamEvent","WAWebRecordingSessionStateEnum","WAWebSerializeError","WAWebTimeSpentLoggingExternal","WAWebUploadStreamerRefactorGatingUtils","WAWebWamEnumPttResultType","WAWebWamEnumPttSourceType","WAWebWamEnumTsExternalEventSource","WAWebWamMediaMetricUtils","asyncToGeneratorRuntime","err","lodash","react"],(function(t,n,r,o,a,i,l,s,u){var e,c,d,m,p,_,f,g,h,y,C,b,v,S,R,L,E,k,I,T,D,x,$,P,N,M,w,A=w||(w=r("react")),F=n("$InternalEnum").Mirrored(["CANCEL_BUTTON","PTT_TOO_SHORT","SENT","OTHER"]),O=1,B=8.5,W=64,q=(function(t){function a(){for(var e,n=arguments.length,r=new Array(n),a=0;a=O},onPage:function(n,r){if(!(!o("WAWebUploadStreamerRefactorGatingUtils").isUploadStreamerRefactorEnabled()||t._hasStreamingUploadFailed))try{var e;E&&(i(),E=!1),(e=t._encryptor)==null||e.encryptChunk(n,r)}catch(e){o("WALogger").ERROR(p||(p=babelHelpers.taggedTemplateLiteralLoose(["PTT Streaming Upload cancelled due to a problem encrypting"]))),t._resolveEarlyUploadPromise==null||t._resolveEarlyUploadPromise(null),t._hasStreamingUploadFailed=!0}}});var k=yield this._recorder.start();if(k)return this.recordingState=o("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING,o("WAWebAppTracker").AppTracker.start(o("WAWebAppTracker").AppTrackerType.RecordPTT),o("WAWebPresenceCollection").PresenceCollection.update(this._chat.presence.id),o("WAWebPttDailyUtils").incrementPttDailyCount(o("WAWebPttDailyUtils").PttDailyCountKind.RECORD,r("WANullthrows")(o("WAWebFrontendChatGetters").getKind(this._chat))),!0}catch(e){o("WALogger").ERROR(_||(_=babelHelpers.taggedTemplateLiteralLoose(["PTT Recording Error\n",""],["PTT Recording Error\\n",""])),r("WAWebSerializeError")(e))}return this._endSession(),this.recordingState=o("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR,!1});function a(){return t.apply(this,arguments)}return a})(),i.getLiveWaveformSamples=function(){var e,t;return(e=(t=this._recorder)==null?void 0:t.getLiveWaveformSamples())!=null?e:[]},i.getCorrectedWaveformSamples=function(){var e,t;return(e=(t=this._recorder)==null?void 0:t.getCorrectedWaveformSamples())!=null?e:[]},i.getScaledWaveformSamples=function(){return r("WAPttComposerScaleWaveform")(this.getCorrectedWaveformSamples(),W).map(function(e){return Math.floor(e*100)})},i.getPreciseDuration=function(){var e,t;return(e=(t=this._recorder)==null?void 0:t.getPreciseDuration())!=null?e:0},i._endSession=function(){var e;(e=this._recorder)==null||e.stop()},i.pause=function(){if(this.recordingState===o("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING){if(!this.exceedsMinDuration){this.stop(F.PTT_TOO_SHORT);return}this.recordingState=o("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED,o("WAWebAppTracker").AppTracker.stop(o("WAWebAppTracker").AppTrackerType.RecordPTT);var e=r("WANullthrows")(this._recorder);e.pause()}},i.resume=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){switch(this.recordingState){case o("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING:return!0;case o("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED:break;case o("WAWebRecordingSessionStateEnum").RecordingSessionState.NOT_STARTED:case o("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED:case o("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR:throw r("err")("Can't resume recording from state "+this.recordingState)}this.recordingState=o("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING;try{var e=r("WANullthrows")(this._recorder),t=yield e.resume();return t?(o("WAWebAppTracker").AppTracker.start(o("WAWebAppTracker").AppTrackerType.RecordPTT),!0):(this.recordingState=o("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED,!1)}catch(e){return this.recordingState=o("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR,o("WALogger").ERROR(f||(f=babelHelpers.taggedTemplateLiteralLoose(["Error resuming recording session\n",""],["Error resuming recording session\\n",""])),r("WAWebSerializeError")(e)),!1}});function t(){return e.apply(this,arguments)}return t})(),i.stop=function(t){if(this.recordingState!==o("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED&&(this.recordingState=o("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED,o("WAWebAppTracker").AppTracker.stop(o("WAWebAppTracker").AppTrackerType.RecordPTT),this._endSession(),this._recorder!=null)){t===F.SENT?o("WAWebPttDailyUtils").incrementPttDailyCount(o("WAWebPttDailyUtils").PttDailyCountKind.SEND,r("WANullthrows")(o("WAWebFrontendChatGetters").getKind(this._chat))):this.duration>O&&o("WAWebPttDailyUtils").incrementPttDailyCount(o("WAWebPttDailyUtils").PttDailyCountKind.CANCEL,r("WANullthrows")(o("WAWebFrontendChatGetters").getKind(this._chat))),t!==F.SENT&&this._uploaderAbortController&&this._uploaderAbortController.abort();var e=H(t);e!=null&&this._sendPttWamEvent(e)}},i._getDataForSending=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{o("WALogger").LOG(g||(g=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: _getDataForSending started"])));var e=r("WANullthrows")(this._recorder),t=yield e.getCompleteRecording();o("WALogger").LOG(h||(h=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Got complete recording, size: "," bytes, type: ",""])),t.size,t.type);var n=yield r("WAWebMediaOpaqueData").createFromData(t,t.type);return o("WALogger").LOG(y||(y=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Created OpaqueData successfully"]))),n}catch(e){throw o("WALogger").ERROR(C||(C=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Error in _getDataForSending"]))),e}});function t(){return e.apply(this,arguments)}return t})(),i._getDataForPlayback=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=r("WANullthrows")(this._recorder),t=yield e.getPartialRecording(),n=yield o("WAWebMediaLoad").transcode(t);return r("WAWebMediaOpaqueData").createFromData(n,n.type)});function t(){return e.apply(this,arguments)}return t})(),i.getAudioForPlayback=function(){var e=this;return new j(function(){return e._getDataForPlayback()})},i.getWaveformSampleRate=function(){return B},i.send=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.isViewOnce,n=t===void 0?!1:t,a=e.isWamoSub,i=e.threadId;try{var l,s;o("WALogger").LOG(b||(b=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: send started with isViewOnce=",", isWamoSub=",""])),n,a),(l=this._handleSendMessageStart)==null||l.call(this,n),this._recorder||o("WALogger").ERROR(v||(v=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Recorder is null in send method"])));var u=r("WANullthrows")(this._recorder),c=this._chat;o("WALogger").LOG(S||(S=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Getting data for sending"])));var d=r("WAPromiseRaceAbort")(this._getDataForSending(),c.getDeleteSignal()),m=((s=c.getComposeContents())==null?void 0:s.ctwaContext)||void 0;o("WALogger").LOG(R||(R=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Before prepRawMedia, duration=",", waveform samples=",""])),Math.floor(u.getDuration()),this.getScaledWaveformSamples().length);var p;try{p=o("WAWebMedia").prepRawMedia(d,{isPtt:!0,precomputedFields:{duration:Math.floor(u.getDuration()),waveform:new Uint8Array(this.getScaledWaveformSamples())}}),o("WALogger").LOG(L||(L=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: prepRawMedia completed successfully"])))}catch(e){throw o("WALogger").ERROR(E||(E=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Error in prepRawMedia"]))),e}o("WALogger").LOG(k||(k=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Early upload promise status: ",""])),this._earlyUploadPromise?"exists":"null");var _=null;if(o("WAWebBotUtils").isMetaAiBot(c.id)){var f;_=(f=o("WAWebBotProfileCollection").BotProfileCollection.get(c.id))==null?void 0:f.personaId}try{p.sendToChat(c,{quotedMsg:c.composeQuotedMsg||void 0,addEvenWhilePreparing:!n,ctwaContext:m,isViewOnce:n,isWamoSub:a,botPersonaId:_,threadId:i},this._earlyUploadPromise),o("WALogger").LOG(I||(I=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: sendToChat called successfully"])))}catch(e){throw o("WALogger").ERROR(T||(T=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Error in sendToChat:"]))),e}c.composeQuotedMsg=null,o("WALogger").LOG(D||(D=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Stopping recording session with SENT reason"]))),this.stop(F.SENT);try{yield d.catch(o("WAAbortError").catchAbort(r("WAWebNoop"))),o("WALogger").LOG(x||(x=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: getData completed or was aborted"])))}catch(e){o("WALogger").ERROR($||($=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Error in getData: ",""])),e)}o("WALogger").LOG(P||(P=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: send method completed successfully"])))}catch(e){throw o("WALogger").ERROR(N||(N=babelHelpers.taggedTemplateLiteralLoose(["WAWebPttComposerRecordingSession: Unhandled error in send method"]))),e}});function t(t){return e.apply(this,arguments)}return t})(),i._sendPttWamEvent=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t,n=r("WANullthrows")(this._recorder),a=yield n.getCompleteRecording();new(o("WAWebPttWamEvent")).PttWamEvent({pttSource:o("WAWebWamEnumPttSourceType").PTT_SOURCE_TYPE.FROM_CONVERSATION,pttResult:e,pttDuration:Math.round(this.duration)*1e3,pttSize:r("lodash").round((t=a.size)!=null?t:0,-3),pttStop:this._draftPreviewSeen,pttDraftPlayCnt:this._draftPlayCount,pttDraftSeekCnt:this._draftSeekCount,pttPauseCnt:this._pauseCount}).commit()});function t(t){return e.apply(this,arguments)}return t})(),i.markDraftPreviewSeen=function(){this._draftPreviewSeen||(this._draftPreviewSeen=!0,o("WAWebPttDailyUtils").incrementPttDailyCount(o("WAWebPttDailyUtils").PttDailyCountKind.DRAFT_REVIEW,r("WANullthrows")(o("WAWebFrontendChatGetters").getKind(this._chat))))},i.incrementDraftPlayCount=function(){this._draftPlayCount++},i.incrementDraftSeekCount=function(){this._draftSeekCount++},i.incrementPauseButtonCount=function(){this._pauseCount++,this._pauseCount===1&&o("WAWebPttDailyUtils").incrementPttDailyCount(o("WAWebPttDailyUtils").PttDailyCountKind.PAUSED_RECORD,r("WANullthrows")(o("WAWebFrontendChatGetters").getKind(this._chat)))},i.delete=function(){t.prototype.delete.call(this),o("WAWebPttComposerRecordingSessionGetters").clearRecordingSessionGetterCacheFor(this)},a})(o("WAWebBaseModel").BaseModel);q.Proxy="recordingSession";var U=o("WAWebBaseModel").defineModel(q);function V(e){return new U({id:o("WARandomHex").randomHex(8),_chat:e.chat})}function H(e){switch(e){case F.SENT:return o("WAWebWamEnumPttResultType").PTT_RESULT_TYPE.SENT;case F.PTT_TOO_SHORT:return o("WAWebWamEnumPttResultType").PTT_RESULT_TYPE.TOO_SHORT;case F.CANCEL_BUTTON:return o("WAWebWamEnumPttResultType").PTT_RESULT_TYPE.CANCELLED;case F.OTHER:return null}}function G(e){return z.apply(this,arguments)}function z(){return z=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(r("WAWebCallCollection").activeCall)return o("WAWebModalManager").ModalManager.open(A.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return o("WAWebModalManager").ModalManager.close()},children:s._(/*BTDS*/"No se pueden grabar mensajes de voz durante una llamada de WhatsApp.")})),null;var t=o("WAWebMediaCapture").start({type:o("WAWebMediaCaptureStreamType").WAWebMediaCaptureStreamType.MICROPHONE,featureSurface:o("WAWebGuidePopup.react").FeatureSurface.VOICE_MESSAGES}),n=t.asyncStream,a=t.disposeStream;e.addEventListener("abort",function(){a()},{once:!0});try{return yield n}catch(e){if(e instanceof o("WAWebMiscErrors").GetUserMedia.NotAllowedError){var i;return o("WAWebModalManager").ModalManager.open(A.jsx((i=o("WAWebGuidePopup.react")).GuidePopup,{messaging:i.Messaging.MIC_FAIL,type:i.GuidePopupType.GUIDE_UNBLOCK,featureSurface:i.FeatureSurface.VOICE_MESSAGES})),null}if(e instanceof o("WAWebMiscErrors").GetUserMedia.GetUserMediaError){var i;return o("WAWebModalManager").ModalManager.open(A.jsx((i=o("WAWebGuidePopup.react")).GuidePopup,{messaging:i.Messaging.MIC_MISSING,type:i.GuidePopupType.GUIDE_NONE,featureSurface:i.FeatureSurface.VOICE_MESSAGES})),null}throw e}}),z.apply(this,arguments)}var j=(function(){function e(e){var t=this;this._opaqueDataPromise=e();var r=o("WAWebPttAudioManager").AudioManager.createAudioProxy();this._audio=r,this._unregisterFromAudioChannel=o("WAWebPttAudioChannels").MainAudioChannel.registerMedia(r),n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield t._opaqueDataPromise,n=t._audio;n!=null&&(n.src=e.url())})()}var t=e.prototype;return t.getAudio=function(){return this._audio!=null||u(0,56371),this._audio},t.dispose=function(){var e=this,t=this._audio;t!=null&&(this._unregisterFromAudioChannel(),this._audio=null,n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=yield e._opaqueDataPromise;t.autorelease()})())},e})();l.RecordingSessionStopReason=F,l.RecordingSession=U,l.createRecordingSession=V,l.AudioResource=j}),226); __d("WAWebWamEnumPttMessageUserJourneyAction",[],(function(t,n,r,o,a,i){var e=Object.freeze({START:1,PAUSE:2,RESUME:3,FAIL:4,SEND:5,DELETE:6,AUTO_CANCEL:7,LOCK:8,DRAFT_SAVED:9,DRAFT_LOADED:10});i.PTT_MESSAGE_USER_JOURNEY_ACTION=e}),66); __d("WAWebWamEnumPttMessageUserJourneyFailureReason",[],(function(t,n,r,o,a,i){var e=Object.freeze({FAIL_OTHER:1,FAIL_CREATE_RECORDER:2,FAIL_PREPARE_RECORDER:3,FAIL_START_RECORDER:4,FAIL_RESUME_RECORDER:5,FAIL_MIC_PERMISSION:6,FAIL_STORAGE_READ_WRITE_PERMISSION:7,FAIL_MINIMUM_STORAGE_REQUIREMENT:8,FAIL_PAUSE_RECORDER:9,FAIL_MOVE_PTT_FILE_TO_PERMANENT_STORAGE_ON_SEND:10,FAIL_STORE_PTT_FILE_IN_DRAFT_CACHE:11,FAIL_RECORDER_STOP:12,FAIL_DRAFT_PLAYBACK_START:13,FAIL_DRAFT_PLAYBACK_SEEK:14,FAIL_MIC_AND_STORAGE_READ_WRITE_PERMISSION:15});i.PTT_MESSAGE_USER_JOURNEY_FAILURE_REASON=e}),66); __d("WAWebWamEnumPttMessageUserJourneyStage",[],(function(t,n,r,o,a,i){var e=Object.freeze({NORMAL:1,LOCKED:2});i.PTT_MESSAGE_USER_JOURNEY_STAGE=e}),66); __d("WAWebWamEnumPttWaveformResult",[],(function(t,n,r,o,a,i){var e=Object.freeze({SUCCESS:1,ALL_ZEROES:2,ALL_ONES:3,MISSING:4});i.PTT_WAVEFORM_RESULT=e}),66); __d("WAWebPttMessageUserJourneyWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumChatbarInitialState","WAWebWamEnumPttMessageUserJourneyAction","WAWebWamEnumPttMessageUserJourneyFailureReason","WAWebWamEnumPttMessageUserJourneyStage","WAWebWamEnumPttWaveformResult","WAWebWamEnumTsSurface","WAWebWamEnumUserJourneyChatType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({PttMessageUserJourney:[5402,{appSessionId:[1,e.TYPES.STRING],chatbarInitialState:[7,o("WAWebWamEnumChatbarInitialState").CHATBAR_INITIAL_STATE],isMetaAiThread:[12,e.TYPES.BOOLEAN],pttIntensityAggregateValue:[14,e.TYPES.NUMBER],pttMessageUserJourneyAction:[2,o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION],pttMessageUserJourneyContainsQuotedItem:[11,e.TYPES.BOOLEAN],pttMessageUserJourneyFailureReason:[9,o("WAWebWamEnumPttMessageUserJourneyFailureReason").PTT_MESSAGE_USER_JOURNEY_FAILURE_REASON],pttMessageUserJourneyStage:[3,o("WAWebWamEnumPttMessageUserJourneyStage").PTT_MESSAGE_USER_JOURNEY_STAGE],pttWaveformResult:[13,o("WAWebWamEnumPttWaveformResult").PTT_WAVEFORM_RESULT],uiSurface:[4,o("WAWebWamEnumTsSurface").TS_SURFACE],unifiedSessionId:[10,e.TYPES.STRING],userJourneyChatType:[5,o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE],userJourneyEventMs:[8,e.TYPES.INTEGER],userJourneyFunnelId:[6,e.TYPES.STRING]},[1,1,1],"regular"]},{PttMessageUserJourney:[]});l.PttMessageUserJourneyWamEvent=s}),98); __d("WAWebPttMessageUserJourneyLogger",["WALogger","WATimeUtils","WAWebABProps","WAWebPonyfillsCryptoRandomUUID","WAWebPttMessageUserJourneyWamEvent","WAWebUnifiedSession","WAWebWamEnumChatbarInitialState","WAWebWamEnumPttMessageUserJourneyAction","WAWebWamEnumTsSurface","WAWebWamEnumUserJourneyChatType"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(function(){function t(e){e===void 0&&(e=r("WAWebPonyfillsCryptoRandomUUID")()),this.loggingEnabled=!1,this.$3=!1,this.loggingEnabled=o("WAWebABProps").getABPropConfigValue("ptt_user_journey_logging_wam_enabled"),this.$1=e}var n=t.prototype;return n.setHasDraft=function(t){t===void 0&&(t=!0),this.$3=t},n.start=function(t,n){this.$3=!1,this.$4({chatId:t,uiSurface:m(t),action:o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.START,containsQuotedItem:n})},n.pause=function(t,n){this.$4({chatId:t,uiSurface:m(t),action:o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.PAUSE,containsQuotedItem:n})},n.resume=function(t,n){this.$4({chatId:t,uiSurface:m(t),action:o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.RESUME,containsQuotedItem:n})},n.send=function(t,n){this.$4({chatId:t,uiSurface:m(t),action:o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.SEND,containsQuotedItem:n}),this.$3=!1},n.delete=function(t,n){this.$4({chatId:t,uiSurface:m(t),action:o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.DELETE,containsQuotedItem:n}),this.$3=!1},n.draftSaved=function(t,n){this.$4({chatId:t,uiSurface:m(t),action:o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_SAVED,containsQuotedItem:n})},n.$4=function(n){if(this.loggingEnabled){var t=o("WAWebUnifiedSession").UnifiedSessionManager.getSessionId();if(t==null){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[uj] [ptt message] Unified session ID is null"])));return}u(n.action)&&this.$2==null&&(this.$2=r("WAWebPonyfillsCryptoRandomUUID")());var a=this.$2;if(a!=null){var i=d(n.chatId),l=new(o("WAWebPttMessageUserJourneyWamEvent")).PttMessageUserJourneyWamEvent;l.appSessionId=this.$1,l.unifiedSessionId=t,l.userJourneyFunnelId=a,l.uiSurface=n.uiSurface,i!=null&&(l.userJourneyChatType=i),l.userJourneyEventMs=o("WATimeUtils").unixTimeMs(),l.chatbarInitialState=this.$3?o("WAWebWamEnumChatbarInitialState").CHATBAR_INITIAL_STATE.CONTAINS_DRAFT:o("WAWebWamEnumChatbarInitialState").CHATBAR_INITIAL_STATE.EMPTY,l.pttIntensityAggregateValue=0,l.pttMessageUserJourneyAction=n.action,l.pttMessageUserJourneyContainsQuotedItem=n.containsQuotedItem,l.commit(),c(n.action)&&(this.$2=null)}}},t})();function u(e){return e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.AUTO_CANCEL||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.FAIL||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_SAVED||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_LOADED?!1:e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.START||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.RESUME||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.PAUSE||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.DELETE||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.SEND||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.LOCK?!0:(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+e)})()}function c(e){return e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.SEND||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.AUTO_CANCEL||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.FAIL||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_SAVED||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_LOADED||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.DELETE?!0:e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.START||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.RESUME||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.PAUSE||e===o("WAWebWamEnumPttMessageUserJourneyAction").PTT_MESSAGE_USER_JOURNEY_ACTION.LOCK?!1:(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+e)})()}function d(e){return e.isUser()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.INDIVIDUAL:e.isGroup()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.GROUP:e.isNewsletter()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.CHANNEL:null}function m(e){return e.isGroup()?o("WAWebWamEnumTsSurface").TS_SURFACE.GROUP_CHAT:o("WAWebWamEnumTsSurface").TS_SURFACE.CHAT_THREAD}var p=new s;l.PttMessageUserJourneyLogger=p}),98); __d("WDSIconIcPauseCircle.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-pause-circle";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M10 16C10.2833 16 10.5208 15.9042 10.7125 15.7125C10.9042 15.5208 11 15.2833 11 15V9C11 8.71667 10.9042 8.47917 10.7125 8.2875C10.5208 8.09583 10.2833 8 10 8C9.71667 8 9.47917 8.09583 9.2875 8.2875C9.09583 8.47917 9 8.71667 9 9V15C9 15.2833 9.09583 15.5208 9.2875 15.7125C9.47917 15.9042 9.71667 16 10 16ZM14 16C14.2833 16 14.5208 15.9042 14.7125 15.7125C14.9042 15.5208 15 15.2833 15 15V9C15 8.71667 14.9042 8.47917 14.7125 8.2875C14.5208 8.09583 14.2833 8 14 8C13.7167 8 13.4792 8.09583 13.2875 8.2875C13.0958 8.47917 13 8.71667 13 9V15C13 15.2833 13.0958 15.5208 13.2875 15.7125C13.4792 15.9042 13.7167 16 14 16ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebPttPauseResumeRecordingButton.react",["fbt","WDSIconIcKeyboardVoiceFilled.react","WDSIconIcPauseCircle.react","WDSMenuBarItem.react","react"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=r("react")),m=(u||(u=o("react"))).useRef;function p(t){var n=t.ref,o=babelHelpers.objectWithoutPropertiesLoose(t,e),a=o.confirmOnMouseUp,i=o.disabled,l=i===void 0?!1:i,u=o.onConfirm,c=o.recording,p=o.tabOrder,_=m(!1),f=function(t){_.current=!0,window.addEventListener("mouseup",function(){_.current=!1},{once:!0})},g=function(t){a&&(_.current||t.button===0&&u(t))},h=function(t){t!=null&&u(t)},y=c?s._(/*BTDS*/"Pausar grabaci\u00f3n"):s._(/*BTDS*/"Reanudar grabaci\u00f3n");return d.jsx("div",babelHelpers.extends({onMouseUp:g,onMouseDown:f,"aria-label":y},{0:{className:"x14ug900 x144v4sp"},1:{className:"x14ug900 x144v4sp"}}[!l<<0],{children:d.jsx(r("WDSMenuBarItem.react"),{ref:n,testid:void 0,title:y,onClick:h,disabled:l,tabOrder:p,icon:r(c?"WDSIconIcPauseCircle.react":"WDSIconIcKeyboardVoiceFilled.react")})}))}p.displayName=p.name+" [from "+i.id+"]",p.displayName="PttPauseAndResumeRecordingButton",l.default=p}),226); __d("WDSIconIcSendFilled.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-send-filled";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M4.4 19.425C4.06667 19.5583 3.75 19.5291 3.45 19.3375C3.15 19.1458 3 18.8666 3 18.5V14L11 12L3 9.99997V5.49997C3 5.1333 3.15 4.85414 3.45 4.66247C3.75 4.4708 4.06667 4.44164 4.4 4.57497L19.8 11.075C20.2167 11.2583 20.425 11.5666 20.425 12C20.425 12.4333 20.2167 12.7416 19.8 12.925L4.4 19.425Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebPttSendButton.react",["fbt","WDSIconIcSendFilled.react","WDSMenuBarItem.react","react"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=r("react")),m=(u||(u=o("react"))).useRef;function p(t){var n=t.ref,o=babelHelpers.objectWithoutPropertiesLoose(t,e),a=o.confirmOnMouseUp,i=o.disabled,l=i===void 0?!1:i,u=o.onConfirm,c=o.tabOrder,p=m(!1),_=function(t){p.current=!0,window.addEventListener("mouseup",function(){p.current=!1},{once:!0})},f=function(t){a&&(p.current||t.button===0&&u(t))},g=function(t){t!=null&&u(t)},h=s._(/*BTDS*/"Enviar");return d.jsx("div",{onMouseUp:f,onMouseDown:_,role:"button",tabIndex:0,children:d.jsx(r("WDSMenuBarItem.react"),{ref:n,testid:void 0,disabled:l,title:h,onClick:g,icon:r("WDSIconIcSendFilled.react"),buttonVariant:"filled",tabOrder:c})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("useWAWebPttRecordingSessionValues",["useWAWebCollectionValues"],(function(t,n,r,o,a,i,l){function e(e,t){return o("useWAWebCollectionValues").useModelGetterValues(e,t)}l.usePttRecordingSessionValues=e}),98); __d("WAWebPttComposer.react",["$InternalEnum","WANullthrows","WAWebAttachMediaViewOnceInChat.react","WAWebChatGetters","WAWebClock","WAWebCmd","WAWebFrontendChatGetters","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebNewsletterWamoSubMessageType","WAWebNewsletterWamoSubMessageTypePopup.react","WAWebNewsletterWamoSubUtils","WAWebPttCancelButton.react","WAWebPttComposerRecordingSession","WAWebPttComposerRecordingSessionGetters","WAWebPttComposerWaveform.react","WAWebPttMessageUserJourneyLogger","WAWebPttPauseResumeRecordingButton.react","WAWebPttPlayPauseButton.react","WAWebPttSendButton.react","WAWebPttTsExternalLogger","WAWebRecordingSessionStateEnum","WAWebTabOrder","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebVelocityTransitionGroup","WAWebViewOnceGatingUtils","asyncToGeneratorRuntime","err","react","stylex","useWAWebChatValues","useWAWebEventTargetValue","useWAWebListener","useWAWebOnUnmount","useWAWebPttRecordingSessionValues","useWAWebSetModelValue","useWAWebStableCallback"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useCallback,p=c.useEffect,_=c.useRef,f=c.useState,g=n("$InternalEnum").Mirrored(["RECORDER","PREVIEW"]),h={pauseRecordingButtonContainer:{display:"x78zum5",$$css:!0},recordingDotRefresh:{height:"x170jfvy",width:"x1fsd2vl",backgroundColor:"x1b0f5k1",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",$$css:!0}};function y(e){var t,a=e.chat,i=e.onComplete,l=e.recordingSession,u=_(),c=_(),y=f(function(){switch(l.recordingState){case o("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED:return g.PREVIEW;case o("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING:return g.RECORDER;default:throw r("err")("Invalid recording session state: "+l.recordingState)}}),v=y[0],S=y[1],R=(t=o("useWAWebChatValues").useOptionalChatValues(a.id,[o("WAWebChatGetters").getIsNewsletter,o("WAWebFrontendChatGetters").getNewsletterMetadata,o("WAWebFrontendChatGetters").getComposeQuotedMsg]))!=null?t:[!1,null,null],L=R[0],E=R[1],k=R[2],I=f(null),T=I[0],D=I[1],x=f(function(){return v===g.PREVIEW?l.getAudioForPlayback():null}),$=x[0],P=x[1];p(function(){if($!=null)return o("WAWebPttTsExternalLogger").attachPttPlayTimeSpentLogger($.getAudio())},[$]);var N=function(){P(null),$==null||$.dispose()},M=$==null?void 0:$.getAudio(),w=_(),A=_(),F=_(l);F.current=l;var O=r("useWAWebEventTargetValue")(l,"change:duration",function(){return Math.floor(l.duration)}),B=f(function(){return Math.floor((M==null?void 0:M.currentTime)||0)}),W=B[0],q=B[1],U=f(function(){return((M==null?void 0:M.currentTime)||0)===0}),V=U[0],H=U[1],G=function(t){q(Math.floor(t)),H(t===0)};o("useWAWebListener").useListener(M,"timeupdate",function(){var e;G((e=M==null?void 0:M.currentTime)!=null?e:0)});var z=f(null),j=z[0],K=z[1],Q=o("useWAWebPttRecordingSessionValues").usePttRecordingSessionValues(l,[o("WAWebPttComposerRecordingSessionGetters").getExceedsMinDuration,o("WAWebPttComposerRecordingSessionGetters").getIsRecording,o("WAWebPttComposerRecordingSessionGetters").getIsViewOnce]),X=Q[0],Y=Q[1],J=Q[2],Z=o("useWAWebSetModelValue").useSetModelValue(l,"isViewOnce"),ee=f(J),te=ee[0],ne=ee[1],re=function(){ne(!1),Z(!J)};o("useWAWebListener").useListener(l,"change:recordingState",function(){(l.recordingState===o("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED||l.recordingState===o("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR)&&i()});var oe=r("useWAWebEventTargetValue")(M,["play","pause"],function(){return M!=null&&!M.paused}),ae=C(),ie=function(){l.stop(o("WAWebPttComposerRecordingSession").RecordingSessionStopReason.CANCEL_BUTTON),o("WAWebPttMessageUserJourneyLogger").PttMessageUserJourneyLogger.delete(a.id,k!=null)};p(function(){Y&&self.setTimeout(function(){var e;(e=w.current)==null||e.focus()},100)},[Y]),p(function(){v===g.PREVIEW&&(F.current.markDraftPreviewSeen(),self.setTimeout(function(){var e;(e=A.current)==null||e.focus()},100))},[v]),r("useWAWebOnUnmount")(function(){M==null||M.pause(),N(),l.pause()});var le=function(n){l.send({isViewOnce:J,isWamoSub:n,threadId:e.threadId})},se=function(){if(X){var e=c.current;if(L&&o("WAWebNewsletterWamoSubUtils").newsletterSupportsSubscriptions(E)&&e&&o("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()){var t=function(t){le(t===o("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub)};D({popupAnchorEl:e,handleSelect:t})}else le();o("WAWebPttMessageUserJourneyLogger").PttMessageUserJourneyLogger.send(a.id,k!=null)}};o("useWAWebListener").useListener(l,"change:recordingState",function(){if(!o("WAWebPttComposerRecordingSessionGetters").getIsRecording(l)&&l.recordingState===o("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED){N();var e=l.getAudioForPlayback();P(e),G(0),S(g.PREVIEW)}});var ue=function(){l.incrementPauseButtonCount(),l.pause(),o("WAWebPttMessageUserJourneyLogger").PttMessageUserJourneyLogger.pause(a.id,k!=null)},ce=function(){n("asyncToGeneratorRuntime").asyncToGenerator(function*(){M==null||M.pause(),S(g.RECORDER);var e=yield l.resume();e||S(g.PREVIEW),o("WAWebPttMessageUserJourneyLogger").PttMessageUserJourneyLogger.resume(a.id,k!=null)})()},de=function(){var e=r("WANullthrows")(M);e.paused?(e.play(),l.incrementDraftPlayCount()):e.pause()};o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"pause_ptt_recording",function(){var e=v===g.RECORDER?ue:ce;e()}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"send_ptt_recording",se),o("useWAWebListener").useListener(M,"ended",function(){r("WANullthrows")(M).load()});var me=m(function(){var e;return(e=M==null?void 0:M.currentTime)!=null?e:0},[M]),pe=r("useWAWebStableCallback")(function(){return l.getPreciseDuration()}),_e=r("useWAWebStableCallback")(function(){return l.duration}),fe=r("useWAWebStableCallback")(function(){return l.getLiveWaveformSamples()}),ge=r("useWAWebStableCallback")(function(){return l.getCorrectedWaveformSamples()}),he=r("useWAWebStableCallback")(function(e){G(e),K(null),r("WANullthrows")(M).currentTime=e,l.incrementDraftSeekCount()}),ye=r("useWAWebStableCallback")(function(e){K(Math.floor(e))}),Ce=d.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(h.pauseRecordingButtonContainer,o("WAWebUISpacing").uiMargin.end12),{children:d.jsx(r("WAWebPttPauseResumeRecordingButton.react"),{recording:v===g.RECORDER,confirmOnMouseUp:ae,tabOrder:o("WAWebTabOrder").TAB_ORDER.PTT_BUTTON,onConfirm:v===g.RECORDER?ue:ce})})),be=d.jsxs("div",{className:"x10l6tqk x13vifvy xtijo5x x1ey2m1c x1o0tod x78zum5 x6s0dn4",children:[d.jsx("div",babelHelpers.extends({},s.props(h.recordingDotRefresh,o("WAWebUISpacing").uiMargin.horiz12))),d.jsx(b,{time:O}),d.jsx("div",{className:"x78zum5 x1iyjqo2 xs83m0k x1r8uery x1sikpz7 x1sa5p1d x1wbi8v6",children:d.jsx(o("WAWebPttComposerWaveform.react").Waveform,{location:o("WAWebPttComposerWaveform.react").WaveformLocation.DRAFT_PREVIEW,sampleRate:l.getWaveformSampleRate(),getSamples:fe,getCurrentTime:me,getDuration:pe,live:Y,mode:o("WAWebPttComposerWaveform.react").WaveformMode.RECORDER,onSeek:ye,onSeekEnd:he,tabIndex:o("WAWebTabOrder").TAB_ORDER.PTT_BUTTON})})]}),ve=o("WAWebViewOnceGatingUtils").isSendingViewOnceV2Enabled()&&!a.contact.isEnterprise&&!o("WAWebUserPrefsMeUser").isMeAccount(a.contact.id)?d.jsx(r("WAWebAttachMediaViewOnceInChat.react"),{chat:a,containerXstyle:o("WAWebUISpacing").uiMargin.horiz12,mediaType:o("WAWebMsgType").MSG_TYPE.PTT,dimension:24,onChange:re,isOn:J,disabled:!1,shouldShowNux:v===g.PREVIEW,dataTab:o("WAWebTabOrder").TAB_ORDER.PTT_BUTTON,shouldSkipNuxAndToast:te}):null,Se=j!=null?j:V?O:W,Re=d.jsxs("div",{className:"x10l6tqk x13vifvy xtijo5x x1ey2m1c x1o0tod x78zum5 x6s0dn4 x14mko6t x1y3qizg x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x15unhv1 x1s194ge xvp2sfm x11hqq3w x13tw7jo xbm2e5w xgdig0o xj3boke xzt5al7 x1kukv79 x11ahuha x972fbf x10w94by x1qhh985 x14e42zd",children:[d.jsx(r("WAWebPttPlayPauseButton.react"),{ref:A,theme:"compose-box",paused:!oe,tabOrder:o("WAWebTabOrder").TAB_ORDER.PTT_BUTTON,onConfirm:de}),d.jsx("div",{className:"x78zum5 x1iyjqo2 xs83m0k x1r8uery x1sikpz7 xf6vk7d x1hm9lzh",children:d.jsx(o("WAWebPttComposerWaveform.react").Waveform,{location:o("WAWebPttComposerWaveform.react").WaveformLocation.DRAFT_PREVIEW,sampleRate:l.getWaveformSampleRate(),getSamples:ge,getCurrentTime:me,getDuration:_e,live:oe,mode:o("WAWebPttComposerWaveform.react").WaveformMode.PREVIEW,onSeek:ye,onSeekEnd:he,tabIndex:o("WAWebTabOrder").TAB_ORDER.PTT_BUTTON})}),d.jsx(b,{time:Se})]}),Le=function(t){t.key==="Escape"&&(t.stopPropagation(),ie())};return d.jsxs("div",{onKeyDown:Le,ref:u,className:"x78zum5 x6s0dn4 xh8yej3 x19ygybj",tabIndex:0,children:[d.jsx(r("WAWebPttCancelButton.react"),{ref:w,confirmOnMouseUp:ae,onConfirm:ie,tabOrder:o("WAWebTabOrder").TAB_ORDER.PTT_BUTTON}),d.jsx("div",{className:"x1n2onr6 x78zum5 x1iyjqo2 xs83m0k x1r8uery x6s0dn4 x5yr21d",children:d.jsxs(r("WAWebVelocityTransitionGroup"),{transitionName:"fade",children:[v===g.RECORDER?be:null,v===g.PREVIEW?Re:null]})}),Ce,ve,d.jsx(r("WAWebPttSendButton.react"),{ref:c,disabled:!X&&!Y,confirmOnMouseUp:ae,onConfirm:se,tabOrder:o("WAWebTabOrder").TAB_ORDER.PTT_BUTTON}),T!=null&&d.jsx(r("WAWebNewsletterWamoSubMessageTypePopup.react"),{handleSelect:T.handleSelect,popupAnchorEl:T.popupAnchorEl,onDismiss:function(){return D(null)}})]})}y.displayName=y.name+" [from "+i.id+"]";function C(){var e=f(!1),t=e[0],n=e[1],r=250;return p(function(){var e=self.setTimeout(function(){n(!0)},r),t=function(){n(!1),o()};window.addEventListener("mouseup",t);var o=function(){window.removeEventListener("mouseup",t),self.clearTimeout(e)};return o},[]),t}function b(e){var t=e.time;return d.jsx("div",{className:"x2c5eco xunn93x",role:"timer",children:o("WAWebClock").Clock.durationStr(t)})}b.displayName=b.name+" [from "+i.id+"]",l.default=y}),98); __d("WAWebMessageComposer.react",["cx","WAWebAiModeSelector.react","WAWebAttachMenuBarItem.react","WAWebBotGating","WAWebBotUtils","WAWebChatGetters","WAWebCmd","WAWebComposeBoxSendButton.react","WAWebContactGetters","WAWebEnvironment","WAWebExpressionsPanelPicker.react","WAWebKeyboardHotKeys.react","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebPttComposer.react","WAWebQuestions.flow","WAWebQuestionsGatingUtils","WAWebStateUtils","WAWebUISpacing","WAWebWDSGatingUtils","nullthrows","react","stylex","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=r("react")),m=(e||(e=o("react"))).useRef,p={inputContainer:{boxSizing:"x9f619",flex:"x12lumcd",width:"x1qrby5j",minWidth:"xeuugli",minHeight:"xisnujt",fontSize:"x6prxxf",fontWeight:"x1fcty0u",lineHeight:"x1fc57z9",backgroundColor:"xk7ee7b",borderTopColor:"x1716072",borderInlineEndColor:"x1ygal6x",borderBottomColor:"x89wmna",borderInlineStartColor:"x1rbbhm9",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",outline:"x1a2a7pz",willChange:"x13w7htt",display:"x78zum5",$$css:!0},inputContainerMaterial:{borderStartStartRadius:"xlr9sxt",borderStartEndRadius:"xvvg52n",borderEndEndRadius:"xwd4zgb",borderEndStartRadius:"xq8v1ta",$$css:!0},inputContainerRefresh:{minHeight:"x1wiwyrm",height:"xt7dq6l",borderStartStartRadius:"x17m9png",borderStartEndRadius:"x91sizk",borderEndEndRadius:"x1vva9xg",borderEndStartRadius:"x1jfkl46",alignItems:"x6s0dn4",transition:"x1m0b2ad",$$css:!0},inputBoxShadow:{boxShadow:"xkfubxc",$$css:!0},questionInputContainer:{backgroundColor:"x4wrhlh",borderTopColor:"xx42vgk",borderInlineEndColor:"xbogo7e",borderBottomColor:"x120ee7l",borderInlineStartColor:"x1vb5itz",$$css:!0},withoutTopBorder:{borderTopWidth:"x972fbf",$$css:!0},inputContainerRefreshNoTopPanel:{transition:"x1p0mfcu",$$css:!0},inputContainerHasTopPanel:{borderStartStartRadius:"x1bczwif",borderStartEndRadius:"x17un8ov",boxShadow:"xz16w4b",transition:"x1m0b2ad",$$css:!0}};function _(e){var t=e.chat,n=e.closePttComposer,a=e.expressionsPanelPickerRef,i=e.expressionsPanelWrapperRef,l=e.getCurrentComposeContent,s=e.handleInputBlur,c=e.handleInputFocus,_=e.handleMetaUpDebounced,g=e.handlePanelsGif,h=e.handlePanelsSticker,y=e.handlePanelsStickerFromStore,C=e.handleSendText,b=e.handleTab,v=e.hasTextState,S=e.hasTopPanel,R=e.input,L=e.inputHotkeyRef,E=e.isMessageToBot,k=e.pttComposerActive,I=e.questionReplyQuotedMessage,T=e.questionType,D=e.recordingSession,x=e.ref,$=e.replaceInputSelection,P=e.richTextInputRef,N=e.startRecording,M=e.threadId,w=e.updateTextAfterMediaDrawerClose,A=m(null);o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"open_attachment_dropdown",function(){var e=A.current;e&&e.open()});var F=T===o("WAWebQuestions.flow").QuestionType.Question,O=T===o("WAWebQuestions.flow").QuestionType.Reply,B=(!o("WAWebChatGetters").getIsNewsletter(t)||o("WAWebNewsletterGatingUtils").isNewsletterPTTSendingEnabled())&&(!F||o("WAWebQuestionsGatingUtils").isQuestionSenderEnabledForMsgType(o("WAWebMsgType").MSG_TYPE.PTT))&&(!O||o("WAWebQuestionsGatingUtils").isQuestionReplySenderEnabledForMsgType(o("WAWebMsgType").MSG_TYPE.PTT))&&!o("WAWebContactGetters").getIsCAPISupportAccount(t.contact)&&(!E||o("WAWebBotGating").isBotPttEnabled())&&!o("WAWebChatGetters").getIsBroadcast(t),W=function(t){t.target===t.currentTarget&&k===!1&&(P==null||P.focus())},q=function(n){return E?!1:F?o("WAWebQuestionsGatingUtils").isQuestionSenderEnabledForMsgType(n):O?o("WAWebQuestionsGatingUtils").isQuestionReplySenderEnabledForMsgType(n):!o("WAWebChatGetters").getIsBroadcast(t)},U=o("WAWebBotUtils").isMetaAiBot(t.id),V=U&&o("WAWebBotGating").isAiModeSelectorVisible(),H={expressionsPanelWrapperRef:i,expressionsPanelPickerRef:a,replaceInputSelection:$,handlePanelsSticker:h,handlePanelsStickerFromStore:y,handlePanelsGif:g,isStickerEnabled:q(o("WAWebMsgType").MSG_TYPE.STICKER),isGifEnabled:q(o("WAWebMsgType").MSG_TYPE.VIDEO),getComposeBoxEditorRef:function(){return P},handleClose:function(){return P==null?void 0:P.focus()},size:O||F?o("WAWebExpressionsPanelPicker.react").ExpressionsPanelSize.SMALL:void 0,useWdsMenuVersion:o("WAWebWDSGatingUtils").isWDSMenuM1Enabled()},G=[o("WAWebUISpacing").uiPadding.all5,o("WAWebUISpacing").uiMargin.horiz12,o("WAWebUISpacing").uiMargin.bottom12],z=d.jsx(o("WAWebComposeBoxSendButton.react").SendButtonRefresh,{supportsPtt:B,onClickSend:C,recordingSession:D,onStartRecording:function(){return void N()},hasTextState:v,isMessageToBot:E,buttonVariant:(O||F)&&!v?"tonal":void 0}),j=void 0;!E&&(!F||o("WAWebQuestionsGatingUtils").getEnabledQuestionAttachmentTypes().size>0)&&(!O||o("WAWebQuestionsGatingUtils").getEnabledQuestionReplyAttachmentTypes().size>0)&&(j=d.jsx("div",{className:"x100vrsf x1vqgdyp x78zum5 x6s0dn4 xpvyfi4",children:d.jsx(r("WAWebAttachMenuBarItem.react"),{ref:A,chat:o("WAWebStateUtils").unproxy(t),getComposeContents:l,getComposeBoxEditorRef:function(){return P},onMenuComplete:w,iconWidth:24,questionType:T,questionReplyQuotedMessage:I})}));var K=k?d.jsx("div",{className:"x78zum5 x13a6bvl xh8yej3 x67bb7w",children:d.jsx(r("WAWebPttComposer.react"),{chat:o("WAWebStateUtils").unproxy(t),recordingSession:r("nullthrows")(D),onComplete:n,threadId:M})}):d.jsxs(d.Fragment,{children:[!E&&j,d.jsx(f,babelHelpers.extends({},H)),R,V&&d.jsx(r("WAWebAiModeSelector.react"),{chat:t,threadId:M}),z]}),Q=r("WAWebEnvironment").isWindows,X=babelHelpers.extends({tab:b,"shift+tab":b},Q?{"ctrl+up":_}:{"meta+up":_},{up:_});return d.jsx("div",{ref:x,className:"x78zum5 xuk3077",children:d.jsx("div",{className:"_ak1r",children:d.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{ref:L,className:(u||(u=r("stylex")))(p.inputContainer,G,p.inputContainerMaterial,p.inputContainerRefresh,!T&&p.inputBoxShadow,!S&&p.inputContainerRefreshNoTopPanel,S&&p.inputContainerHasTopPanel,T&&p.questionInputContainer,T!=null&&S&&p.withoutTopBorder),handlers:X,onClick:W,onFocus:c,onBlur:s,children:K})})})}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t=e.expressionsPanelPickerRef,n=e.expressionsPanelWrapperRef,r=e.getComposeBoxEditorRef,a=e.handleClose,i=e.handlePanelsGif,l=e.handlePanelsSticker,s=e.handlePanelsStickerFromStore,u=e.isGifEnabled,c=e.isStickerEnabled,m=e.replaceInputSelection,p=e.size,_=e.useWdsMenuVersion;return d.jsx(o("WAWebExpressionsPanelPicker.react").ExpressionsPanelPicker,{ref:t,wrapperRef:n,onEmoji:m,onSticker:c?l:void 0,onStickerFromStore:c?s:void 0,onGif:u?i:void 0,getComposeBoxEditorRef:r,onClose:a,size:p,useWdsMenuVersion:_})}f.displayName=f.name+" [from "+i.id+"]",l.default=_}),98); __d("WAWebQuickRepliesPluginLogEvents",["WAWebQuickReplyWamEvent","WAWebWamEnumQuickReplyAction","WAWebWamEnumQuickReplyEntryPoint","WAWebWamEnumQuickReplyType"],(function(t,n,r,o,a,i,l){function e(e,t){t===void 0&&(t=!1);var n=new(o("WAWebQuickReplyWamEvent")).QuickReplyWamEvent({quickReplyAction:o("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_CHAT_IMPRESSION,quickReplyCount:e,quickReplyEntryPoint:t?o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD});n.commit()}function s(e){e===void 0&&(e=!1);var t=new(o("WAWebQuickReplyWamEvent")).QuickReplyWamEvent({quickReplyAction:o("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_CHAT_CLICK,quickReplyKeywordMatched:!1,quickReplyEntryPoint:e?o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD});t.commit()}function u(e){e===void 0&&(e=!1);var t=new(o("WAWebQuickReplyWamEvent")).QuickReplyWamEvent({quickReplyAction:o("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_CHAT_CLICK_CANCEL,quickReplyEntryPoint:e?o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD});t.commit()}function c(e){e===void 0&&(e=!1);var t=new(o("WAWebQuickReplyWamEvent")).QuickReplyWamEvent({quickReplyAction:o("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_SMART_DEFAULT_CLICK,quickReplyKeywordMatched:!1,quickReplyEntryPoint:e?o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD});t.commit()}function d(e){e===void 0&&(e=!1);var t=new(o("WAWebQuickReplyWamEvent")).QuickReplyWamEvent({quickReplyAction:o("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_SMART_DEFAULT_CLICK,quickReplyKeywordMatched:!1,quickReplyEntryPoint:e?o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD,quickReplyType:o("WAWebWamEnumQuickReplyType").QUICK_REPLY_TYPE.QUICK_REPLY_TYPE_PIX_KEY});t.commit()}l.logFilterEvent=e,l.logSelectEvent=s,l.logCancelEvent=u,l.logSmartDefaultSelectEvent=c,l.logPixSmartSelectEvent=d}),98); __d("WAWebQuickRepliesPluginResult.react",["WAWebUISpacing","WDSText.react","react","stylex","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={quickReplyResult:{display:"x78zum5",alignItems:"x6s0dn4",fontSize:"x1nxh6w3",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",textAlign:"x1yc453h",$$css:!0},quickReplyResultSelected:{color:"x14ug900",backgroundColor:"x4wrhlh",$$css:!0}};function d(e){var t=o("useWAWebModelValues").useModelValues(e.quickReply,["shortcut","message"]),n=t.message,a=t.shortcut,i=e.onMouseDown,l=e.onMouseEnter,d=e.onMouseUp,m=e.query,p=e.selected,_=a.slice(m.length),f=[c.quickReplyResult,o("WAWebUISpacing").uiPadding.vert10,o("WAWebUISpacing").uiPadding.horiz8];return p===!0&&f.push(c.quickReplyResultSelected),u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(f),{onMouseDown:i,onMouseUp:d,onMouseEnter:l,"data-testid":void 0,children:u.jsxs("div",{className:"x78zum5 xeuugli xdt5ytf xh8yej3",children:[u.jsxs("div",{className:"x78zum5 x6s0dn4",children:[u.jsx(r("WDSText.react"),{type:"Body1",colorName:"contentDefault",children:m}),u.jsx(r("WDSText.react"),{type:"Body1",colorName:"contentDefault",children:_})]}),u.jsx("div",{"data-testid":void 0,children:u.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDeemphasized",children:n})})]})}))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebSendLocationChatAction",["WALogger","WATimeUtils","WAWebAck","WAWebMsgKey","WAWebSendMsgChatAction","WAWebSendMsgResultAction","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){var e;function s(e){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){var n=t.chat,a=t.lat,i=t.lng,l=t.loc,s=t.meUser,u=yield c({chat:n,lat:a,lng:i,loc:l,meUser:s});try{var d=yield o("WAWebSendMsgChatAction").addAndSendMsgToChat(n,u)[1];if(!d||d.messageSendResult!==o("WAWebSendMsgResultAction").SendMsgResult.OK)throw r("err")("Location message SendMsgResult failure status")}catch(t){throw o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Location message send to chat failure: ",""])),t),t}}),u.apply(this,arguments)}function c(e){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.chat,n=e.lat,a=e.lng,i=e.loc,l=e.meUser,s={type:"location",ack:o("WAWebAck").ACK.CLOCK,from:l,id:new(r("WAWebMsgKey"))({from:l,to:t.id,id:yield r("WAWebMsgKey").newId(),participant:void 0,selfDir:"out"}),local:!0,isNewMsg:!0,t:o("WATimeUtils").unixTime(),to:t.id,lat:n,lng:a,loc:i};return s}),d.apply(this,arguments)}l.default=s}),98); __d("WAWebQuickReplyPickerPlugin",["fbt","PixWamLogger","WALogger","WATypeUtils","WAWebBizQuickRepliesDrawerLoadable","WAWebBizSendOrderAction","WAWebBusinessProfileCollection","WAWebChatCollection","WAWebContactCollection","WAWebDrawerManager","WAWebFrontendContactGetters","WAWebLexicalTypeAheadList.react","WAWebPencilRefreshedIcon.react","WAWebQuickRepliesPluginLogEvents","WAWebQuickRepliesPluginResult.react","WAWebQuickReplyCollection","WAWebQuickReplyEnum","WAWebQuickReplyGetters","WAWebSendContactsAction","WAWebSendLocationChatAction","WAWebSendTextMsgChatAction","WAWebUserPrefsCustomPaymentMethods","WAWebUserPrefsMeUser","WAWebWamEnumPaymentActionTypes","WDSButton.react","react","useWAWebLexicalTypeAhead"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m=d||(d=o("react")),p=c||(c=r("react")),_=m.useEffect,f=m.useMemo,g=m.useRef,h=m.useState,y=52,C="/",b=25,v=30;function S(e){var t=e.editor,n=t,a=o("WAWebPencilRefreshedIcon.react").PencilRefreshedIcon,i=o("useWAWebLexicalTypeAhead").useTypeAhead(n,C,{boundary:!0,maxQueryLength:b}),l=i.leadOffset,u=i.omitQuery,c=i.query,d=i.replaceQuery,m=g(!1),S=g(),L=g(!1),D=h(!1),x=D[0],$=D[1];_(function(){o("WAWebQuickReplyCollection").QuickReplyCollection.addSmartDefaultsIfNeeded()},[]),_(function(){$(m.current)},[c]);var P=function(t,n){if(t.itemKey==="quick-replies-header")return p.jsxs("div",{className:"x889kno xf159sx x1a8lsjc xmzvs34 x6prxxf xhslqc4 x1yc453h x78zum5 x1qughib x6s0dn4",children:[p.jsx("span",{children:s._(/*BTDS*/"Respuestas r\u00e1pidas")}),p.jsx(r("WDSButton.react"),{variant:"borderless",type:"default",size:"small",Icon:a,onPress:function(){o("WAWebDrawerManager").DrawerManager.openDrawerRight(p.jsx(o("WAWebBizQuickRepliesDrawerLoadable").WAWebBizQuickRepliesDrawerLoadable,{onBack:o("WAWebDrawerManager").closeDrawerRight,isInitialStep:!1}))},"aria-label":s._(/*BTDS*/"Editar respuestas r\u00e1pidas")})]},"quick-replies-header");if(!t.quickReply)return p.jsx("div",{});var e=t.quickReply;return p.jsx(r("WAWebQuickRepliesPluginResult.react"),{quickReply:e,query:t.query,selected:n},e.id.toString())},N=function(t){if(t.itemKey!=="quick-replies-header"){var e=t.quickReply;if(e){switch(S.current=e.message,o("WAWebQuickReplyGetters").getType(e)){case o("WAWebQuickReplyEnum").QuickReplyTypes.PROFILE_SMART_DEFAULT:u(),I(e);break;case o("WAWebQuickReplyEnum").QuickReplyTypes.ADDRESS_SMART_DEFAULT:u(),k(e);break;case o("WAWebQuickReplyEnum").QuickReplyTypes.HOURS_SMART_DEFAULT:u(),E(e);break;case o("WAWebQuickReplyEnum").QuickReplyTypes.PIX_KEY_SMART_DEFAULT:u(),T(e,x);break;default:d(e.message,{select:!0}),e.useOnce()}o("WAWebQuickReplyGetters").getType(e)===o("WAWebQuickReplyEnum").QuickReplyTypes.PIX_KEY_SMART_DEFAULT?o("WAWebQuickRepliesPluginLogEvents").logPixSmartSelectEvent(m.current):e.isSmartDefault()?o("WAWebQuickRepliesPluginLogEvents").logSmartDefaultSelectEvent(m.current):o("WAWebQuickRepliesPluginLogEvents").logSelectEvent(m.current),L.current=m.current,m.current=!1}}},M=function(){u(),m.current=!1},w=f(function(){if(c==null)return null;var e=R(c,x);if(e.length===0)return null;var t={height:v,itemKey:"quick-replies-header",contentKey:"header",index:0,quickReply:null,query:"",selectable:!1},n=e.map(function(e,t){return{height:y,itemKey:e.id,contentKey:c,index:t+1,quickReply:e,query:c,selectable:!0}});return[t].concat(n)},[c,x]),A=600,F=(w!=null?w:[]).map(function(e){var t;return{renderFn:function(n){return P(e,n)},onSelect:function(){return N(e)},width:A,height:(t=e.height)!=null?t:y,skipKeyboardNav:e.itemKey==="quick-replies-header"}}),O=F.findIndex(function(e){return e.skipKeyboardNav===!1});return p.jsx(r("WAWebLexicalTypeAheadList.react"),{leadOffset:l,items:F,onCancel:M,startingIndex:O})}S.displayName=S.name+" [from "+i.id+"]";function R(e,t){var n=o("WAWebQuickReplyCollection").QuickReplyCollection.filterShortcuts(e),r=o("WAWebChatCollection").ChatCollection.getActive();return n=L(r,n),n.length&&o("WAWebQuickRepliesPluginLogEvents").logFilterEvent(n.length,t),n}function L(e,t){return t.filter(function(t){return!t.hideForChat(e)})}function E(t){var n=o("WAWebChatCollection").ChatCollection.getActive();n&&(o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["sendBusinessHours inside WAWebQuickReplyPickerPlugin"]))),o("WAWebSendTextMsgChatAction").sendTextMsgToChat(n,t.message),t.useOnce())}function k(e){var t=o("WAWebChatCollection").ChatCollection.getActive(),n=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),a=o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(n),i=o("WAWebContactCollection").ContactCollection.get(n);if(!(!t||!a)){var l=a.address,s=a.latitude,c=a.longitude;if(o("WATypeUtils").isNumber(s)&&o("WATypeUtils").isNumber(c)&&i){var d=o("WAWebFrontendContactGetters").getDisplayName(i);a.address&&(d+="\n"+a.address),r("WAWebSendLocationChatAction")({chat:t,lat:s,lng:c,loc:d,meUser:n}),e.useOnce()}else l&&(o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["sendBusinessAddress inside WAWebQuickReplyPickerPlugin"]))),o("WAWebSendTextMsgChatAction").sendTextMsgToChat(t,l),e.useOnce())}}function I(e){var t=o("WAWebChatCollection").ChatCollection.getActive(),n=o("WAWebUserPrefsMeUser").getMePnUserOrThrow();if(n!=null){var a=o("WAWebContactCollection").ContactCollection.get(n);!t||!a||(r("WAWebSendContactsAction")([a],t),e.useOnce())}}function T(e,t){var n=o("WAWebChatCollection").ChatCollection.getActive();n&&(o("WAWebBizSendOrderAction").sendPixQuickReplyMessageAndDismissTryItPixKeyPromoBanner(n),e.useOnce(),o("PixWamLogger").logPixSenderEvent(void 0,o("WAWebWamEnumPaymentActionTypes").PAYMENT_ACTION_TYPES.CLICK,t?"chat_attachment":"chat","quick_reply","quick_reply",n,o("WAWebUserPrefsCustomPaymentMethods").getPIX()))}l.default=S}),226); __d("WAWebQuickReplySuggestions.react",["Lexical","PixWamLogger","WALogger","WATypeUtils","WAWebBizSendOrderAction","WAWebBusinessProfileCollection","WAWebChatCollection","WAWebContactCollection","WAWebFrontendContactGetters","WAWebListSuggestionsPanel.react","WAWebQuickRepliesPluginLogEvents","WAWebQuickRepliesPluginResult.react","WAWebQuickReplyCollection","WAWebQuickReplyEnum","WAWebQuickReplyGetters","WAWebSendContactsAction","WAWebSendLocationChatAction","WAWebSendTextMsgChatAction","WAWebUserPrefsCustomPaymentMethods","WAWebUserPrefsMeUser","WAWebWamEnumPaymentActionTypes","react","useWAWebForceUpdate","useWAWebLexicalEvent","useWAWebLexicalTypeAhead","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useEffect,_=d.useImperativeHandle,f=d.useMemo,g=d.useRef,h=52,y="/",C=25;function b(e){"use no forget";var t=e.ref,n=e.editor,a=e.kind,i=e.onHide,l=e.onSelect,s=o("useWAWebLexicalTypeAhead").useTypeAhead(n,y,{boundary:!0,maxQueryLength:C}),u=s.clearQuery,c=s.omitQuery,d=s.query,b=s.replaceQuery,S=s.setQuery,I=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),T=g(!1),D=g(),x=g(!1);o("useWAWebListener").useListener(o("WAWebQuickReplyCollection").QuickReplyCollection,"add remove change:shortcut",I),p(function(){o("WAWebQuickReplyCollection").QuickReplyCollection.addSmartDefaultsIfNeeded()},[]);var $=function(t,n){return m.jsx(r("WAWebQuickRepliesPluginResult.react"),{quickReply:t.quickReply,query:t.query,selected:n},t.quickReply.id.toString())},P=function(t){var e=t.quickReply;switch(D.current=e.message,o("WAWebQuickReplyGetters").getType(e)){case o("WAWebQuickReplyEnum").QuickReplyTypes.PROFILE_SMART_DEFAULT:u(),E(e);break;case o("WAWebQuickReplyEnum").QuickReplyTypes.ADDRESS_SMART_DEFAULT:u(),L(e);break;case o("WAWebQuickReplyEnum").QuickReplyTypes.HOURS_SMART_DEFAULT:u(),R(e);break;case o("WAWebQuickReplyEnum").QuickReplyTypes.PIX_KEY_SMART_DEFAULT:u(),k(e,T.current);break;default:b(e.message,{select:!0}),e.useOnce()}o("WAWebQuickReplyGetters").getType(e)===o("WAWebQuickReplyEnum").QuickReplyTypes.PIX_KEY_SMART_DEFAULT?o("WAWebQuickRepliesPluginLogEvents").logPixSmartSelectEvent(T.current):e.isSmartDefault()?o("WAWebQuickRepliesPluginLogEvents").logSmartDefaultSelectEvent(T.current):o("WAWebQuickRepliesPluginLogEvents").logSelectEvent(T.current),x.current=T.current,T.current=!1,l==null||l()},N=function(){c(),T.current=!1},M=f(function(){if(d==null)return null;var e=v(d,T.current);return e.length===0?null:e.map(function(e,t){return{height:h,itemKey:e.id,contentKey:d,index:t,quickReply:e,query:d,selectable:!0}})},[d]);return o("useWAWebLexicalEvent").useLexicalKeydownEvent(n,"Backspace",function(){var e=D.current;e&&n.getEditorState().read(function(){var t=o("Lexical").$getSelection();t&&e===t.getTextContent()&&o("WAWebQuickRepliesPluginLogEvents").logCancelEvent(x.current)})},!0),_(t,function(){return{togglePanel:function(){d==null?(S(""),T.current=!0):(u(),T.current=!1)}}}),m.jsx(r("WAWebListSuggestionsPanel.react"),{kind:a,editor:n,items:M,renderItem:$,onSelect:P,onDismiss:N,onHide:i})}b.displayName=b.name+" [from "+i.id+"]";function v(e,t){var n=o("WAWebQuickReplyCollection").QuickReplyCollection.filterShortcuts(e),r=o("WAWebChatCollection").ChatCollection.getActive();return n=S(r,n),n.length&&o("WAWebQuickRepliesPluginLogEvents").logFilterEvent(n.length,t),n}function S(e,t){return t.filter(function(t){return!t.hideForChat(e)})}function R(t){var n=o("WAWebChatCollection").ChatCollection.getActive();n&&(o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["sendBusinessHours inside WAWebQuickReplySuggestions"]))),o("WAWebSendTextMsgChatAction").sendTextMsgToChat(n,t.message),t.useOnce())}function L(e){var t=o("WAWebChatCollection").ChatCollection.getActive(),n=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),a=o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(n),i=o("WAWebContactCollection").ContactCollection.get(n);if(!(!t||!a)){var l=a.address,u=a.latitude,c=a.longitude;if(o("WATypeUtils").isNumber(u)&&o("WATypeUtils").isNumber(c)&&i){var d=o("WAWebFrontendContactGetters").getDisplayName(i);a.address&&(d+="\n"+a.address),r("WAWebSendLocationChatAction")({chat:t,lat:u,lng:c,loc:d,meUser:n}),e.useOnce()}else l&&(o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["sendBusinessAddress inside WAWebQuickReplySuggestions"]))),o("WAWebSendTextMsgChatAction").sendTextMsgToChat(t,l),e.useOnce())}}function E(e){var t=o("WAWebChatCollection").ChatCollection.getActive(),n=o("WAWebUserPrefsMeUser").getMePnUserOrThrow();if(n!=null){var a=o("WAWebContactCollection").ContactCollection.get(n);!t||!a||(r("WAWebSendContactsAction")([a],t),e.useOnce())}}function k(e,t){var n=o("WAWebChatCollection").ChatCollection.getActive();n&&(o("WAWebBizSendOrderAction").sendPixQuickReplyMessageAndDismissTryItPixKeyPromoBanner(n),e.useOnce(),o("PixWamLogger").logPixSenderEvent(void 0,o("WAWebWamEnumPaymentActionTypes").PAYMENT_ACTION_TYPES.CLICK,t?"chat_attachment":"chat","quick_reply","quick_reply",n,o("WAWebUserPrefsCustomPaymentMethods").getPIX()))}l.default=b}),98); __d("WAWebReconnectUtil",["WAWebSocketModel","WAWebStreamModel"],(function(t,n,r,o,a,i,l){var e=function(){var e=this;this.isReconnecting=!1,this.reconnectIfDisconnected=function(){!e.isReconnecting&&o("WAWebStreamModel").Stream.displayInfo===o("WAWebStreamModel").StreamInfo.OFFLINE&&(e.isReconnecting=!0,o("WAWebSocketModel").Socket.summary(),self.setTimeout(function(){return e.isReconnecting=!1},3e3))}},s=new e().reconnectIfDisconnected;l.reconnect=s}),98); __d("WAWebUseComposeBoxActionListeners",["WAWebComposeBoxActions","useWAWebListener"],(function(t,n,r,o,a,i,l){function e(e,t){var n,r,a=e.id.toString();(n=o("useWAWebListener")).useListener((r=o("WAWebComposeBoxActions")).ComposeBoxActions,"focus_"+a,t.onFocus),n.useListener(r.ComposeBoxActions,"focus",t.onFocus),n.useListener(r.ComposeBoxActions,"send_"+a,t.onSend),n.useListener(r.ComposeBoxActions,"paste_"+a,t.onPaste),n.useListener(r.ComposeBoxActions,"paste",t.onPaste),n.useListener(r.ComposeBoxActions,"paste_files_"+a,t.onPasteFiles),n.useListener(r.ComposeBoxActions,"send_paste_"+a,t.onRoutedPaste),n.useListener(r.ComposeBoxActions,"toggle_quick_replies",t.onToggleQuickReplies),n.useListener(r.ComposeBoxActions,"add_sending_log_attributes_"+a,t.onSendingLogAttributes),n.useListener(r.ComposeBoxActions,"set_ctwa_context_link_data_"+a,t.onCtwaContextLinkData),n.useListener(r.ComposeBoxActions,"set_text_content_"+a,t.onSetTextContent),n.useListener(r.ComposeBoxActions,"set_non_jid_mentions_"+a,t.onSetNonJidMentions)}l.default=e}),98); __d("WAWebUseShouldShowBotSuggestions",["WAWebBotGating","WAWebMsgCollection","WAWebMsgType","WAWebThreadMsgUtils","WAWebUserPrefsMeUser","react","useWAWebEventTargetValue","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useState;function u(e,t){var n=s(function(){return t==null?0:o("WAWebMsgCollection").MsgCollection.byThreadId([t]).length}),r=n[0],a=n[1],i=s(t),l=i[0],u=i[1];if(e.id.isBot()&&t!=null&&t!==l){u(t);var c=o("WAWebMsgCollection").MsgCollection.byThreadId([t]).length;a(c)}return o("useWAWebListener").useListeners(t!=null?[{source:e.msgs,eventOrEvents:"add",callback:function(n){o("WAWebThreadMsgUtils").isMsgInThread(n,t)&&a(function(e){return e+1})}},{source:e.msgs,eventOrEvents:"remove",callback:function(n){o("WAWebThreadMsgUtils").isMsgInThread(n,t)&&a(function(e){return e-1})}}]:[]),r}function c(e,t,n){var a=u(e,n),i=n!=null&&a===0,l=r("useWAWebEventTargetValue")(e.msgs,"add remove",function(){var t=o("WAWebBotGating").isBotEnabled()&&e.id.isBot();if(!t)return!1;if(e.msgs.length===0)return!0;if(e.msgs.length===1){var n,r=(n=e.msgs.last())==null?void 0:n.subtype;return r==="bot_init"}return i},[i]),s=r("useWAWebEventTargetValue")(e.msgs,"add remove",function(){if(!o("WAWebBotGating").isBizBot3pAvailable()||!t||t.length===0)return!1;var n=e.msgs.last();if(!n||n.subtype==="biz_bot_3p_disclosure")return!0;if(n.type===o("WAWebMsgType").MSG_TYPE.CHAT&&!o("WAWebUserPrefsMeUser").isMeAccount(n.from)){var r=e.msgs.at(e.msgs.length-2);if((r==null?void 0:r.subtype)==="biz_bot_3p_disclosure")return!0}return!e.msgs.some(function(e){return e.type!==o("WAWebMsgType").MSG_TYPE.NOTIFICATION_TEMPLATE&&e.type!==o("WAWebMsgType").MSG_TYPE.E2E_NOTIFICATION})},[t]);return l||s}l.useShouldShowBotSuggestions=c}),98); __d("WAWebWamEnumTextMessageUserJourneyAction",[],(function(t,n,r,o,a,i){var e=Object.freeze({TYPING_START:1,CLEARED:2,SENT:3,DRAFT_SAVED:4,EXIT:5,CLICK_ON_COMPOSER:6,DELIVERED:7,DRAFT_LOADED:8});i.TEXT_MESSAGE_USER_JOURNEY_ACTION=e}),66); __d("WAWebTextMessageUserJourneyWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumBotType","WAWebWamEnumChatbarInitialState","WAWebWamEnumTextMessageUserJourneyAction","WAWebWamEnumTsSurface","WAWebWamEnumUserJourneyChatType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({TextMessageUserJourney:[5404,{appSessionId:[1,e.TYPES.STRING],botType:[10,o("WAWebWamEnumBotType").BOT_TYPE],chatbarInitialState:[6,o("WAWebWamEnumChatbarInitialState").CHATBAR_INITIAL_STATE],textMessageUserJourneyAction:[2,o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION],textMessageUserJourneyContainsQuotedItem:[9,e.TYPES.BOOLEAN],uiSurface:[3,o("WAWebWamEnumTsSurface").TS_SURFACE],unifiedSessionId:[8,e.TYPES.STRING],userJourneyChatType:[4,o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE],userJourneyEventMs:[7,e.TYPES.INTEGER],userJourneyFunnelId:[5,e.TYPES.STRING]},[1,1,1],"regular"]},{TextMessageUserJourney:[]});l.TextMessageUserJourneyWamEvent=s}),98); __d("WAWebTextMessageUserJourneyLogger",["WALogger","WATimeUtils","WAWebABProps","WAWebPonyfillsCryptoRandomUUID","WAWebTextMessageUserJourneyWamEvent","WAWebUnifiedSession","WAWebWamEnumChatbarInitialState","WAWebWamEnumTextMessageUserJourneyAction","WAWebWamEnumTsSurface","WAWebWamEnumUserJourneyChatType"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(function(){function t(e){e===void 0&&(e=r("WAWebPonyfillsCryptoRandomUUID")()),this.loggingEnabled=!1,this.loggingEnabled=o("WAWebABProps").getABPropConfigValue("text_user_journey_logging_wam_enabled"),this.$1=e}var n=t.prototype;return n.log=function(n){if(this.loggingEnabled){var t=o("WAWebUnifiedSession").UnifiedSessionManager.getSessionId();if(t==null){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[uj] [text message] Unified session ID is null"])));return}u(n.action)&&this.$2==null&&(this.$2=r("WAWebPonyfillsCryptoRandomUUID")());var a=this.$2;if(a!=null){var i=d(n.chatId),l=m(n.chatId),s=new(o("WAWebTextMessageUserJourneyWamEvent")).TextMessageUserJourneyWamEvent;s.appSessionId=this.$1,s.unifiedSessionId=t,s.userJourneyFunnelId=a,s.uiSurface=l,s.textMessageUserJourneyAction=n.action,n.containsQuotedItem!=null&&(s.textMessageUserJourneyContainsQuotedItem=n.containsQuotedItem),s.userJourneyChatType=i,s.userJourneyEventMs=o("WATimeUtils").unixTimeMs(),s.chatbarInitialState=n.hasDraft?o("WAWebWamEnumChatbarInitialState").CHATBAR_INITIAL_STATE.CONTAINS_DRAFT:o("WAWebWamEnumChatbarInitialState").CHATBAR_INITIAL_STATE.EMPTY,s.commit(),c(n.action)&&(this.$2=null)}}},t})();function u(e){return e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.TYPING_START||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.CLEARED||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.CLICK_ON_COMPOSER||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.SENT?!0:e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.DELIVERED||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_SAVED||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_LOADED||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.EXIT?!1:(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+e)})()}function c(e){return e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_SAVED||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_LOADED||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.SENT||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.EXIT?!0:e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.CLEARED||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.CLICK_ON_COMPOSER||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.DELIVERED||e===o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.TYPING_START?!1:(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+e)})()}function d(e){return e.isUser()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.INDIVIDUAL:e.isGroup()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.GROUP:e.isNewsletter()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.CHANNEL:o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.MULTIPLE}function m(e){return e.isGroup()?o("WAWebWamEnumTsSurface").TS_SURFACE.GROUP_CHAT:o("WAWebWamEnumTsSurface").TS_SURFACE.CHAT_THREAD}var p=new s;l.TextMessageUserJourneyLogger=p}),98); __d("WAWebUseTextMessageUserJourneyLogger",["WAWebTextMessageUserJourneyLogger","WAWebWamEnumTextMessageUserJourneyAction","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(e||(e=o("react"))).useRef;function u(e,t){t===void 0&&(t=!1);var n=s(!1),r=s(!1),a=s(t),i=function(i,l){var t=n.current;if(a.current&&!r.current){r.current=!0;return}var s=n.current=i;!t&&s?o("WAWebTextMessageUserJourneyLogger").TextMessageUserJourneyLogger.log({chatId:e,action:o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.TYPING_START,hasDraft:a.current,containsQuotedItem:l}):(t||a.current)&&!s&&o("WAWebTextMessageUserJourneyLogger").TextMessageUserJourneyLogger.log({chatId:e,action:o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.CLEARED,hasDraft:a.current,containsQuotedItem:l})},l=function(r){o("WAWebTextMessageUserJourneyLogger").TextMessageUserJourneyLogger.log({chatId:e,action:o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.SENT,hasDraft:a.current,containsQuotedItem:r}),n.current=!1,a.current=!1},u=function(r){var t=n.current?o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.DRAFT_SAVED:o("WAWebWamEnumTextMessageUserJourneyAction").TEXT_MESSAGE_USER_JOURNEY_ACTION.EXIT;o("WAWebTextMessageUserJourneyLogger").TextMessageUserJourneyLogger.log({chatId:e,action:t,hasDraft:a.current,containsQuotedItem:r})};return{handleTextMsgChangeForUJLogging:i,handleMsgSentForUJLogging:l,handleCloseForUJLogging:u}}l.default=u}),98); __d("WAWebComposeBox.react",["cx","fbt","$InternalEnum","PaymentLink","PaymentLinkWamLogger","Promise","WAAbortError","WAFilteredCatch","WALogger","WAShiftTimer","WATimeUtils","WAWebABProps","WAWebApiPrepareCtwaContextSend","WAWebAttachmentMenuLogger","WAWebBizBroadcastNewBroadcastFlowLoadable","WAWebBizGatingUtils","WAWebBizQueryCtwaContextBridge","WAWebBlocklistCollection","WAWebBotCommandSuggestions.react","WAWebBotGating","WAWebBotProfileGetters","WAWebBotSuggestions.react","WAWebBotTypes","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebChatGetters","WAWebChatPreferenceCollection","WAWebClassnames","WAWebCmd","WAWebCodeFormatMutator","WAWebComposeBoxActions","WAWebComposeBoxPopupPanels.react","WAWebComposeBoxUtils","WAWebConstantsDeprecated","WAWebConversationSpamUtils","WAWebCopyPasteCopyableArea.react","WAWebCryptoRandomMediaKey","WAWebDrawerManager","WAWebElevatedPushNamesFlag","WAWebEmojiPickerPlugin","WAWebErrorBoundary.react","WAWebFilePicker.react","WAWebFileUtils","WAWebFrontendChatGetters","WAWebGenMinimalLinkPreviewChatAction","WAWebKeyboardHotKeys.react","WAWebLexicalUtils","WAWebLimitSharingUIUtils","WAWebLinkPreviewChatAction","WAWebLinkify","WAWebMaybeGetAiThreadInfo","WAWebMediaConstants","WAWebMediaGetUploadOriginForChat","WAWebMediaOpaqueData","WAWebMediaUploadMmsThumbnail","WAWebMentionPickerPlugin","WAWebMessageComposer.react","WAWebMimeTypes","WAWebMiscErrors","WAWebMmsMediaTypes","WAWebModalManager","WAWebNewsletterGatingUtils","WAWebNewsletterSendMsgAction","WAWebNewsletterWamoSubMessageType","WAWebNewsletterWamoSubMessageTypePopup.react","WAWebNewsletterWamoSubUtils","WAWebNoop","WAWebPrepareMessageSendingAction","WAWebPresenceChatAction","WAWebProtobufsE2E.pb","WAWebPttComposerRecordingSession","WAWebPttMessageUserJourneyLogger","WAWebQuestions.flow","WAWebQuickReplyLogging","WAWebQuickReplyPickerPlugin","WAWebQuickReplySuggestions.react","WAWebQuotedMessageUserJourneyLogger","WAWebReconnectUtil","WAWebRecordingSessionStateEnum","WAWebRichTextInput.react","WAWebSendStickerAction","WAWebSendTextMsgChatAction","WAWebStateUtils","WAWebStopEvent","WAWebSuggestionsPanelContainer.react","WAWebTabOrder","WAWebTextSizeUtils","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUim","WAWebUimUie.react","WAWebUseBotProfileValues","WAWebUseBusinessProfile.react","WAWebUseComposeBoxActionListeners","WAWebUseIsKeyboardUser","WAWebUseShouldShowBotSuggestions","WAWebUseTextMessageUserJourneyLogger","WAWebUserPrefsGeneral","WAWebUserPrefsMeUser","WAWebVelocityTransitionGroup","WAWebWamEnumEntryPoint","WAWebWamEnumMediaPickerOriginType","WAWebWamEnumQuickReplyEntryPoint","WAWebWamEnumWebcStickerMakerEventNameType","WAWebWebcStickerMakerEventsWamEvent","asyncToGeneratorRuntime","cr:5993","cr:7456","gkx","justknobx","react","stylex","useForceUpdate","useLazyRef","useWAWebChatValues","useWAWebDebouncedCallback","useWAWebListener","useWAWebModelValues","useWAWebOnUnmount","useWAWebSetModelValue","useWAWebStableCallback"],(function(t,n,r,o,a,i,l,s,u){var e,c,d,m,p,_,f=["ref"],g,h,y,C,b=C||(C=o("react")),v=y||(y=r("react")),S=b.useEffect,R=b.useImperativeHandle,L=b.useMemo,E=b.useRef,k=b.useState,I=/^https?:\/\/media\.giphy\.com\/media\/([a-zA-Z0-9]+)/,T=1,D=700,x=8,$=n("$InternalEnum").Mirrored(["ATTACHMENT_MENU","OTHER"]),P={blockCompose:{position:"x1n2onr6",zIndex:"xhtitgo",boxSizing:"x9f619",display:"x78zum5",flexDirection:"x1q0g3np",alignItems:"xuk3077",maxWidth:"x193iq5w",minHeight:"x122xwht",backgroundColor:"xhjsbib",$$css:!0},blockComposeRefresh:{backgroundColor:"xjbqb8w",minHeight:"x1wiwyrm",maxWidth:"xquzyny",$$css:!0},richTextRefresh:{caretColor:"xjdcl3y",$$css:!0}};function N(t){"use no forget";var a,i,l,s,y=t.ref,C=babelHelpers.objectWithoutPropertiesLoose(t,f),b=C.canShowSpamPanel,N=b===void 0?!1:b,M=C.chat,w=C.onComposeHeightChange,A=C.onPageUpDown,F=C.onSend,O=C.questionType,B=C.threadId,W=r("useForceUpdate")(),q=o("useWAWebChatValues").useChatValues(C.chat.id,[o("WAWebChatGetters").getId,o("WAWebFrontendChatGetters").getTrusted,o("WAWebFrontendChatGetters").getComposeQuotedMsg,o("WAWebChatGetters").getIsPSA,o("WAWebChatGetters").getIsGroup,o("WAWebFrontendChatGetters").getPttRecordingSession,o("WAWebFrontendChatGetters").getShouldAppearInList,o("WAWebFrontendChatGetters").getPresence,o("WAWebFrontendChatGetters").getContact,o("WAWebFrontendChatGetters").getAttachMediaContents,o("WAWebFrontendChatGetters").getQuotedMsgAdminGroupJid,o("WAWebFrontendChatGetters").getQuotedMsgAdminGroupSubject,o("WAWebFrontendChatGetters").getQuotedMsgAdminParentGroupJid,o("WAWebFrontendChatGetters").getComposeQuotedMsgRemoteJid,o("WAWebChatGetters").getIsAutoMuted,o("WAWebChatGetters").getIsNewsletter,o("WAWebChatGetters").getIsBroadcast,o("WAWebFrontendChatGetters").getNewsletterMetadata,o("WAWebFrontendChatGetters").getIsCAG]),U=q[0],V=q[1],H=q[2],G=q[3],z=q[4],j=q[5],K=q[6],Q=q[7],X=q[8],Y=q[9],J=q[10],Z=q[11],ee=q[12],te=q[13],ne=q[14],re=q[15],oe=q[16],ae=q[17],ie=O===o("WAWebQuestions.flow").QuestionType.Question,le=C.questionReplyQuotedMessage,se=o("useWAWebSetModelValue").useSetModelValue(M,"composeQuotedMsg"),ue=o("useWAWebSetModelValue").useSetModelValue(M,"quotedMsgAdminGroupJid"),ce=o("useWAWebSetModelValue").useSetModelValue(M,"composeQuotedMsgRemoteJid"),de=o("useWAWebSetModelValue").useSetModelValue(M,"pttRecordingSession"),me=o("useWAWebModelValues").useModelValues(r("WAWebChatPreferenceCollection").getDefault(),["spellcheck","transformTextEmoji","enterIsSend","showExpandedComposer"]),pe=L(function(){return M.getComposeContents()},[M]),_e=k(null),fe=_e[0],ge=_e[1],he=E(pe==null?void 0:pe.omittedURL),ye=k(null),Ce=ye[0],be=ye[1],ve=k(!1),Se=ve[0],Re=ve[1],Le=k(o("PaymentLinkWamLogger").LinkPreviewStatus.NOT_STARTED),Ee=Le[0],ke=Le[1],Ie=E(pe==null?void 0:pe.omittedURL),Te=E((pe==null?void 0:pe.text)||""),De=function(){var e=o("WAWebCodeFormatMutator").removeCodeBlocks(Te.current);return o("WAWebLinkify").findLinks(e,!0,o("WAWebUserPrefsMeUser").getMeDevicePnOrThrow())[0]},xe=r("WAWebUseIsKeyboardUser")(),$e=xe.isKeyboardUser,Pe=k(null),Ne=Pe[0],Me=Pe[1],we=function(){return U.isBot()||Ne!=null},Ae=o("WAWebUseBusinessProfile.react").useBusinessProfile(o("WAWebBotGating").isBizBot3pAvailable()||o("WAWebBotGating").isBizBot1pEnabled()?U:null,["commands","prompts","isBizBot1p","isBizBot3p"]),Fe=Ne!=null?Ne:U,Oe=o("WAWebUseBotProfileValues").useOptionalBotProfileValues(Fe,[o("WAWebBotProfileGetters").getCommands]),Be=Oe[0],We=(Ae==null?void 0:Ae.commands)||o("WAWebBotGating").isMetaBotCommandsEnabled()&&Be||null,qe=E([]),Ue=r("useLazyRef")(function(){return new AbortController}),Ve=k(!1),He=Ve[0],Ge=Ve[1],ze=o("WAWebUseShouldShowBotSuggestions").useShouldShowBotSuggestions(C.chat,Ae==null?void 0:Ae.prompts,C.threadId),je=r("useWAWebStableCallback")(function(){return M.getComposeContents()}),Ke=E(!1),Qe=r("WAWebUseTextMessageUserJourneyLogger")(M.id,((a=(i=je())==null||(i=i.text)==null?void 0:i.length)!=null?a:0)>0),Xe=Qe.handleCloseForUJLogging,Ye=Qe.handleMsgSentForUJLogging,Je=Qe.handleTextMsgChangeForUJLogging;S(function(){return function(){Xe(H!=null),M.pttRecordingSession!=null&&o("WAWebPttMessageUserJourneyLogger").PttMessageUserJourneyLogger.draftSaved(M.id,H!=null)}},[]);var Ze=function(){qe.current=[],Ue.current.abort(),Ue.current=new AbortController,He&&Ge(!1)},et=function(t){t===void 0&&(t=o("WAWebUim").DismissReason.UIM_INTERACTION),Re(!0),tt(t)},tt=function(t){t===void 0&&(t=o("WAWebUim").DismissReason.UIM_INTERACTION),t!==o("WAWebUim").DismissReason.LIFECYCLE&&(Ze(),Ce&&(Ie.current=he.current,be(null)))},nt=function(){he.current=null,Re(!1),ke(o("PaymentLinkWamLogger").LinkPreviewStatus.NOT_STARTED),tt()},rt=function(a,i){if(a.data.thumbnailDirectPath!==void 0){o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["link preview: using an existing thumbnail mms"])));var t=o("WAWebComposeBoxUtils").getCachedPreview(a);return be(function(e){return(e==null?void 0:e.url)!==a.url?e:t}),(g||(g=n("Promise"))).resolve()}o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["link preview: uploading new thumbnail mms"])));var l=a.data.thumbnailHQ;return l?r("WAWebMediaOpaqueData").createFromBase64Jpeg(l).then(function(e){return r("WAWebMediaUploadMmsThumbnail")({thumbnail:e,mediaType:re?o("WAWebMmsMediaTypes").MEDIA_TYPES.NEWSLETTER_THUMBNAIL_LINK:o("WAWebMmsMediaTypes").MEDIA_TYPES.THUMBNAIL_LINK,mediaKeyInfo:r("WAWebCryptoRandomMediaKey")(),uploadOrigin:r("WAWebMediaGetUploadOriginForChat")(M),forwardedFromWeb:!1,signal:i,timeout:o("WAWebMediaConstants").MMS_THUMBNAIL_UPLOAD_TIMEOUT,isViewOnce:!1})}).then(function(e){var t=e.mediaEntry;t&&be(function(n){if((n==null?void 0:n.url)!==a.url)return n;var r={mediaKey:t.mediaKey,mediaKeyTimestamp:t.mediaKeyTimestamp,thumbnailDirectPath:t.directPath,thumbnailSha256:e.filehash,thumbnailEncSha256:t.encFilehash},o=babelHelpers.extends({},a,{data:babelHelpers.extends({},a.data,r)});return o})}).catch(o("WAAbortError").catchAbort(r("WAWebNoop"))).catch(function(e){o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["Full preview upload has failed: "])))}):(g||(g=n("Promise"))).resolve()},ot=k(!!Te.current),at=ot[0],it=ot[1],lt=k(pe==null?void 0:pe.ctwaContextLinkData),st=lt[0],ut=lt[1],ct=E(null),dt=E(null),mt=E(null),pt=E(null),_t=E(null),ft=E(null),gt=E(null),ht=E(!1),yt=E(!1),Ct=E(null),bt=E(null),vt=r("useWAWebStableCallback")(function(){if(!at||st){nt();return}var e=De();if(!e){nt();return}var t=e.url;if(!(he.current!==""&&he.current===t)){he.current=t,Ie.current=null;var n=Ue.current.signal,a=null;o("PaymentLink").shouldDetectInComposer()&&(a=o("PaymentLink").getPSP(t));var i=a!=null?o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.PAYMENT_LINKS:o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.NONE,l=o("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(e,i,!0,{psp:a});be(l),ke(o("PaymentLinkWamLogger").LinkPreviewStatus.STARTED);var s=o("WAWebLinkPreviewChatAction").getLinkPreview(e,M).then(function(t){if(n.aborted)throw new(o("WAAbortError")).AbortError;if(t&&he.current===t.url&&t.data&&(t.data.title||t.data.description))return be(t),rt(t,n).finally(function(){ke(o("PaymentLinkWamLogger").LinkPreviewStatus.COMPLETED)});l!=null&&be(o("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(e,i,!1,{psp:a}))});qe.current.push(s),s.catch(o("WAFilteredCatch").filteredCatch(o("WAWebMiscErrors").Unmount,r("WAWebNoop"))).catch(o("WAAbortError").catchAbort(r("WAWebNoop")))}}),St=r("useLazyRef")(function(){return new(o("WAShiftTimer")).ShiftTimer(vt)}),Rt=E({text:"",parsableText:"",data:{}}),Lt=E(null),Et=null,kt=k(),It=kt[0],Tt=kt[1],Dt=k(M.pttRecordingSession),xt=Dt[0],$t=Dt[1],Pt=k(M.pttRecordingSession!=null),Nt=Pt[0],Mt=Pt[1],wt=k(null),At=wt[0],Ft=wt[1],Ot=k(""),Bt=Ot[0],Wt=k(pe==null?void 0:pe.ctwaContext),qt=Wt[0],Ut=Wt[1],Vt=k(function(){return o("WAWebConversationSpamUtils").shouldShowSpamPanel(M)}),Ht=Vt[0],Gt=Vt[1],zt=function(){Gt(!1),o("WAWebConversationSpamUtils").acknowledgeGroupAsNotSpam(M)},jt=function(){Gt(!1)},Kt=k({handleOnce:[],handleMultiple:[]}),Qt=Kt[0],Xt=Kt[1];o("useWAWebListener").useListener(o("WAWebBlocklistCollection").BlocklistCollection,["add","remove","reset"],W);var Yt=k(me.showExpandedComposer),Jt=Yt[0],Zt=Yt[1],en=function(){Zt(!Jt),me.set("showExpandedComposer",!me.showExpandedComposer)},tn=function(){var e,t=Te.current,n=M.getComposeContents();if(!(n==null&&t.trim()==="")&&(n==null||(e=n.text)==null?void 0:e.trim())!==t.trim()){var r={text:t,timestamp:o("WATimeUtils").unixTime()},a=Ie.current;a!=null&&(r.omittedURL=a),qt!=null&&(r.ctwaContext=qt),st!=null&&(r.ctwaContextLinkData=st),M.setComposeContents(r)}},nn=function(t){tn(),nt();var e=t.sourceUrl;e!=null&&e!==""&&o("WAWebBizQueryCtwaContextBridge").fetchCtwaContextData(t).then(function(e){Ut(e),tn()}).catch(function(e){o("WALogger").WARN(m||(m=babelHelpers.taggedTemplateLiteralLoose(["Unable to retrieve CTWA context data, error: ",""])),e)})};S(function(){St.current.debounceAndCap(50,50),st&&(!qt||qt.sourceUrl!==st.sourceUrl)&&(Ut(null),nn(st)),o("WAWebPttMessageUserJourneyLogger").PttMessageUserJourneyLogger.setHasDraft(M.pttRecordingSession!=null)},[]),r("useWAWebOnUnmount")(function(){var e;St.current.cancel(),Ue.current.abort(),(e=Ct.current)==null||e.cancel(),tn()});var rn=E(B);S(function(){var e=rn.current;rn.current=B,e!==B&&se(null)},[se,B]);var on=r("useWAWebDebouncedCallback")(tn,200),an=function(){var e=Te.current.trim().length>0;return e},ln=function(t){It==null||It.focus()},sn=function(t,n){It==null||It.replaceSelection(t,n)},un=function(t,n){if(t===" "&&!an())return o("WAWebCmd").Cmd.scrollMessages();ln(!0),sn(t,n)},cn=function(t){if(U.isBot())return o("WAWebToastManager").ToastManager.open(v.jsx(o("WAWebToast.react").Toast,{msg:u._(/*BTDS*/"Esta acci\u00f3n no est\u00e1 permitida.")})),!1;var e=r("justknobx")._("4552"),n=t.filter(function(t){var n=o("WAWebFileUtils").typeFromMimetype(t.type);return n===o("WAWebFileUtils").FILETYPE.DOCUMENT?e:n===o("WAWebFileUtils").FILETYPE.IMAGE||n===o("WAWebFileUtils").FILETYPE.VIDEO||n===o("WAWebFileUtils").FILETYPE.AUDIO});return n.length>0&&(on.flush(),o("WAWebCmd").Cmd.attachMediaDrawer({chat:M,attachments:n.map(function(e){return{file:e}}),fileOrigin:o("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.PASTE,initCaption:je(),onComplete:kn})),!0},dn=function(t){cn(t)},mn=function(t){ln(!0),It==null||It.paste(t)},pn=E($.OTHER),_n=function(){if(r("justknobx")._("169"))It==null||It.replaceSelection("/");else{var e;(e=Lt.current)==null||e.togglePanel()}pn.current=$.ATTACHMENT_MENU},fn=function(){It==null||It.reset()},gn=function(){ln()},hn=function(){o("WAWebComposeBoxActions").ComposeBoxActions.setIsFocus(!0)},yn=function(){o("WAWebComposeBoxActions").ComposeBoxActions.setIsFocus(!1)},Cn=E(null),bn=E(null),vn=function(t){ut(t),Ut(null),nn(t)},Sn=function(t){Xt(function(e){var n=e.handleMultiple,r=e.handleOnce;return{handleOnce:t.handleOnce?r.concat(t.handleOnce):r,handleMultiple:t.handleMultiple?r.concat(t.handleMultiple):n}})},Rn=function(){ut(null),Ut(null),tn(),St.current.onOrBefore(1)},Ln=function(){var e;(e=dt.current)==null||e.activate(),ln(!1)},En=function(t){var e;t.stopPropagation(),A(t),(e=Ct.current)==null||e.debounce(0)},kn=r("useWAWebStableCallback")(function(e,t){t===void 0&&(t={});var n=t,r=n.initCaptionUsed;e&&r&&fn(),e&&Rn()}),In=r("useWAWebStableCallback")(function(){on.flush()}),Tn=function(){Ft(null),gn()},Dn=function(t,n,a,i){var e=o("WAWebComposeBoxUtils").fetchGif(t,n,a,i);return on.flush(),(ie||le)&&o("WAWebModalManager").ModalManager.close(),o("WAWebCmd").Cmd.attachMediaDrawer({chat:M,attachments:[e],initCaption:je(),fileOrigin:o("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_GIF_INAPP,onComplete:function(t,n){kn(t,n),t&&Tn()},isQuestion:ie,questionReplyQuotedMessage:le}),e.catch(r("WAWebNoop")),e},xn=function(t,n,r){Dn(t,t,n,r)},$n=function(t,n,r){var e=H,a=o("WAWebApiPrepareCtwaContextSend").prepareCtwaContextSend(st,qt),i={stickerSendOrigin:n,quotedMsg:e,ctwaContext:a};r===o("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub&&(i.isWamoSub=!0),o("WAWebSendStickerAction").sendStickerToChat(M,t,i),se(null),Rn()},Pn=function(t,n,r){if(t.isCreateButton){var e;new(o("WAWebWebcStickerMakerEventsWamEvent")).WebcStickerMakerEventsWamEvent({stickerMakerEventName:o("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.STICKER_MAKER_BUTTON_TAP}).commit(),(e=ft.current)==null||e.open();return}if(re&&o("WAWebNewsletterWamoSubUtils").newsletterSupportsSubscriptions(ae)&&r!=null&&r.target&&o("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()){var a=function(r){$n(t,n,r)};ge({popupAnchorEl:r.target,handleSelect:a})}else $n(t,n)},Nn=function(t,n,r){r===!0?$n(t,n,o("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub):$n(t,n)},Mn=function(t){var e=an();Te.current=t;var n=an();n!==e&&(window.setTimeout(function(){o("WAWebComposeBoxActions").ComposeBoxActions.setHasText(n)},0),it(n)),n?(Q.subscribe(),o("WAWebPresenceChatAction").markComposing(M),o("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(M)):(Et=null,o("WAWebPresenceChatAction").markPaused(M));var r=De();(!r&&he.current||r&&r.url!==he.current)&&nt(),ht.current?St.current.onOrBefore(1):St.current.debounce(D),ht.current=!1,on(),!Ht&&t&&!V&&Gt(!0);var a=Rt.current.data,i=a.mentionedJidList,l=i==null?void 0:i.find(function(e){return e.isBot()});Me(l),Ke.current?Ke.current=!1:Je(n,H!=null)},wn=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e;M.pttRecordingSession!=null?e=M.pttRecordingSession:(e=o("WAWebPttComposerRecordingSession").createRecordingSession({chat:o("WAWebStateUtils").unproxy(M)}),e.on("change:recordingState",function(){var t=e.recordingState;M.pttRecordingSession===e&&(t===o("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR||t===o("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED)&&de(null)})),$t(e),Mt(!1),o("WAWebPttMessageUserJourneyLogger").PttMessageUserJourneyLogger.start(M.id,H!=null);var t;try{t=yield e.start()}finally{var n=t?e:null;de(n),$t(n),Mt(n!=null)}});return function(){return e.apply(this,arguments)}})(),An=function(t){Ft(t),t!=null&&o("WAWebUserPrefsGeneral").setLastComposeBoxExpressionPanel(t)},Fn=function(t){var e=t.getFiles();return cn(e)},On=function(t){var e=I.exec(t);if(e){var n="https://media.giphy.com/media/"+e[1]+"/200w.mp4";return Dn(n,t,o("WAWebProtobufsE2E.pb").Message$VideoMessage$Attribution.GIPHY).catch(function(){o("WAWebDrawerManager").DrawerManager.closeDrawerMid(),ln(!0),It==null||It.replaceSelection(t),o("WAWebToastManager").ToastManager.open(v.jsx(o("WAWebToast.react").Toast,{msg:u._(/*BTDS*/"Error al cargar el elemento que intentaste a\u00f1adir.")}))}),!0}return ht.current=!0,!1},Bn=function(){return pt.current?pt.current.offsetWidth-T:0},Wn=function(t){var e,n,r=t.target;r instanceof HTMLElement&&(e=bn.current)!=null&&e.contains(r)||(r instanceof HTMLElement&&r===(It==null||(n=It.editor)==null?void 0:n.getRootElement())&&Ln(),!z&&at&&Gt(!0))},qn=function(t){var e;o("WAWebReconnectUtil").reconnect();var n=Rt.current.text.trim(),a=Rt.current.data;if(!(n.length===0&&!st)){if(o("WAWebLimitSharingUIUtils").isLimitSharingReceiverEnabledForUsers(M,a.mentionedJidList)){o("WAWebLimitSharingUIUtils").showLimitSharingInvokeBlockedPopup(M);return}Ze();var i=H,l=Ce==null?void 0:Ce.data,s=o("PaymentLink").getPaymentLinkMessageMetadata(l,o("WAWebCodeFormatMutator").removeCodeBlocks(n)),u=a.mentionedJidList||[],c=a.groupMentions||[],d=o("WAWebApiPrepareCtwaContextSend").prepareCtwaContextSend(st,qt),m=yt.current;if(Ft(null),it(!1),be(null),(e=Cn.current)==null||e.close(),Et&&(o("WAWebQuickReplyLogging").logQuickReplySendEvent(Et===$.ATTACHMENT_MENU?o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:o("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD),Et=null),m){var _=o("WAWebStateUtils").unproxy(M);_.urlText&&(_.urlText=void 0)}var f=B!=null?{threadIds:[B],aiThreadInfo:o("WAWebMaybeGetAiThreadInfo").maybeGetAiThreadInfo(M,B)}:{},g=babelHelpers.extends({linkPreview:l,quotedMsg:i,mentionedJidList:u,groupMentions:c,quotedMsgAdminGroupJid:J,quotedMsgAdminGroupSubject:Z,quotedMsgAdminParentGroupJid:ee,ctwaContext:d,isQuestion:ie,questionReplyQuotedMessage:le},f,{maybeNonJidMentioned:bt.current!=null&&bt.current>0});if(re?(t===o("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub&&o("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()&&(g.isWamoSub=!0),o("WAWebNewsletterSendMsgAction").sendNewsletterTextMsg(M,n,g)):(o("WALogger").LOG(p||(p=babelHelpers.taggedTemplateLiteralLoose(["sendTextAction inside WAWebComposeBox"]))),o("WAWebSendTextMsgChatAction").sendTextMsgToChat(M,n,babelHelpers.extends({},g,{botMsgBodyType:o("WAWebBotGating").isBizBot3pAvailable()&&Ae!=null&&Ae.commands&&o("WAWebLexicalUtils").hasBotCommand(It==null?void 0:It.editor)?o("WAWebBotTypes").BotMsgBodyType.COMMAND:null,paymentLinkMetadata:s})),Rn(),Qt.handleOnce.forEach(function(e){return e==null?void 0:e()}),Qt.handleMultiple.forEach(function(e){return e==null?void 0:e()}),Xt({handleMultiple:Qt.handleMultiple,handleOnce:[]})),o("PaymentLinkWamLogger").shouldLogSendEvent()){var h=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),y=o("WAWebBusinessProfileUtils").hasCatalog(o("WAWebBusinessProfileCollection").BusinessProfileCollection.get(h));o("PaymentLinkWamLogger").genLogSendEventIfPaymentLink(o("WAWebCodeFormatMutator").removeCodeBlocks(n),Se,Ce,Ee,y,M,s).catch(r("WAWebNoop"))}yt.current=!1,bt.current=null,se(null),ue(null),ce(null),M.setComposeContents({}),fn(),an()}},Un=function(){var e=o("WAWebChatGetters").getIsBroadcast(M);if(e&&o("WAWebBizGatingUtils").isBizBroadcastSendWebEnabled()){o("WAWebDrawerManager").DrawerManager.openDrawerMid(v.jsx(o("WAWebBizBroadcastNewBroadcastFlowLoadable").WAWebBizBroadcastNewBroadcastFlowLoadable,{chat:M,entryPoint:o("WAWebWamEnumEntryPoint").ENTRY_POINT.CHATS_LIST,onBack:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerMid()}}));return}if(re&&o("WAWebNewsletterWamoSubUtils").newsletterSupportsSubscriptions(ae)&&ct.current&&o("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()){var t=function(t){qn(t)};ge({popupAnchorEl:ct.current,handleSelect:t})}else qn();F==null||F(),Ke.current=!0,Ye(H!=null),H!=null&&o("WAWebQuotedMessageUserJourneyLogger").QuotedMessageUserJourneyLogger.quotedMessageSent(M.id)},Vn=r("useWAWebStableCallback")(function(e){It==null||It.setTextContent(e)}),Hn=function(t){if(At){var e;(e=_t.current)==null||e.restoreFocus(!0),o("WAWebStopEvent").stopEvent(t)}},Gn=r("useWAWebDebouncedCallback")(function(e){an()||re&&!o("WAWebNewsletterGatingUtils").isNewsletterMessageEditingEnabled()||o("WAWebComposeBoxUtils").editLastMessage(M,e)},200,{trailing:!0}),zn=function(){$t(null),Mt(!1),gn()},jn=function(t){if(t){t.stopPropagation();var e=t.target.files==null?[]:Array.from(t.target.files);e.length&&(new(o("WAWebWebcStickerMakerEventsWamEvent")).WebcStickerMakerEventsWamEvent({stickerMakerEventName:o("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.IMAGE_UPLOADED}).commit(),o("WAWebCmd").Cmd.attachMediaDrawer({chat:M,attachments:e.map(function(e){return{file:e,stickerMaker:!0}}),fileOrigin:o("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_PHOTO_LIBRARY,sendAsSticker:!0}))}},Kn=function(t){if(o("WAWebABProps").getABPropConfigValue("enable_mention_everyone_sender")){var e;bt.current=((e=bt.current)!=null?e:0)|t}};r("WAWebUseComposeBoxActionListeners")(M,{onFocus:gn,onPaste:un,onPasteFiles:dn,onRoutedPaste:mn,onSend:Un,onToggleQuickReplies:_n,onCtwaContextLinkData:vn,onSendingLogAttributes:Sn,onSetTextContent:Vn,onSetNonJidMentions:Kn});var Qn=o("WAWebTextSizeUtils").getWAWebTextSizeStyles().composerFontSize,Xn=o("WAWebStateUtils").unproxy(M).groupMetadata,Yn=function(t){o("WALogger").LOG(_||(_=babelHelpers.taggedTemplateLiteralLoose(["handlePromptSelect inside WAWebComposeBox"])));var e;B!=null&&(e=o("WAWebMaybeGetAiThreadInfo").maybeGetAiThreadInfo(M,B)),o("WAWebSendTextMsgChatAction").sendTextMsgToChat(M,t,{botMsgBodyType:o("WAWebBotGating").isBizBot3pAvailable()?o("WAWebBotTypes").BotMsgBodyType.PROMPT:null,threadIds:B?[B]:void 0,aiThreadInfo:e})},Jn=o("WAWebComposeBoxUtils").getComposeBoxPlaceholderText({chat:M,questionType:O}),Zn=o("WAWebComposeBoxUtils").getComposeBoxAriaLabelText(M),er=v.jsxs(r("WAWebRichTextInput.react"),{ref:Tt,onFocus:hn,onBlur:yn,placeholder:Jn,ariaLabel:Zn,ariaActiveDescendents:Bt,textXstyle:Qn,xstyle:P.richTextRefresh,testid:void 0,editorName:"compose-box",initialText:(l=je())==null?void 0:l.text,groupMetadata:Xn,readOnly:xt!=null,maxLength:r("WAWebConstantsDeprecated").MAX_TXT_MSG_SIZE,maxVisibleLines:x,minVisibleLines:Jt?2:1,spellCheck:me.spellcheck,transformTextEmoji:me.transformTextEmoji,enterIsNewLine:!me.enterIsSend,multiline:!0,focusOnMount:!$e,textFormatEnabled:!0,tabOrder:o("WAWebTabOrder").TAB_ORDER.COMPOSE_BOX_INPUT,onChange:function(t){Rt.current=t,Mn(t.parsableText)},onEnter:Un,onFiles:Fn,onTextPaste:On,onMaxPasteExceeded:o("WAWebComposeBoxUtils").handleMaxPasteExceeded,bulletPointsEnabled:!0,numberedListEnabled:!0,inlineCodeEnabled:!0,blockQuoteEnabled:!0,internLinksEnabled:!0,phoneNumbersEnabled:!1,linksEnabled:!0,textFormatShortcutsEnabled:!0,floatingToolbarEnabled:!Jt,botInvokeEnabled:M.canInvokeBot(),highlightedBotCommands:We,children:[v.jsx(r("WAWebEmojiPickerPlugin"),{}),v.jsx(r("WAWebMentionPickerPlugin"),{chat:o("WAWebStateUtils").unproxy(M),elevatedPushNamesEnabled:o("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(M),botInvokeEnabled:M.canInvokeBot(),source:"chat-composer"}),o("WAWebBizGatingUtils").canSendQuickReplyInChat(M)&&r("justknobx")._("169")&&(It==null?void 0:It.editor)&&v.jsx(r("WAWebQuickReplyPickerPlugin"),{editor:It.editor})]}),tr,nr=It==null?void 0:It.editor;nr!=null&&(tr=v.jsxs(v.Fragment,{children:[!1,!1,o("WAWebBizGatingUtils").canSendQuickReplyInChat(M)&&!r("justknobx")._("169")&&v.jsx(r("WAWebQuickReplySuggestions.react"),{kind:o("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:nr,ref:Lt,onSelect:function(){pn.current===$.ATTACHMENT_MENU?(o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(M,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.QUICK_REPLY),Et=$.ATTACHMENT_MENU):Et=$.OTHER,pn.current=$.OTHER},onHide:function(){pn.current===$.ATTACHMENT_MENU&&o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(M,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.QUICK_REPLY),pn.current=$.OTHER}}),(o("WAWebBotGating").isBizBot3pEnabled()&&Ae||o("WAWebBotGating").isMetaBotCommandsEnabled()&&Be)&&v.jsx(o("WAWebBotCommandSuggestions.react").BotCommandSuggestions,{kind:o("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:nr,businessProfile:Ae&&o("WAWebStateUtils").unproxy(Ae),metaBotId:Fe}),!r("gkx")("26258")&&n("cr:5993")?v.jsx(n("cr:5993"),{kind:o("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:nr}):null]})),R(y,function(){return{flushSaveComposeContentDebounced:In,getCurrentComposeContent:je,updateTextAfterMediaDrawerClose:kn}},[In,je,kn]),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"start_ptt_recording",function(){Nt||wn()});var rr=null;ze&&(rr=v.jsx(r("WAWebBotSuggestions.react"),{id:U,onPromptSelect:Yn}));var or={chat:M,pttComposerActive:Nt,isMessageToBot:we(),getCurrentComposeContent:je,richTextInputRef:It,updateTextAfterMediaDrawerClose:kn,inputHotkeyRef:gt,handleTab:Hn,handleMetaUpDebounced:Gn,handleInputFocus:Wn,input:er,expressionsPanelWrapperRef:bn,expressionsPanelPickerRef:Cn,replaceInputSelection:sn,handlePanelsSticker:Pn,handlePanelsStickerFromStore:Nn,handlePanelsGif:xn,hasTextState:at,handleSendText:Un,recordingSession:xt,startRecording:wn},ar=o("WAWebComposeBoxPopupPanels.react").useComposePopupPanels(_t,{chat:M,linkPreviewData:Ce==null?void 0:Ce.data,ctwaContextLinkData:st,ctwaContextData:qt,restoreFocus:gn,selectedExpressionPanel:At,getComposeBlockWidth:Bn,onComposeHeightChange:w,omitLinkPreview:et,omitCtwa:Rn,onEmoji:sn,onGif:xn,onExpressionPanelChange:An,onSticker:Pn,onExpressionPanelClose:Tn,showSpamPanel:N&&Ht,onClickNotSpam:zt,onClickDismissSpam:jt,questionReplyQuotedMessage:C.questionReplyQuotedMessage,questionType:O}),ir=ar.PopupPanels,lr=ar.hasTopPanels,sr;return Jt&&n("cr:7456")?sr=v.jsx(n("cr:7456"),babelHelpers.extends({},or,{ref:ct,onCollapseComposer:en})):sr=v.jsx(r("WAWebMessageComposer.react"),babelHelpers.extends({},or,{ref:ct,hasTopPanel:lr,closePttComposer:zn,questionType:O,questionReplyQuotedMessage:C.questionReplyQuotedMessage,threadId:B})),v.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"compose-box",type:"fatal",children:v.jsx(o("WAWebUimUie.react").UIE,{displayName:"ComposeBox",ref:dt,uimState:o("WAWebUim").UIMState.PASSIVE,requestFocus:$e?null:gn,children:v.jsxs(o("WAWebKeyboardHotKeys.react").HotKeys,{component:"footer",tabIndex:null,handlers:{pagedown:En,pageup:En},className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((s={},s._ak1n=Nt,s._ak1i=!0,s._anyz=ze,s),"x1wiwyrm"),ref:mt,children:[rr,v.jsx(r("WAWebCopyPasteCopyableArea.react"),{canCut:!0,className:(h||(h=r("stylex")))(P.blockCompose,[P.blockComposeRefresh,o("WAWebUISpacing").uiMargin.horizAuto],!1),ref:pt,children:v.jsxs("div",{"data-testid":void 0,className:"x1n2onr6 x98rzlu xh8yej3 xeuugli x1gg8mnh",children:[null,v.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"messageComposer",children:sr})]})}),ir,v.jsx(r("WAWebFilePicker.react"),{ref:ft,mimes:o("WAWebMimeTypes").IMAGE_MIMES,onChange:jn,multiple:!1}),tr,fe!=null&&v.jsx(r("WAWebNewsletterWamoSubMessageTypePopup.react"),{handleSelect:fe.handleSelect,popupAnchorEl:fe.popupAnchorEl,onDismiss:function(){return ge(null)}})]})})})}N.displayName=N.name+" [from "+i.id+"]";var M=N;function w(e){var t=e.chat,n=e.handleFocus,r=t.id.toString();return o("useWAWebListener").useListener(o("WAWebComposeBoxActions").ComposeBoxActions,"focus_"+r,n),o("useWAWebListener").useListener(o("WAWebComposeBoxActions").ComposeBoxActions,"focus",n),v.jsx(o("WAWebUimUie.react").UIE,{displayName:"PlaceholderComposeBox"})}w.displayName=w.name+" [from "+i.id+"]",l.ComposeBox=M,l.PlaceholderComposeBox=w}),226); __d("WAWebCongratulationsAnimation.react",["WAWebCongratulationsAnimationsUtils","WAWebLottieAnimationLoadable","react","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.useImperativeHandle,m=u.useRef,p=u.useState,_={lottieComponent:{height:"x5yr21d",width:"xh8yej3",$$css:!0}};function f(e){var t=e.onAnimationComplete,n=e.ref,a=p(!1),i=a[0],l=a[1],s=p(null),u=s[0],f=s[1],g=m(null),h=r("useWAWebUnmountSignal")(),y=function(){t==null||t(),!h.aborted&&l(!1)},C=function(t){if(!h.aborted){var e=o("WAWebCongratulationsAnimationsUtils").getCongratulationsAnimationPath(t.animation);f(e),l(!0)}};d(n,function(){return{triggerAnimation:C}});var b=null;return i&&u!=null&&(b=c.jsx("div",{className:"x10l6tqk xc9l9hb x47corl x5yr21d xh8yej3 x78zum5 xl56j7k",children:c.jsx("div",{className:"x5yr21d xktia5q",children:c.jsx(o("WAWebLottieAnimationLoadable").LottieAnimation,{ref:g,autoplay:!0,path:u,onComplete:y,xstyle:_.lottieComponent})})})),b}f.displayName=f.name+" [from "+i.id+"]";var g=f;l.CongratulationsAnimation=g}),98); __d("WAWebCongratulationsAnimationConversation.react",["WAWebCongratulationsAnimation.react","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useRef;function d(e,t){e.animationCandidateData&&(t==null||t.triggerAnimation({animation:e.animationCandidateData.animationType}),e.setCelebrationAnimationLastPlayed())}function m(e){var t=e.chat,n=c(),r=o("useWAWebModelValues").useModelValues(t,["animationCandidateData","celebrationAnimationLastPlayed"]);return r.animationCandidateData&&r.animationCandidateData.msgTimestampSeconds>r.celebrationAnimationLastPlayed&&d(r,n.current),u.jsx(o("WAWebCongratulationsAnimation.react").CongratulationsAnimation,{ref:n})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebContactMsgInfoFlowLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebContactMsgInfoFlow.react").__setRef("WAWebContactMsgInfoFlowLoadable").load();return e}),"ContactMsgInfoFlow"),d=r("react-loadable")({loader:c,loading:function(t){return u.jsx(r("WAWebLoadingDrawer.react"),{title:s._(/*BTDS*/"Info. del mensaje"),error:!!t.error})}});l.requireBundle=c,l.ContactMsgInfoFlowLoadable=d}),226); __d("WAWebRoundSendInvIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="round-send-inv";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=35,R=35;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 35 35",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 35 35",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",enableBackground:"new ",d:"M17.5,0.25C7.988,0.25,0.25,7.988,0.25,17.5 S7.988,34.75,17.5,34.75s17.25-7.738,17.25-17.25S27.012,0.25,17.5,0.25z M14.3,24.2l-5.6-5.6l1.4-1.4l4.2,4.2l10.6-10.6l1.4,1.4 L14.3,24.2z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.RoundSendInvIcon=m}),98); __d("WAWebConversationDeprecatedLidChatBanner.react",["fbt","WALogger","WAWebButton.react","WAWebCmd","WAWebComposeBoxActions","WAWebConversationNewBanner.react","WAWebFindChatAction","WAWebRoundSendInvIcon.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react"));function d(t){var a=t.latestLid,i=s._(/*BTDS*/"Este n\u00famero de tel\u00e9fono est\u00e1 conectado a una nueva cuenta de WhatsApp."),l=s._(/*BTDS*/"Enviar mensaje a la nueva cuenta"),u=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){o("WAWebFindChatAction").findOrCreateLatestChat(a,"deprecatedLidOrPnChat").then((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.chat,n=yield o("WAWebCmd").Cmd.openChatFromUnread({chat:t});n&&o("WAWebComposeBoxActions").ComposeBoxActions.focus(t)});return function(t){return e.apply(this,arguments)}})()).catch(function(){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[deprecated lid chat] failed to find or create latest chat using the latest lid for given pn"]))).sendLogs("failed-to-find-or-create-latest-chat-from-deprecated-chat")})});return function(){return t.apply(this,arguments)}})(),d=c.jsx(o("WAWebButton.react").WAWebButtonSecondary,{onClick:u,icon:o("WAWebRoundSendInvIcon.react").RoundSendInvIcon,children:l},"go_to_latest_lid_chat");return c.jsx(r("WAWebConversationNewBanner.react"),{primaryText:i,buttons:[d]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebIsAiThreadAfterHistorySync",["WAWebBotUtils","WAWebChatCollection","WAWebThreadUtils","WAWebUserPrefsHistorySync"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t;if(e.type!==o("WAWebThreadUtils").ThreadType.AiThread)return!1;var n=(t=o("WAWebChatCollection").ChatCollection.get(o("WAWebBotUtils").META_BOT_PN_WID))==null||(t=t.aiThreads)==null?void 0:t.get(e);if(n==null)return!0;var r=n.creationTimestamp;return r==null?!0:r>o("WAWebUserPrefsHistorySync").getHistorySyncEarliestDate()}l.isAiThreadAfterHistorySyncDate=e}),98); __d("WAWebModalManagerUtils",["WAWebModalManager"],(function(t,n,r,o,a,i,l){function e(){o("WAWebModalManager").ModalManager.close()}l.closeModalManager=e}),98); __d("WAWebConversationLoadMoreMessagesHistorySync",["fbt","WALogger","WAWebAlertSyncPausedIcon.react","WAWebChatConstants","WAWebClock","WAWebConfirmPopup.react","WAWebHistorySyncInProgressPopup.react","WAWebHistorySyncOnDemandEvents","WAWebHistorySyncPausedPopup.react","WAWebHistorySyncProgressGetters","WAWebHistorySyncUIText","WAWebIcSyncIcon.react","WAWebIsAiThreadAfterHistorySync","WAWebLinkDeviceCommonInstructions.react","WAWebModalManager","WAWebModalManagerUtils","WAWebNonMessageDataRequestHistorySyncOnDemandUtils","WAWebProtobufsE2E.pb","WAWebSendNonMessageDataRequest","WAWebSpinner.react","WAWebSyncGatingUtils","WAWebUserPrefsHistorySync","WDSText.react","react","useWAWebHistorySyncProgressValues","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p=m||(m=r("react")),_=(d||(d=o("react"))).useState;function f(){return s._(/*BTDS*/"Toca {=m1} y busca este dispositivo.",[s._implicitParam("=m1",p.jsx(o("WAWebLinkDeviceCommonInstructions.react").Strong,{children:s._(/*BTDS*/"Dispositivos vinculados")}))])}f.displayName=f.name+" [from "+i.id+"]";function g(){return s._(/*BTDS*/"En los ajustes de {=m1}, activa {=m4} y vuelve a intentarlo.",[s._implicitParam("=m1",p.jsx(o("WAWebLinkDeviceCommonInstructions.react").Strong,{children:s._(/*BTDS*/"Historial de chats")})),s._implicitParam("=m4",p.jsx(o("WAWebLinkDeviceCommonInstructions.react").Strong,{children:s._(/*BTDS*/"Todo el historial de chat")}))])}g.displayName=g.name+" [from "+i.id+"]";var h={popoverButtonGroup:{paddingTop:"x1h678fw",$$css:!0}};function y(){return s._(/*BTDS*/"Haz clic aqu\u00ed para obtener mensajes anteriores de tu tel\u00e9fono.")}function C(){var e=p.jsx(r("WDSText.react"),{type:"Headline2",colorName:"contentDefault",children:s._(/*BTDS*/"Este dispositivo necesita tu permiso para cargar mensajes anteriores")}),t=[p.jsx(o("WAWebLinkDeviceCommonInstructions.react").LinkDeviceInstructionOpenWhatsAppOnPhone,{},"step1"),p.jsx(o("WAWebLinkDeviceCommonInstructions.react").LinkDeviceInstructionNavigateToSettings,{},"step2"),p.jsx(f,{},"step3"),p.jsx(g,{},"step4")],n=t.length-1;o("WAWebModalManager").ModalManager.open(p.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:e,onOK:o("WAWebModalManagerUtils").closeModalManager,buttonGroupStyle:h.popoverButtonGroup,children:p.jsx("ol",{className:"x3yw8vx xlese2p",children:t.map(function(e,t){return p.jsx("li",babelHelpers.extends({},{0:{},1:{className:"xefnzgg"}}[(t!==n)<<0],{children:e}),"step-"+t)})})}))}function b(t){var n=t.chatId,a=t.mdHistorySyncTransferState,i=t.threadId,l=o("useWAWebHistorySyncProgressValues").useHistorySyncProgressValues([o("WAWebHistorySyncProgressGetters").getInProgress,o("WAWebHistorySyncProgressGetters").getPaused]),d=l[0],m=l[1],f=a===o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.INCOMPLETE,g=n==null?void 0:n.toJid(),h=_(function(){return g!=null?new Set(o("WAWebNonMessageDataRequestHistorySyncOnDemandUtils").inFlightHistorySyncOnDemandRequests.values()).has(g):!1}),b=h[0],v=h[1],S=_(null),R=S[0],L=S[1];if(o("useWAWebListener").useListener(o("WAWebHistorySyncOnDemandEvents").WAWebHistorySyncOnDemandEvents,"history_sync_on_demand_events:success_history_sync_od",function(t){o("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&t===g&&(o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[history sync][on demand] success for chat ",""])),n==null?void 0:n.toLogString()),v(!1),L(!0),a===o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS&&o("WAWebSyncGatingUtils").isHistorySyncOnDemandCompleteCompanionEnabled()&&C())}),o("useWAWebListener").useListener(o("WAWebHistorySyncOnDemandEvents").WAWebHistorySyncOnDemandEvents,"history_sync_on_demand_events:error_history_sync_od",function(e){o("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&e===g&&(o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[history sync][on demand] fail for chat ",""])),n==null?void 0:n.toLogString()),v(!1),L(!1))}),i!=null&&o("WAWebIsAiThreadAfterHistorySync").isAiThreadAfterHistorySyncDate(i))return null;var E,k,I;if(f&&d)E=m?o("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_SYSTEM_MESSAGE_TEXT():o("WAWebHistorySyncUIText").SYNC_IN_PROGRESS_CONTEXTUAL_SYSTEM_MESSAGE_TEXT(),k=m?p.jsx(o("WAWebAlertSyncPausedIcon.react").AlertSyncPausedIcon,{width:14,height:14}):p.jsx(o("WAWebIcSyncIcon.react").IcSyncIcon,{viewBox:{x:-10,y:-5,width:32,height:32}}),I=m?function(){o("WAWebModalManager").ModalManager.open(p.jsx(r("WAWebHistorySyncPausedPopup.react"),{}))}:function(){o("WAWebModalManager").ModalManager.open(p.jsx(r("WAWebHistorySyncInProgressPopup.react"),{}))};else{if(o("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&a!=null&&!d&&!b&&!o("WAWebNonMessageDataRequestHistorySyncOnDemandUtils").historySyncOnDemandRequestsFailureRecord.disableRequestSending)switch(a){case o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY:case o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS:{if(a===o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS&&!o("WAWebSyncGatingUtils").isHistorySyncOnDemandCompleteCompanionEnabled())break;n!=null&&(R!==!1?E=y():(E=s._(/*BTDS*/"No se pudieron obtener mensajes anteriores. Abre WhatsApp en tu tel\u00e9fono y haz clic aqu\u00ed para volver a intentarlo."),k=p.jsx(o("WAWebAlertSyncPausedIcon.react").AlertSyncPausedIcon,{width:14,height:14})),I=function(){v(!0),L(null),o("WAWebSendNonMessageDataRequest").sendPeerDataOperationRequest(o("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.HISTORY_SYNC_ON_DEMAND,{chatId:n}).catch(function(){o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[history sync][on demand] failed to send request for chat ",""])),n==null?void 0:n.toLogString()).sendLogs("history-sync-on-demand-request-failed"),v(!1),L(!1)})});break}case o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY:E=s._(/*BTDS*/"Usa WhatsApp en tu tel\u00e9fono para ver mensajes anteriores.");break;case o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY:case o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.INCOMPLETE:case o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.NOT_INCLUDED_IN_HIST_SYNC:break}if(E==null){var T=o("WAWebClock").Clock.relativeDateStr(o("WAWebUserPrefsHistorySync").getHistorySyncEarliestDate());E=s._(/*BTDS*/"Usa WhatsApp en tu tel\u00e9fono para ver mensajes anteriores al {date}.",[s._param("date",T)])}}if(o("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&b)return p.jsx("div",{className:"x78zum5 x1okw0bk xl56j7k xexx8yu xyri2b xvg22vi x1c1uobl",children:p.jsx("div",{className:"x78zum5 x6s0dn4 xl56j7k x187nhsf xn3w4p2 xdj266r x11t971q xat24cr xvc5jky xhslqc4 x1280gxy x1c9tyrk xeusxvb x1pahc9y x1ertn4p x1wpep30",children:p.jsx(o("WAWebSpinner.react").Spinner,{stroke:6,size:24,color:"highlight"})})});var D=p.jsxs("div",{className:"x78zum5 x6s0dn4 x1r0jzty x17zd0t2",children:[k,p.jsx("div",{children:E})]}),x={0:"x9f619 x1rg5ohu x1okw0bk x193iq5w x123j3cw xpdmqnj x10b6aqq x1g0dm76 x13a8xbf xdod15v x2b8uid xyi3aci xwf5gio x1p453bz x1suzm8a",2:"x1bvqhpb x6f6fmj x1b9z3ur x9f619 x1rg5ohu x1okw0bk x193iq5w x123j3cw xpdmqnj x10b6aqq x1g0dm76 x13a8xbf xdod15v x2b8uid xyi3aci xwf5gio x1p453bz x1suzm8a",1:"x1bvqhpb x1280gxy x1b9z3ur x9f619 x1rg5ohu x1okw0bk x193iq5w x123j3cw xpdmqnj x10b6aqq x1g0dm76 x13a8xbf xdod15v x2b8uid xyi3aci xwf5gio x1p453bz x1suzm8a",3:"x6f6fmj x1bvqhpb x1280gxy x1b9z3ur x9f619 x1rg5ohu x1okw0bk x193iq5w x123j3cw xpdmqnj x10b6aqq x1g0dm76 x13a8xbf xdod15v x2b8uid xyi3aci xwf5gio x1p453bz x1suzm8a"}[!f<<1|!!f<<0],$=I!=null?p.jsx("button",{className:x,onClick:I,children:D}):p.jsx("div",{className:x,children:D});return p.jsx("div",{className:"x78zum5 x1okw0bk xl56j7k xqy66fx xyri2b x1hhzuzn x1c1uobl",children:$})}b.displayName=b.name+" [from "+i.id+"]",l.default=b}),226); __d("WAWebConversationLoadMoreMessages.react",["fbt","WAWebConversationLoadMoreMessagesHistorySync","WAWebRefreshIcon.react","WAWebSpinner.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.chatId,n=e.direction,a=e.isLoadingAroundMsgs,i=e.isLoadingEarlierMsgs,l=e.isLoadingRecentMsgs,c=e.isMostRecentCMC,d=e.isRepairingMsgHistory,m=e.loadMoreMsgs,p=e.mdHistorySyncTransferState,_=e.threadId,f=n==="earlier"&&i,g=n==="recent"&&l,h=n==="around"&&a,y=f||g||h||d,C=p!=null&&!y,b,v,S;if(y)b=u.jsx(o("WAWebSpinner.react").Spinner,{stroke:6,size:24,color:"highlight"}),v=s._(/*BTDS*/"cargando mensajes\u2026");else{if(C)return u.jsx(r("WAWebConversationLoadMoreMessagesHistorySync"),{mdHistorySyncTransferState:p,chatId:t,threadId:_});switch(n){case"earlier":v=s._(/*BTDS*/"cargar mensajes anteriores\u2026");break;case"recent":v=s._(/*BTDS*/"cargar mensajes recientes\u2026");break;default:v=s._(/*BTDS*/"cargando mensajes\u2026")}b=u.jsx(o("WAWebRefreshIcon.react").RefreshIcon,{}),S=m}return u.jsx("div",{className:"x78zum5 x1okw0bk xl56j7k xexx8yu xyri2b xvg22vi x1c1uobl",children:u.jsx("div",{className:"x78zum5 x6s0dn4 xl56j7k x187nhsf xn3w4p2 xdj266r x11t971q xat24cr xvc5jky xhslqc4 x1280gxy x1c9tyrk xeusxvb x1pahc9y x1ertn4p x1wpep30",title:v,onClick:S,children:b})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebConversationMsgsUtils",["WALogger","WAWebABProps","WAWebChatGetters","WAWebContactGetters","WAWebEnvironment","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebMsgGetters","WAWebRenderCursor","gkx"],(function(t,n,r,o,a,i,l){var e,s,u,c;function d(e){return e==null?null:e.key!=null?babelHelpers.extends({},e,{msg:o("WAWebMsgCollection").MsgCollection.get(e.key)}):e}function m(e){var t=e.msgLoadState;return{noEarlierMsgs:t.noEarlierMsgs,isLoadingEarlierMsgs:t.isLoadingEarlierMsgs,isLoadingRecentMsgs:t.isLoadingRecentMsgs,isLoadingAroundMsgs:t.isLoadingAroundMsgs,contextLoaded:t.contextLoaded,isRepairingMsgHistory:t.isRepairingMsgHistory}}function p(t,n,r){var a=r.noEarlierMsgs&&o("WAWebFrontendChatGetters").getShouldAppearInList(t)&&n&&t.msgChunks.some(function(e){return e.some(function(t){return t.msgChunk===e})});return a&&o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["MRM noEarlierMsgs on chat "," is true but chat.msgChunks has length: ",",\n and chat.msgs.length: ",""])),String(t.id),t.msgChunks.length,t.msgs.length).sendLogs("noEarlierMsgs-error"),a}function _(e,t){var n=e.chat,r=e.focusCtx,a=e.msgCollection,i=d(r)||f(e,t),l=i==null?void 0:i.msg,s=l==null?void 0:l.id;return{cursor:o("WAWebRenderCursor").RenderCursor.create({msgCollection:a,focusedMsgKey:s,type:o("WAWebChatGetters").getIsGroup(n)?o("WAWebRenderCursor").RENDER_CURSOR.GROUP_CONVERSATION:o("WAWebRenderCursor").RENDER_CURSOR.CONVERSATION}),focusCtx:i}}function f(e,t){var n=e.chat,a=e.focusCtx,i=e.msgCollection,l;if(n.unreadCount?l=n.unreadCount:l=t,!(a&&!g(e)||!l)){var d=i.filter(function(e){return o("WAWebMsgGetters").getIsUnreadType(e)}).reverse().slice(0,l),m;if(d.length===l)r("gkx")("26258")||o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["unreadMsgs.length is: ",""])),d.length),m=d[d.length-1];else{r("gkx")("26258")||o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["insufficient unreadMsgs.length: ",""])),d.length);return}var p=n.unreadDividerOffset;if(p>0){var _=i.filter(Boolean).reverse(),f=_.indexOf(m);_.slice(f+1,f+p+1).every(function(e){return!!o("WAWebFrontendMsgGetters").getAsRevoked(e)})?m=_[f+p]:o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["invalid unreadDividerOffset: ",""])),p).sendLogs("invalid-unread-divider-offset",{sampling:.001})}return{msg:m,isUnreadDivider:o("WAWebFrontendChatGetters").getShouldShowUnreadDivider(n),highlightMsg:!1}}}function g(e){return e.chat.msgs===e.msgCollection}function h(e){var t=o("WAWebContactGetters").getIsUser(e)||o("WAWebContactGetters").getIsGroup(e)||o("WAWebContactGetters").getIsBroadcast(e);return t?r("WAWebEnvironment").isWindows===!0?!0:o("WAWebABProps").getABPropConfigValue("wa_web_hybrid_simple_chat_conversation_context_menu_enabled")===!0:!1}l.validateFocusCtx=d,l.getMsgLoadState=m,l.noEarlierMsgStateIsIncorrect=p,l.getInitialCursorAndFocusContext=_,l.getUnreadFocusCtx=f,l.isMostRecentCMC=g,l.isSimplifiedChatConversationMenuEnabled=h}),98); __d("WAWebConversationMsgsMenuV2.react",["WAWebChatGetters","WAWebContactMenuDropdown.react","WAWebConversationMenus","WAWebConversationMsgsUtils","WDSMenu.react","react","useWDSMenu"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.useEffect,m=u.useMemo,p=u.useRef;function _(e){var t=e.chat,n=e.onCancelSelect,a=e.onMenuReady,i=e.onSelect,l=e.scrollContainerRef,s=e.selectable,u=p(null);d(function(){u.current=l},[l]);var _=m(function(){if(o("WAWebConversationMsgsUtils").isSimplifiedChatConversationMenuEnabled(t)){var e=o("WAWebConversationMenus").hybridMenu(t,i,n,s,!0);return c.jsx(r("WDSMenu.react"),{children:e})}else{if(o("WAWebChatGetters").getIsUser(t))return c.jsx(r("WAWebContactMenuDropdown.react"),{chat:t,toContextMenuManager:!0,onSelectMessages:i,enableChatThreadLogging:!1,container:l,useWdsMenuVersion:!0});if(o("WAWebChatGetters").getIsGroup(t)){var a=c.jsx(o("WAWebConversationMenus").GroupMenu,{chat:t,container:l,onSelect:i,useWdsMenuVersion:!0});return c.jsx(r("WDSMenu.react"),{children:a})}else if(o("WAWebChatGetters").getIsBroadcast(t)){var u=o("WAWebConversationMenus").broadcastMenu(t,i);return c.jsx(r("WDSMenu.react"),{children:u})}}return null},[t,i,n,s,l]),f=r("useWDSMenu")({targetRef:u,menu:_,contextMenuArea:!0,enableUIM:!1}),g=f.menuPortal,h=f.openMenu;return d(function(){a(h)},[h,a]),g}_.displayName=_.name+" [from "+i.id+"]",l.ConversationMsgsMenuV2=_}),98); __d("WAWebGroupCatchUpWamEvent",["WAWebWamCodegenUtils"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({GroupCatchUp:[3058,{mentionsCountPendingPercentage:[4,o("WAWebWamCodegenUtils").TYPES.INTEGER]},[1,1,1],"regular"]},{GroupCatchUp:[]});l.GroupCatchUpWamEvent=e}),98); __d("WAWebJumpToButtons.stylex",[],(function(t,n,r,o,a,i,l){var e={boxShadow:{boxShadow:"xhji94x",$$css:!0},incomingRefreshed:{alignItems:"x6s0dn4",backgroundColor:"x1ew7x2d",borderStartStartRadius:"xt8t1vi",borderStartEndRadius:"x1xc408v",borderEndEndRadius:"x129tdwq",borderEndStartRadius:"x15urzxu",display:"x78zum5",flexDirection:"xdt5ytf",justifyContent:"xl56j7k",position:"x1n2onr6",rowGap:"x1qvou4u",$$css:!0},unreadRefreshed:{height:"x1qx5ct2",insetInlineEnd:"xpa5qit",left:null,right:null,position:"x10l6tqk",top:"xjibb99",$$css:!0},incoming:{alignItems:"x6s0dn4",backgroundColor:"x1ew7x2d",borderStartStartRadius:"xt8t1vi",borderStartEndRadius:"x1xc408v",borderEndEndRadius:"x129tdwq",borderEndStartRadius:"x15urzxu",boxShadow:"xhji94x",display:"x78zum5",height:"x1vqgdyp",justifyContent:"xl56j7k",width:"x100vrsf",$$css:!0},unread:{insetInlineStart:"x1765b1",left:null,right:null,position:"x10l6tqk",top:"xjibb99",$$css:!0},iconColor:{color:"xhslqc4",$$css:!0}};l.styles=e}),98); __d("WAWebGroupCatchUpButton.react",["fbt","WAWebChatUnreadCount.react","WAWebJumpToButtons.stylex","WAWebMentionsRefreshedIcon.react","WAWebTabOrder","WAWebUISpacing","WAWebUnstyledButton.react","WAWebVelocityTransitionGroup","fbs","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=o("react"));function c(e){var t=e.handleJumpToMention,n=e.unreadMentionCount,a=e.xstyle,i=r("fbs")._(/*BTDS*/"_j{\"*\":\"{count} mensajes en los que te mencionaron\",\"4\":\"{count} mensaje en el que te mencionaron\",\"_1\":\"1 mensaje con menci\\u00f3n\"}",[r("fbs")._plural(n,"count")]);return u.jsxs(r("WAWebUnstyledButton.react"),{xstyle:[o("WAWebJumpToButtons.stylex").styles.incomingRefreshed,o("WAWebUISpacing").uiPadding.all10,a],dataTab:o("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST_SCROLL_BUTTON,onClick:t,"aria-label":s._(/*BTDS*/"Desplazarse hasta las menciones"),children:[u.jsx(o("WAWebMentionsRefreshedIcon.react").MentionsRefreshedIcon,{xstyle:o("WAWebJumpToButtons.stylex").styles.iconColor,width:24,height:24}),u.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"pop",xstyle:o("WAWebJumpToButtons.stylex").styles.unreadRefreshed,children:u.jsx(o("WAWebChatUnreadCount.react").UnreadCount,{count:n,ariaLabel:i.toString()})})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebIcChevronDownWideIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-chevron-down-wide";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M11 13.6L6.11253 8.71253C5.72003 8.32003 5.08281 8.32285 4.69381 8.7188C4.30964 9.10983 4.31241 9.73741 4.70003 10.125L11.2669 16.6919C11.6718 17.0968 12.3282 17.0968 12.7331 16.6919L19.3 10.125C19.6876 9.73741 19.6904 9.10983 19.3062 8.7188C18.9172 8.32285 18.28 8.32003 17.8875 8.71253L13 13.6L12 14.625L11 13.6Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.IcChevronDownWideIcon=m}),98); __d("WAWebJumpToButtons.react",["fbt","WAWebChatGetters","WAWebChatUnreadCount.react","WAWebGroupCatchUpButton.react","WAWebIcChevronDownWideIcon.react","WAWebJumpToButtons.stylex","WAWebTabOrder","WAWebUISpacing","WAWebUnstyledButton.react","WAWebVelocityTransitionGroup","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d={buttonGap:{transition:"x6q2ic0",$$css:!0},chevronRefreshed:{color:"xhslqc4",$$css:!0},borderRadius:{borderStartStartRadius:"x17m9png",borderStartEndRadius:"x91sizk",borderEndEndRadius:"x1vva9xg",borderEndStartRadius:"x1jfkl46",$$css:!0},incomingContainerRefreshed:{position:"x10l6tqk",insetInlineEnd:"x1mhpo7k",bottom:"x1qs2g4o",zIndex:"x12xzxwr",display:"x3nfvp2",flexDirection:"xdt5ytf",$$css:!0}};function m(t){var n=t.chat,a=t.handleJumpToBottom,i=t.handleJumpToMention,l=t.isMostRecentAndNotLoading,u=t.isNearBottom,m=t.newUnread,p=t.unreadMentionCount,_=!u||l,f=o("WAWebChatGetters").getIsGroup(n)&&p>0,g=null;if(f){var h=[o("WAWebJumpToButtons.stylex").styles.boxShadow];_?h.push(d.buttonGap,o("WAWebUISpacing").uiMargin.bottom16):h.push(d.borderRadius),g=c.jsx(r("WAWebGroupCatchUpButton.react"),{handleJumpToMention:i,unreadMentionCount:p,xstyle:h})}var y=null;if(_){var C=null;m&&n.unreadCount&&(C=c.jsx(o("WAWebChatUnreadCount.react").UnreadCount,{count:m},"icon-unread")),y=c.jsxs(r("WAWebUnstyledButton.react"),{xstyle:[o("WAWebJumpToButtons.stylex").styles.boxShadow,o("WAWebJumpToButtons.stylex").styles.incomingRefreshed,o("WAWebUISpacing").uiPadding.all10],dataTab:o("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST_SCROLL_BUTTON,onClick:a,"aria-label":s._(/*BTDS*/"Desplazar hasta el final"),children:[c.jsx(o("WAWebIcChevronDownWideIcon.react").IcChevronDownWideIcon,{xstyle:d.chevronRefreshed}),C&&c.jsx("span",babelHelpers.extends({},(e||(e=r("stylex"))).props(o("WAWebJumpToButtons.stylex").styles.unreadRefreshed),{children:C}))]})}return _&&f?c.jsxs("div",babelHelpers.extends({},(e||(e=r("stylex"))).props(d.incomingContainerRefreshed,d.borderRadius,o("WAWebUISpacing").uiMargin.end4),{children:[g,y]})):c.jsxs("div",{className:"x10l6tqk x1mhpo7k x1qs2g4o x12xzxwr x3nfvp2 xdt5ytf",children:[g,c.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"pop",children:y})]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebMath",[],(function(t,n,r,o,a,i){function e(e,t,n,r,o,a,i,l){var s={x:null,y:null,onLine1:!1,onLine2:!1},u=(l-a)*(n-e)-(i-o)*(r-t);if(u===0)return s;var c=t-a,d=e-o,m=(i-o)*c-(l-a)*d,p=(n-e)*c-(r-t)*d;return c=m/u,d=p/u,s.x=e+c*(n-e),s.y=t+c*(r-t),c>0&&c<1&&(s.onLine1=!0),d>0&&d<1&&(s.onLine2=!0),s}function l(e,t){if(e===0||t===0)return 0;var n=e/t*100;return n%10===0?n:(parseInt(n/10,10)+1)*10}i.intersect=e,i.roundUp10thPercentage=l}),66); __d("WAWebForwardedNewsletterMessageInfoActionButton.react",["WAWebCommonNewsletterStrings","WAWebMessageBubbleActions.react","WAWebNewsletterGatingUtils","WAWebUISpacing","react","useWAWebForwardedNewsletterMessageClickHandler"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=r("react"));function u(e){var t=e.isAlbum,n=t===void 0?!1:t,r=e.msg,a=o("useWAWebForwardedNewsletterMessageClickHandler").useForwardedNewsletterMessageClickHandler(r,o("WAWebNewsletterGatingUtils").isNewsletterForwardBottomButtonEnabled);return a==null?null:s.jsx(o("WAWebMessageBubbleActions.react").BubbleActions,{items:[{label:o("WAWebCommonNewsletterStrings").getNewsletterLinkActionLabel("view"),onClick:a,testid:"newsletter-invite-link-action",xstyle:o("WAWebUISpacing").uiPadding.bottom8}],theme:n?o("WAWebMessageBubbleActions.react").BubbleActionsTheme.ALBUM:o("WAWebMessageBubbleActions.react").BubbleActionsTheme.FORWARDED_NEWSLETTER})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebMessageGroupedSticker.react",["fbt","WALogger","WAWebChatRefreshedIcon.react","WAWebCmd","WAWebComposeBoxActions","WAWebCopyRefreshedIcon.react","WAWebCopyStickerToClipboard","WAWebCopyToClipboard","WAWebDebugGatingUtils","WAWebDeleteRefreshedIcon.react","WAWebDevOnlyBadge.react","WAWebDropdown.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebFavoriteRefreshedIcon.react","WAWebFavoriteStickerAction","WAWebFindChatAction","WAWebFlex.react","WAWebFlexItem.react","WAWebFocusTracer","WAWebForwardRefreshedIcon.react","WAWebFrontendMsgGetters","WAWebInMemoryLottieStickerCache","WAWebInfoRefreshedIcon.react","WAWebMediaInMemoryBlobCache","WAWebMessageMenu.react","WAWebMessagePosition","WAWebMessageStickerBubble.react","WAWebMiscGatingUtils","WAWebMsgActionCapability","WAWebMsgGetters","WAWebMsgReply","WAWebReactionUserJourneyLogger","WAWebReactionsPanel.react","WAWebReactionsUtils","WAWebReplyPrivatelyRefreshedIcon.react","WAWebReplyRefreshedIcon.react","WAWebReplyToMsgChatAction","WAWebRequestMediaReuploadBridge","WAWebRevokeMetricUtils","WAWebRound.react","WAWebSendReactionMsgAction","WAWebSendReactionsTray.react","WAWebSendReactionsTrayContainer.react","WAWebStarRefreshedIcon.react","WAWebStateUtils","WAWebStickerUtils","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnfavoriteRefreshedIcon.react","WAWebUnstarRefreshedIcon.react","WAWebVelocityTransitionGroup","WAWebWamEnumReactionUserJourneyEntryPoint","WAWebWrapperListeners.react","WDSIconIcMood.react","WDSIconWdsIcSticker.react","react","useWAWebDebouncedCallback","useWAWebMsgValues","useWAWebStableCallback"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m=["ref"],p,_,f=_||(_=o("react")),g=p||(p=r("react")),h=f.useEffect,y=f.useImperativeHandle,C=f.useRef,b=f.useState,v={reactIconRefreshed:{color:"xhslqc4",$$css:!0}},S={REACTION_BUTTON:75};function R(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,m),i=a.menuTransition,l=a.msg,p=a.onModalClosed,_=a.onOpenDeleteFlow,f=a.onOpenForwardFlow,R=a.rowIsKeyboardFocused,L=R===void 0?!1:R,E=C(null),k=C(),I=b(null),T=I[0],D=I[1],x=b(!1),$=x[0],P=x[1],N=b(null),M=N[0],w=N[1],A=b(null),F=A[0],O=A[1],B=b(!1),W=B[0],q=B[1],U=C(null),V=C(!1),H=l.unsafe(),G=o("useWAWebMsgValues").useMsgValues(l.id,[o("WAWebFrontendMsgGetters").getAsRevoked]),z=G[0];z&&o("WAWebCmd").Cmd.refreshMessages();var j=function(t){U.current&&r("WAWebFocusTracer").focus(U.current,t)},K=r("useWAWebStableCallback")(function(){j({preventScroll:!0})}),Q=r("useWAWebDebouncedCallback")(q,S.REACTION_BUTTON);h(function(){Q($||M!=null||L)},[$,M,Q,L]);var X=function(t){P(!0)},Y=function(){P(!1)},J=function(){Q($||M!=null||L)},Z=function(){if(E.current)return E.current.getContext()},ee=function(){o("WAWebCmd").Cmd.msgInfoDrawer(o("WAWebStateUtils").unproxy(H))},te=function(){var e=o("WAWebStateUtils").unproxy(H),t=o("WAWebFrontendMsgGetters").getChat(e);t.composeQuotedMsg=e,o("WAWebComposeBoxActions").ComposeBoxActions.focus(t)},ne=function(){var t=o("WAWebStateUtils").unproxy(H);r("WAWebReplyToMsgChatAction")(t).catch(function(){return o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[private msg reply] failed to privately reply to msg"]))).sendLogs("private-msg-reply-failed")})},re=function(){var e=o("WAWebStateUtils").unproxy(H);o("WAWebCmd").Cmd.sendStarMsgs(o("WAWebFrontendMsgGetters").getChat(e),[e])},oe=function(){var e=o("WAWebStateUtils").unproxy(H);o("WAWebCmd").Cmd.sendUnstarMsgs(o("WAWebFrontendMsgGetters").getChat(e),[e])},ae=function(){o("WAWebFavoriteStickerAction").addStickerMsgsToFavorites([o("WAWebStateUtils").unproxy(H)])},ie=function(){o("WAWebFavoriteStickerAction").removeStickerMsgFromFavorites(o("WAWebStateUtils").unproxy(H))},le=function(){_(!0,H),o("WAWebRevokeMetricUtils").UiRevokeActionHelper.startSession(),o("WAWebRevokeMetricUtils").UiRevokeActionHelper.messageSelected()},se=function(){o("WAWebFindChatAction").findOrCreateLatestChat(l.author,"messageGroupedSticker").then(function(e){var t=e.chat;o("WAWebCmd").Cmd.openChatFromUnread({chat:t}).then(function(e){e&&o("WAWebComposeBoxActions").ComposeBoxActions.focus(t)}).catch(function(){return o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[contact chat] failed to open chat from unread"]))).sendLogs("failed-to-open-chat-from-unread")})}).catch(function(){return o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[contact chat] failed to find or create latest chat"]))).sendLogs("failed-to-find-or-create-latest-chat")})},ue=function(){p==null||p(),w(null),K(),V.current||o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.trayClose()},ce=function(){p==null||p(),O(null),K(),o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.trayClose(),V.current=!1},de=r("useWAWebStableCallback")(function(e){if(o("WAWebReactionsUtils").canReactToMessage(e)){var t=function(n){o("WAWebSendReactionMsgAction").sendReactionToMsg(e,n).then(function(){o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionSelect(n)}).catch(function(e){}),ce()};O({dirY:o("WAWebDropdown.react").DirY.BOTTOM,dirX:o("WAWebMsgGetters").getIsSentByMe(e)?o("WAWebDropdown.react").DirX.LEFT:o("WAWebDropdown.react").DirX.RIGHT,type:o("WAWebDropdown.react").MenuType.ReactionPicker,menu:g.jsx(r("WAWebReactionsPanel.react"),{msgId:e.id.toString(),onSelection:t}),flipOnRTL:!0,anchor:k.current})}}),me=function(t,n){if(o("WAWebReactionsUtils").canReactToMessage(t)){var e=function(n){V.current=n===o("WAWebSendReactionsTray.react").MORE_REACTIONS,n!==o("WAWebSendReactionsTray.react").MORE_REACTIONS?o("WAWebSendReactionMsgAction").sendReactionToMsg(t,n).then(function(){o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionSelect(n)}).catch(function(e){}):self.setTimeout(function(){de(t)},150),ue()},r={dirY:o("WAWebDropdown.react").DirY.TOP,dirX:o("WAWebDropdown.react").DirX.CENTER,type:o("WAWebDropdown.react").MenuType.ReactionSendTray,menu:g.jsx(o("WAWebSendReactionsTrayContainer.react").SendReactionsTrayContainer,{msg:H,selectedCallback:e,onMouseEnter:X,onMouseOver:X,onMouseLeave:Y,userJourneyEntryPoint:n}),flipOnRTL:!1,anchor:k.current};w(r)}},pe=function(t,n){if(n===!0&&T){D(null);return}var e=n===!0?Z():t,a=o("WAWebStateUtils").unproxy(l),i=[];o("WAWebMsgGetters").getIsSentByMe(a)&&!o("WAWebFrontendMsgGetters").getAsRevoked(a.unsafe())&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ee,icon:g.jsx(o("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{}),children:s._(/*BTDS*/"Info. del mensaje")},"info")),o("WAWebMsgReply").canReplyMsg(a.unsafe())&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:te,icon:g.jsx(o("WAWebReplyRefreshedIcon.react").ReplyRefreshedIcon,{}),children:s._(/*BTDS*/"Responder")},"reply")),(o("WAWebMsgReply").canPrivateReply(a.unsafe())||o("WAWebMsgReply").canPrivateReplyInRestrictedGrp(a.unsafe()))&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ne,icon:g.jsx(o("WAWebReplyPrivatelyRefreshedIcon.react").ReplyPrivatelyRefreshedIcon,{}),children:s._(/*BTDS*/"Responder en privado")},"private_reply")),o("WAWebMsgGetters").getIsGroupMsg(l)&&l.author&&!o("WAWebMsgGetters").getIsSentByMe(l)&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:se,icon:g.jsx(o("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{}),children:s._(/*BTDS*/"Enviar mensaje a {author}",[s._param("author",l.displayName())])},"author")),o("WAWebReactionsUtils").canReactToMessage(H)&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){me(H,o("WAWebWamEnumReactionUserJourneyEntryPoint").REACTION_USER_JOURNEY_ENTRY_POINT.MACOS_MESSAGE_MENU_ITEM_REACTION)},icon:g.jsx(r("WDSIconIcMood.react"),{}),children:s._(/*BTDS*/"Reaccionar")},"sendReaction")),o("WAWebMsgActionCapability").canForwardMsg(a.unsafe())&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){f(!0,H)},icon:g.jsx(o("WAWebForwardRefreshedIcon.react").ForwardRefreshedIcon,{}),children:s._(/*BTDS*/"_j{\"*\":\"Reenviar mensajes\",\"_1\":\"Reenviar\"}",[s._plural(1)])},"forward")),o("WAWebMsgActionCapability").canStarMsg(a.unsafe())&&(a.star?i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:oe,icon:g.jsx(o("WAWebUnstarRefreshedIcon.react").UnstarRefreshedIcon,{}),children:s._(/*BTDS*/"_j{\"*\":\"No destacar mensajes\",\"_1\":\"No destacar mensaje\"}",[s._plural(1)])},"star")):i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:re,icon:g.jsx(o("WAWebStarRefreshedIcon.react").StarRefreshedIcon,{}),children:s._(/*BTDS*/"_j{\"*\":\"Destacar\"}",[s._plural(1)])},"star"))),o("WAWebMiscGatingUtils").isFavoriteStickersEnabled()&&(o("WAWebFavoriteStickerAction").isStickerFilehashFavorited(l.filehash)?i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ie,icon:g.jsx(o("WAWebUnfavoriteRefreshedIcon.react").UnfavoriteRefreshedIcon,{}),children:s._(/*BTDS*/"Quitar de Favoritos")},"remove-favorite-sticker")):i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ae,icon:g.jsx(o("WAWebFavoriteRefreshedIcon.react").FavoriteRefreshedIcon,{}),children:s._(/*BTDS*/"A\u00f1adir a favoritos")},"favorite-sticker")));var u=o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.get(l.filehash);if(o("WAWebStickerUtils").getStickerFileType(l.mediaData.mimetype)===o("WAWebStickerUtils").StickerFileType.LOTTIE){var c=o("WAWebInMemoryLottieStickerCache").InMemoryLottieStickerCache.get(l.filehash);c!=null&&o("WAWebCopyToClipboard").supportsCopyImageToClipboard()&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){o("WAWebCopyStickerToClipboard").copyLottieStickerToClipboard(c)},icon:g.jsx(o("WAWebCopyRefreshedIcon.react").CopyRefreshedIcon,{}),children:s._(/*BTDS*/"Copiar imagen del sticker")},"copy-favorite-sticker"))}else u!=null&&o("WAWebCopyToClipboard").supportsCopyImageToClipboard()&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){o("WAWebCopyToClipboard").copyImageToClipboard(u)},icon:g.jsx(o("WAWebCopyRefreshedIcon.react").CopyRefreshedIcon,{}),children:s._(/*BTDS*/"Copiar imagen del sticker")},"copy-favorite-sticker"));var m=l.mediaData,p=m.isFirstParty,_=m.stickerPackId;_!=null&&p===!0&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return o("WAWebCmd").Cmd.openStickerPack(_)},icon:g.jsx(r("WDSIconWdsIcSticker.react"),{}),children:s._(/*BTDS*/"Ver paquete")},"open-sticker-pack")),i.push(g.jsx(r("WAWebDropdownItemSeparator.react"),{})),i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:le,icon:g.jsx(o("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}),theme:o("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:s._(/*BTDS*/"_j{\"*\":\"Eliminar\"}",[s._plural(1)])},"delete")),o("WAWebDebugGatingUtils").msgDebugMenuItemsEnabled()&&(i.push(g.jsx(r("WAWebDropdownItemSeparator.react"),{})),i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){o("WAWebCopyToClipboard").copyTextToClipboard(l.id.toString())},children:g.jsx(o("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Msg ID"})},"copy-id")),o("WAWebFrontendMsgGetters").getAsMms(H)&&(l.deprecatedMms3Url!=null&&i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){o("WAWebCopyToClipboard").copyTextToClipboard(l.deprecatedMms3Url||"")},children:g.jsx(o("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Mms3 Url"})},"copy-mms3-url")),i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){o("WAWebCopyToClipboard").copyTextToClipboard(l.filehash||"")},children:g.jsx(o("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Media filehash"})},"copy-filehash"))),i.push(g.jsx(o("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){r("WAWebRequestMediaReuploadBridge")(H).catch(function(){return o("WALogger").ERROR(d||(d=babelHelpers.taggedTemplateLiteralLoose(["[media reupload] failed to reupload media"]))).sendLogs("failed-to-reupload-media")})},children:g.jsx(o("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Trigger RMR"})},"trigger-rmr"))),D({menu:i,anchor:e,theme:o("WAWebDropdownItem.react").DropdownItemThemeType.Compact})},_e=function(){p==null||p(),D(null)},fe=function(t,n){a.scrollMsg(t,n)},ge={scrollMsg:fe};y(n,function(){return{scrollMsg:fe}});var he;($||T||L)&&(he=g.jsx(r("WAWebMessageMenu.react"),{msg:H,hasAuthor:!1,displayType:a.displayType,position:o("WAWebMessagePosition").MsgPosition.SINGLE,ref:E,onToggle:pe,isGroupedSticker:!0,role:"button",ariaLabel:s._(/*BTDS*/"Men\u00fa contextual"),isMenuOpen:!!T,tabIndex:0,contextOwnerIsKeyboardFocused:L},"icon-context"));var ye;a.isFocused===!0&&(ye=g.jsx(o("WAWebWrapperListeners.react").WhileFocusedListener,{parent:ge}));var Ce;T&&(Ce=g.jsx(o("WAWebUimUie.react").UIE,{displayName:"MsgContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:_e,children:g.jsx(r("WAWebUimUieMenu.react"),{contextMenu:T})}));var be;M?be=g.jsx(o("WAWebUimUie.react").UIE,{displayName:"MsgReaction",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:ue,children:g.jsx(r("WAWebUimUieMenu.react"),{contextMenu:M})}):F&&(be=g.jsx(o("WAWebUimUie.react").UIE,{displayName:"MsgReactionPicker",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:ce,children:g.jsx(r("WAWebUimUieMenu.react"),{contextMenu:F})}));var ve=g.jsx(r("WAWebMessageStickerBubble.react"),{mediaData:l.mediaData,msg:l,displayAuthor:!1,forwardRef:a.forwardRef,animateOnView:!0,displayType:a.displayType,onDetailsPaneClosed:p,isGroupedSticker:!0},"sticker-bubble"),Se=function(){M?ue():me(H,o("WAWebWamEnumReactionUserJourneyEntryPoint").REACTION_USER_JOURNEY_ENTRY_POINT.MACOS_MESSAGE_REACTION_BUTTON)},Re=[ve];if(o("WAWebReactionsUtils").canReactToMessage(H)){var Le=null;W&&(Le=g.jsx(r("WAWebFlexItem.react"),{children:g.jsx(o("WAWebRound.react").Round,{testid:void 0,label:s._(/*BTDS*/"Reaccionar"),theme:o("WAWebRound.react").RoundTheme.QuickActionRefreshed,onClick:function(){return Se(H)},small:!0,children:g.jsx(r("WDSIconIcMood.react"),{xstyle:v.reactIconRefreshed,height:20})})}));var Ee=g.jsx("div",{ref:k,className:"x1n2onr6 xzi7r1p xezl2tj",children:Le},"reaction-entry-point");o("WAWebMsgGetters").getIsSentByMe(l)?Re.unshift(Ee):Re.push(Ee)}return g.jsxs("div",{className:"x78zum5",onMouseEnter:X,onFocus:J,onBlur:J,ref:U,onMouseLeave:Y,children:[g.jsx(o("WAWebFlex.react").FlexRow,{children:Re}),g.jsx("div",{className:"x1n2onr6 xe2zdcy",children:g.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:i,children:he})}),Ce,be,ye]})}R.displayName=R.name+" [from "+i.id+"]",l.default=R}),226); __d("WAWebMessageGroupedStickerCheckbox.react",["WAWebCheckBox.react","WAWebStopEvent","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.ariaLabel,n=e.checked,r=e.onClick,a=e.ref;return s.jsx("div",{ref:a,className:"x10l6tqk x1rozsjd xh8yej3 x5yr21d x1ypdohk",onClick:r,children:s.jsx("div",{className:"x10l6tqk xxk6nc9 x1ro0b6g",onClick:o("WAWebStopEvent").stopPropagation,children:s.jsx(o("WAWebCheckBox.react").CheckBox,babelHelpers.extends({onChange:r,checked:n},t!=null?{ariaLabel:t}:{}))})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebReactionsListeners.react",["useWAWebReactions"],(function(t,n,r,o,a,i,l){function e(e){var t=e.msgIds,n=e.onReactionChange;return r("useWAWebReactions")(t,n),null}e.displayName=e.name+" [from "+i.id+"]",l.default=e}),98); __d("WAWebMessageAlbumWrapper.react",["cx","fbt","invariant","WALogger","WANullthrows","WAWebABProps","WAWebAddOnBubblesContainer.react","WAWebChatGetters","WAWebCheckBox.react","WAWebClassnames","WAWebCmd","WAWebConfirmPopup.react","WAWebDeleteRefreshedIcon.react","WAWebDeleteRevokeMsgFlow.react","WAWebDisplayType","WAWebDomScroll","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebEnvironment","WAWebFbtCommon","WAWebFileSaver","WAWebFocusTracer","WAWebForwardMessageModalLoadable","WAWebForwardRefreshedIcon.react","WAWebForwardedNewsletterMessageInfoActionButton.react","WAWebFrontendMsgGetters","WAWebGroupChatProfilePicture.react","WAWebGroupHistoryGating","WAWebKeyboardListHotKeys.react","WAWebKeyboardRotateFocusArrows.react","WAWebMediaAlbumGrid.react","WAWebMediaAlbumGridConstants","WAWebMessageAuthor.react","WAWebMessageCheckbox.react","WAWebMessageForwardedIndicator.react","WAWebMessageGroupedSticker.react","WAWebMessageGroupedStickerCheckbox.react","WAWebMessageListAlbums","WAWebMessageMenu.react","WAWebMessagePosition","WAWebMessageUiUtils","WAWebMiscGatingUtils","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgGetters","WAWebMsgSelectors","WAWebMsgSendFailIcon.react","WAWebMultiSelectBar.react","WAWebReactionsListeners.react","WAWebReactionsUtils","WAWebRevokeMetricUtils","WAWebRound.react","WAWebStarRefreshedIcon.react","WAWebStateUtils","WAWebStopEvent","WAWebTypesMedia","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnstarRefreshedIcon.react","WAWebUseIsKeyboardUser","WAWebVelocityTransitionGroup","WAWebWrapperGetTailIcon","WAWebWrapperListeners.react","WAWebWrapperMessageActionButtonsRow","WDSFocusStateStyles","WDSIconIcDownload.react","compactMap","countWhere","cr:7565","react","stylex","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s,u,c){var e,d,m=["ref"],p,_,f,g=f||(f=o("react")),h=p||(p=r("react")),y=g.useCallback,C=g.useEffect,b=g.useImperativeHandle,v=g.useRef,S=g.useState,R={svgColorRefreshed:{color:"xhslqc4",$$css:!0}};function L(t){var a,i,l,s,p,f,g=t.ref,L=babelHelpers.objectWithoutPropertiesLoose(t,m),E=L.albumId,k=L.displayType,I=L.focusedMsgIndex,T=L.isFocusable,D=L.isFocusedAlbum,x=L.isMsgVisible,$=L.msgs,P=L.onMessageSelect,N=L.position,M=L.selectable,w=L.selectedMessages,A=L.showProfilePicture,F=A===void 0?!0:A,O=o("useWAWebMsgValues").useMsgValues($[0].id,[o("WAWebMsgGetters").getGroupHistoryBundleMessageKey]),B=O[0],W=S(),q=W[0],U=W[1],V=S(!1),H=V[0],G=V[1],z=S(!1),j=z[0],K=z[1],Q=S(r("countWhere")($,function(e){return w.isSelected(o("WAWebStateUtils").unproxy(e.unsafe()))})),X=Q[0],Y=Q[1],J=S(),Z=J[0],ee=J[1],te=r("WAWebUseIsKeyboardUser")(),ne=te.isKeyboardUser,re=v(!0),oe=v(),ae=v({}),ie=v(),le=v(),se=v(null),ue=v(),ce=v(),de=v(null),me=v(null),pe=y(function(e){ee(e)},[]);C(function(){o("WAWebMiscGatingUtils").messageCustomAriaLabelEnabled()&&!re.current&&o("WAWebMessageUiUtils").getLegacyAlbumRowAriaLabel($).then(pe).catch(function(){}),re.current=!1},[pe,$]);var _e=y(function(e){!e.buttons&&!H&&G(!0)},[H]),fe=y(function(){H&&G(!1)},[H]),ge=y(function(e){oe.current&&r("WAWebFocusTracer").focus(oe.current,e)},[]),he=y(function(e){var t=e.event,n=e.mode,r=e.selectedMsg;if(o("WAWebRevokeMetricUtils").UiRevokeActionHelper.startSession(),t&&t.stopPropagation(),r){P(o("WAWebStateUtils").unproxy(r.unsafe()),!w.isSelected(o("WAWebStateUtils").unproxy(r)),n,t);return}var a=X===0;$.forEach(function(e){P(o("WAWebStateUtils").unproxy(e.unsafe()),a,n,t)})},[$,X,w,P]),ye=y(function(e,t){for(var n=0;n<$.length;n++)if(o("WAWebFrontendMsgGetters").getIsUnsentMedia($[n])){var a=u._(/*BTDS*/"_j{\"*\":\"Espera hasta que se terminen de enviar los mensajes y se muestre una marca de verificaci\\u00f3n antes de reenviarlos.\",\"_1\":\"Espera hasta que se termine de enviar el mensaje y se muestre una marca de verificaci\\u00f3n antes de reenviarlo.\"}",[u._plural(1)]);o("WAWebModalManager").ModalManager.open(h.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:u._(/*BTDS*/"No se puede reenviar"),onOK:o("WAWebModalManager").closeModalManager,okText:r("WAWebFbtCommon")("OK"),children:a}));return}e?he({mode:o("WAWebMultiSelectBar.react").MultiSelectMode.FORWARD,selectedMsg:t}):o("WAWebModalManager").ModalManager.open(h.jsx(o("WAWebForwardMessageModalLoadable").ForwardMessageModalLoadable,{msgs:$.map(function(e){return e.unsafe()}),onClose:o("WAWebModalManager").closeModalManager}),{transition:"modal-flow"})},[he,$]),Ce=y(function(){o("WAWebCmd").Cmd.sendStarMsgs(o("WAWebFrontendMsgGetters").getChat($[0].unsafe()),$.map(function(e){return e.unsafe()}))},[$]),be=y(function(){o("WAWebCmd").Cmd.sendUnstarMsgs(o("WAWebFrontendMsgGetters").getChat($[0].unsafe()),$.map(function(e){return e.unsafe()}))},[$]),ve=y(function(){o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()&&ge({preventScroll:!0})},[ge]),Se=y(function(){ve()},[ve]),Re=y(function(){var e=0;return $.forEach(function(t){w.isSelected(o("WAWebStateUtils").unproxy(t.unsafe()))&&e++}),e},[$,w]),Le=y(function(){var e=$[0],t=$[1];return o("WAWebFrontendMsgGetters").getAsGroupedSticker(e.unsafe())!=null&&o("WAWebFrontendMsgGetters").getAsGroupedSticker(t.unsafe())!=null},[$]),Ee=y(function(e){var t;Le()?t=Re():t=e?$.length:0,X!==t&&Y(t)},[Re,Le,$.length,X]),ke=y(function(){o("WAWebFileSaver").FileSaver.initDownload($.map(function(e){return e.unsafe()}))},[$]),Ie=y(function(){$.length!==0&&(n("cr:7565")==null||n("cr:7565").selectFolderAndSaveFiles($.map(function(e){return e.unsafe()})).catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Failed to save files: ",""])),t)}))},[$]),Te=y(function(e,t){e?he({mode:o("WAWebMultiSelectBar.react").MultiSelectMode.DELETE,selectedMsg:t}):o("WAWebModalManager").ModalManager.open(h.jsx(r("WAWebDeleteRevokeMsgFlow.react"),{chat:o("WAWebFrontendMsgGetters").getChat($[0].unsafe()),msgList:$.map(function(e){return e.unsafe()}),isMsgVisible:x})),o("WAWebRevokeMetricUtils").UiRevokeActionHelper.startSession(),o("WAWebRevokeMetricUtils").UiRevokeActionHelper.messageSelected()},[he,$,x]),De=y(function(){if(ie.current)return ie.current.getContext()},[]),xe=y(function(e,t){if(t&&q){U(null);return}var a=t?De():e,i=[],l=$.every(function(e){return o("WAWebMsgActionCapability").canDownloadMsg(e.unsafe(),!0)}),s=$.every(function(e){return o("WAWebMsgActionCapability").canDeleteMsg(e.unsafe())}),c=r("WAWebEnvironment").isWindows&&n("cr:7565")!=null&&n("cr:7565").supportsBulkMediaSaving();l&&!c&&i.push(h.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ke,icon:h.jsx(r("WDSIconIcDownload.react"),{}),children:u._(/*BTDS*/"Descargar todo")},"download"));var d=$.every(function(e){return o("WAWebMsgActionCapability").canForwardMsg(e.unsafe())});d&&i.push(h.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){ye(!0)},icon:h.jsx(o("WAWebForwardRefreshedIcon.react").ForwardRefreshedIcon,{}),children:u._(/*BTDS*/"Reenviar todo")},"forward"));var m=$.every(function(e){return o("WAWebMsgActionCapability").canStarMsg(e.unsafe())});if(m){var p=$.every(function(e){return e.star});p?i.push(h.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:be,icon:h.jsx(o("WAWebUnstarRefreshedIcon.react").UnstarRefreshedIcon,{}),children:u._(/*BTDS*/"No destacar ninguno")},"star")):i.push(h.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:Ce,icon:h.jsx(o("WAWebStarRefreshedIcon.react").StarRefreshedIcon,{}),children:u._(/*BTDS*/"Destacar todo")},"star"))}l&&c&&(i.push(h.jsx(r("WAWebDropdownItemSeparator.react"),{})),i.push(h.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:Ie,icon:h.jsx(r("WDSIconIcDownload.react"),{}),children:u._(/*BTDS*/"Guardar todo")},"save")),i.push(h.jsx(r("WAWebDropdownItemSeparator.react"),{}))),s&&i.push(h.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:h.jsx(o("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}),action:function(){Te(!0)},theme:o("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:u._(/*BTDS*/"Eliminar todo")},"delete")),U({menu:i,anchor:a,theme:o("WAWebDropdownItem.react").DropdownItemThemeType.Compact})},[q,De,$,Te,ke,ye,be,Ce]),$e=y(function(){Se(),ne&&G(!1),U(null)},[Se,ne]),Pe=y(function(){var e,t,n=(e=(t=oe.current)==null?void 0:t.contains(document.activeElement))!=null?e:!1;return ne&&n},[ne]),Ne=y(function(e,t){e?ae.current[t.id.toString()]=e:delete ae.current[t.id.toString()]},[]),Me=y(function(e,t){var n=oe.current;if(n){var r=n.offsetParent;r&&(r instanceof HTMLElement||c(0,56542),o("WAWebDomScroll").scrollAt(n,r,t).then(e))}},[]),we=y(function(e){var t;Le()?I===0?t=ue:I===1&&(t=ce):t=le,t&&T&&e!==!0&&ge({preventScroll:!0})},[Le,T,I,ge]),Ae=y(function(){var e=$.map(function(e){return e.id.toString()});o("WAWebReactionsUtils").lastMessageReactionChange(e),o("WAWebMiscGatingUtils").messageCustomAriaLabelEnabled()&&o("WAWebMessageUiUtils").getLegacyAlbumRowAriaLabel($).then(pe).catch(function(){})},[$,pe]);b(g,function(){return{getContainerElement:function(){return oe.current},props:L,refAlbumComponents:ae.current,isGroupedSticker:Le}});var Fe=$[0],Oe=$[1],Be=o("WAWebMsgGetters").getIsSentByMe(Fe),We=o("WAWebMsgGetters").getIsGroupMsg(Fe),qe=o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()&&Pe(),Ue=$.length>o("WAWebMessageListAlbums").ALBUM_MIN_SIZE?$.length-o("WAWebMessageListAlbums").ALBUM_MIN_SIZE+1:null,Ve=o("WAWebDisplayType").isWideDisplay(k),He=Le(),Ge=!Ve&&(N===o("WAWebMessagePosition").MsgPosition.FRONT||N===o("WAWebMessagePosition").MsgPosition.SINGLE||He),ze=We&&!Be&&!!Ge&&k===o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION&&!M&&((a=Fe.senderObj)==null?void 0:a.id)!=null&&F,je=ze?h.jsx(r("WAWebGroupChatProfilePicture.react"),{userContact:Fe.senderObj,chatWid:o("WAWebFrontendMsgGetters").getChat(Fe.unsafe()).id}):null,Ke=He&&Ge&&(Be||!We),Qe=o("WAWebClassnames").classnamesConvertMeToStylexPlease({"message-out":Be,"message-in":!Be},(i={},i[o("WAWebKeyboardListHotKeys.react").LIST_FOCUSABLE_ITEM_CLASS_NAME]=T,i),(l={},l._amjy=k!==o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT,l._amjz=!o("WAWebChatGetters").getIsGroup(o("WAWebFrontendMsgGetters").getChat(Fe.unsafe())),l._amjv=!0,l._amjw=!0,l["_amj-"]=Ve,l),{0:"",1:"x1klvx2g xahtqtb"}[!!(k!==o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT&&o("WAWebABProps").getABPropConfigValue("sticky_chat_profile_picture_enabled"))<<0],{0:"",1:"x1n2onr6 x1cpjm7i x1hmns74 x1y3wzot xhq5o37 xfbisj7 xnyzbwf xkeh78v x12lcmce xy5mcqj"}[!!(B!=null&&o("WAWebGroupHistoryGating").isGroupHistoryReceiverEnabled())<<0],"xscbp6u",{0:"",1:"xa0aww2"}[((N===o("WAWebMessagePosition").MsgPosition.FRONT||N===o("WAWebMessagePosition").MsgPosition.MID)&&!Ve)<<0]),Xe=(!Be||Ve)&&We,Ye;if(Xe){var Je,Ze=o("WAWebClassnames").classnamesConvertMeToStylexPlease((Je={},Je._amlk=He,Je._amll=Ve,Je._amla=!0,Je._amlm=Be,Je));Ye=h.jsx("div",{className:Ze,children:h.jsx(r("WAWebMessageAuthor.react"),{msg:$[0],contact:$[0].senderObj,albumId:E,displayType:k})})}var et=o("WAWebClassnames").classnamesConvertMeToStylexPlease((s={},s._amk9=He,s._amk5=Ge,s._amka=Ke,s._amlf=!He&&Xe,s._amlb=!He&&o("WAWebMsgSelectors").showForwarded($[0]),s._amk4=!0,s),(_||(_=r("stylex")))(j&&ne&&o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocusPersistent),{0:"",1:"xaet70r x2lp0yt"}[!!(B!=null&&o("WAWebGroupHistoryGating").isGroupHistoryReceiverEnabled())<<0]),tt=o("WAWebClassnames").classnamesConvertMeToStylexPlease((p={},p._amk6=!He,p._amlo=!He,p._amlc=!0,p._amld=Ve,p)),nt;if(Ge){var rt=o("WAWebWrapperGetTailIcon").getTailIcon(Be);nt=h.jsx(rt,{className_DONOTUSE:"_amk7",containerRef:se,"aria-hidden":!0})}var ot=[];if(o("WAWebMsgActionCapability").canQuickForwardMsg(Fe.unsafe())){var at=h.jsx(o("WAWebRound.react").Round,{label:u._(/*BTDS*/"Reenviar archivo multimedia"),theme:o("WAWebRound.react").RoundTheme.QuickActionRefreshed,onClick:function(){ye(!1)},children:h.jsx(o("WAWebForwardRefreshedIcon.react").ForwardRefreshedIcon,{xstyle:R.svgColorRefreshed,height:20})});ot.push(at)}var it=r("compactMap")($,function(e){return o("WAWebFrontendMsgGetters").getAsAlbumAsset(e.unsafe())}),lt=it.some(function(e){return e.hasReaction===!0}),st;(H||q||qe)&&(st=h.jsx(r("WAWebMessageMenu.react"),{msg:Fe.unsafe(),hasAuthor:Xe,position:N,ref:ie,onToggle:xe,role:"button",ariaLabel:u._(/*BTDS*/"Men\u00fa contextual"),tabIndex:0,displayType:k,isMenuOpen:!!q},"icon-context"));var ut;q?ut="none":o("WAWebFrontendMsgGetters").getIsRTL(Fe)?ut="pop-fast-reverse":ut="pop-fast";var ct;q&&(ct=h.jsx(o("WAWebUimUie.react").UIE,{displayName:"MsgContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:$e,children:h.jsx(r("WAWebUimUieMenu.react"),{contextMenu:q})}));var dt=u._(/*BTDS*/"Casilla, {checkbox-state}, para el grupo de im\u00e1genes",[u._param("checkbox-state",X>0?"selected":"unselected")]),mt=M?h.jsx(r("WAWebMessageCheckbox.react"),{checked:X>0,theme:X>0&&X<$.length?o("WAWebCheckBox.react").CheckboxTheme.PARTIAL:void 0,onClick:function(t){he({event:t})},ariaLabel:dt}):null,pt;if(D&&(pt=h.jsx(o("WAWebWrapperListeners.react").WhileFocusedListener,{parent:{scrollMsg:Me,highlight:we}})),He){var _t,ft,gt,ht=$.map(function(e){return h.jsx(o("WAWebWrapperListeners.react").SelectionListener,{parent:{onSelectChange:Ee},msgId:e.id.toString(),selectedMessages:w},e.id.toString())}),yt=Fe.type==="sticker"?o("WAWebMessageUiUtils").getStickerCustomLabel(Fe.mediaData.accessibilityLabel,(_t=Fe.mediaData.emojis)==null?void 0:_t.join(" ")):null,Ct=Oe.type==="sticker"?o("WAWebMessageUiUtils").getStickerCustomLabel(Oe.mediaData.accessibilityLabel,(ft=Oe.mediaData.emojis)==null?void 0:ft.join(" ")):null,bt=M?h.jsx(r("WAWebMessageGroupedStickerCheckbox.react"),{checked:w.isSelected(o("WAWebStateUtils").unproxy(Fe.unsafe())),onClick:function(t){he({selectedMsg:Fe.unsafe()})},ariaLabel:yt}):null,vt=M?h.jsx(r("WAWebMessageGroupedStickerCheckbox.react"),{checked:w.isSelected(o("WAWebStateUtils").unproxy(Oe.unsafe())),onClick:function(t){he({selectedMsg:Oe.unsafe()})},ariaLabel:Ct}):null,St=$.some(function(e){return o("WAWebReactionsUtils").canReactToMessage(e.unsafe())})?h.jsx(o("WAWebMsgSendFailIcon.react").MsgSendFailIcon,{msgs:$,showForMessages:!1,showForAddOns:!0,displayType:o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION}):null,Rt=o("WAWebClassnames").classnamesConvertMeToStylexPlease((gt={},gt._amlh=!0,gt._amli=Ve,gt)),Lt=h.jsxs("div",{className:Qe,"data-id":E,ref:oe,onFocus:function(){K(!0)},onBlur:function(){K(!1)},tabIndex:-1,children:[h.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"delay-leave",children:mt}),h.jsxs("div",{className:et,role:"group",onContextMenu:o("WAWebStopEvent").stopPropagation,children:[nt,je,Ye,h.jsxs("div",{className:Rt,children:[h.jsxs("div",{onMouseEnter:function(){var e;return(e=de.current)==null?void 0:e.startAnimation()},role:"img",className:"x1n2onr6",ref:ue,children:[h.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"delay-leave",children:bt}),h.jsx(r("WAWebMessageGroupedSticker.react"),{msg:r("WANullthrows")(o("WAWebFrontendMsgGetters").getAsGroupedSticker(Fe.unsafe())),menuTransition:ut,onOpenForwardFlow:ye,onOpenDeleteFlow:Te,scrollMsg:Me,isFocused:D&&I===0,forwardRef:de,displayType:k,rowIsKeyboardFocused:qe,onModalClosed:Se})]}),h.jsxs("div",{onMouseEnter:function(){var e;return(e=me.current)==null?void 0:e.startAnimation()},role:"img",className:"x1n2onr6",ref:ce,children:[h.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"delay-leave",children:vt}),h.jsx(r("WAWebMessageGroupedSticker.react"),{msg:r("WANullthrows")(o("WAWebFrontendMsgGetters").getAsGroupedSticker(Oe.unsafe())),menuTransition:ut,onOpenForwardFlow:ye,onOpenDeleteFlow:Te,scrollMsg:Me,isFocused:D&&I===1,forwardRef:me,displayType:k,rowIsKeyboardFocused:qe,onModalClosed:Se})]}),h.jsx(r("WAWebReactionsListeners.react"),{msgIds:$.map(function(e){return e.id.toString()}),onReactionChange:Ae})]}),St]}),ht]});return o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()?h.jsx(r("WAWebKeyboardRotateFocusArrows.react"),{role:"row",children:Lt}):Lt}it.length!==$.length&&o("WALogger").ERROR(d||(d=babelHelpers.taggedTemplateLiteralLoose(["Only ","/"," were valid album messages"])),it.length,$.length).sendLogs("invalid-album-grid");var Et=null;if(it.length>0){var kt=it.map(function(e){return e.id.toString()});Et=h.jsx(r("WAWebAddOnBubblesContainer.react"),{isOutgoingMsg:Be,displayType:k,hasReaction:lt,onDetailsPaneClosed:Se,parentIds:kt})}var It=it.length>0?h.jsx(o("WAWebMsgSendFailIcon.react").MsgSendFailIcon,{msgs:it,showForMessages:!1,showForAddOns:!0,displayType:o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION}):null,Tt=it.length>o("WAWebMessageListAlbums").ALBUM_MIN_SIZE?it[0]:null,Dt=o("WAWebMsgSelectors").showForwarded($[0])?h.jsx(r("WAWebMessageForwardedIndicator.react"),{msg:$[0].unsafe(),className:"_amle"}):null,xt=h.jsxs("div",{className:Qe,"data-id":E,"data-testid":void 0,ref:oe,"aria-label":Z,onFocus:function(){K(!0)},onBlur:function(){K(!1)},tabIndex:-1,children:[h.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"delay-leave",children:mt}),h.jsxs("div",{className:et,role:"group",onContextMenu:o("WAWebStopEvent").stopPropagation,onMouseOver:_e,onFocus:_e,onMouseDown:fe,onMouseUp:_e,onMouseLeave:fe,children:[nt,je,h.jsxs("div",{className:tt,ref:le,children:[Ye,Dt,h.jsx("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((f={},f._aml8=!0,f._aml9=Ve,f)),children:$.slice(0,o("WAWebMediaAlbumGridConstants").ALBUM_GRID_MAX_THUMBNAIL).map(function(e,t){var n=t===o("WAWebMediaAlbumGridConstants").ALBUM_GRID_MAX_THUMBNAIL-1?{numAdditionalMedia:Ue,zoomMsg:Tt}:null;return h.jsx(r("WAWebMediaAlbumGrid.react"),babelHelpers.extends({msg:r("WANullthrows")(o("WAWebFrontendMsgGetters").getAsAlbumAsset(e.unsafe())),albumMsgs:it,albumPosition:o("WAWebMediaAlbumGridConstants").ALBUM_GRID_POSITIONS[t%o("WAWebMediaAlbumGridConstants").ALBUM_GRID_MAX_THUMBNAIL],isMsgVisible:x,displayType:k,ref:function(n){Ne(n,e)},albumTheme:o("WAWebTypesMedia").DisplayTheme.Album,currentAlbumMessageIndex:t},n),e.id.toString())})}),h.jsx(r("WAWebForwardedNewsletterMessageInfoActionButton.react"),{msg:$[0].unsafe(),isAlbum:!0})]}),h.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:ut,children:st}),It,h.jsx(r("WAWebWrapperMessageActionButtonsRow"),{isOutgoingMsg:Be,isMsgGallery:!1,hasReaction:lt,messageActionButtons:ot})]}),Et,o("WAWebMiscGatingUtils").messageCustomAriaLabelEnabled()?h.jsx(r("WAWebReactionsListeners.react"),{msgIds:$.map(function(e){return e.id.toString()}),onReactionChange:Ae}):null,ct,pt,h.jsx(o("WAWebWrapperListeners.react").SelectionListener,{parent:{onSelectChange:Ee},msgId:$[0].id.toString(),selectedMessages:w})]});return o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()?h.jsx(r("WAWebKeyboardRotateFocusArrows.react"),{role:"row",children:xt}):xt}L.displayName=L.name+" [from "+i.id+"]",l.default=L}),226); __d("WAWebMessageAlbumRow.react",["WAWebGetDisplayType","WAWebMessageAlbumWrapper.react","WAWebMessagePosition","react","useWAWebEqualModelMemo"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useCallback,c=s.memo(r("WAWebMessageAlbumWrapper.react"));function d(e){var t=e.albumId,n=e.focusedMsgIndex,a=e.groupedWithNext,i=e.groupedWithPrev,l=e.handleAlbumRendered,d=e.isFocusedAlbum,m=e.isMsgVisible,p=e.msgs,_=e.onMessageSelect,f=e.selectable,g=e.selectedMessages,h=e.showProfilePicture,y=r("useWAWebEqualModelMemo")(p),C=u(function(e){l(e,t,y)},[l,t,y]),b;a&&!i?b=o("WAWebMessagePosition").MsgPosition.FRONT:a&&i?b=o("WAWebMessagePosition").MsgPosition.MID:!a&&i?b=o("WAWebMessagePosition").MsgPosition.END:b=o("WAWebMessagePosition").MsgPosition.SINGLE;var v=y[0];return s.jsx(c,{msgs:y,ref:C,position:b,isMsgVisible:m,selectable:f,selectedMessages:g,onMessageSelect:_,albumId:t,isFocusedAlbum:d,focusedMsgIndex:n,displayType:o("WAWebGetDisplayType").getDisplayType(v==null?void 0:v.unsafe()),isFocusable:!0,showProfilePicture:h},"album-"+t)}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebMessageHistoryBundleInfoNotification.react",["fbt","WAWebFaqUrl","WAWebVelocityTransitionGroup","WAWebWrapperSystemBubble.react","WDSText.react","WDSTextualLink.react","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useRef,_=c.useState,f={historyInfoBubble:{backgroundColor:"x1k43qru",paddingTop:"x1tiyuxx",paddingBottom:"x1nbhmlj",$$css:!0},transitionGroup:{display:"x78zum5",justifyContent:"xl56j7k",position:"x7wzq59",bottom:"x1ey2m1c",zIndex:"x12xzxwr",$$css:!0},staticBundleInfo:{marginBottom:"xcytdqz",$$css:!0}},g=o("WAWebFaqUrl").getGroupHistoryFAQUrl();function h(e){var t=e.authorName,n=e.firstBundleMsgElement,o=_(!1),a=o[0],i=o[1],l=_(!1),u=l[0],c=l[1],h=p(null);return m(function(){var e=h.current,t=new IntersectionObserver(function(e){e.forEach(function(e){var t,n=(t=e.rootBounds)==null?void 0:t.height;if(n!=null){var r=e.intersectionRatio<=.5&&e.boundingClientRect.top>n/2;i(r)}})},{root:null,rootMargin:"0px",threshold:[0,.5,1]});return e&&t.observe(e),function(){t.disconnect()}},[]),m(function(){var e=new IntersectionObserver(function(e){e.forEach(function(e){var t,n=(t=e.rootBounds)==null?void 0:t.height;if(n!=null){var r=e.intersectionRatio<=.5&&e.boundingClientRect.top>n/2;c(r)}})},{root:null,rootMargin:"0px",threshold:[0,.5,1]});return n&&e.observe(n),function(){e.disconnect()}},[n]),d.jsxs(d.Fragment,{children:[d.jsx(r("WAWebWrapperSystemBubble.react"),{testid:void 0,ref:h,isFocusable:!1,groupHistoryBackground:!0,xstyle:f.staticBundleInfo,children:d.jsxs(r("WDSText.react"),{type:"Body3Emphasized",xstyle:f.historyInfoBubble,colorName:"contentDefault",children:[s._(/*BTDS*/"Historial de mensajes enviado por {authorName}",[s._param("authorName",t)]),"."," ",d.jsx(r("WDSTextualLink.react"),{href:g,children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")})]})}),d.jsx(r("WAWebVelocityTransitionGroup"),{xstyle:f.transitionGroup,transitionName:"group-history-info",children:a&&!u?d.jsx(r("WAWebWrapperSystemBubble.react"),{isFocusable:!1,children:d.jsxs(r("WDSText.react"),{type:"Body3Emphasized",xstyle:f.historyInfoBubble,colorName:"contentDefault",children:[s._(/*BTDS*/"Historial de mensajes enviado por {authorName}",[s._param("authorName",t)]),"."," ",d.jsx(r("WDSTextualLink.react"),{href:g,children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")})]})}):null})]})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebMaybeInsertHistoryBundleInfo",["WAWebContactCollection","WAWebFrontendContactGetters","WAWebMsgGetters"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("WAWebMsgGetters").getGroupHistoryBundleMessageKey(e)!=null,r=t?o("WAWebMsgGetters").getGroupHistoryBundleMessageKey(t)!=null:!1;if(n&&!r){var a=o("WAWebMsgGetters").getGroupHistoryBundleMessageKey(e),i=o("WAWebMsgGetters").getGroupHistoryBundleSender(e);if(i!=null&&a){var l=o("WAWebContactCollection").ContactCollection.get(i);return{type:"historyBundleInfo",authorName:l?o("WAWebFrontendContactGetters").getDisplayName(l):i.toString(),bundleKey:a}}}return null}l.default=e}),98); __d("WAWebMessageListBotCarousel",[],(function(t,n,r,o,a,i){function e(e,t){return t.botResponseTargetId===e.botResponseTargetId}i.canBeGroupedAsBotCarousel=e}),66); __d("WAWebMessageListGenerateMsgListRows",["WALogger","WATimeUtils","WAWebABProps","WAWebFrontendMsgGetters","WAWebMaybeInsertHistoryBundleInfo","WAWebMessageListAlbums","WAWebMessageListBotCarousel","WAWebMessageListDayOfMsg","WAWebMsgGetters","WAWebThreadMsgUtils","err","lodash"],(function(t,n,r,o,a,i,l){var e,s=["type"],u=["type"],c=10;function d(e,t,n,a,i,l){var s=[],u=0,d;for(u=0;!d&&u=1&&(N=!0,k=t[v+1])}if(N){var z;s.push({type:"botPluginCarousel",botPluginCarouselId:(z=P[0].id)==null?void 0:z.id,msgs:P,isFocused:q}),u=v+1,d=t[u],h=!1;continue}var j=o("WAWebFrontendMsgGetters").getAsAlbumAsset(R.unsafe());if(j&&!_(R,l)){$.push(j);var K=d,Q=void 0;for(A=d===n,v=u;v=o("WAWebMessageListAlbums").ALBUM_MIN_SIZE&&(M=!0,w=!1,k=t[v+1])}if(k){var Y=k;x=r("WAWebMessageListDayOfMsg")(k),D=x===C,T=D&&o("WAWebMessageListAlbums").canBeGroupedWithNext(R,Y)&&k!==a,D||g(C,x)}else T=!1,D=!1,x=0;if(M){var J=void 0;w===!0?J=$.reduce(function(e,t){return e+"-"+t.id.toString()},"grouped-sticker-"):J=f($),s.push({type:"album",msgs:$,albumId:J,groupedWithPrev:h,groupedWithNext:T,isFocusedAlbum:A,focusedMsgIndex:F});var Z=$[$.length-1],ee=r("WAWebMaybeInsertHistoryBundleInfo")(Z,k);ee!=null&&s.push(ee),u=v+1,d=t[u],h=T,y=D,C=x;continue}s.push({type:"msg",msg:R,isFocused:R===n,groupedWithPrev:h,groupedWithNext:T,isFollowUpReply:E});var te=r("WAWebMaybeInsertHistoryBundleInfo")(R,k);te!=null&&s.push(te),u++,h=T,y=D,C=x,d=k}return o("WAWebABProps").getABPropConfigValue("sticky_chat_profile_picture_enabled")?p(s,e):m(s,e)}function m(e,t){var n=t.album,a=t.botPluginCarousel,i=t.date,l=t.historyBundleInfo,u=t.msg,c=t.unread;return e.map(function(e){switch(e.type){case"msg":return u(e.msg,e.isFocused,e.groupedWithPrev,e.groupedWithNext,!0,e.isFollowUpReply);case"album":return n(e.msgs,e.albumId,e.groupedWithPrev,e.groupedWithNext,e.isFocusedAlbum,e.focusedMsgIndex,!0,e.isFollowUpReply);case"date":return i(e.msg,e.count,o("WAWebMsgGetters").getGroupHistoryBundleMessageKey(e.msg)!=null);case"unread":return c(e.unreadCount);case"botPluginCarousel":{var t=e.type,d=babelHelpers.objectWithoutPropertiesLoose(e,s);return a(d)}case"historyBundleInfo":return l(e.authorName,e.bundleKey);default:var m=e.type;throw r("err")("Invalid message list row type "+e.type)}})}function p(e,t){var n=t.botPluginCarousel,a=t.date,i=t.historyBundleInfo,l=t.msgGroup,s=t.unread,c=[],d=[],m=function(){d.length>0&&(c.push(l(d)),d=[])};for(var p of e)switch(p.type!=="msg"&&p.type!=="album"&&m(),p.type){case"msg":case"album":d.push(p),p.groupedWithNext||m();break;case"date":{c.push(a(p.msg,p.count,o("WAWebMsgGetters").getGroupHistoryBundleMessageKey(p.msg)!=null));break}case"unread":c.push(s(p.unreadCount));break;case"botPluginCarousel":{var _=p.type,f=babelHelpers.objectWithoutPropertiesLoose(p,u);c.push(n(f))}break;case"historyBundleInfo":c.push(i(p.authorName,p.bundleKey));break;default:var g=p.type;throw r("err")("Invalid message list row type "+p.type)}return c}function _(e,t){return t==null?!0:e.t>t.t}function f(e){var t=e.length,n=e[0]?e[0].id.toString():"",r=e[t-1]?e[t-1].id.toString():"";return"album-"+n+"-"+r+"-"+t}function g(e,t){if(!(e<=t)){var n=Math.floor((e-t)/o("WATimeUtils").DAY_SECONDS);n>=2&&h(e,t,n)}}var h=r("lodash").debounce(function(t,n,r){return o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["generateMsgListRows: large message order mismatch detected: "," vs ",", "," days apart"])),t,n,r)},o("WATimeUtils").MINUTE_MILLISECONDS,{leading:!0,trailing:!1});l.default=d}),98); __d("WAWebMessageRow.react",["WAWebGetDisplayType","WAWebMessagePosition","WAWebMessageWrapper.react","WAWebMsgType","WAWebNoop","WAWebPREGatingUtils","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useCallback;function c(e){var t=e.getSequentialMsg,n=e.groupedWithNext,a=e.groupedWithPrev,i=e.handleMsgRendered,l=e.isFocusedMsg,c=e.isFollowUpReply,d=e.isMsgVisible,m=e.msg,p=e.onMessageSelect,_=e.selectable,f=e.selectedMessages,g=e.setFocusedMessage,h=e.showProfilePicture,y;n&&!a?y=o("WAWebMessagePosition").MsgPosition.FRONT:n&&a?y=o("WAWebMessagePosition").MsgPosition.MID:!n&&a?y=o("WAWebMessagePosition").MsgPosition.END:y=o("WAWebMessagePosition").MsgPosition.SINGLE;var C=u(function(){g(m.unsafe())},[m,g]),b=u(function(){g(null)},[g]),v=u(function(e){i(e,m.id.toString())},[i,m.id]),S=m.type===o("WAWebMsgType").MSG_TYPE.IMAGE||m.type===o("WAWebMsgType").MSG_TYPE.VIDEO||m.type===o("WAWebMsgType").MSG_TYPE.AUDIO||m.carouselCards!=null;return s.jsx(r("WAWebMessageWrapper.react"),{onMsgFocus:C,onMsgBlur:b,showProfilePicture:h,ref:v,msg:m.unsafe(),displayType:o("WAWebGetDisplayType").getDisplayType(m.unsafe()),isMsgVisible:S||m.selectedCarouselCardIndex!=null?d:r("WAWebNoop"),selectable:_,selectedMessages:f,onMessageSelect:p,position:y,isFocusedMsg:l,getSequentialMsg:t,isFocusable:!0,errorBoundaryName:"message-row",isFollowUpReply:c})}c.displayName=c.name+" [from "+i.id+"]";var d=o("WAWebPREGatingUtils").isPREMessageSendEnabled()?s.memo(c):c;l.WAWebMessageRow=d}),98); __d("WAWebMessageUnread.react",["fbt","WAWebThemeContext","WAWebUISpacing","WDSText.react","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={msgUnreadRefresh:{width:"xh8yej3",marginInlineStart:"x1b1opl3",textAlign:"x2b8uid",backgroundColor:"x1bu39yj",paddingTop:"x1tiyuxx",paddingBottom:"x1nbhmlj",maxWidth:"xquzyny",$$css:!0},msgUnreadDark:{borderTopWidth:null,borderBottomWidth:null,$$css:!0}};function m(e){var t=e.count,n=e.textContainerRef,a=o("WAWebThemeContext").useIsDarkTheme(),i=s._(/*BTDS*/"_j{\"*\":\"{count} mensajes no le\\u00eddos\",\"4\":\"{count} mensaje no le\\u00eddo\",\"_1\":\"1 mensaje no le\\u00eddo\"}",[s._plural(t,"count")]),l=[a&&d.msgUnreadDark,d.msgUnreadRefresh,o("WAWebUISpacing").uiMargin.horizAuto,o("WAWebUISpacing").uiMargin.bottom12],m=c.jsx(r("WDSText.react"),{type:"Body3Emphasized",colorName:"contentDefault",children:i});return c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(l),{ref:n,children:c.jsx("span",{className:"x9f619 x1rg5ohu xq8v1hd xojvqvm x6ikm8r x10wlt62 xlyipyv xuxw1ft x1k43qru x1g83kfv x3qq2k7 x2x8art x1qor8vf x1iw51ew xde1mab xhsao0n","aria-live":"polite",children:m})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebTypingIndicatorRecording.react",["WAWebL10N","WAWebLottieAnimationLoadable","WAWebThemeContext","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useRef;function d(){var e=c(null),t=o("WAWebThemeContext").useIsDarkTheme();return u.jsx("div",{className:"xexx8yu x1icxu4v x18d9i69 x25sj25 x78zum5 x6s0dn4 xl56j7k xw4jnvo x1qx5ct2","data-testid":void 0,children:u.jsx(o("WAWebLottieAnimationLoadable").LottieAnimation,{ref:e,autoplay:!0,direction:r("WAWebL10N").isRTL()?-1:1,loop:!0,data:m(t)})})}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e?[1,1,1,1]:[.35686275363,.388235300779,.407843142748,1];return{v:"5.12.1",fr:60,ip:0,op:90,w:72,h:72,nm:"Android PTT mic - Light",ddd:0,assets:[],layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 4",sr:1,ks:{o:{a:1,k:[{i:{x:[.525],y:[1]},o:{x:[.252],y:[0]},t:0,s:[100]},{i:{x:[.768],y:[1]},o:{x:[.475],y:[0]},t:30,s:[45]},{t:60,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[36,26,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:"s",pt:{a:0,k:{i:[[-.85,0],[-.575,.575],[0,.85],[0,0],[.575,.575],[.85,0],[.575,-.575],[0,-.85],[0,0],[-.575,-.575]],o:[[.85,0],[.575,-.575],[0,0],[0,-.85],[-.575,-.575],[-.85,0],[-.575,.575],[0,0],[0,.85],[.575,.575]],v:[[.078,12.5],[2.216,11.637],[3.078,9.5],[3.078,-8.5],[2.216,-10.637],[.078,-11.5],[-2.059,-10.637],[-2.922,-8.5],[-2.922,9.5],[-2.059,11.637]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:"Mask 1"}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.5,0],[1.75,1.75],[0,2.5],[0,0],[-1.75,1.75],[-2.5,0],[-1.75,-1.75],[0,-2.5],[0,0],[1.75,-1.75]],o:[[-2.5,0],[-1.75,-1.75],[0,0],[0,-2.5],[1.75,-1.75],[2.5,0],[1.75,1.75],[0,0],[0,2.5],[-1.75,1.75]],v:[[0,18],[-6.375,15.375],[-9,9],[-9,-9],[-6.375,-15.375],[0,-18],[6.375,-15.375],[9,-9],[9,9],[6.375,15.375]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:t,ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:91,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Shape Layer 3",sr:1,ks:{o:{a:1,k:[{i:{x:[.525],y:[1]},o:{x:[.252],y:[0]},t:0,s:[100]},{i:{x:[.768],y:[1]},o:{x:[.475],y:[0]},t:30,s:[45]},{t:60,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[36,49.75,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,.85],[0,0],[3.275,3.25],[.7,4.65],[-.55,.6],[-.85,0],[-.575,-.575],[-.2,-.85],[-2.775,-2.25],[-3.55,0],[-2.75,2.275],[-.7,3.45],[-.575,.575],[-.85,0],[-.55,-.6],[.1,-.85],[3.25,-3.3],[4.65,-.65],[0,0],[.575,-.575],[.85,0],[.575,.575]],o:[[0,0],[-4.6,-.65],[-3.275,-3.25],[-.1,-.85],[.55,-.6],[.85,0],[.575,.575],[.7,3.5],[2.775,2.25],[3.6,0],[2.75,-2.275],[.2,-.85],[.575,-.575],[.85,0],[.55,.6],[-.7,4.55],[-3.25,3.3],[0,0],[0,.85],[-.575,.575],[-.85,0],[-.575,-.575]],v:[[-3,12],[-3,5.775],[-14.812,-.075],[-20.775,-11.925],[-20.1,-14.1],[-18,-15],[-15.862,-14.137],[-14.7,-12],[-9.487,-3.375],[0,0],[9.525,-3.413],[14.7,-12],[15.863,-14.137],[18,-15],[20.1,-14.1],[20.775,-11.925],[14.85,-.15],[3,5.775],[3,12],[2.138,14.137],[0,15],[-2.137,14.137]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:t,ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:91,st:0,ct:1,bm:0}],markers:[],props:{}}}l.default=d}),98); __d("WAWebTypingIndicator.react",["WAChatState","WAWebChatParticipantColor","WAWebChatPreferenceCollection","WAWebCmd","WAWebFacePile.react","WAWebMessageBubbleTypingIndicator.react","WAWebQuotedMessageUserJourneyLogger","WAWebThemeContext","WAWebTypingIndicatorRecording.react","WAWebVelocityTransitionGroup","WAWebWallpaper","WAWebWrapperConstants","WAWebWrapperGetTailIcon","WDSVars.stylex","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.useEffect,m=u.useMemo,p=u.useState,_=4,f=40,g={transitionGroup:{position:"x10l6tqk",overflowY:"x10wlt62",bottom:"x1ey2m1c",height:"x1vqgdyp",$$css:!0},borderWidth:{borderTopWidth:"x1ktv7sr",borderInlineEndWidth:"x142x0oa",borderBottomWidth:"xv7zg05",borderInlineStartWidth:"x12dgle5",$$css:!0}},h=28;function y(e,t){t===void 0&&(t=[]);var n=new Set,r=null;if(e.forEach(function(e){var t=e.type===o("WAChatState").ACTIVE_CHAT_STATE_TYPE.TYPING||e.type===o("WAChatState").ACTIVE_CHAT_STATE_TYPE.RECORDING_AUDIO;!t||e.id==null||(n.add(e.id),e.type===o("WAChatState").ACTIVE_CHAT_STATE_TYPE.TYPING?r=o("WAChatState").ACTIVE_CHAT_STATE_TYPE.TYPING:r!==o("WAChatState").ACTIVE_CHAT_STATE_TYPE.TYPING&&(r=o("WAChatState").ACTIVE_CHAT_STATE_TYPE.RECORDING_AUDIO))}),n.size===0)return{chatState:null,newActiveUsers:[]};var a=t.filter(function(e){return n.delete(e)});return{chatState:r,newActiveUsers:a.concat(Array.from(n))}}function C(e){return e.type===o("WAChatState").ACTIVE_CHAT_STATE_TYPE.TYPING||e.type===o("WAChatState").ACTIVE_CHAT_STATE_TYPE.RECORDING_AUDIO?e.type:null}function b(e){var t,n=e.chat,a=n.id.isGroup(),i=null,l=[];if(a){var s=y(n.presence.chatstates);i=s.chatState,l=s.newActiveUsers}else i=C(n.presence.chatstate);var u=p(i),f=u[0],b=u[1],v=p(l),S=v[0],R=v[1],L=m(function(){return o("WAWebWrapperGetTailIcon").getTailIcon(o("WAWebWrapperConstants").MSG_DIRECTION.IN)},[]),E=S.length<=5,k=E?S:S.slice(S.length-_,S.length),I=S.length-_,T=S.length>=6,D=r("WAWebChatPreferenceCollection").get(n.id),x=D==null?void 0:D.wallpaper;o("useWAWebListener").useListener(n.presence.chatstate,"change:type",function(e,t){a||b(C(n.presence.chatstate))}),o("useWAWebListener").useListener(n.presence.chatstates,"add change remove",function(){var e=y(n.presence.chatstates,S),t=e.chatState,r=e.newActiveUsers;b(t),R(r)}),d(function(){o("WAWebCmd").Cmd.typingIndicatorVisibilityChange(f!=null)},[f]);var $=o("WAWebThemeContext").useIsDarkTheme();x===o("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER&&(x=$?o("WDSVars.stylex").WDSVars["--WDS-systems-chat-background-wallpaper"]:"#F1EBE3");var P=k[k.length-1],N=a&&P?o("WAWebChatParticipantColor").getAssignedColor(n,P,"WAWebTypingIndicator-"+((t=o("WAWebQuotedMessageUserJourneyLogger").getChatType(n.id))!=null?t:"")):0;return c.jsx(r("WAWebVelocityTransitionGroup"),{xstyle:g.transitionGroup,transitionName:"typing-indicator",children:f!=null?c.jsxs("div",babelHelpers.extends({},{0:{className:"x78zum5 x1n2onr6 x1ogp2j0"},1:{className:"x78zum5 x1n2onr6 xz7312c"}}[!!a<<0],{style:{color:x},children:[k.length>0&&c.jsx(r("WAWebFacePile.react"),{faceSize:h,idsOrUrls:k,borderWidth:g.borderWidth,theme:"typing_indicator",chatWid:n.id}),T&&c.jsxs("div",{className:"x78zum5 x1fgtraw xexx8yu x2vl965 x18d9i69 x7coems xl56j7k x6s0dn4 x1b8z93w x1amjocr x2ts8ay x14ug900 x1ekkm8c x1143rjc xum4auv xj21bgg x19z9ohp x7yx35o xo1h6xc x2459kn xfl633f",children:["+",I]}),c.jsx("span",{className:"x1n2onr6 xs7f9wi xjn30re x1l1cedg x10w6t97",children:c.jsx(L,{"aria-hidden":!0})}),c.jsxs("div",{className:"x1ew7x2d x78zum5 x10w6t97 xdt5ytf xl56j7k x1cy8zhl x1bczwif xwf5gio x1p453bz x1suzm8a x177zcyq x1n2onr6 xs7f9wi",children:[f===o("WAChatState").ACTIVE_CHAT_STATE_TYPE.TYPING&&c.jsx(r("WAWebMessageBubbleTypingIndicator.react"),{isBotMsgStreaming:!1,colorId:N}),f===o("WAChatState").ACTIVE_CHAT_STATE_TYPE.RECORDING_AUDIO&&c.jsx(r("WAWebTypingIndicatorRecording.react"),{})]})]})):null})}b.displayName=b.name+" [from "+i.id+"]",l.default=b}),98); __d("WAWebMessageList.react",["fbt","WAArraysShallowEqual","WALogger","WANullthrows","WAWebABProps","WAWebBotPluginCarouselWrapper.react","WAWebCmd","WAWebErrorBoundary.react","WAWebFrontendConstants","WAWebGetDisplayType","WAWebKeyboardListHotKeys.react","WAWebL10N","WAWebListenerHoc_DEPRECATED","WAWebMessageAlbumRow.react","WAWebMessageAlbumWrapper.react","WAWebMessageAssociation.flow","WAWebMessageAssociationUIUtils","WAWebMessageDateMarker.react","WAWebMessageHandlers","WAWebMessageHistoryBundleInfoNotification.react","WAWebMessageListGenerateMsgListRows","WAWebMessagePosition","WAWebMessageRow.react","WAWebMessageUnread.react","WAWebMiscGatingUtils","WAWebMsgActionCapability","WAWebMsgCollection","WAWebMsgGetters","WAWebPREGatingUtils","WAWebReplyToMsgChatAction","WAWebTabOrder","WAWebTypingIndicator.react","WAWebTypingIndicatorGatingUtils","WAWebUISpacing","WAWebViewMode.flow","WAWebViewModeUtils","WAWebWamEnumQuotedMessageUserJourneyEntryPoint","WAWebWrapperGroupProfilePicture.react","asyncToGeneratorRuntime","err","react","shallowEqual","stylex"],(function(t,n,r,o,a,i,l,s){var e,u=["msgs"],c=["msgs"],d,m,p,_=p||(p=o("react")),f=d||(d=r("react")),g=_.Component,h=_.createRef,y={messageList:{flex:"x3psx0u",paddingBottom:"x12xbjc7",paddingInlineStart:"x1c1uobl",transition:"xrmvbpv",$$css:!0},maxWidth:{width:"xh8yej3",maxWidth:"xquzyny",$$css:!0},messageListSelectable:{paddingInlineStart:"x1l0aoda",transition:"xdi6fk3",$$css:!0},wrapper:{position:"x1n2onr6",$$css:!0}},C=(function(t){function a(e){var a;a=t.call(this,e)||this,a.$1={},a.$2={},a.$3={},a.$4={},a.$5={},a.$8=h(),a.$9=function(){return a.$8.current},a.$10=function(e){a.$7=e},a.state={isTypingIndicatorVisible:!1},a.$14=function(){var e=a.$7;e!=null&&o("WAWebMessageHandlers").handleMessageReply(a.props.chat,e,o("WAWebWamEnumQuotedMessageUserJourneyEntryPoint").QUOTED_MESSAGE_USER_JOURNEY_ENTRY_POINT.KEYBOARD_SHORTCUT)},a.$15=function(){var e=a.$7;e!=null&&r("WAWebReplyToMsgChatAction")(e)},a.$16=function(){var e=a.$7;e!=null&&o("WAWebMsgActionCapability").canForwardMsg(e)&&o("WAWebMessageHandlers").handleOpenForwardFlow({msg:e,multiSelect:!1})},a.$17=function(){var e=a.$7,t=a.props.chat;e!=null&&o("WAWebMsgActionCapability").canStarMsg(e)&&o("WAWebCmd").Cmd.sendStarMsgs(t,[e])},a.$12=function(){a.forceUpdate()},a.$13=function(e){var t=null;e.parentMsgKey&&(e==null?void 0:e.associationType)===o("WAWebMessageAssociation.flow").MessageAssociationType.MEDIA_ALBUM&&!o("WAWebViewModeUtils").isViewModeVisibleInSurface(o("WAWebViewMode.flow").ViewModeSurface.CHAT,e==null?void 0:e.viewMode)&&(t=o("WAWebMsgCollection").MsgCollection.get(r("WANullthrows")(e.parentMsgKey)));var n=a.$5[e.id.toString()];if(!(!n&&!t)){var i=!t&&n.isGroupedSticker();if(!i){var l=t?o("WAWebMessageAssociationUIUtils").getHiddenAssociatedMessages(t.id,o("WAWebViewMode.flow").ViewModeSurface.CHAT):n.props.msgs,s=new Set(l.map(function(e){return e.id.toString()})),u=function(){var r=t?a.getMsgWrapperRef(t.id.toString()):n.refAlbumComponents[e.id.toString()];return r==null?void 0:r.getContainerElement()};(t||a.$5[e.id.toString()])&&o("WAWebCmd").Cmd.mediaViewerModal({msg:e,getZoomNode:u,highlightedMsgIds:s})}}},a.$11=function(e){var t=e.newKey,n=e.oldKey,r=t.toString(),o=n.toString(),i=a.$1[o];i&&(delete a.$1[o],a.$1[r]=i)},a.$18=function(e){a.setState({isTypingIndicatorVisible:e})},a.$19=function(e,t){e?a.$1[t]=e:delete a.$1[t]},a.$21=function(e,t,n){if(e){a.$3[t]=e,n.forEach(function(t){a.$5[t.id.toString()]=e});return}delete a.$3[t],n.forEach(function(e){delete a.$5[e.id.toString()]})},a.$25={msgGroup:function(t){var e=a.props,n=t[0].type==="msg"?t[0].msg:t[0].msgs[0],i=t[t.length-1],l=i.type==="msg"?[i.msg]:i.msgs;return f.jsxs("div",{className:"x1n2onr6",children:[f.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"msg-list-group-profile-picture-wrapper",children:f.jsx(r("WAWebWrapperGroupProfilePicture.react"),{msg:n.unsafe(),selectable:e.selectable,position:o("WAWebMessagePosition").MsgPosition.FRONT,sticky:!0,lastMsgs:l})}),t.map(function(e){switch(e.type){case"msg":return a.$25.msg(e.msg,e.isFocused,e.groupedWithPrev,e.groupedWithNext,!1,e.isFollowUpReply);case"album":return a.$25.album(e.msgs,e.albumId,e.groupedWithPrev,e.groupedWithNext,e.isFocusedAlbum,e.focusedMsgIndex,!1,e.isFollowUpReply);default:var t=e.type;throw r("err")("Invalid message list row type "+e.type)}})]},"msg-row-"+n.id.toString())},msg:(function(e){function t(t,n,r,o,a,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t})(function(e,t,n,r,i,l){return f.jsx(o("WAWebMessageRow.react").WAWebMessageRow,{msg:e,isFocusedMsg:t,groupedWithPrev:n,groupedWithNext:r,showProfilePicture:i,handleMsgRendered:a.$19,isMsgVisible:a.props.isMsgVisible,selectable:a.props.selectable,selectedMessages:a.$23(),onMessageSelect:a.$24(),getSequentialMsg:a.props.getSequentialMsg,setFocusedMessage:a.$10,isFollowUpReply:l},"msg-"+e.id.toString())}),album:function(t,n,i,l,s,u,c){if(o("WAWebPREGatingUtils").isPREMessageSendFollowupEnabled())return f.jsx(r("WAWebMessageAlbumRow.react"),{albumId:n,focusedMsgIndex:u,isFocusedAlbum:s,msgs:t,selectable:a.props.selectable,selectedMessages:a.$23(),onMessageSelect:a.$24(),groupedWithNext:l,groupedWithPrev:i,showProfilePicture:c,isMsgVisible:a.props.isMsgVisible,handleAlbumRendered:a.$21},"album-"+n);var e=a.props,d;l&&!i?d=o("WAWebMessagePosition").MsgPosition.FRONT:l&&i?d=o("WAWebMessagePosition").MsgPosition.MID:!l&&i?d=o("WAWebMessagePosition").MsgPosition.END:d=o("WAWebMessagePosition").MsgPosition.SINGLE;var m=t[0];return f.jsx(r("WAWebMessageAlbumWrapper.react"),{msgs:t,ref:function(r){a.$21(r,n,t)},position:d,isMsgVisible:e.isMsgVisible,selectable:e.selectable,selectedMessages:a.$23(),onMessageSelect:a.$24(),albumId:n,isFocusedAlbum:s,focusedMsgIndex:u,displayType:o("WAWebGetDisplayType").getDisplayType(m==null?void 0:m.unsafe()),isFocusable:!0,showProfilePicture:c},"album-"+n)},date:function(t,n,o){var e=a.props.isLoadingEarlierMsgs,i=!e||n!==0;return f.jsx(r("WAWebMessageDateMarker.react"),{ref:function(t){return void a.$20(n,t)},timestamp:t.t,isFocusable:i,isGroupHistoryMessage:o},"msg-"+t.id.toString()+"-date")},unread:function(){return f.jsx(r("WAWebMessageUnread.react"),{count:a.props.unreadCount,textContainerRef:a.$8},"msg-unread")},botPluginCarousel:function(t){var e=t.botPluginCarouselId,n=t.isFocused,o=t.msgs;return f.jsx(r("WAWebBotPluginCarouselWrapper.react"),{msgs:o,ref:function(t){return a.$22(t,o)},botPluginCarouselId:e,isFocused:n},"botCarousel-"+e)},historyBundleInfo:function(t,n){var e,i=a.props.msgs.find(function(e){var t=o("WAWebMsgGetters").getGroupHistoryBundleMessageKey(e);return n!=null&&(t==null?void 0:t.id)===(n==null?void 0:n.id)}),l=i==null?void 0:i.id,s=l?(e=a.getMsgWrapperRef(l==null?void 0:l.toString()))==null?void 0:e.getContainerElement():null;return f.jsx(r("WAWebMessageHistoryBundleInfoNotification.react"),{authorName:t,firstBundleMsgElement:s},"history-bundle-info-"+n.toString())}},a.$26=function(e){if(e.target instanceof HTMLElement){var t,n=(t=e.target.dataset)==null?void 0:t.id,r=a.$1[n]||a.$3[n];r==null||r.openContextMenu==null||r.openContextMenu()}},a.$27=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebCmd").Cmd.openChatBottom({chat:a.props.chat})});var i=e.msgs;return a.$6=i.length>0?i[i.length-1]:null,a}babelHelpers.inheritsLoose(a,t);var i=a.prototype;return i.shouldComponentUpdate=function(t,n){var e=t.msgs,o=babelHelpers.objectWithoutPropertiesLoose(t,u),a=this.props,i=a.msgs,l=babelHelpers.objectWithoutPropertiesLoose(a,c);return n.isTypingIndicatorVisible!==this.state.isTypingIndicatorVisible?!0:!r("shallowEqual")(o,l)||!r("WAArraysShallowEqual")(e,i)},i.getSnapshotBeforeUpdate=function(t){var e=this,n,o=this.props.getScrollContainer(),a=this.props.msgs.find(function(t){return Object.prototype.hasOwnProperty.call(e.$1,t.id)});if(a==null)return null;var i=a.id.toString(),l=r("WANullthrows")((n=this.getMsgWrapperRef(i))==null?void 0:n.getContainerElement());return{commonMessageId:i,commonMessageTop:this.getMsgElementOffsetTop(l)-o.scrollTop}},i.componentDidMount=function(){var e;this.props.listeners.add(o("WAWebMsgCollection").MsgCollection,"change:msgKey",this.$11),this.props.listeners.add((e=o("WAWebCmd")).Cmd,"refresh_messages",this.$12),this.props.listeners.add(e.Cmd,"open_media_viewer_for_album_media",this.$13),this.props.listeners.add(e.Cmd,"reply_current_message_keyboard_shortcut",this.$14),this.props.listeners.add(e.Cmd,"reply_current_message_private",this.$15),this.props.listeners.add(e.Cmd,"forward_current_message",this.$16),this.props.listeners.add(e.Cmd,"star_current_message",this.$17),this.props.listeners.add(e.Cmd,"typing_indicator_visibility_change",this.$18)},i.componentDidUpdate=function(t,n,o){var e=this.props.getScrollContainer();if(o!=null){var a,i=o.commonMessageId,l=o.commonMessageTop,s=r("WANullthrows")((a=this.getMsgWrapperRef(i))==null?void 0:a.getContainerElement());e.scrollTop=this.getMsgElementOffsetTop(s)-l}},i.getMsgElementOffsetTop=function(t){if(o("WAWebABProps").getABPropConfigValue("sticky_chat_profile_picture_enabled")){var e=t.offsetParent;if(e instanceof HTMLElement)return e.offsetTop+t.offsetTop}return t.offsetTop},i.getMsgVisibility=function(n){var t=this.props.getScrollContainer(),r=t.scrollTop,a=r+t.clientHeight,i=n==null?void 0:n.getContainerElement();if(!i)return o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["getMsgVisibility on invalid ref: ",""])),n),{visibility:o("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE,offset:0};var l=this.getMsgElementOffsetTop(i);return l+i.clientHeight<=r?{visibility:o("WAWebMessagePosition").MSG_VISIBILITY.ABOVE,offset:l-r}:l>=a?{visibility:o("WAWebMessagePosition").MSG_VISIBILITY.BELOW,offset:l-r}:{visibility:o("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE,offset:l-r}},i.getMsgWrapperRef=function(t){return this.$1[t]||this.$5[t]||this.$4[t]},i.getMsgComponentRef=function(t){if(this.$1[t])return this.$1[t].getMsgComponentRef();if(this.$5[t])return this.$5[t].refAlbumComponents[t]&&this.$5[t].refAlbumComponents[t].getRef()},i.getDateMarkerRef=function(t){return this.$2[t]},i.$20=function(t,n){n?this.$2[t]=n:delete this.$2[t]},i.getRenderedDateMarkers=function(){return this.$2},i.$22=function(t,n){var e=this;if(t){n.forEach(function(n){e.$4[n.id.toString()]=t});return}n.forEach(function(t){delete e.$4[t.id.toString()]})},i.$23=function(){return this.props.selectedMessages},i.$24=function(){return this.props.onMessageSelect},i.render=function(){var e,t,n,a=this,i=this.props,l=i.focusedMsgCtx,u=i.msgs,c=i.unreadCount,d,p;l&&(d=l.msg,l.isUnreadDivider===!0&&c>0&&(p=l.msg));var _=o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()?null:(e={},e[""+r("WAWebL10N").LR("right","left")]=this.$26,e),g=o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()?null:r("WAWebL10N").LR(s._(/*BTDS*/"Lista de mensajes. Presiona la tecla de flecha hacia la derecha en un mensaje para abrir su men\u00fa contextual."),s._(/*BTDS*/"Lista de mensajes. Presiona la tecla de flecha hacia la izquierda en un mensaje para abrir su men\u00fa contextual.")),h=f.jsxs(f.Fragment,{children:[f.jsxs(o("WAWebKeyboardListHotKeys.react").ListHotKeys,{dataTab:o("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST,className:(m||(m=r("stylex")))(y.messageList,this.props.selectable&&y.messageListSelectable,[y.maxWidth,o("WAWebUISpacing").uiMargin.horizAuto]),getPriorityFocusItem:this.$9,onBeforeEnd:this.$27,handlers:_,removeTabIndexFocusInside:o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled(),"aria-label":g,children:[r("WAWebMessageListGenerateMsgListRows")(this.$25,u,(t=d)==null?void 0:t.safe(),(n=p)==null?void 0:n.safe(),c,this.$6),o("WAWebTypingIndicatorGatingUtils").isTypingIndicatorMessageBubbleEnabled(this.props.chat.id)&&f.jsx("div",babelHelpers.extends({onAnimationStart:function(){!a.props.isNearBottom||!a.state.isTypingIndicatorVisible||o("WAWebCmd").Cmd.scrollChatHeight(o("WAWebFrontendConstants").SCROLL_FUDGE)}},{0:{className:"xqtp20y x252dbw"},1:{className:"x252dbw xxk0z11 x1mibc2w x2mfxb x1wg5k15"}}[!!this.state.isTypingIndicatorVisible<<0]))]}),o("WAWebTypingIndicatorGatingUtils").isTypingIndicatorMessageBubbleEnabled(this.props.chat.id)&&f.jsx("div",babelHelpers.extends({},(m||(m=r("stylex"))).props(y.wrapper,y.maxWidth,o("WAWebUISpacing").uiMargin.horizAuto),{children:f.jsx(r("WAWebTypingIndicator.react"),{chat:this.props.chat})}))]});return h},a})(g),b=o("WAWebListenerHoc_DEPRECATED").ListenerHOC(C),v=(function(e){function t(){return e.apply(this,arguments)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.getDateMarkerRef=function(t){return this.getComponent().getDateMarkerRef(t)},n.getMsgComponentRef=function(t){return this.getComponent().getMsgComponentRef(t)},n.getMsgWrapperRef=function(t){return this.getComponent().getMsgWrapperRef(t)},n.getMsgVisibility=function(t){return this.getComponent().getMsgVisibility(t)},n.getRenderedDateMarkers=function(){return this.getComponent().getRenderedDateMarkers()},t})(b);l.default=v}),226); __d("WAWebMessageStickyDateMarker.react",["WAWebVelocityTransitionGroup","WAWebWrapperSystemBubble.react","WDSText.react","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useImperativeHandle,_=c.useState;function f(e){return e==null?0:e.offsetWidth-(e.clientWidth+e.clientLeft*2)}var g={position:"x10l6tqk",zIndex:"x8k05lb",boxSizing:"x9f619",display:"x78zum5",justifyContent:"xl56j7k",width:"xh8yej3",paddingTop:"x12mz7nx",paddingInlineEnd:"x120eax6",pointerEvents:"x47corl",$$css:!0},h={stickyRefreshed:function(t){return[g,{"--x-paddingInlineEnd":(function(e){return typeof e=="number"?e+"px":e!=null?e:void 0})(t+"px")}]}};function y(e){var t=e.ref,n=e.scrollContainerRef,o,a=_(void 0),i=a[0],l=a[1],u=_(!0),c=u[0],g=u[1],y=_(0),C=y[0],b=y[1];m(function(){if(n!=null){var e=f(n);e!==C&&b(e)}},[n,C]);var v=function(t){l(t)},S=function(t){g(t)};return p(t,function(){return{updateDateMarkerText:v,setVisibility:S}}),i!=null&&c&&(o=d.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(h.stickyRefreshed(C)),{children:d.jsx(r("WAWebWrapperSystemBubble.react"),{theme:"sticky",children:d.jsx(r("WDSText.react"),{type:"Body3Emphasized",colorName:"contentDeemphasized",dir:"auto",children:i})})}))),d.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"slide-down-date",children:o})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),98); __d("WAWebNewsletterSubscribeToLiveUpdatesQuery",["WASmaxNewslettersSubscribeToLiveUpdatesRPC","WAWebBackendErrors","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e){return o("WAWebNewsletterRpcUtils").runWithBackoff(function(){return s(e)})}function s(e){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=yield o("WASmaxNewslettersSubscribeToLiveUpdatesRPC").sendSubscribeToLiveUpdatesRPC({iqTo:e});switch(t.name){case"SubscribeToLiveUpdatesResponseSuccess":return{duration:t.value.liveUpdatesDuration*1e3};case"SubscribeToLiveUpdatesResponseServerError":{var n=t.value.errorIQErrorInternalServerErrorMixin,r=n.code,a=n.text;throw new(o("WAWebBackendErrors")).ServerStatusCodeError(r,a)}case"SubscribeToLiveUpdatesResponseClientError":{var i=t.value.subscribeToLiveUpdatesClientErrors;switch(i.name){case"ItemNotFoundIQErrorResponse":{var l=i.value.errorIQErrorItemNotFoundMixin,s=l.code,u=l.text;throw new(o("WAWebBackendErrors")).ServerStatusCodeError(s,u)}case"RateLimitedIQErrorResponse":{var c=i.value.errorIQErrorRateOverlimitMixin,d=c.code,m=c.text;throw new(o("WAWebBackendErrors")).ServerStatusCodeError(d,m)}case"BadRequestIQErrorResponse":{var p=i.value.errorIQErrorBadRequestMixin,_=p.code,f=p.text;throw new(o("WAWebBackendErrors")).ServerStatusCodeError(_,f)}case"SuspendedIQErrorResponse":{var g=i.value.errorIQErrorLockedMixin,h=g.code,y=g.text;throw new(o("WAWebBackendErrors")).ServerStatusCodeError(h,y)}case"UnavailableForLegalReasonsResponse":{var C=i.value.errorIQErrorUnavailableForLegalReasonsGenericMixin,b=C.code,v=C.text;throw new(o("WAWebBackendErrors")).ServerStatusCodeError(b,v)}}}}}),u.apply(this,arguments)}l.subscribeToLiveUpdatesQuery=e}),98); __d("WAWebNewsletterSubscribeToLiveUpdatesJob",["WAJobOrchestratorTypes","WAWebNewsletterSubscribeToLiveUpdatesQuery","WAWebOrchestratorNonPersistedJob"],(function(t,n,r,o,a,i,l){function e(e){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("subscribeToLiveUpdates",function(){return o("WAWebNewsletterSubscribeToLiveUpdatesQuery").subscribeToLiveUpdatesQuery(e)},{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}l.subscribeToLiveUpdatesJob=e}),98); __d("WAWebNewsletterSubscribeToLiveUpdatesAction",["WAJids","WALogger","WAWebNewsletterBridgeApi","WAWebNewsletterMetadataJob","WAWebNewsletterSubscribeToLiveUpdatesJob","WAWebNewsletterValidationUtils","asyncToGeneratorRuntime","getErrorSafe"],(function(t,n,r,o,a,i,l){var e,s,u;function c(e){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){try{return yield o("WAWebNewsletterSubscribeToLiveUpdatesJob").subscribeToLiveUpdatesJob(o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(t.toJid()))}catch(l){var n=l!=null&&typeof l=="object"&&"status"in l?l.status:null;if(n===423)try{yield o("WAWebNewsletterMetadataJob").suspendNewsletter(o("WAJids").toNewsletterJid(t.toJid())),o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.suspendNewsletter({id:t})}catch(n){var a=r("getErrorSafe")(n);o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[subscribeToLiveUpdatesJob] suspend failed (423) "," ",""])),t.toString(),a.name).tags("newsletter").sendLogs("newsletter-subscribe-to-live-updates-suspend-error");return}else if(n===451)try{yield o("WAWebNewsletterMetadataJob").geosuspendNewsletter(o("WAJids").toNewsletterJid(t.toJid())),o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.geosuspendNewsletter({id:t})}catch(e){var i=r("getErrorSafe")(e);o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[subscribeToLiveUpdatesJob] geosuspend failed (451) "," ",""])),t.toString(),i.name).tags("newsletter").sendLogs("newsletter-subscribe-to-live-updates-geosuspend-error");return}o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[subscribeToLiveUpdatesJob] subscribe failed"])))}}),d.apply(this,arguments)}l.subscribeToLiveUpdates=c}),98); __d("WAWebNewsletterLiveUpdatesManager",["WALogger","WAWebNewsletterSubscribeToLiveUpdatesAction","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=(function(){function t(){}var r=t.prototype;return r.$3=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){var n=yield o("WAWebNewsletterSubscribeToLiveUpdatesAction").subscribeToLiveUpdates(t);if(n==null){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[LiveUpdatesManager] Failed to subscribe to live updates"])));return}return n.duration});function r(e){return t.apply(this,arguments)}return r})(),r.$4=function(t,r){var e=this;this.unsubscribe(),this.$1=self.setTimeout(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var n=yield e.$3(t);if(n!=null)return e.$4(t,n)}),r)},r.subscribe=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){this.unsubscribe(),this.$2=e;var t=yield this.$3(e);t!=null&&this.$4(e,t)});function t(t){return e.apply(this,arguments)}return t})(),r.unsubscribe=function(){self.clearTimeout(this.$1)},t})(),u=new s;l.LiveUpdatesManager=u}),98); __d("WAWebNewsletterRepairMsgHistoryAction",["WAPromiseDelays","WARaceSignal","WAWebCommonNewsletterEnums","WAWebMsgDataFromModel","WAWebMsgModelFromData","WAWebNewsletterGatingUtils","WAWebNewsletterMsgHistoryUtils","WAWebNewsletterPullMessagesFromServerAction","WAWebNewsletterValidationUtils","WAWebNewsletterViewModeUIUtils","WAWebNoop","WAWebStateUtils","WAWebWid","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e="[news-msg-history][repairMsgHistory]",s=1e3;function u(e){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t,n=o("WAWebStateUtils").unproxy(e.chat);if(r("WAWebWid").isNewsletter(n.id)&&o("WAWebNewsletterGatingUtils").isProactiveGapFillingEnabled()){var a=(t=e.msgCollection)!=null?t:n.msgs;if(a===n.msgs){if(a.repairMsgHistoryPromise!=null)return a.repairMsgHistoryPromise;var i=n.newsletterMetadata;if(!(i==null||i.membershipType===o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Guest)){var l=o("WAWebNewsletterViewModeUIUtils").getHiddenMessageServerIdsForChat(n.id),u=a.sort().last();if(!(u==null||u.serverId==null)){var c=new AbortController;try{var d;if(r("WARaceSignal")([c.signal,e.unmountSignal],function(){return o("WAPromiseDelays").delayMs(s,c.signal).then(function(){a.msgLoadState.isRepairingMsgHistory=!0}).catch(r("WAWebNoop"))}),e.fetchLastMessage){var m=yield o("WAWebNewsletterPullMessagesFromServerAction").pullNewsletterMessagesFromServer(n,{messageCount:1,resetUnreadCount:!0,shouldUpdateMsg:function(t){return t.serverId!=null&&t.serverId!==u.serverId&&!l.has(t.serverId)}}),p=m[0];if(p==null)return}a.repairMsgHistoryPromise=o("WAWebNewsletterMsgHistoryUtils").fillMsgHistoryGaps({jid:o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(n.id.toJid()),msgs:a.toArray().map(o("WAWebMsgDataFromModel").msgDataFromMsgModel),serverIdsToSkip:l}).then(function(e){return e.map(o("WAWebMsgModelFromData").msgModelFromMsgData)});var _=(d=yield n.msgs.repairMsgHistoryPromise)!=null?d:[];if(a.length===_.length)return;a.add(_,{silent:!0}),a.sort({silent:!0}),n.trigger("msgs:history_repaired")}finally{c.abort(),a.msgLoadState.isRepairingMsgHistory=!1,a.repairMsgHistoryPromise=null}}}}}}),c.apply(this,arguments)}l.repairNewsletterMsgHistory=u}),98); __d("WAWebConversationMsgs.react",["fbt","WAAbortError","WAArrayFindNext","WAFilteredCatch","WALogger","WANullthrows","WARaceSignal","WAShiftTimer","WATimeUtils","WAWebABProps","WAWebBackendErrors","WAWebBizChatAssignmentOpenedAction","WAWebChatAssignmentUtils","WAWebChatGetters","WAWebChatLoadMessages","WAWebChatMessageSearch","WAWebChatMsgsCollection","WAWebChatThreadLogging","WAWebClock","WAWebCmd","WAWebComposeBoxActions","WAWebCongratulationsAnimationsGatingUtils","WAWebContactGetters","WAWebContactMenuDropdown.react","WAWebConversationLoadMoreMessages.react","WAWebConversationMenus","WAWebConversationMsgsMenuV2.react","WAWebConversationMsgsUtils","WAWebCopyPasteCopyableArea.react","WAWebDebounce","WAWebDocumentFlushed","WAWebFocusTracer","WAWebFrontendConstants","WAWebFrontendMsgGetters","WAWebGetBrazilnteractiveActions","WAWebGroupCatchUpWamEvent","WAWebHistorySyncUtils","WAWebJumpToButtons.react","WAWebListenerHoc_DEPRECATED","WAWebMath","WAWebMessageList.react","WAWebMessagePosition","WAWebMessageStickyDateMarker.react","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgKey","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebNewsletterGetMessageUpdatesAction","WAWebNewsletterLiveUpdatesManager","WAWebNewsletterRepairMsgHistoryAction","WAWebNonMessageDataRequestPlaceholderMessageResendUtils","WAWebNoop","WAWebThreadMsgUtils","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnmountSignalHoc_DEPRECATED.react","WAWebUpdateUnreadChatAction","WAWebUserPrefsMeUser","WAWebVelocityAnimate","WAWebViewMode.flow","WAWebViewModeUtils","WAWebWDSGatingUtils","WAWebWid","cr:12474","err","gkx","isEmptyObject","lodash","react","shallowEqual","stylex"],(function(t,n,r,o,a,i,l,s){var e=["msgLoadState"],u=["msgLoadState"],c,d,m,p,_,f,g,h,y,C,b,v,S=v||(v=o("react")),R=C||(C=r("react")),L=S.Component,E=S.createRef,k=3e3,I=8.5,T=300,D=80,x=20,$=100,P={jumpToContainer:{height:"x5yr21d",width:"xh8yej3",maxWidth:"xquzyny",position:"x1n2onr6",$$css:!0}},N=o("WAWebWDSGatingUtils").isWDSMenuM2Enabled(),M=(function(t){function a(e){var n;n=t.call(this,e)||this,n.$1=0,n.$3=new Map,n.$4=[],n.$10=!1,n.$11=!1,n.$12=0,n.$13=0,n.$14=!1,n.$15=function(e){return n.scrollContainer=e},n.$16=E(),n.$17=E(),n.$18=E(),n.$19=null,n.$31=function(e){var t=n.scrollContainer;t&&(r("WAWebVelocityAnimate")(t,"stop"),r("WAWebVelocityAnimate")(t,"scroll",{duration:300,container:t,offset:e}))},n.$41=function(e){var t=n.$17.current;n.$18.current=t==null?void 0:t.getMsgWrapperRef(e.toString())},n.$38=function(e){e.has(n.props.chat.id.toString())&&(o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["_onHistorySyncStateUpdate called, attempt to load earlier"]))).tags("history-sync"),n.$10=!1,n.loadEarlierMsgs())},n.$47=function(){n.forceUpdate()},n.$32=function(e){var t=n.$4[n.$4.length-1];if(t){var r=t.toString(),o=n.$17.current;if(r&&o){var a,i=(a=o.getMsgWrapperRef(r))==null?void 0:a.getContainerElement();if(i){var l=n.scrollContainer;if(!l)return;var s=n.$48(l,i);n.$46={msg:i,container:l,msgBottom:s}}}}},n.$33=function(e){if(n.$46){var t=n.$46,r=t.container,o=t.msg,a=t.msgBottom;n.$49(r,o,a),n.$46=void 0}},n.$42=function(e){var t,a,i=n.props,l=i.chat,u=i.listeners,c=i.msgCollection,d=e.chat,m=e.focusCtx,p=e.msgCollection;if(c&&(u.remove(c,"remove_msgs insert_msgs bulk_add",n.$51),u.remove(l.msgs,"change:last",n.$52)),u.remove(l,"change:unreadCount",n.$53),u.remove(l,"change:unreadEditTimestampMs",n.$53),u.remove(l,"change:activeUnreadCount",n.$54),u.remove(l,"change:pendingDeleteForMeCount",n.$47),n.$9!=null&&n.$9(),n.$9=p.onMsgLoadStateChange(n.$55),o("WAWebChatGetters").getIsGroup(l)&&(t=l.groupMetadata)!=null&&t.unreadMentionMetadata.unreadMentionCollection&&u.remove(l.groupMetadata.unreadMentionMetadata.unreadMentionCollection,"add remove reset",n.$56),o("WAWebChatGetters").getIsGroup(d)&&(a=d.groupMetadata)!=null&&a.unreadMentionMetadata.unreadMentionCollection&&u.add(d.groupMetadata.unreadMentionMetadata.unreadMentionCollection,"add remove reset",n.$56),u.add(d,"change:unreadCount",n.$53),u.add(d,"change:unreadEditTimestampMs",n.$53),u.add(d,"change:activeUnreadCount",n.$54),u.add(d,"change:pendingDeleteForMeCount",n.$47),u.add(d.msgs,"change:last",n.$52),u.add(p,"remove_msgs insert_msgs bulk_add",n.$51),m&&p.loadAroundPromise){var _,f,g;(_=n.props.interaction)==null||_.startInteraction(),(f=n.props.interaction)==null||f.addExperimentExposure("wa_web_perf_messages_virtualization_margin_1000",r("gkx")("4011"),r("gkx")("5902")),(g=n.props.interaction)==null||g.addAnnotation({loadingType:"load_around",surface:o("WAWebChatGetters").getIsNewsletter(n.props.chat)?"channels":"chats"}),p.loadAroundPromise.catch(function(e){o("WAFilteredCatch").filteredCatch(o("WAWebBackendErrors").E404,function(){var t;(t=n.props.interaction)==null||t.failInteraction(e),o("WAWebToastManager").ToastManager.open(R.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo encontrar el mensaje")})),o("WAWebCmd").Cmd.openChatBottom({chat:d}).catch(function(){})})(e)}).finally(function(){var e;(e=n.props.interaction)==null||e.completeInteraction()})}},n.$21=r("lodash").throttle(function(){var e=n.props.getUnmountSignal();o("WAWebDocumentFlushed").documentFlushed({signal:e}).then(function(){if(e.aborted)throw new(o("WAAbortError")).AbortError;if(n.$45(),!e.aborted){var t=n,r=t.scrollContainer;if(r!=null){var a=r.scrollTop,i=aD&&(n.$10=!1);var s=n.state,u=s.cursor,c=s.isNearBottom;l?(n.$25(!0),(u.getEnd(n.props.msgCollection)0){if(c.hasBefore(s)){var p;(p=n.props.interaction)==null||p.completeInteraction(),n.setState({cursor:c.loadBefore(s)})}}else{if(m.isLoadingEarlierMsgs||m.isLoadingAroundMsgs){var _,f;(_=n.props.interaction)==null||_.addAnnotation({interrupted:"loading_other_msgs"}),(f=n.props.interaction)==null||f.completeInteraction();return}if(o("WAWebConversationMsgsUtils").noEarlierMsgStateIsIncorrect(l,o("WAWebConversationMsgsUtils").isMostRecentCMC(n.props),m)&&(s.msgLoadState.noEarlierMsgs=!1),s.msgLoadState.noEarlierMsgs){var g,h;(g=n.props.interaction)==null||g.addAnnotation({interrupted:"no_earlier_msgs"}),(h=n.props.interaction)==null||h.completeInteraction();return}var y=n.props.getUnmountSignal();o("WAWebChatLoadMessages").loadEarlierMsgs(l,s).then(function(e){var t;if(y.aborted){var r,a;(r=n.props.interaction)==null||r.addAnnotation({interrupted:"aborted"}),(a=n.props.interaction)==null||a.completeInteraction();return}!e||e.length===0?n.$10=!0:n.$10=!1;var i={};n.state.focusCtx||(i.focusCtx=o("WAWebConversationMsgsUtils").getUnreadFocusCtx(n.props,n.state.unreadCount)),c.hasBefore(s)&&(i.cursor=c.loadBefore(s)),n.setState(i),(t=n.props.interaction)==null||t.completeInteraction()}).catch(function(e){var t;o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["ConversationMsgs:loadEarlierMsgs failed\n",""],["ConversationMsgs:loadEarlierMsgs failed\\n",""])),e),(t=n.props.interaction)==null||t.failInteraction(e)})}},n.$58=function(){var e,t,a,i=n.props,l=i.chat,s=i.msgCollection,u=n.state,c=u.cursor,d=u.msgLoadState;if((e=n.props.interaction)==null||e.startInteraction(),(t=n.props.interaction)==null||t.addExperimentExposure("wa_web_perf_messages_virtualization_margin_1000",r("gkx")("4011"),r("gkx")("5902")),(a=n.props.interaction)==null||a.addAnnotation({loadingType:"load_recent_msgs",surface:o("WAWebChatGetters").getIsNewsletter(n.props.chat)?"newsletters":"chats"}),c.getEnd(s)=s.length&&o("WAWebConversationMsgsUtils").isMostRecentCMC(n.props)&&n.forceUpdate(),(t=n.props.interaction)==null||t.completeInteraction()})}).catch(o("WAAbortError").catchAbort(r("WAWebNoop"))).catch(function(e){var t;(t=n.props.interaction)==null||t.failInteraction(e),o("WALogger").LOG(m||(m=babelHelpers.taggedTemplateLiteralLoose(["ConversationMsgs:loadRecentMsgs failed\n",""],["ConversationMsgs:loadRecentMsgs failed\\n",""])),e)}).finally(function(){n.$8=null});n.$8={promise:b,controller:h}},n.handleComposeHeightChange=function(e){var t=n.scrollContainer;if(t)if(e){if(t&&e<0&&t.scrollTop===t.scrollHeight-t.clientHeight)return;n.$50(t,t.scrollTop+e)}else{var o=t.scrollHeight-(t.scrollTop+t.clientHeight);r("WAWebVelocityAnimate")(t,{tween:18},{progress:function(){n.$50(t,t.scrollHeight-o-t.clientHeight)},duration:300},[.1,.82,.25,1])}},n.$59=function(){return r("WANullthrows")(n.scrollContainer,"unexpected empty scroll container")},n.getScrollBottom=function(){var e=n.scrollContainer;return e?e.scrollHeight-(e.scrollTop+e.clientHeight):0},n.$24=new(o("WAShiftTimer")).ShiftTimer(function(){var e;(e=n.$16.current)==null||e.setVisibility(!1)}),n.$20=new(o("WAShiftTimer")).ShiftTimer(function(e){var t=e||{},r=t.dateMarkerIdx,a=t.silent,i=a===void 0?!1:a,l=n.$17.current;if(!(!l||typeof r!="number")){var s=i||Date.now()-(n.$2||0)<200;s||n.$43();var u=l.getDateMarkerRef(r);if(r===-1){var c;(c=n.$16.current)==null||c.updateDateMarkerText()}else if(u){var d,m=u.getTimestamp(),p=o("WAWebClock").Clock.relativeDateStr(m).toString();(d=n.$16.current)==null||d.updateDateMarkerText(p)}if(n.$7!==r){var _=l.getDateMarkerRef(n.$7);_&&_.show(),u&&u.hide()}}}),n.$62=function(){n.$3.forEach(function(e,t){var r;if((r=n.props.chat.groupMetadata)!=null&&r.unreadMentionMetadata.hasMentionId(t)){var o;(o=n.props.chat.groupMetadata)==null||o.unreadMentionMetadata.removeUnreadMentions(t)}})},n.isMsgVisible=function(e,t){t===void 0&&(t=!1);var r=e,a=o("WAWebMsgCollection").MsgCollection.get(r);if(a!=null&&a.isCarouselCard===!0){var i;r=(i=a.parentMsgId)!=null?i:r}return n.$3.has(r.toString())&&(t?!0:n.getMsgComponent(r))},n.getSequentialMsg=function(e){var t=n.getMsgs();return t?r("WAArrayFindNext")(t,function(t){return e.equals(t.id)}):null},n.$63=function(e){n.$21()},n.$35=function(){var e=n.props.chat;if(!(n.$5||!e.isDirty()&&!e.hasUnreadEdit())){var t=2500;n.$5=self.setTimeout(function(){n.$5=null,n.$25()},t)}},n.$36=function(){if(!(!n.state.unreadCount||!o("WAWebConversationMsgsUtils").isMostRecentCMC(n.props))){var e=n.props.chat;e.unreadCount===0&&(n.setState({unreadCount:0}),e.activeUnreadCount=0),e.markedUnread=!1}},n.$64=function(){var e=n.props.msgCollection;o("WAWebConversationMsgsUtils").isMostRecentCMC(n.props)&&n.state.cursor.getEnd(e)>=e.length?n.$30():o("WAWebCmd").Cmd.openChatBottom({chat:n.props.chat,threadId:n.props.threadId}).then(function(e){e&&o("WAWebComposeBoxActions").ComposeBoxActions.focus(n.props.chat)})},n.$65=function(){var e,t=n.props.chat,a=(e=t.groupMetadata)==null?void 0:e.unreadMentionMetadata;if(a){var i=a.pendingUnreadMentionCount,l=o("WAWebMath").roundUp10thPercentage(i,a.getUnreadMentionCount());if(new(o("WAWebGroupCatchUpWamEvent")).GroupCatchUpWamEvent({mentionsCountPendingPercentage:l}).commit(),i>0){var u=s._(/*BTDS*/"_j{\"*\":\"{count} mensajes con menci\\u00f3n no sincronizados\",\"4\":\"{count} mensaje con menci\\u00f3n no sincronizado\",\"_1\":\"1 mensaje con menci\\u00f3n no sincronizado\"}",[s._plural(i,"count")]);o("WAWebToastManager").ToastManager.open(R.jsx(o("WAWebToast.react").Toast,{msg:u})),a.pendingUnreadMentionCount=0,n.setState({unreadMentionCount:a.getUnreadMentionCount()});return}if(a.unreadMentionCollection.length){var c,d=a.oldestUnreadMention(),m=r("WAWebMsgKey").fromString(d==null?void 0:d.id),p=o("WAWebMsgCollection").MsgCollection.get(m.toString()),_=o("WAWebChatMessageSearch").getSearchContext(t,(c=p==null?void 0:p.id)!=null?c:m);_.highlightMentionMsg=!0,_.enableAnimation=!1,_&&o("WAWebCmd").Cmd.openChatAt({chat:n.props.chat,msgContext:_})}}},n.$30=function(e){var t=n.scrollContainer;t&&n.$50(t,t.scrollHeight-t.clientHeight),e&&e();var a=n.props.getUnmountSignal();o("WAWebDocumentFlushed").documentFlushed({signal:a}).then(function(){a.aborted||n.setState({cursor:n.state.cursor.resetBeforeCursor(n.props.msgCollection)})}).catch(o("WAFilteredCatch").filteredCatch(o("WAAbortError").AbortError,r("WAWebNoop")))},n.$52=function(e,t){var a=n.props,i=a.chat,l=a.msgCollection,s=n.state.focusCtx,u=n.state.cursor,c=l.last();if(!o("WAWebConversationMsgsUtils").isMostRecentCMC(n.props)){t&&e&&o("WAWebMsgGetters").getIsSentByMe(e)&&n.$64();return}var d={},m=document.hasFocus(),p=n.$57(),_=p;m&&p?(d.unreadCount=i.activeUnreadCount,i.activeUnreadCount===0&&(d.focusCtx=void 0),u=u.setFocusedMsgKey(l)):c&&o("WAWebMsgGetters").getIsSentByMe(c)&&t&&(_=!0,n.state.unreadCount&&(d.unreadCount=0),d.focusCtx=void 0,u=u.setFocusedMsgKey(l),n.$64()),s&&!Object.prototype.hasOwnProperty.call(d,"focusCtx")?u=u.loadAfter(l,{count:1}):u=u.loadBeforeCapped(l,{count:1}),u!==n.state.cursor&&(d.cursor=u),r("isEmptyObject")(d)||(n.$11=!0,n.setState(d,function(){t&&n.$29({fetchLastMessage:!1}),n.$11=!1,_&&n.$30(),n.$53()}))},n.$34=function(){n.$6=self.setTimeout(function(){var e,t;n.state.isNearBottom&&!(o("WAWebChatGetters").getIsNewsletter(n.props.chat)===!0&&((e=n.state.focusCtx)==null?void 0:e.highlightMsg)===!0&&((t=n.state.focusCtx.msg)==null?void 0:t.isLastMessage())!==!0)&&n.$30()},1)},n.$56=function(){var e,t,r=n.props.chat,o=(e=(t=r.groupMetadata)==null?void 0:t.unreadMentionMetadata.getUnreadMentionCount())!=null?e:0;n.setState({unreadMentionCount:o})},n.$53=r("WAWebDebounce")(function(){if(!n.$11){var e=n.props.chat,t=n.$57(),a=document.hasFocus();n.$25(t,a);var i={};if(e.unreadCount&&!e.pendingSeenCount&&o("WAWebConversationMsgsUtils").isMostRecentCMC(n.props)){i.unreadCount=e.unreadCount;var l=o("WAWebConversationMsgsUtils").getUnreadFocusCtx(n.props,n.state.unreadCount);if(l&&i.focusCtx!==n.props.focusCtx){var s;i.focusCtx=l,i.cursor=n.state.cursor.setFocusedMsgKey(n.props.msgCollection,(s=l.msg)==null?void 0:s.id)}}else if(e.unreadCount===0&&n.state.unreadCount!==0){var u=n.props.msgCollection.last();u&&o("WAWebFrontendMsgGetters").getAsRevoked(u)&&(i.unreadCount=0)}var c=t&&n.state.unreadCount+1===i.unreadCount;(!t&&o("WAWebConversationMsgsUtils").isMostRecentCMC(n.props)||!e.pendingSeenCount&&n.state.newUnread!==e.unreadCount)&&(i.newUnread=e.unreadCount),r("isEmptyObject")(i)||n.setState(i,function(){c&&n.$30()}),e.unreadCount===0&&n.state.unreadCount!==0&&(e.activeUnreadCount=n.state.unreadCount)}},150),n.$54=function(){if(!n.$11){var e=n.props.chat;n.setState({unreadCount:e.activeUnreadCount})}},n.$51=function(e,t){var r=n.state.cursor.ensureValidFocus(n.props.msgCollection);(e==null?void 0:e.length)>0&&(t==null?void 0:t.at)===0&&o("WAWebABProps").getABPropConfigValue("group_history_receive")&&r.hasBefore(n.props.msgCollection)&&(r=r.loadBefore(n.props.msgCollection,{count:e.length})),n.state.cursor!==r?n.setState({cursor:r}):n.forceUpdate()},n.handlePageUpDown=function(e){r("WAWebFocusTracer").focus(n.scrollContainer)},n.scrollMessages=function(){var e,t=n.$4[n.$4.length-1];if(t){var o=n.$17.current;if(o){var a=(e=o.getMsgWrapperRef(t.toString()))==null?void 0:e.getContainerElement();if(a){var i=n.$4.length===1?a.clientHeight:0,l=n.scrollContainer;r("WAWebVelocityAnimate")(a,"stop"),l&&r("WAWebVelocityAnimate")(l,"stop"),r("WAWebVelocityAnimate")(a,"scroll",{duration:300,container:l,offset:i})}}}},n.$66=function(e){e.metaKey||e.ctrlKey||(e.preventDefault(),e.key==="Enter"&&!e.shiftKey?o("WAWebComposeBoxActions").ComposeBoxActions.send(n.props.chat):o("WAWebComposeBoxActions").ComposeBoxActions.paste(n.props.chat,String.fromCharCode(e.charCode)))},n.$67=function(e){var t,a;if(((t=(a=document.getSelection())==null?void 0:a.toString())!=null?t:"")===""){var i=n.props.chat,l=n.props.onSelectMessages,s=n.props.onCancelSelectMessages,u=n.props.selectable,c;if(o("WAWebConversationMsgsUtils").isSimplifiedChatConversationMenuEnabled(i))c=o("WAWebConversationMenus").hybridMenu(i,l,s,u);else if(o("WAWebContactGetters").getIsUser(i))c=R.jsx(r("WAWebContactMenuDropdown.react"),{chat:i,toContextMenuManager:!0,onSelectMessages:l,enableChatThreadLogging:!1,container:n.scrollContainer});else if(o("WAWebContactGetters").getIsGroup(i))c=R.jsx(o("WAWebConversationMenus").GroupMenu,{chat:i,container:n.scrollContainer,onSelect:l});else if(o("WAWebContactGetters").getIsBroadcast(i))c=o("WAWebConversationMenus").broadcastMenu(i,l);else return;e.preventDefault(),e.stopPropagation(),o("WAWebChatThreadLogging").handleActivitiesForChatThreadLogging([{activityType:"chatOverflowClicks",ts:o("WATimeUtils").unixTime(),chatId:i.id}]),N?n.$19!=null&&n.$19(e):n.setState({contextMenu:{menu:c,event:e}})}},n.$68=function(){n.setState({contextMenu:null})},n.$69=function(e){n.$19=e},n.$70=function(e){e.preventDefault(),o("WAWebComposeBoxActions").ComposeBoxActions.sendPaste(n.props.chat,e)},n.$44=function(){n.props.notifyChatRendered&&n.props.notifyChatRendered(n.getMsgs())},n.$39=function(){var e=n.props.msgCollection,t=n.state.cursor;t.hasBefore(e)&&n.setState({cursor:t.loadBefore(e)})},n.$40=function(){var e,t=n.props.msgCollection;n.setState({cursor:n.state.cursor.init((e=t.last())==null?void 0:e.id,t)},function(){n.props.chat.unreadCount===0&&n.$64()})};var a=e.chat,i=a.pendingSeenCount?0:a.unreadCount,l=0;if(o("WAWebChatGetters").getIsGroup(a)){var u,p;l=(u=(p=a.groupMetadata)==null?void 0:p.unreadMentionMetadata.getUnreadMentionCount())!=null?u:0}return n.state=babelHelpers.extends({},o("WAWebConversationMsgsUtils").getInitialCursorAndFocusContext(e,i),{unreadCount:i,unreadMentionCount:l,isNearBottom:!0,newUnread:0,contextMenu:null,msgLoadState:o("WAWebConversationMsgsUtils").getMsgLoadState(e.msgCollection),lastSelectable:e.selectable,lastChat:e.chat,lastMsgCollection:e.msgCollection,lastFocusCtx:e.focusCtx,lastThreadId:e.threadId}),n}babelHelpers.inheritsLoose(a,t);var i=a.prototype;return i.componentWillUnmount=function(){if(this.$9!=null&&this.$9(),this.$20.cancel(),this.$21.cancel(),this.$22.cancel(),this.$23.cancel(),this.$24.cancel(),this.$5&&self.clearTimeout(this.$5),this.$6&&self.clearTimeout(this.$6),this.$25(),this.props.chat.markedUnread=!1,o("WAWebChatGetters").getIsGroup(this.props.chat)){var e;(e=this.props.chat.groupMetadata)==null||e.unreadMentionMetadata.reset()}this.props.chat.activeUnreadCount=0,this.$26()},i.$27=function(){var e=this.props.chat;o("WAWebChatGetters").getIsNewsletter(e)&&o("WAWebNewsletterGatingUtils").isNewsletterReactionEnabled()&&o("WAWebNewsletterGetMessageUpdatesAction").maybeUpdateMsgsAddOns(e.msgs.getModelsArray(),e)},i.$28=function(){var e=this.props.chat;o("WAWebChatGetters").getIsNewsletter(e)&&o("WAWebNewsletterLiveUpdatesManager").LiveUpdatesManager.subscribe(e.id)},i.$26=function(){o("WAWebNewsletterLiveUpdatesManager").LiveUpdatesManager.unsubscribe()},i.componentDidMount=function(){var e=this,t,n=this.props,a=n.chat,i=n.listeners;this.$28(),this.$27(),this.$29({fetchLastMessage:!0}),i.add((t=o("WAWebCmd")).Cmd,"scroll_chat_to_bottom",function(t){e.$30(t)}),i.add(t.Cmd,"scroll_messages",this.scrollMessages),i.add(t.Cmd,"scroll_chat_by_height",function(t){e.$31(t)}),i.add(t.Cmd,"panes_will_change",this.$32),i.add(t.Cmd,"panes_did_change",this.$33),i.add(t.Cmd,"scroll_to_focused_msg",function(t){e.$1=Date.now(),t()}),i.add(t.Cmd,"reaction_changed_last_msg",this.$34),i.add(window,"focus",this.$35),i.add(window,"blur",this.$36),i.add(window,"resize",this.$22),i.add(window,"resize",this.$23),i.add(o("WAWebMsgCollection").MsgCollection,"change:msgKey",this.$37),i.add(t.Cmd,"new_history_sync_chunk_processed_from_bridge",this.$38),i.add(a,"msgs:preloaded",this.$39),i.add(a,"msgs:history_repaired",this.$40),i.add(t.Cmd,"group_notification_context_card_rendered",this.$41),this.$42(this.props);var l=this.props.getUnmountSignal();o("WAWebDocumentFlushed").documentFlushed({signal:l}).then(function(){l.aborted||e.$43()}).catch(o("WAFilteredCatch").filteredCatch(o("WAAbortError").AbortError,r("WAWebNoop"))),this.props.updateOpenedChatInfo({chat:a}),o("WAWebUpdateUnreadChatAction").sendSeen({chat:a,threadId:this.props.threadId}),o("WAWebChatAssignmentUtils").canAssignChats()&&a.isAssignedToMe&&a.unopenedByAssignedAgent&&o("WAWebBizChatAssignmentOpenedAction").markChatAsOpened(a,!0),this.$21(),this.$44()},a.getDerivedStateFromProps=function(t,n){var e={lastSelectable:t.selectable,lastChat:t.chat,lastMsgCollection:t.msgCollection,lastFocusCtx:t.focusCtx,lastThreadId:t.threadId};return t.selectable===n.lastSelectable&&(t.chat!==n.lastChat||t.msgCollection!==n.lastMsgCollection||t.focusCtx!==n.lastFocusCtx||t.threadId!==n.lastThreadId)&&(e=babelHelpers.extends({},e,{msgLoadState:o("WAWebConversationMsgsUtils").getMsgLoadState(t.msgCollection)},o("WAWebConversationMsgsUtils").getInitialCursorAndFocusContext(t,n.unreadCount))),e},i.shouldComponentUpdate=function(n,o){if(!r("shallowEqual")(n,this.props))return!0;var t=this.state,a=t.msgLoadState,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=o.msgLoadState,s=babelHelpers.objectWithoutPropertiesLoose(o,u);return!r("shallowEqual")(l,a)||!r("shallowEqual")(s,i)},i.componentDidUpdate=function(t){t.selectable===this.props.selectable&&(t.chat!==this.props.chat||t.msgCollection!==this.props.msgCollection||t.focusCtx!==this.props.focusCtx)&&(this.$8&&this.$8.controller.abort(),this.$42(this.props)),t.chat!==this.props.chat&&(this.$26(),this.$28());var e=this.props.chat;this.$45(t.chat===e),this.props.updateOpenedChatInfo({chat:e}),t.msgCollection!==this.props.msgCollection&&(this.$29({fetchLastMessage:!0}),this.$21()),this.$44()},i.$29=function(t){var e=t.fetchLastMessage;r("WAWebWid").isNewsletter(this.props.chat.id)&&o("WAWebNewsletterRepairMsgHistoryAction").repairNewsletterMsgHistory({chat:this.props.chat,msgCollection:this.props.msgCollection,unmountSignal:this.props.getUnmountSignal(),fetchLastMessage:e})},i.$48=function(t,n){var e=t.scrollTop,r=t.scrollHeight,o=t.clientHeight,a=r-(e+o);return r-(n.offsetTop+n.clientHeight+a)},i.$49=function(t,n,r){var e=n.offsetTop,o=n.clientHeight,a=e+o+r-t.clientHeight;this.$50(t,a)},i.getRenderedMessageCount=function(){return this.getMsgs().length},i.hasMoreMessagesOnIslandAbove=function(){return o("WAWebABProps").getABPropConfigValue("web_conversation_messages_island")?this.$12>0:!1},i.hasMoreMessagesOnIslandBelow=function(){if(!o("WAWebABProps").getABPropConfigValue("web_conversation_messages_island"))return!1;var e=this.getRenderedMessageCount();return e>this.$12+$},i.setScrollBottom=function(t){var e=this.scrollContainer;e&&this.$50(e,e.scrollHeight-t-e.clientHeight)},i.$50=function(t,n){this.$2=Date.now(),t&&(t.scrollTop=n)},i.focus=function(){var e,t=(e=this.state.focusCtx)==null||(e=e.msg)==null?void 0:e.id.toString();if(t!=null){var n,r,o=(n=this.$17.current)==null?void 0:n.getMsgWrapperRef(t);o==null||(r=o.getContainerElement())==null||r.focus()}},i.$43=function(){var e;(e=this.$16.current)==null||e.setVisibility(!0),this.$24.debounce(k)},i.$57=function(){var e=this.scrollContainer;if(!e)return!1;var t=o("WAWebABProps").getABPropConfigValue("web_conversation_messages_island")?3:1;return e.scrollTop+o("WAWebFrontendConstants").SCROLL_FUDGE*t>e.scrollHeight-e.clientHeight},i.getMsgs=function(t){var e=this;t===void 0&&(t=!1);var n=this.props,r=n.focusCtx,a=n.msgCollection,i=n.threadId,l=this.state,s=l.cursor,u=l.msgLoadState;if(r&&u.isLoadingAroundMsgs)return[];var c=new(o("WAWebChatMsgsCollection")).ChatMsgsCollection;c.set(a.filter(function(e){var t=o("WAWebViewModeUtils").isViewModeVisibleInSurface(o("WAWebViewMode.flow").ViewModeSurface.CHAT,e.viewMode);return t?i!=null?o("WAWebThreadMsgUtils").isMsgInThread(e,i):!0:!1}));var d=c.toArray().slice(s.getStart(c),s.getEnd(c)).map(function(e){return e.safe()}).filter(function(t){var n;return o("WAWebGetBrazilnteractiveActions").shouldHideOffsiteCardPayConfirmation(t)||t.type===o("WAWebMsgType").MSG_TYPE.GP2&&t.subtype==="create"&&!o("WAWebUserPrefsMeUser").isMeAccount((n=e.props.chat.groupMetadata)==null?void 0:n.owner)?!1:!t.pendingDeleteForMe});return o("WAWebNonMessageDataRequestPlaceholderMessageResendUtils").handlePlaceholderMsgsSeen(d,t),t&&o("WAWebABProps").getABPropConfigValue("web_conversation_messages_island")&&(d=this.$60(d)),d},i.$60=function(t){var e=this.state.cursor.before+this.state.cursor.after;if(t.length<=$)return this.$12=0,this.$13=e,t;o("WALogger").LOG(p||(p=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMsgs][applyMessagesIsland] msgs len = ",""])),t.length);var n=Math.max(e-this.$13,x),r;if(this.$14)r=Math.max(0,this.$12-n),o("WALogger").LOG(_||(_=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMsgs][applyMessagesIsland] setting new start up ",""])),r);else{var a=Math.max(0,t.length-$);r=Math.min(a,this.$12+n),o("WALogger").LOG(f||(f=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMsgs][applyMessagesIsland] setting new start down ",""])),r)}return this.$12=Math.max(0,Math.min(r,t.length-$)),o("WALogger").LOG(g||(g=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMsgs][applyMessagesIsland] setting currentIslandStart ",""])),this.$12),this.$13=e,t.slice(this.$12,this.$12+$)},i.$61=function(t){if(o("WAWebCongratulationsAnimationsGatingUtils").isCongratulationsAnimationsEnabled()){var e,n=o("WAWebFrontendMsgGetters").getChat(t),r=o("WAWebFrontendMsgGetters").getCelebrationAnimationCandidate(t);if(r==null||o("WAWebContactGetters").getIsMe(n.contact))return;var a=n.animationCandidateData!=null?t.t>((e=n.animationCandidateData)==null?void 0:e.msgTimestampSeconds):t.t>n.celebrationAnimationLastPlayed;a&&n.setAnimationCandidateData({animationType:r,msgTimestampSeconds:t.t})}},i.$45=function(t){var e=this.$17.current;if(!e){this.$3.clear();return}for(var a=[],i=e.props.msgs,l=new Map,s={},u=0,c=i.length-1;uC+I?c=S-1:u=S}else u=-1;if(this.$20.onOrBefore(0,{dateMarkerIdx:u,silent:t}),this.$7=u,this.pauseHiddenGifs(this.$3,l),this.$3=l,this.$4=a,n("cr:12474")==null||n("cr:12474").setCenterVisibleMsgId(a),o("WAWebChatGetters").getIsGroup(this.props.chat)&&this.$62(),this.props.updateOpenedChatInfo({renderedMsgsInfo:s,visibleMsgOrder:a,clientHeight:this.scrollContainer?this.scrollContainer.clientHeight:0}),o("WAWebChatGetters").getIsGroup(this.props.chat)){var E,k;(E=(k=this.props).updateCanShowSpamPanel)==null||E.call(k,!this.checkIfGroupNotificationContextCardDisplayed())}}},i.getMsgComponent=function(t){var e=this.$17.current;if(e)return e.getMsgComponentRef(t.toString())},i.pauseHiddenGifs=function(t,n){var e=this;t.forEach(function(t,r){if(!n.has(r)){var o=e.props.msgCollection.get(r);if((o==null?void 0:o.isGif)===!0){var a=e.$17.current,i=a==null?void 0:a.getMsgComponentRef(r);(i==null?void 0:i.pause)!=null&&i.pause()}}})},i.$25=function(t,n){var e=t,r=n,a=this.props,i=a.chat,l=a.msgCollection,s=this.state.cursor;if(!(!(i.isDirty()&&o("WAWebConversationMsgsUtils").isMostRecentCMC(this.props)&&s.getEnd(l)>=l.length)&&!i.hasUnreadEdit())&&(typeof r=="undefined"&&(r=document.hasFocus()),!!r&&(typeof e=="undefined"&&(e=this.$57()),!!e)))return o("WAWebUpdateUnreadChatAction").sendSeenDebounced({chat:i,threadId:this.props.threadId}),!0},i.checkIfGroupNotificationContextCardDisplayed=function(){try{var e;return this.$18.current!=null&&((e=this.$17.current)==null?void 0:e.getMsgVisibility(this.$18.current).visibility)===o("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE}catch(e){return o("WALogger").WARN(y||(y=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMsgs] Error while checking if group notification context card is displayed: ",""])),e).sendLogs("group-notification-context-card-visibility-check-error"),!1}},i.render=function(){var e=this.props,t=e.bottomBanners,n=e.chat,a=e.msgCollection,i=e.onMessageSelect,l=e.selectable,s=e.threadId,u=this.state,c=u.focusCtx,d=u.msgLoadState,m=u.unreadMentionCount,p=!!c,_=this.getMsgs(!0),f=_.length>0&&o("WAWebMsgGetters").getGroupHistoryBundleMessageKey(_[0])!=null,g=R.jsx(r("WAWebMessageList.react"),{ref:this.$17,getScrollContainer:this.$59,chat:n,unreadCount:this.state.unreadCount,selectable:l,onMessageSelect:i,msgs:_,focusedMsgCtx:c,selectedMessages:this.props.selectedMessages,isMsgVisible:this.isMsgVisible,getSequentialMsg:this.getSequentialMsg,isLoadingEarlierMsgs:d.isLoadingEarlierMsgs,isNearBottom:this.state.isNearBottom}),h,y,C;p&&d.isLoadingAroundMsgs?h=R.jsx(r("WAWebConversationLoadMoreMessages.react"),{direction:"around",isMostRecentCMC:o("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),loadMoreMsgs:r("WAWebNoop"),isLoadingEarlierMsgs:d.isLoadingEarlierMsgs,isLoadingRecentMsgs:d.isLoadingRecentMsgs,isLoadingAroundMsgs:d.isLoadingAroundMsgs,isRepairingMsgHistory:d.isRepairingMsgHistory,threadId:s}):((this.state.cursor.getStart(a)>0||!d.noEarlierMsgs||n.endOfHistoryTransferType!=null&&o("WAWebHistorySyncUtils").primaryHasMoreMessagesReadyToLoad(n.endOfHistoryTransferType)||o("WAWebConversationMsgsUtils").noEarlierMsgStateIsIncorrect(n,o("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),d))&&(y=R.jsx(r("WAWebConversationLoadMoreMessages.react"),{direction:"earlier",isMostRecentCMC:o("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),loadMoreMsgs:this.loadEarlierMsgs,isLoadingEarlierMsgs:d.isLoadingEarlierMsgs,isLoadingRecentMsgs:d.isLoadingRecentMsgs,isLoadingAroundMsgs:d.isLoadingAroundMsgs,mdHistorySyncTransferState:n.endOfHistoryTransferType,isRepairingMsgHistory:d.isRepairingMsgHistory,chatId:n.id,threadId:s})),(this.state.cursor.getEnd(a)1||r1||o",children:d.jsx(r("WAWebConversationBanner.react"),{ref:b,xstyle:[o("WAWebUISpacing").uiPadding.horiz16,o("WAWebUISpacing").uiPadding.vert8,h.banner,a&&o("WDSHoverStateStyles").WDSHoverStateStyles.genericHoverPersistent],onClick:S,onHoverChange:i,onClose:R,children:d.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",xstyle:h.row,children:[d.jsx(r("WAWebFlexItem.react"),{padding:8,shrink:0,children:d.jsx(o("WAWebIcOpenInNewIcon.react").IcOpenInNewIcon,{width:24,height:24,iconXstyle:h.icon})}),d.jsx(r("WAWebFlexItem.react"),{grow:1,children:d.jsx(o("WAWebText.react").WAWebTextSectionTitle,{color:"wdsContentDeemphasized",children:s._(/*BTDS*/"En el sitio web de Meta AI puedes organizar tus chats con Meta AI por tema, crear documentos impulsados por la IA y m\u00e1s. {=m2}",[s._implicitParam("=m2",d.jsx(o("WAWebExternalLink.react").ExternalLink,{href:v,xstyle:a&&h.underline,children:s._(/*BTDS*/"Probar")}))])})})]})})})}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=o("WAWebUseBotProfileValues").useOptionalBotProfileValues(e.id,[o("WAWebBotProfileGetters").getIsDefault]),n=t[0],a=r("useWAWebNux")(o("WAWebNux").NUX.META_AI_CTA_BANNER),i=a[0];return n===!0&&i&&o("WAWebBotGating").isAiChatPersistentMetaAIBannerEnabled()}l.MetaAICTABanner=C,l.useMetaAICTABanner=b}),226); __d("useWAWebNewsletterGeosuspendedCountries",["Promise","WAWebCountriesUtils","asyncToGeneratorRuntime","react","useWAWebEventTargetValue","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=u.useEffect,d=u.useState;function m(t){var a=d(null),i=a[0],l=a[1],s=o("useWAWebModelValues").useModelValues(t,["newsletterMetadata"]),u=o("useWAWebModelValues").useOptionalModelValues(s.newsletterMetadata,["geosuspendedCountries"]),m=r("useWAWebEventTargetValue")(u==null?void 0:u.geosuspendedCountries,["add","remove","reset","change"],function(){return u==null?void 0:u.geosuspendedCountries.toArray()});return c(function(){function t(){return r.apply(this,arguments)}function r(){return r=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(m!=null){var t=yield(e||(e=n("Promise"))).all(m.map((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t;return{countryCode:e.id,countryName:(t=yield o("WAWebCountriesUtils").getCountryNameFromCountryCode(e.id))!=null?t:""}});return function(t){return e.apply(this,arguments)}})()));l(t)}}),r.apply(this,arguments)}t()},[m]),i}l.useNewsletterGeosuspendedCountries=m}),98); __d("useWAWebNewsletterHasProfilePictureDeletionAlerts",["useWAWebEventTargetValue","useWAWebModelValues"],(function(t,n,r,o,a,i,l){function e(e){var t=o("useWAWebModelValues").useModelValues(e,["newsletterMetadata"]),n=r("useWAWebEventTargetValue")(t.newsletterMetadata,["change:hasProfilePictureDeletionAlerts"],function(){var e;return((e=t.newsletterMetadata)==null?void 0:e.hasProfilePictureDeletionAlerts)===!0});return n}l.useWAWebNewsletterHasProfilePictureDeletionAlerts=e}),98); __d("useWAWebNewsletterMessageDeliveryUpdates",["useWAWebEventTargetValue","useWAWebModelValues"],(function(t,n,r,o,a,i,l){function e(e){var t=o("useWAWebModelValues").useModelValues(e,["newsletterMetadata"]),n=o("useWAWebModelValues").useOptionalModelValues(t.newsletterMetadata,["messageDeliveryUpdates"]),a=r("useWAWebEventTargetValue")(n==null?void 0:n.messageDeliveryUpdates,["add","remove","reset","change"],function(){return n==null?void 0:n.messageDeliveryUpdates.toArray()});return a}l.useNewsletterMessageDeliveryUpdates=e}),98); __d("WAWebNewsletterChannelAlertsBanner.react",["fbt","WAWebConversationBanner.react","WAWebDrawerManager","WAWebEnforcementActionLogging","WAWebFlex.react","WAWebFlexItem.react","WAWebKeyboardTabUtils","WAWebNewsletterEnforcementAlertFlowLoadable","WAWebNewsletterMembershipUtil","WAWebNux","WAWebSvgComponentBase","WAWebText.react","WAWebUISpacing","WAWebUimUie.react","WAWebWamEnumInteractionEntryPoint","WAWebWamEnumInteractionSurface","WAWebWarningIcon.react","react","useWAWebModelValues","useWAWebNewsletterGeosuspendedCountries","useWAWebNewsletterHasProfilePictureDeletionAlerts","useWAWebNewsletterIsSuspended","useWAWebNewsletterMessageDeliveryUpdates","useWAWebNux","useWAWebUIM"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c=u||(u=r("react")),d={banner:{backgroundColor:"x1280gxy",$$css:!0}};function m(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.newsletter,l=a.onClose,u=r("useWAWebUIM")(),m=function(){r("WAWebEnforcementActionLogging").isSessionStarted()||r("WAWebEnforcementActionLogging").startEnforcementSession(o("WAWebWamEnumInteractionEntryPoint").INTERACTION_ENTRY_POINT.ALERT_BANNER,i.id.toString(),o("WAWebWamEnumInteractionSurface").INTERACTION_SURFACE.NEWSLETTER_CONVERSATION_SCREEN),r("WAWebEnforcementActionLogging").logAlertBannerDismissClick(),l()},p=function(){r("WAWebEnforcementActionLogging").startEnforcementSession(o("WAWebWamEnumInteractionEntryPoint").INTERACTION_ENTRY_POINT.ALERT_BANNER,i.id.toString(),o("WAWebWamEnumInteractionSurface").INTERACTION_SURFACE.NEWSLETTER_CONVERSATION_SCREEN),r("WAWebEnforcementActionLogging").logChannelAlertsClick(),o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebNewsletterEnforcementAlertFlowLoadable").WAWebNewsletterEnforcementAlertFlowLoadable,{chat:i,onClose:o("WAWebDrawerManager").closeDrawerRight,onBack:o("WAWebDrawerManager").closeDrawerRight}),{transition:"slide-left",uim:u,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})};return c.jsx(o("WAWebUimUie.react").UIE,{displayName:"NewsletterChannelAlertsBanner",escapable:!0,children:c.jsx(r("WAWebConversationBanner.react"),{ref:n,xstyle:d.banner,onClick:p,onClose:m,children:c.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",children:[c.jsx(r("WAWebFlexItem.react"),{xstyle:o("WAWebUISpacing").uiPadding.end20,children:c.jsx(o("WAWebWarningIcon.react").WarningIcon,{width:20,height:20,DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.CRITICAL})}),c.jsx(r("WAWebFlexItem.react"),{children:c.jsx(o("WAWebText.react").WAWebTextSectionTitle,{color:"primary",children:s._(/*BTDS*/"Alertas del canal")})})]})})})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t,n,a=o("useWAWebModelValues").useModelValues(e,["id","newsletterMetadata"]),i=o("useWAWebModelValues").useOptionalModelValues(a.newsletterMetadata,["membershipType"]),l=a.id,s=(t=o("useWAWebNewsletterMessageDeliveryUpdates").useNewsletterMessageDeliveryUpdates(a))!=null?t:[],u=(n=o("useWAWebNewsletterGeosuspendedCountries").useNewsletterGeosuspendedCountries(a))!=null?n:[],c=o("useWAWebNewsletterIsSuspended").useNewsletterIsSuspended(a),d=o("WAWebNux").getNewsletterAlertsBannerNuxKey(l.toString()),m=r("useWAWebNux")(d),p=m[0],_=m[1],f=s.length>0,g=u.length>0,h=o("useWAWebNewsletterHasProfilePictureDeletionAlerts").useWAWebNewsletterHasProfilePictureDeletionAlerts(e),y=p&&o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(i)&&(f||g||c||h);return[y,_]}l.NewsletterChannelAlertsBanner=m,l.useNewsletterChannelAlertsBanner=p}),226); __d("WAWebNewsletterNotificationSettingsBanner.react",["fbt","WAWebClickableLink.react","WAWebConversationBanner.react","WAWebDrawerManager","WAWebFlex.react","WAWebInfoFlowLoadable","WAWebInfoFlowStep","WAWebKeyboardTabUtils","WAWebUimUie.react","WAWebUnmuteNotificationsRefreshedIcon.react","WDSText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useCallback,m={banner:{backgroundColor:"x1h3rtpe",$$css:!0},icon:{color:"xhslqc4",marginInlineEnd:"xqf2s3x",$$css:!0}};function p(e){var t=e.chat,n=e.onClose,a=e.ref,i=d(function(){n(),o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:t,initialStep:o("WAWebInfoFlowStep").InfoFlowStep.Notifications}),{transition:"slide-left",focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},[t,n]);return c.jsx(o("WAWebUimUie.react").UIE,{displayName:"NewsletterNotificationSettingsBanner",escapable:!0,children:c.jsx(r("WAWebConversationBanner.react"),{ref:a,xstyle:m.banner,onClose:n,children:c.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",children:[c.jsx(o("WAWebUnmuteNotificationsRefreshedIcon.react").UnmuteNotificationsRefreshedIcon,{iconXstyle:m.icon}),c.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDefault",children:s._(/*BTDS*/"Nuevos ajustes de notificaciones disponibles")}),"\xA0",c.jsx(r("WAWebClickableLink.react"),{onClick:i,children:s._(/*BTDS*/"Ver configuraci\u00f3n")})]})})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebDashes.react",["fbt","WAWebFlex.react","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={dashContainer:{height:"x10w6t97",width:"xfo62xy",$$css:!0},dash:{height:"x5yr21d",width:"xfo62xy",borderStartStartRadius:"xr9e8f9",borderStartEndRadius:"x1e4oeot",borderEndEndRadius:"x1ui04y5",borderEndStartRadius:"x6en5u8",backgroundColor:"xs7vtfe",$$css:!0},active:{backgroundColor:"x3l9nec",$$css:!0}};function m(e){var t=e.active;return c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props([d.dash,o("WAWebUISpacing").uiMargin.top2,t&&d.active])))}m.displayName=m.name+" [from "+i.id+"]";function p(e){for(var t=e.activeIndex,n=e.count,a=[],i=0;i0?l.length-1:null}),d=c[0],m=c[1],p=g(!1),C=p[0],b=p[1];d!=null&&d>l.length-1&&l.length>0&&m(l.length-1);var v=d==null?null:l[d];o("useWAWebListener").useListener(o("WAWebPinInChatCollection").PinInChatCollection,["add","remove","change"],function(){l.length>0&&m(l.length-1)});var S=f(function(){if(l.length>0&&v!=null){var e=v==null?void 0:v.parentMsgKey;if(e)return o("WAWebMsgCollection").MsgCollection.get(e)}},[l,v]),R=function(){var e=l.length,t=e-1-(d!=null?d:0);o("WAWebPinInChatMetricUtils").logPinInChatTapOnBanner({msg:S,chat:i,pin:v,pinCount:e,pinIndex:t})},L=function(){l.length>0&&m(function(e){return e==null?l.length-1:(e+1)%l.length})},E=function(){if(v!=null){var e,t=v.parentMsgKey,n=o("WAWebChatMessageSearch").getSearchContext(i,(e=S==null?void 0:S.id)!=null?e:t,null);n&&(n.slideToMsg=!0),o("WAWebCmd").Cmd.openChatAt({chat:i,msgContext:n,onSuccess:{mediaMsgToOpenInMediaViewer:S}})}},k=function(){if(L(),v!=null){var t=o("WAWebMsgCollection").MsgCollection.get(v.parentMsgKey);t&&(new(o("WAWebPinnedMessagesUserJourneyLogger")).PinnedMessagesUserJourneyLogger(i).pinBannerClickUnpin(t,v),o("WAWebSendPinMessageAction").sendPinInChatMsg(t,o("WAWebProtobufsE2E.pb").Message$PinInChatMessage$Type.UNPIN_FOR_ALL).catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Error while unpinning a message: ",""])),t)}))}},I=[{content:s._(/*BTDS*/"Desfijar"),onClick:k,icon:_.jsx(o("WAWebUnpinRefreshedIcon.react").UnpinRefreshedIcon,{})},{content:s._(/*BTDS*/"Ir al mensaje"),onClick:E,icon:_.jsx(r("WAWebArrowForwardRefreshedIcon"),{})}],T=function(t){t.stopPropagation(),E(),L(),R()},D=o("WAWebPinMsgGatingUtils").isPinnedMessagesM2Enabled()&&l.length>1,x=_.jsx(r("WAWebFlexItem.react"),{xstyle:h.dashContainer,children:D?_.jsx(r("WAWebDashes.react"),{count:l.length,activeIndex:d!=null?d:0}):null});return v==null?null:_.jsx(o("WAWebUimUie.react").UIE,{displayName:"PinnedMessagesBanner",children:_.jsx(r("WAWebConversationBanner.react"),{ref:n,xstyle:[h.banner,h.bannerUiRefresh,o("WAWebUISpacing").uiPadding.start16,o("WAWebUISpacing").uiPadding.vert0,o("WAWebUISpacing").uiPadding.end0,C&&o("WDSHoverStateStyles").WDSHoverStateStyles.genericHoverPersistent],onClick:T,onHoverChange:b,menuItems:I,children:_.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",grow:1,children:[_.jsx(r("WAWebFlexItem.react"),{"aria-label":s._(/*BTDS*/"Mensaje fijado")}),x,_.jsx(r("WAWebFlexItem.react"),{xstyle:h.clearMinWidth,align:"center",justify:"center",children:_.jsx(y,{})}),_.jsx(r("WAWebFlexItem.react"),{xstyle:[o("WAWebUISpacing").uiPadding.start14,h.bannerBody],children:_.jsx(r("WAWebPinnedMessagesBannerBody.react"),{pinInChat:v})})]})})})}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=r("useWAWebPinnedMessages")(e);return t.length>0}l.PinnedMessagesBanner=C,l.useWAWebPinnedMessagesBanner=b}),226); __d("WAWebReportToAdminNewReportBanner.react",["fbt","WATimeUtils","WAWebABProps","WAWebConversationBanner.react","WAWebDrawerManager","WAWebFlex.react","WAWebFlexItem.react","WAWebKeyboardTabUtils","WAWebMessageReportRefreshedIcon.react","WAWebRevokeMsgConstants","WAWebSendForAdminReviewUtils","WAWebSentForAdminReviewFlow.react","WAWebStateUtils","WAWebText.react","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUimUie.react","react","useWAWebModelValues","useWAWebUIM"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c=u||(u=r("react")),d={banner:{backgroundColor:"x1280gxy",$$css:!0},iconRefreshed:{color:"xhslqc4",$$css:!0}};function m(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.chat,l=a.onClose,u=r("useWAWebUIM")(),m=function(){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(r("WAWebSentForAdminReviewFlow.react"),{chat:o("WAWebStateUtils").unproxy(i),ref:n,onClose:o("WAWebDrawerManager").closeDrawerRight},"rta-"+i.id.toString()),{transition:"slide-left",uim:u,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE}),l()};return c.jsx(o("WAWebUimUie.react").UIE,{displayName:"ReportToAdminNewReportBanner",escapable:!0,children:c.jsx(r("WAWebConversationBanner.react"),{ref:n,xstyle:d.banner,onClick:m,onClose:l,children:c.jsxs(o("WAWebFlex.react").FlexRow,{xstyle:o("WAWebUISpacing").uiMargin.top6,align:"center",children:[c.jsx(r("WAWebFlexItem.react"),{xstyle:o("WAWebUISpacing").uiPadding.end20,children:c.jsx(o("WAWebMessageReportRefreshedIcon.react").MessageReportRefreshedIcon,{iconXstyle:d.iconRefreshed})}),c.jsx(r("WAWebFlexItem.react"),{xstyle:o("WAWebUISpacing").uiMargin.bottom6,children:c.jsx(o("WAWebText.react").WAWebTextMuted,{as:"span",children:s._(/*BTDS*/"Se enviaron {=m0} para revisi\u00f3n de un administrador.",[s._implicitParam("=m0",c.jsx(o("WAWebText_DONOTUSE.react").TextSpan,{color:"accent",weight:"semibold",children:s._(/*BTDS*/"mensajes nuevos")}))])})})]})})})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=o("useWAWebModelValues").useModelValues(e,["groupMetadata"]),n=o("useWAWebModelValues").useOptionalModelValues(t.groupMetadata,["lastReportToAdminTimestamp"]),r=n==null?void 0:n.lastReportToAdminTimestamp;if(r==null)return!1;var a=o("WAWebRevokeMsgConstants").REVOKE_WINDOW+o("WAWebRevokeMsgConstants").REVOKE_WINDOW_RECEIVER_MARGIN,i=o("WATimeUtils").unixTime()-r<=a;return i}function _(e){var t=o("useWAWebModelValues").useOptionalModelValues(e.groupMetadata,["reportToAdminMode"]);return o("WAWebABProps").getABPropConfigValue("report_to_admin_kill_switch")&&(t==null?void 0:t.reportToAdminMode)===!0}function f(e){var t=o("useWAWebModelValues").useModelValues(e,["id","groupMetadata"]),n=p(t),r=_(t)&&n;return[r,function(){o("WAWebSendForAdminReviewUtils").clearLastReportTimestamp(t)}]}l.ReportToAdminNewReportBanner=m,l.useReportToAdminNewReportBanner=f}),226); __d("WAWebSimilarNewslettersUnitsLoadable.react",["JSResourceForInteraction","WAWebLazyLoadLoading.react","WAWebLazyLoadedRetriable","WAWebLoadable","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebSimilarNewslettersUnits.react").__setRef("WAWebSimilarNewslettersUnitsLoadable.react").load();return e.SimilarNewslettersConversationBanner}),"SimilarNewslettersConversationBanner"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLazyLoadLoading.react"),{error:!!t.error})}});l.SimilarNewslettersConversationBannerLoadable=c}),98); __d("WAWebSubgroupSuggestionsBanner.react",["fbt","WAWebCmd","WAWebConversationBanner.react","WAWebFlex.react","WAWebFlexItem.react","WAWebGroupType","WAWebNux","WAWebSubgroupsNuxIcon.react","WAWebText.react","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUimUie.react","react","useWAWebEventTargetValue","useWAWebNux"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c=u||(u=r("react")),d={banner:{backgroundColor:"x1280gxy",$$css:!0},icon:{color:"x11askks",$$css:!0}};function m(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i,l=a.chat,u=a.onClose,m=a.subgroupSuggestionsCount,p=function(){var e,t=(e=l.groupMetadata)==null?void 0:e.parentGroup;t&&(o("WAWebCmd").Cmd.openCommunityPendingGroupsDrawer(t),u())};return c.jsx(o("WAWebUimUie.react").UIE,{displayName:"SubgroupSuggestionsBanner",escapable:!0,children:c.jsx(r("WAWebConversationBanner.react"),{ref:n,xstyle:d.banner,onClick:p,onClose:u,children:c.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",children:[c.jsx(r("WAWebFlexItem.react"),{xstyle:o("WAWebUISpacing").uiPadding.end18,children:c.jsx(o("WAWebSubgroupsNuxIcon.react").SubgroupsNuxIcon,{xstyle:d.icon,height:20})}),c.jsx(r("WAWebFlexItem.react"),{children:c.jsx(o("WAWebText.react").WAWebTextMuted,{as:"span",children:(i=s._plural(m,"group_suggestions"),s._(/*BTDS*/"_j{\"*\":\"{=m0} {group_suggestions} sugerencias de grupos\",\"4\":\"{=m0} {group_suggestions} sugerencia de grupo\",\"_1\":\"{=m0} 1 sugerencia de grupo\"}",[i,s._implicitParam("=m0",c.jsx(o("WAWebText_DONOTUSE.react").TextSpan,{color:"accent",weight:"semibold",children:s._(/*BTDS*/"_j{\"*\":\"Revisa\"}",[i])}))]))})})]})})})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t,n=r("useWAWebEventTargetValue")(e==null||(t=e.groupMetadata)==null?void 0:t.subgroupSuggestions,["add","remove","reset"],function(){var t,n;return(t=e==null||(n=e.groupMetadata)==null?void 0:n.getSubgroupSuggestions().length)!=null?t:0});return n}function _(e){var t,n,a,i=(t=e.groupMetadata)==null?void 0:t.getParentGroupChat(),l=p(i),s=i!=null&&i.id?i.id.toString():"",u=o("WAWebNux").getSubgroupSuggestionsBannerNuxKey(s),c=r("useWAWebEventTargetValue")((n=e.groupMetadata)==null?void 0:n.participants,["bulk_add","bulk_remove","reset","change:isAdmin"],function(){var t;return!!((t=e.groupMetadata)!=null&&t.participants.iAmAdmin())}),d=r("useWAWebNux")(u),m=d[0],_=d[1],f=((a=e.groupMetadata)==null?void 0:a.groupType)===o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP&&!!i&&l>0&&c&&m;return[f,_,l]}l.SubgroupSuggestionsBanner=m,l.useSubgroupSuggestionsBanner=_}),226); __d("useWAWebCagEventsAwarenessBanner.react",["WATimeUtils","WAWebChatGroupUtils","WAWebNux","WAWebUserPrefsEvents","useWAWebIAmCommunityAdmin","useWAWebNux"],(function(t,n,r,o,a,i,l){function e(e){var t,n=r("useWAWebNux")(o("WAWebNux").NUX.CAG_EVENTS_AWARENESS_BANNER),a=n[0],i=n[1],l=n[2],s=r("useWAWebIAmCommunityAdmin")((t=e.groupMetadata)==null||(t=t.getParentGroupChat())==null?void 0:t.groupMetadata),u=a&&s&&o("WAWebChatGroupUtils").isCommunityAnnouncementGroup(e);if(u){var c=o("WAWebUserPrefsEvents").getCagEventsAwarenessBannerFirstSeenTimestamp();c!=null&&(u=o("WATimeUtils").happenedWithin(c,o("WATimeUtils").WEEK_SECONDS))}return[u,l]}l.default=e}),98); __d("useWAWebConversationPanelGroupDescription",["WAWebChatGetters","WAWebFrontendChatGetters","WAWebGroupGatingUtils","WAWebMsgType","WAWebUserPrefsGeneral","react"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useState;function u(e){var t=s(function(){return!o("WAWebChatGetters").getIsGroup(e)||o("WAWebGroupGatingUtils").getGroupDescriptionLength()<=0||o("WAWebUserPrefsGeneral").getSeenGroupDesc(e.id)?!1:(o("WAWebUserPrefsGeneral").setSeenGroupDesc(e.id),e.unreadCount===0?!e.msgs.some(function(e){return e.type!==o("WAWebMsgType").MSG_TYPE.E2E_NOTIFICATION&&e.type!==o("WAWebMsgType").MSG_TYPE.GP2}):!o("WAWebFrontendChatGetters").getShouldShowUnreadDivider(e))}),n=t[0],r=t[1],a=function(){r(!1)};return[n,a]}l.default=u}),98); __d("useWAWebNewsletterNotificationSettingsBanner",["WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNux","useWAWebModelValues","useWAWebNux"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=o("useWAWebModelValues").useOptionalModelValues(e.newsletterMetadata,["membershipType"]),n=r("useWAWebNux")(o("WAWebNux").NUX.NEWSLETTER_ADMIN_NOTIFICATION_SETTINGS_BANNER),a=n[0],i=n[2];return[t!=null&&o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(t)&&a&&o("WAWebNewsletterGatingUtils").isNewsletterAdminNotificationsEnabled(e.newsletterMetadata),i]}l.useNewsletterNotificationSettingsBanner=e}),98); __d("useWAWebSimilarNewslettersConversationBanner",["WAWebNewsletterGatingUtils","WAWebWamEnumChannelEventSurface","useWAWebEventTargetValue","useWAWebModelValues","useWAWebSimilarNewsletters"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=o("useWAWebSimilarNewsletters").useSimilarNewsletters(e),n=t.hasEnoughNewsletters,a=o("useWAWebModelValues").useOptionalModelValues(o("useWAWebModelValues").useModelValues(e,["newsletterMetadata"]).newsletterMetadata,["recentlyFollowedFrom"]),i=r("useWAWebEventTargetValue")(a,["recentlyFollowedFrom"],function(){return(a==null?void 0:a.recentlyFollowedFrom)===o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD});return n&&i&&o("WAWebNewsletterGatingUtils").isSimilarNewsletterInThreadEnabled()}l.useSimilarNewslettersConversationBanner=e}),98); __d("WAWebConversationPanelBanner.react",["$InternalEnum","WAWebCagEventsAwarenessBanner.react","WAWebChangeNumberNotificationBanner.react","WAWebChatGetters","WAWebConversationPanelStyleUtils","WAWebGroupDescriptionBanner.react","WAWebMembershipApprovalRequestsBanner.react","WAWebMetaAICTABanner.react","WAWebNewsletterChannelAlertsBanner.react","WAWebNewsletterNotificationSettingsBanner.react","WAWebPinnedMessagesBanner.react","WAWebReportToAdminNewReportBanner.react","WAWebSimilarNewslettersUnitsLoadable.react","WAWebSubgroupSuggestionsBanner.react","WAWebVelocityTransitionGroup","react","stylex","useWAWebCagEventsAwarenessBanner.react","useWAWebConversationPanelGroupDescription","useWAWebNewsletterNotificationSettingsBanner","useWAWebSimilarNewslettersConversationBanner"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={topBorder:{borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xx42vgk",backgroundColor:"x1h3rtpe",$$css:!0},banner:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"x120ee7l",$$css:!0},absoluteBanner:{position:"x10l6tqk",top:"x1imwcls",insetInlineStart:"x1o0tod",insetInlineEnd:"xtijo5x",left:null,right:null,borderInlineStartColor:"x1vb5itz",borderInlineStartStyle:"x1t7ytsu",borderInlineStartWidth:"xpilrb4",$$css:!0},material:{borderBottomWidth:"x1qhh985",$$css:!0}},d=n("$InternalEnum")({CagEventsAwareness:1,MembershipApprovalRequests:2,ReportToAdminNewReport:3,SubgroupSuggestions:4,GroupDescription:5,PinnedMessages:6,NewsletterChannelAlerts:7,MetaAICTABanner:8,NewsletterNotificationSettings:9});function m(e){var t,n=e.chat,a=e.groupMetadata,i=r("useWAWebConversationPanelGroupDescription")(n),l=i[0],m=i[1],p=o("WAWebMembershipApprovalRequestsBanner.react").useMembershipApprovalRequestsBanner(n),_=p[0],f=p[1],g=o("WAWebReportToAdminNewReportBanner.react").useReportToAdminNewReportBanner(n),h=g[0],y=g[1],C=o("WAWebPinnedMessagesBanner.react").useWAWebPinnedMessagesBanner(n),b=o("WAWebNewsletterChannelAlertsBanner.react").useNewsletterChannelAlertsBanner(n),v=b[0],S=b[1],R=o("WAWebSubgroupSuggestionsBanner.react").useSubgroupSuggestionsBanner(n),L=R[0],E=R[1],k=R[2],I=r("useWAWebCagEventsAwarenessBanner.react")(n),T=I[0],D=I[1],x=o("WAWebMetaAICTABanner.react").useMetaAICTABanner(n),$=o("WAWebChangeNumberNotificationBanner.react").useChangeNumberNotificationBanner(n),P=o("useWAWebSimilarNewslettersConversationBanner").useSimilarNewslettersConversationBanner(n),N=o("useWAWebNewsletterNotificationSettingsBanner").useNewsletterNotificationSettingsBanner(n),M=N[0],w=N[1],A=[{condition:T,component:u.jsx(r("WAWebCagEventsAwarenessBanner.react"),{onClose:D}),priority:d.CagEventsAwareness},{condition:_,component:u.jsx(o("WAWebMembershipApprovalRequestsBanner.react").MembershipApprovalRequestsBanner,{onClose:f,chat:n}),priority:d.MembershipApprovalRequests},{condition:h,component:u.jsx(o("WAWebReportToAdminNewReportBanner.react").ReportToAdminNewReportBanner,{onClose:y,chat:n}),priority:d.ReportToAdminNewReport},{condition:L,component:u.jsx(o("WAWebSubgroupSuggestionsBanner.react").SubgroupSuggestionsBanner,{onClose:E,chat:n,subgroupSuggestionsCount:k}),priority:d.SubgroupSuggestions},{condition:!!(l&&(a!=null&&a.displayedDesc)),component:u.jsx(r("WAWebGroupDescriptionBanner.react"),{onClose:m,chat:n,groupMetadata:a}),priority:d.GroupDescription},{condition:C,component:u.jsx(o("WAWebPinnedMessagesBanner.react").PinnedMessagesBanner,{chat:n}),priority:d.PinnedMessages},{condition:o("WAWebChatGetters").getIsNewsletter(n)&&v,component:u.jsx(o("WAWebNewsletterChannelAlertsBanner.react").NewsletterChannelAlertsBanner,{newsletter:n,onClose:S}),priority:d.NewsletterChannelAlerts},{condition:x,component:u.jsx(o("WAWebMetaAICTABanner.react").MetaAICTABanner,{}),priority:d.MetaAICTABanner},{condition:M,component:u.jsx(r("WAWebNewsletterNotificationSettingsBanner.react"),{chat:n,onClose:w}),priority:d.NewsletterNotificationSettings}],F=(t=A.filter(function(e){return e.condition}).sort(function(e,t){return e.priority-t.priority})[0])==null?void 0:t.component,O=$?u.jsx(o("WAWebChangeNumberNotificationBanner.react").ChangeNumberNotificationBanner,{chat:n,xstyle:F!=null&&c.topBorder}):null,B=o("WAWebChatGetters").getIsNewsletter(n)&&P?u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.banner,r("WAWebConversationPanelStyleUtils").sharedLayer,c.topBorder,c.absoluteBanner,c.material),{children:u.jsx(o("WAWebSimilarNewslettersUnitsLoadable.react").SimilarNewslettersConversationBannerLoadable,{chat:n})})):null;return F==null&&O==null&&B==null?null:u.jsxs(r("WAWebVelocityTransitionGroup"),{transitionName:"butterbar",xstyle:[c.banner,r("WAWebConversationPanelStyleUtils").sharedLayer,c.topBorder,c.material],children:[F,O,B]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebErrorBoundaryInstrumented.react",["WAWebErrorBoundary.react","react"],(function(t,n,r,o,a,i,l){"use strict";var e=["ref"],s=["children"],u,c=u||(u=r("react"));function d(t){var n=t.ref,r=babelHelpers.objectWithoutPropertiesLoose(t,e),a=r.children,i=babelHelpers.objectWithoutPropertiesLoose(r,s);return c.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,babelHelpers.extends({},i,{children:a}))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebHeroInteraction.react",["CometHeroHoldTrigger.react","WAWebErrorBoundaryInstrumented.react","hero-tracing","react","useWAWebCometInteractionTracing"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t=e.children,n=e.description,a=e.enableHoldTrigger,i=a===void 0?!0:a,l=e.pageletName,u=e.policy,c=r("useWAWebCometInteractionTracing")(u);return s.jsx(o("hero-tracing").HeroInteraction,{interactionDesc:n,interactionUUID:c.traceIdState,pageletName:l!=null?l:n,renderTrackedDOMElement:function(o){return s.jsxs(r("WAWebErrorBoundaryInstrumented.react"),{name:"hero-interaction",children:[i&&s.jsx(r("CometHeroHoldTrigger.react"),{description:n,hold:c.interactionIsInFlight}),t(o,c)]})}})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebNewsletterSuspendedConversationPanelBody.react",["fbt","WAWebClickableLink.react","WAWebCommonNewsletterIntegrityStrings","WAWebExternalLink.react","WAWebFaqUrl","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebWrapperSystemBubble.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useState,_={linkColor:{color:"x1bvqhpb",textDecoration:"x1hl2dhg",$$css:!0}};function f(){var e=p(null),t=e[0],a=e[1];if(m(function(){function e(){return t.apply(this,arguments)}function t(){return t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield o("WAWebCommonNewsletterIntegrityStrings").getGeosuspendedInYourCountryString({isPreview:!1});a(e)}),t.apply(this,arguments)}e()},[]),t!=null)return d.jsx(r("WAWebWrapperSystemBubble.react"),{theme:"center",children:d.jsxs(r("WAWebClickableLink.react"),{testid:void 0,onClick:h,xstyle:_.linkColor,children:[d.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{ariaLabel:t,testid:void 0,children:t}),d.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{children:s._(/*BTDS*/"Haz clic para obtener m\u00e1s informaci\u00f3n.")})]})})}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.isAdminOrOwner,n=e.isGeosuspended;return n?d.jsx(f,{}):d.jsxs(r("WAWebWrapperSystemBubble.react"),{theme:"center",children:[d.jsx(o("WAWebText_DONOTUSE.react").TextHeader,{level:"2",size:"16",weight:"bold",xstyle:o("WAWebUISpacing").uiMargin.bottom2,testid:void 0,children:s._(/*BTDS*/"Este canal ya no est\u00e1 disponible")}),d.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{testid:void 0,children:t?s._(/*BTDS*/"Los seguidores no pueden ver el historial del canal, y no es posible compartir nuevas actualizaciones."):s._(/*BTDS*/"No puedes ver el historial del canal, y las nuevas actualizaciones no est\u00e1n disponibles.")})]})}g.displayName=g.name+" [from "+i.id+"]";function h(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getNewsletterGeosuspendFaqUrl())}l.default=g}),226); __d("WAWebSendBotRequestWelcomeAction",["WAJobOrchestratorTypes","WAMemoizeConcurrent","WAWebBotMessageSecret","WAWebBotWelcomeRequestSync","WAWebDBProcessMessage","WAWebMsgDataUtils","WAWebMsgModel","WAWebMsgType","WAWebOrchestratorNonPersistedJob","WAWebSendMsgRecordAction","WAWebSendMsgResultAction","WAWebSyncdCoreApi","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return u({chat:e,signal:new AbortController().signal})}),s.apply(this,arguments)}var u=r("WAMemoizeConcurrent")(function(e){var t=e.chat;return t.id.toString()},(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.chat;return c(t)});return function(t){return e.apply(this,arguments)}})());function c(e){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.id,a=self.crypto.getRandomValues(new Uint8Array(32)),i=yield o("WAWebBotMessageSecret").genBotMsgSecretFromMsgSecret(a),l=babelHelpers.extends({},yield o("WAWebMsgDataUtils").genOutgoingMsgData(e,o("WAWebMsgType").MSG_TYPE.PROTOCOL),{type:o("WAWebMsgType").MSG_TYPE.PROTOCOL,kind:o("WAWebMsgType").MsgKind.Protocol,subtype:"bot_request_welcome",messageSecret:a,botMessageSecret:new Uint8Array(i)}),s=new(o("WAWebMsgModel")).Msg(l);e.hasRequestedWelcomeMsg=!0,yield o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("sendMessage",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebDBProcessMessage").storeMessages([l],t);var e=yield o("WAWebSendMsgRecordAction").sendMsgRecord(s);if(e.messageSendResult===o("WAWebSendMsgResultAction").SendMsgResult.OK){var a=yield r("WAWebBotWelcomeRequestSync").getBotWelcomeRequestSetMutation(t,!0);yield o("WAWebSyncdCoreApi").lockForSync(["chat"],[a],(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var n=e[0];return n.merge(t.toString(),{hasRequestedWelcomeMsg:!0})});return function(t){return e.apply(this,arguments)}})())}return e}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}),d.apply(this,arguments)}l.sendBotRequestWelcome=e}),98); __d("WAWebUseMaybeRequestWelcomeMessage",["WAWebBotGating","WAWebBotTos","WAWebBotTypes","WAWebSendBotRequestWelcomeAction","WAWebTos","WAWebUseBusinessProfile.react","react","useWAWebListener","useWAWebModelValues","useWAWebStableCallback"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useEffect;function u(e){var t,n=o("useWAWebModelValues").useModelValues(e,["hasRequestedWelcomeMsg"]),a=n.hasRequestedWelcomeMsg,i=(t=o("WAWebUseBusinessProfile.react").useBusinessProfile(o("WAWebBotGating").isBizBot1pEnabled()||o("WAWebBotGating").isBizBot3pAvailable()?e.id:null,["isBizBot1p","welcomeMsgProtocolMode"]))!=null?t:{},l=i.isBizBot1p,u=i.welcomeMsgProtocolMode,c=r("useWAWebStableCallback")(function(){var t=u!=null&&u!==o("WAWebBotTypes").BotWelcomeMsgProtocolModeType.NONE;(o("WAWebBotGating").isBizBot1pEnabled()&&l===!0||o("WAWebBotGating").isBizBot3pAvailable()&&t)&&o("WAWebBotTos").hasAcceptedBizBotTos()&&!a&&o("WAWebSendBotRequestWelcomeAction").sendBotRequestWelcome(e)});o("useWAWebListener").useListener(o("WAWebTos").TosManager,"change",c),s(function(){return c()},[l,u,e])}l.useMaybeRequestWelcomeMessage=u}),98); __d("WAWebSetChatOpenedAction",["WAWebDBUpdateChatTable","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t={hasOpened:!0};yield o("WAWebDBUpdateChatTable").updateChatTable(e.id,t),e.set(t)}),s.apply(this,arguments)}l.setChatHasOpened=e}),98); __d("useWAWebChatOpenMetrics",["WAWebFMXGatingUtils","WAWebFMXTrustSignals","WAWebFindCommonGroupsContactAction","WAWebNoop","WAWebPsFmxActionWamEvent","WAWebSetChatOpenedAction","WAWebWamEnumFmxEntryPoint","WAWebWamEnumFmxEvent","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useEffect;function u(e){s(function(){e.hasOpened!==!0&&(o("WAWebSetChatOpenedAction").setChatHasOpened(e).catch(r("WAWebNoop")),self.setTimeout(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=e.msgs.some(function(e){return e.subtype==="contact_info_card"});if(t&&o("WAWebFMXGatingUtils").fmxLoggingEnabled()){var n,r;new(o("WAWebPsFmxActionWamEvent")).PsFmxActionWamEvent({fmxEntryPoint:o("WAWebWamEnumFmxEntryPoint").FMX_ENTRY_POINT.FMX_CARD,fmxEvent:o("WAWebWamEnumFmxEvent").FMX_EVENT.FMX_CARD_VIEWED,countryShown:yield o("WAWebFMXTrustSignals").shouldShowCountryCodeTrustSignal(e.contact),notAContactShown:yield o("WAWebFMXTrustSignals").shouldShowContactTrustSignal(e.contact),commonGroupNum:(n=(r=yield o("WAWebFindCommonGroupsContactAction").findCommonGroups(e.contact))==null?void 0:r.length)!=null?n:0}).commit()}}),1e3))},[])}l.useChatOpenMetrics=u}),98); __d("useWAWebConversationPanelActionListeners",["WAWebConversationPanelActions","useWAWebListener"],(function(t,n,r,o,a,i,l){function e(e){o("useWAWebListener").useListener(o("WAWebConversationPanelActions").ConversationPanelActions,"conversation_panel_focus",e.onFocus)}l.default=e}),98); __d("WAWebGalaxyFlowsDrawerGetFlowDataQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"request"}],t=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"request"}],concreteType:"XWAWhatsAppExtensionsGetFlowDataResponseSuccess",kind:"LinkedField",name:"xwa_extensions_get_flow_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"XWAWhatsAppExtensionsFlowData",kind:"LinkedField",name:"extensions_flow_data",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"flow_id",storageKey:null},{alias:null,args:null,concreteType:"XWAWhatsAppExtensionsObject",kind:"LinkedField",name:"extensions",plural:!1,selections:[{alias:null,args:null,concreteType:"XWAWhatsAppExtensionsFlowDataMetaData",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"flow_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"categories",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"creation_source",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"www_proxy_secret",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"flow_token_signature",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XWAWhatsAppFlowsEndpointPublicKey",kind:"LinkedField",name:"endpoint_public_key",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"signature",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"WAWebGalaxyFlowsDrawerGetFlowDataQuery",selections:t,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebGalaxyFlowsDrawerGetFlowDataQuery",selections:t},params:{id:"32671434985780838",metadata:{},name:"WAWebGalaxyFlowsDrawerGetFlowDataQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("WAWebGalaxyFlowsError",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum").Mirrored(["SANCTIONED","METADATA_EMPTY_RESPONSE","METADATA_INVALID_EXTENSIONS_ID","METADATA_INVALID_PUBLIC_KEY","PUBLIC_KEY_SINGATURE_VERIFICATION_EXCEPTION","MISSING_IDENTITY_KEY","EXTENSIONS_METADATA_GRAPHQL_RESPONSE_ERROR"]),l=(function(e){function t(t){var n;return n=e.call(this)||this,n.name=t,n}return babelHelpers.inheritsLoose(t,e),t})(babelHelpers.wrapNativeSuper(Error));i.WaeGalaxyFlowMetdataErrors=e,i.WaeGalaxyFlowError=l}),66); __d("WAWebGalaxyFlowsIdentityFetcher",["Promise","WAWebGetIdentityKeysJob","WAWebLidMigrationUtils","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){var e,s=3e4,u=3,c=1e4,d=(function(){function t(){var e=this;this.$2=new Map,this.$3=null,this.$1=new Map,this.$3=window.setInterval(function(){e.$4()},2*s)}var a=t.prototype;return a.fetchIdentityFor=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n,r,a=e.isLid()?(n=(r=o("WAWebLidMigrationUtils").toPn(e))==null?void 0:r.toString())!=null?n:"":e.toString(),i=this.$1.get(a);if(i==null){this.$1.set(a,[t]),this.$2.set(a,Date.now());try{yield this.$5(e)}catch(e){throw e}finally{var l=this.$1.get(a);this.$1.delete(a),this.$2.delete(a),l!=null&&l.forEach(function(e){return e.onComplete()})}}else i.push(t)});function t(t,n){return e.apply(this,arguments)}return t})(),a.$5=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,r){r===void 0&&(r=0);try{yield this.$6(t)}catch(a){if(rs*2&&n.push(o)}n.forEach(function(t){e.$1.delete(t),e.$2.delete(t)})},t})(),m=new d;l.GalaxyFlowsIdentityFetcher=m}),98); __d("WAWebGalaxyFlowsUnifiedEncryptionVerifier",["Promise","WABase64","WAWebCryptoCurve25519","WAWebGalaxyFlowsError","WAWebGalaxyFlowsIdentityFetcher","WAWebSignalCommonUtils","WAWebSignalProtocolStore","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=(function(){function t(){}var r=t.prototype;return r.arePublicKeyWithSignatureValid=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n,r){var o=yield this.$1(e,t,n);o?r.onComplete(!0):yield this.$2(e,t,n,r)});function t(t,n,r,o){return e.apply(this,arguments)}return t})(),r.$2=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,r,a,i){var l=this;return new(e||(e=n("Promise")))(function(e,s){o("WAWebGalaxyFlowsIdentityFetcher").GalaxyFlowsIdentityFetcher.fetchIdentityFor(t,{onComplete:(function(){var o=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{yield l.$3(t,r,a,i),e()}catch(e){s(e)}});function u(){return o.apply(this,arguments)}return u})()}).catch(s)})});function r(e,n,r,o){return t.apply(this,arguments)}return r})(),r.$3=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n,r){var o=yield this.$1(e,t,n);try{r.onComplete(o)}catch(e){throw e}});function t(t,n,r,o){return e.apply(this,arguments)}return t})(),r.$1=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){if(t==null||n==null)return!1;try{var r=yield o("WAWebSignalProtocolStore").getPersistSignalProtocolStore().loadIdentityKey(o("WAWebSignalCommonUtils").createSignalAddress(e).toString());if(r==null)throw new(o("WAWebGalaxyFlowsError")).WaeGalaxyFlowError(o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.MISSING_IDENTITY_KEY);var a=o("WAWebCryptoCurve25519").toCurveKeyPubKey(o("WAWebSignalCommonUtils").strToBuffer(r)),i=new Uint8Array(a),l=new Uint8Array(o("WABase64").decodeB64(t)),s=new Uint8Array(o("WABase64").decodeB64(n));return o("WAWebCryptoCurve25519").verifySignature(i,l,s)}catch(e){throw e instanceof o("WAWebGalaxyFlowsError").WaeGalaxyFlowError&&e.name===o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.MISSING_IDENTITY_KEY?e:new(o("WAWebGalaxyFlowsError")).WaeGalaxyFlowError(o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.PUBLIC_KEY_SINGATURE_VERIFICATION_EXCEPTION)}});function t(t,n,r){return e.apply(this,arguments)}return t})(),t})(),u=new s;l.UnifiedEncryptionVerifier=u}),98); __d("WAWebGalaxyFlowsDrawerGetFlowDataQuery",["Promise","WAQplTypes","WAWebGalaxyFlowQPLLoggerUtils","WAWebGalaxyFlowWamLoggerUtils","WAWebGalaxyFlowsDrawerGetFlowDataQuery.graphql","WAWebGalaxyFlowsError","WAWebGalaxyFlowsUnifiedEncryptionVerifier","WAWebGalaxyFlowsUtils","WAWebGraphQLServerError","WAWebLidMigrationUtils","WAWebRelayClient","WAWebWamEnumInteractionType","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){"use strict";var e,s;function u(t,r,a,i){var l,u,d;o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataStart(),o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataAnnotate(o("WAWebGalaxyFlowQPLLoggerUtils").getWaeMetadataAnnotations(r,t));var m=((l=t.flowMetadata)==null?void 0:l.data_api_version)!=null;if(o("WAWebGalaxyFlowQPLLoggerUtils").isGalaxyFlowSanctioned())return(s||(s=n("Promise"))).reject(new(o("WAWebGalaxyFlowsError")).WaeGalaxyFlowError(o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.SANCTIONED));if(i!=null&&i.aborted)return(s||(s=n("Promise"))).reject(new Error("Request aborted"));var p=a.contact.id,_=p.isLid()?(u=(d=o("WAWebLidMigrationUtils").toPn(p))==null?void 0:d.toString())!=null?u:"":p.toString(),f=t.flowId;return o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataPoint(o("WAWebGalaxyFlowQPLLoggerUtils").WaeMetadataQPLPoints.METADATA_NETWORK_START),o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeScreenNavigationPoint(o("WAWebGalaxyFlowQPLLoggerUtils").WaeScreenNavigationQPLPoints.METADATA_NETWORK_START),o("WAWebRelayClient").fetchQuery(e!==void 0?e:e=n("WAWebGalaxyFlowsDrawerGetFlowDataQuery.graphql"),{request:{extensions:{biz_jid:_,flow_id:f}}}).then((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(!(i!=null&&i.aborted)){var t;if((t=o("WAWebGalaxyFlowQPLLoggerUtils")).qplWaeMetadataPoint(t.WaeMetadataQPLPoints.METADATA_NETWORK_END),t.qplWaeScreenNavigationPoint(t.WaeScreenNavigationQPLPoints.METADATA_NETWORK_END),t.qplAnnotateMetadataSize(e),e==null||e.xwa_extensions_get_flow_data==null||e.xwa_extensions_get_flow_data.extensions_flow_data==null||e.xwa_extensions_get_flow_data.extensions_flow_data==null||e.xwa_extensions_get_flow_data.extensions_flow_data.length===0)throw o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataAnnotate({string:{error_type:o("WAWebGalaxyFlowQPLLoggerUtils").WaeMetadataQPLErrorTypes.EXTENSIONS_METADATA_EMPTY_RESPONSE}}),new(o("WAWebGalaxyFlowsError")).WaeGalaxyFlowError(o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.METADATA_EMPTY_RESPONSE);if(m){if(c(e))throw o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataAnnotate({bool:{endpoint_public_key_received:!1}}),o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataAnnotate({string:{error_type:o("WAWebGalaxyFlowQPLLoggerUtils").WaeMetadataQPLErrorTypes.EXTENSIONS_INVALID_PUBLIC_KEY}}),new(o("WAWebGalaxyFlowsError")).WaeGalaxyFlowError(o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.METADATA_INVALID_PUBLIC_KEY);var n,r;o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataAnnotate({bool:{endpoint_public_key_received:!0}}),yield o("WAWebGalaxyFlowsUnifiedEncryptionVerifier").UnifiedEncryptionVerifier.arePublicKeyWithSignatureValid(p,(n=e.xwa_extensions_get_flow_data)==null||(n=n.endpoint_public_key)==null?void 0:n.key,(r=e.xwa_extensions_get_flow_data)==null||(r=r.endpoint_public_key)==null?void 0:r.signature,{onComplete:function(t){if(!t)throw new(o("WAWebGalaxyFlowsError")).WaeGalaxyFlowError(o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.PUBLIC_KEY_SINGATURE_VERIFICATION_EXCEPTION)}})}if(o("WAWebGalaxyFlowsUtils").getFlowDataFromFetchedData(f,e)==null)throw o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataAnnotate({string:{error_type:o("WAWebGalaxyFlowQPLLoggerUtils").WaeMetadataQPLErrorTypes.EXTENSIONS_INVALID_EXTENSIONS_ID}}),new(o("WAWebGalaxyFlowsError")).WaeGalaxyFlowError(o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.METADATA_INVALID_EXTENSIONS_ID);o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataEnd(o("WAQplTypes").QuickLogActionType.SUCCESS)}return e});return function(t){return e.apply(this,arguments)}})()).catch(function(e){throw e instanceof o("WAWebGraphQLServerError").GraphQLServerError?(o("WAWebGalaxyFlowWamLoggerUtils").logStructuredMessageInteractionWAMEvent(t,a,r,o("WAWebWamEnumInteractionType").INTERACTION_TYPE.FLOW_ERROR,o("WAWebGalaxyFlowQPLLoggerUtils").WaeScreenNavigationQPLErrorTypes.EXTENSIONS_METADATA_GRAPHQL_RESPONSE_ERROR),new(o("WAWebGalaxyFlowsError")).WaeGalaxyFlowError(o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.EXTENSIONS_METADATA_GRAPHQL_RESPONSE_ERROR)):e})}function c(e){var t,n;return!(((t=e.xwa_extensions_get_flow_data)==null||(t=t.endpoint_public_key)==null?void 0:t.key)!=null&&e.xwa_extensions_get_flow_data.endpoint_public_key.key.length>0&&((n=e.xwa_extensions_get_flow_data)==null||(n=n.endpoint_public_key)==null?void 0:n.signature)!=null&&e.xwa_extensions_get_flow_data.endpoint_public_key.signature.length>0)}l.default=u}),98); __d("WAWebGalaxyFlowsMetadataUtils",["WATimeUtils","WAWebABProps"],(function(t,n,r,o,a,i,l){function e(e){var t;if(((t=e.flowMetadata)==null?void 0:t.data_api_version)==null){var n=e.messageTimestamp,r=o("WAWebABProps").getABPropConfigValue("wae_metadata_integrity_timeout_minutes");return n!=null&&o("WATimeUtils").happenedWithin(o("WATimeUtils").castToUnixTime(n),r*o("WATimeUtils").MINUTE_SECONDS)}return!1}l.skipIfStaleMedatadataOrNullDataApiVersion=e}),98); __d("WAWebGalaxyFlowsData",["Promise","WAQplTypes","WAWebGalaxyFlowQPLLoggerUtils","WAWebGalaxyFlowsDrawerGetFlowDataQuery","WAWebGalaxyFlowsDrawerUtils","WAWebGalaxyFlowsError","WAWebGalaxyFlowsMetadataUtils","WAWebGalaxyFlowsSessionsCache","WAWebGalaxyFlowsUtils","WAWebWamEnumFlowEntryPoint","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e;function s(e,t,n,r){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,a,i,l){try{var s,u,c;if(t.flowJSON!=null||l!=null&&l.aborted)return t;var d=a.unsafe(),m=d.galaxyFlowWAMMessageId==null||d.galaxyFlowQPLMessageId==null,p=m?yield o("WAWebGalaxyFlowsUtils").computeMessageIds(d.id):null;p&&d.updateGalaxyFlowMsgLoggingIds(p.flowWAMMessageId,p.flowQPLMessageId);var _=d.galaxyFlowQPLMessageId!=null?d.galaxyFlowQPLMessageId:p==null?void 0:p.flowQPLMessageId;if(_!=null){var f=o("WAWebGalaxyFlowsSessionsCache").createFlowSession(d.id.id.toString(),_);t.flowQPLSessionId="qpl_"+f,t.flowWAMSessionId="wam_"+f}o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeScreenNavigationAnnotate(o("WAWebGalaxyFlowQPLLoggerUtils").getWaeScreenNavigationAnnotations(a,t)),o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeScreenNavigationPoint(o("WAWebGalaxyFlowQPLLoggerUtils").WaeScreenNavigationQPLPoints.FETCHING_FLOW_DATA_START);var g=o("WAWebGalaxyFlowsMetadataUtils").skipIfStaleMedatadataOrNullDataApiVersion(t)||!!t.isResponseFlow,h=yield(e||(e=n("Promise"))).all([o("WAWebGalaxyFlowsUtils").fetchFlowJSON(t.flowId,l),g?(e||(e=n("Promise"))).resolve(null):r("WAWebGalaxyFlowsDrawerGetFlowDataQuery")(t,a,i,l)]),y=h[0],C=h[1];return o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeScreenNavigationPoint(o("WAWebGalaxyFlowQPLLoggerUtils").WaeScreenNavigationQPLPoints.FETCHING_FLOW_DATA_END),babelHelpers.extends({},t,{flowJSON:y,flowWAMMessageId:(s=p==null?void 0:p.flowWAMMessageId)!=null?s:d.galaxyFlowWAMMessageId,flowQPLMessageId:(u=p==null?void 0:p.flowQPLMessageId)!=null?u:d.galaxyFlowQPLMessageId,hsmTag:d.hsmTag,categories:(c=o("WAWebGalaxyFlowsUtils").getFlowDataFromFetchedData(t.flowId,t.flowFetchedMetadata))==null?void 0:c.categories,flowEntryPoint:o("WAWebWamEnumFlowEntryPoint").FLOW_ENTRY_POINT.MESSAGE_CTA,mode:String(o("WAWebGalaxyFlowsDrawerUtils").getFlowStatus(t,C)),isTemplate:d.templateId!=null?1:0,flowFetchedMetadata:C})}catch(e){if(l!=null&&l.aborted)throw e;if(!navigator.onLine)o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeScreenNavigationAnnotate({string:{error_type:o("WAWebGalaxyFlowQPLLoggerUtils").WaeScreenNavigationQPLErrorTypes.NO_NETWORK_ERROR}});else{var b=o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.cast(e instanceof o("WAWebGalaxyFlowsError").WaeGalaxyFlowError?e.name:"");e:{if(b===o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.SANCTIONED){o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeScreenNavigationDrop(),o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataDrop();break e}if(b===o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.METADATA_EMPTY_RESPONSE){o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataEnd(o("WAQplTypes").QuickLogActionType.FAIL);break e}if(b===o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.METADATA_INVALID_EXTENSIONS_ID){o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataEnd(o("WAQplTypes").QuickLogActionType.FAIL);break e}if(b===o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.METADATA_INVALID_PUBLIC_KEY){o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataEnd(o("WAQplTypes").QuickLogActionType.FAIL);break e}if(b===o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.PUBLIC_KEY_SINGATURE_VERIFICATION_EXCEPTION){o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataAnnotate({string:{error_type:o("WAWebGalaxyFlowQPLLoggerUtils").WaeMetadataQPLErrorTypes.EXTENSIONS_PUBLIC_KEY_SINGATURE_VERIFICATION_EXCEPTION}}),o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataEnd(o("WAQplTypes").QuickLogActionType.FAIL);break e}if(b===o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.MISSING_IDENTITY_KEY){o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataAnnotate({string:{error_type:o("WAWebGalaxyFlowQPLLoggerUtils").WaeMetadataQPLErrorTypes.EXTENSIONS_PUBLIC_KEY_MISSING_IDENTITY_KEY_ERROR}}),o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataEnd(o("WAQplTypes").QuickLogActionType.FAIL);break e}if(b===o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.EXTENSIONS_METADATA_GRAPHQL_RESPONSE_ERROR){o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataAnnotate({string:{error_type:o("WAWebGalaxyFlowQPLLoggerUtils").WaeMetadataQPLErrorTypes.EXTENSIONS_METADATA_GRAPHQL_RESPONSE_ERROR}}),o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeMetadataEnd(o("WAQplTypes").QuickLogActionType.FAIL);break e}{var v;(v=o("WAWebGalaxyFlowQPLLoggerUtils")).qplWaeMetadataAnnotate({string:{error_type:v.WaeMetadataQPLErrorTypes.EXTENSIONS_METADATA_RESPONSE_ERROR}}),v.qplWaeMetadataAnnotate({bool:{endpoint_public_key_received:!1}}),v.qplWaeMetadataEnd(o("WAQplTypes").QuickLogActionType.FAIL);break e}}o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeScreenNavigationAnnotate({string:{error_type:b===o("WAWebGalaxyFlowsError").WaeGalaxyFlowMetdataErrors.EXTENSIONS_METADATA_GRAPHQL_RESPONSE_ERROR?o("WAWebGalaxyFlowQPLLoggerUtils").WaeScreenNavigationQPLErrorTypes.EXTENSIONS_METADATA_GRAPHQL_RESPONSE_ERROR:o("WAWebGalaxyFlowQPLLoggerUtils").WaeScreenNavigationQPLErrorTypes.EXTENSION_METADATA_RESPONSE_ERROR}})}throw o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeScreenNavigationEnd(o("WAQplTypes").QuickLogActionType.FAIL),e}}),u.apply(this,arguments)}l.default=s}),98); __d("WAWebGalaxyFlowsLoadable.react",["JSResourceForInteraction","WAFlowsExpiredCacheCleaner","WAWebABProps","WAWebDrawer.react","WAWebDrawerBody.react","WAWebFlex.react","WAWebGalaxyFlowQPLLoggerUtils","WAWebGalaxyFlowsData","WAWebGalaxyFlowsDrawerUtils","WAWebGalaxyFlowsNavBarUtils.react","WAWebLazyLoadedRetriable","WAWebSpinner.react","asyncToGeneratorRuntime","react","react-loadable","useWAWebAsync","useWAWebRenderCallbacks"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.useEffect,m=u.useRef,p=o("WAWebABProps").getABPropConfigValue("flows_wa_web"),_=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebGalaxyFlows.react").__setRef("WAWebGalaxyFlowsLoadable.react").load();return e}),"WAWebGalaxyFlows"),f=r("react-loadable")({loader:_,loading:function(){return null}}),g={loadingContainer:{marginTop:"xafmxuu",$$css:!0}};function h(e){var t=e.chat,a=e.hasClearedActiveQPLMarker,i=a===void 0?!1:a,l=e.messageData,s=e.msg,u=e.onCancel,_=e.ref,h=m(!1);d(function(){o("WAFlowsExpiredCacheCleaner").clearExpiredCachedStates().catch(function(e){})},[]),r("useWAWebRenderCallbacks")({onMount:function(){o("WAWebGalaxyFlowQPLLoggerUtils").qplWaeScreenNavigationStart()},onUnmount:function(){!i&&o("WAWebGalaxyFlowQPLLoggerUtils").clearAllActiveWaeQPLMarkerInstances()}});var y=r("useWAWebAsync")((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return h.current?l:(h.current=!0,r("WAWebGalaxyFlowsData")(l,s,t,e))});return function(t){return e.apply(this,arguments)}})(),[l,s,t.contact.id]);return!p||f==null||y.error!=null||y.loading?c.jsxs(r("WAWebDrawer.react"),{ref:_,children:[c.jsx(o("WAWebGalaxyFlowsNavBarUtils.react").WAWebGalaxyFlowsNavBar,{onCancel:u,msg:s,isResponseFlow:l.isResponseFlow}),c.jsx(r("WAWebDrawerBody.react"),{children:c.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",grow:1,xstyle:g.loadingContainer,children:[y.loading&&c.jsx(o("WAWebSpinner.react").Spinner,{size:24,stroke:4}),y.error&&o("WAWebGalaxyFlowsDrawerUtils").getGalaxyFlowsFullScreenErrorString()]})})]}):c.jsx(f,{chat:t,messageData:y.value,onCancel:u,msg:s})}h.displayName=h.name+" [from "+i.id+"]",l.WAWebGalaxyFlowsLoadable=h}),98); __d("WAWebGroupMsgInfoFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebGroupMsgInfoFlow.react").__setRef("WAWebGroupMsgInfoFlowLoadable").load();return e}),"GroupMsgInfoFlow"),c=r("react-loadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.requireBundle=u,l.GroupMsgInfoFlowLoadable=c}),98); __d("WAWebLoadingMediaViewer.react",["WAWebClassnames","WAWebFbtCommon","WAWebLazyLoadLoading.react","WAWebMediaPanelHeader.styles","WAWebMediaViewerModalStyle","WAWebMenuBar.react","WAWebModalManager","WAWebXViewerIcon.react","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react"));function c(e){var t=e.error,n=o("WAWebClassnames").classnamesConvertMeToStylexPlease("overlay",(s||(s=r("stylex")))(r("WAWebMediaViewerModalStyle").mediaViewer)),a=u.jsx(o("WAWebXViewerIcon.react").XViewerIcon,{}),i=function(){return o("WAWebModalManager").ModalManager.closeMedia()};return u.jsx("div",{children:u.jsxs("div",{className:n,"data-animate-media-viewer":!0,children:[u.jsxs("div",{className:r("WAWebMediaPanelHeader.styles").mediaPanelHeader,children:[u.jsx("div",{className:r("WAWebMediaPanelHeader.styles").info}),u.jsx("div",{className:r("WAWebMediaPanelHeader.styles").mediaPanelTools,children:u.jsx(o("WAWebMenuBar.react").MenuBar,{theme:"strong",children:u.jsx(o("WAWebMenuBar.react").MenuBarItem,{testid:void 0,icon:a,title:r("WAWebFbtCommon")("Close"),onClick:i})},"media-panel-header")})]}),u.jsx("div",{className:r("WAWebMediaViewerModalStyle").mediaContent,dir:"ltr",onClick:i,children:u.jsx("div",{className:r("WAWebMediaViewerModalStyle").media,children:u.jsx(r("WAWebLazyLoadLoading.react"),{error:t})})})]})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebMediaViewerFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingMediaViewer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebMediaViewerFlow.react").__setRef("WAWebMediaViewerFlowLoadable").load();return e.MediaViewerFlow}),"MediaViewerFlow"),c=r("react-loadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingMediaViewer.react"),{error:!!t.error})}});l.requireBundle=u,l.MediaViewerFlowLoadable=c}),98); __d("WAWebMerchantDetailsDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBizMerchantDetailsDrawer.react").__setRef("WAWebMerchantDetailsDrawerLoadable").load();return e}),"MerchantDetails"),c=r("react-loadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.MerchantDetailsDrawerLoadable=c}),98); __d("useWAWebConversationPanelChatActionListeners",["fbt","WALogger","WANullthrows","WAWebABProps","WAWebAttachMediaCollection","WAWebAttachMediaFlowLoadable","WAWebBizCtwaPreviewFlowLoadable","WAWebBotGating","WAWebChatFlowTypes","WAWebChatGetters","WAWebChatPreferenceCollection","WAWebChatSearchDrawer.react","WAWebCmd","WAWebContactCollection","WAWebContactMsgInfoFlowLoadable","WAWebDefaultEphemeralityDrawer.react","WAWebDrawerManager","WAWebDrawerManagerContext","WAWebEphemeralDrawer.react","WAWebErrorBoundary.react","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebGalaxyFlowQPLLoggerUtils","WAWebGalaxyFlowsLoadable.react","WAWebGroupMsgInfoFlowLoadable","WAWebInfoFlowLoadable","WAWebInfoFlowStep","WAWebKeyboardTabUtils","WAWebLimitSharingDrawer.react","WAWebMediaMissingModal.react","WAWebMediaViewerFlowLoadable","WAWebMerchantDetailsDrawerLoadable","WAWebModalManager","WAWebMsgCollection","WAWebRichTextInputConst","WAWebSendStickerToActiveChatStickersAction","WAWebStickerStoreFlowLoadable","WAWebStreamModel","WAWebToast.react","WAWebToastManager","WAWebVerificationDrawerLoadable","WAWebWamEnumDisappearingModeEntryPointType","WAWebWamEnumMediaPickerOriginType","WAWebWamEnumProfileEntryPoint","WAWebWidFactory","react","useWAWebListener","useWAWebUIM"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react"));function d(){var t,n,a=r("useWAWebUIM")(),i=o("WAWebDrawerManagerContext").useDrawerManagerContext("right"),l=o("WAWebDrawerManagerContext").useDrawerManagerContext("mid"),u=function(t,n,r,i,l,s,u,d){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:t,showFullGroupDescription:n,scrollToParticipantList:r,profileEntryPoint:o("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.CHAT_MENU,sourceGroupChatOrNewsletter:i,focusNewsletterDescriptionOnMount:l,focusGroupSubjectOnMount:s,focusGroupDescriptionOnMount:u,threadId:d},"info-"+t.id.toString()),{transition:"slide-left",uim:a,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,noFocus:!0})},d=function(t){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:t,initialStep:o("WAWebInfoFlowStep").InfoFlowStep.DeleteNewsletter},"delete-newsletter-"+t.id.toString()),{transition:"slide-left",uim:a,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,noFocus:!0})},m=function(t){var e=t.lid,n=t.wid;o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(r("WAWebVerificationDrawerLoadable").VerificationDrawerLoadable,{lid:e,contact:o("WAWebContactCollection").ContactCollection.assertGet(n),isFirstLevel:!0}),{transition:"slide-left",uim:a,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},p=function(t){if(o("WAWebStreamModel").Stream.displayInfo===o("WAWebStreamModel").StreamInfo.NORMAL){var e;o("WAWebBotGating").isBotEnabled()&&(e=t.invokedBotWid)!=null&&e.isBot()?o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebGroupMsgInfoFlowLoadable").GroupMsgInfoFlowLoadable,{msg:t}),{transition:"slide-left",uim:a}):o("WAWebFrontendChatGetters").getKind(o("WAWebFrontendMsgGetters").getChat(t))===o("WAWebChatFlowTypes").ChatKindType.Chat?o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebContactMsgInfoFlowLoadable").ContactMsgInfoFlowLoadable,{msg:t}),{transition:"slide-left",uim:a}):o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebGroupMsgInfoFlowLoadable").GroupMsgInfoFlowLoadable,{msg:t}),{transition:"slide-left",uim:a})}else o("WAWebToastManager").ToastManager.open(c.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo mostrar la informaci\u00f3n del mensaje. Vuelve a intentarlo m\u00e1s tarde."),id:o("WAWebToast.react").genId("msg_info_failed")}))},_=function(t,n,r){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebBizCtwaPreviewFlowLoadable").CtWAAdPreviewFlowLoadable,{msg:t,onClose:n}),{transition:"slide-left",uim:a,onEnterAnimationComplete:r})},f=function(t,n,r,l){var e,s=(e=i.existsDrawer())!=null?e:!1;s&&o("WAWebGalaxyFlowQPLLoggerUtils").clearAllActiveWaeQPLMarkerInstances(),o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebGalaxyFlowsLoadable.react").WAWebGalaxyFlowsLoadable,{chat:t,messageData:n,msg:r,hasClearedActiveQPLMarker:s,onCancel:function(){l(),o("WAWebDrawerManager").DrawerManager.closeDrawerRight()}}),{transition:"flow-transition-drawer-push",uim:a})},g=function(n){var t,i,s=n.animationName,u=n.attachments,d=n.chat,m=n.fileOrigin,p=n.initCaption,_=n.isQuestion,f=n.onCancel,g=n.onComplete,h=n.onSend,y=n.openTrigger,C=n.questionReplyQuotedMessage,b=n.sendAsSticker,v=function(){var t=d.attachMediaContents;t&&u&&(m?t.processAttachmentsForChat(u,m,d):(o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["ChatActionListener:onAttachMediaDrawer fileOrigin is not specified, fallback to default"]))),t.processAttachmentsForChat(u,o("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_PHOTO_LIBRARY,d)))},S=(t=d.getComposeContents())==null?void 0:t.text;if(S!=null&&o("WAWebBotGating").isBotEnabled())for(var R=new RegExp(o("WAWebRichTextInputConst").userJidRegexStr,"g"),L=R.exec(S);L!=null;){var E=o("WAWebWidFactory").createWid(L[1]);if(E.isBot())return;L=R.exec(S)}var k=(i=l.existsDrawer())!=null?i:!1;if(!k){d.attachMediaContents||d.setAttachMediaContents(new(r("WAWebAttachMediaCollection"))({chatParticipantCount:d.getParticipantCount()}));var I=r("WANullthrows")(d.attachMediaContents);o("WAWebDrawerManager").DrawerManager.openDrawerMid(c.jsx(o("WAWebAttachMediaFlowLoadable").AttachMediaFlowLoadable,{chat:d,onComplete:g,onSend:h,onCancel:f,onDismiss:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerMid()},onRender:v,initCaption:p,mediaCollection:I,sendAsSticker:b,openTrigger:y,isQuestion:_,questionReplyQuotedMessage:C}),{transition:s||"slide-up",uim:a,noFocus:!0,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})}},h=function(t){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(r("WAWebChatSearchDrawer.react"),{chat:t}),{transition:"slide-left",uim:a})},y=function(t){var e=t.currentTime,n=t.getZoomNode,i=t.highlightedMsgIds,l=t.msg,s=t.shouldShowAllMedia,u=t.shouldShowNumberText;o("WAWebMsgCollection").MsgCollection.get(l.id)?o("WAWebModalManager").ModalManager.openMedia(c.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"media-viewer-flow",children:c.jsx(o("WAWebMediaViewerFlowLoadable").MediaViewerFlowLoadable,{msg:l,startTime:e,getZoomNode:n,highlightedMsgIds:i,shouldShowNumberText:u,shouldShowAllMedia:s})}),{transition:"media-viewer",uim:r("WANullthrows")(a)}):o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebMediaMissingModal.react"),{msg:l}))},C=function(t){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(r("WAWebDefaultEphemeralityDrawer.react"),{onClose:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerRight()},entryPoint:t}),{transition:"slide-left",uim:a,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},b=function(t,n,i){var e=o("WAWebChatGetters").getIsGroup(t)?o("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE.GROUP_CHAT_DISAPPEARING_MESSAGES_SETTING:o("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE.INDIVIDUAL_CHAT_DISAPPEARING_MESSAGES_SETTING;o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(r("WAWebEphemeralDrawer.react"),{chat:t,showNux:n,entryPoint:i,onDDMSettingsClick:function(){return C(e)}}),{transition:"slide-left",uim:a,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},v=function(t){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebMerchantDetailsDrawerLoadable").MerchantDetailsDrawerLoadable,{contactId:t,onClose:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerRight()}},"legal-entity-details"),{transition:"slide-left",uim:a,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},S=function(t){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(r("WAWebStickerStoreFlowLoadable").StickerStoreFlowLoadable,{stickerPackId:t,onSticker:r("WAWebSendStickerToActiveChatStickersAction")}),{transition:"slide-left",uim:a,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})},R=function(t){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(r("WAWebLimitSharingDrawer.react"),{chat:t,onClose:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerRight()}}),{transition:"slide-left",uim:a,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})};(t=o("useWAWebListener")).useListener(r("WAWebChatPreferenceCollection"),"wallpaper_drawer_open",function(e){o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&e&&o("WAWebDrawerManager").DrawerManager.closeDrawerRight()}),t.useListener((n=o("WAWebCmd")).Cmd,"chat_info_drawer",u),t.useListener(n.Cmd,"delete_newsletter_drawer",d),t.useListener(n.Cmd,"msg_info_drawer",p),t.useListener(n.Cmd,"chat_search",h),t.useListener(n.Cmd,"attach_media_drawer",g),t.useListener(n.Cmd,"verification_drawer",m),t.useListener(n.Cmd,"media_viewer_modal",y),t.useListener(n.Cmd,"ephemeral_drawer",b),t.useListener(n.Cmd,"merchant_details_drawer",v),t.useListener(n.Cmd,"open_sticker_pack",S),t.useListener(n.Cmd,"ctwa_ad_preview_drawer",_),t.useListener(n.Cmd,"limit_sharing_drawer",R),t.useListener(n.Cmd,"galaxy_flows_drawer",f)}l.default=d}),226); __d("useWAWebConversationPanelDragHandlers",["WAWebCmd","WAWebDataTransfer","WAWebMediaEditorOpenTrigger","react"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useRef;function u(e,t){var n=t.canCompose,a=t.onDragEnter,i=s(!1),l=s(null),u=function(t){n&&(i.current=!0)},c=function(t){n&&(i.current=!1)},d=function(s){if(n){var t=l.current;if(t!=null){var u=t.getCurrentComposeContent();a();var c=new(r("WAWebDataTransfer"))(s.dataTransfer);!i.current&&c.hasType("Files")&&(t.flushSaveComposeContentDebounced(),o("WAWebCmd").Cmd.attachMediaDrawer({chat:e,initCaption:u,onComplete:t.updateTextAfterMediaDrawerClose,openTrigger:o("WAWebMediaEditorOpenTrigger").MediaEditorOpenTrigger.ConversationPanelDragAndDrop}),s.stopPropagation(),s.preventDefault())}}},m={onDragStart:u,onDragEnd:c,onDragEnter:d};return[l,m]}l.default=u}),98); __d("useWAWebConversationPanelEphemeralNux",["WAWebChatEphemerality","WAWebChatGetters","WAWebCmd","WAWebNux","WAWebWamEnumEphemeralSettingEntryPointType","react","useWAWebChatValues","useWAWebListener","useWAWebNux"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useEffect;function u(e){var t=r("useWAWebNux")(o("WAWebNux").NUX.EPHEMERAL),n=t[0],a=o("useWAWebChatValues").useChatValues(e.id,[o("WAWebChatGetters").getIsUser]),i=a[0],l=null;n&&(o("WAWebChatGetters").getIsGroup(e)&&e.groupMetadata!=null?l=e.groupMetadata:i&&(l=e));var u=function(){n&&o("WAWebChatEphemerality").isEphemeralSettingOn(e)};s(u,[]),o("useWAWebListener").useListener(l,"change:ephemeralDuration",u)}l.default=u}),98); __d("useWAWebConversationPanelFiller.react",["Promise","WAAbortError","WAFilteredCatch","WAPromiseRaceAbort","WAWebMiscErrors","WAWebNoop","WAWebVelocityAnimate","react"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=s||(s=r("react")),m=c.useEffect,p=c.useRef;function _(t){var a=t.canCompose,i=t.getScrollBottom,l=t.onComposeHeightChange,s=t.selectable,u=t.setScrollBottom,c=p(null),_=p(0),f=p(null),g=p(),h=p(!1);m(function(){a||(_.current=0)},[a]);var y=function(t){return Math.max(0,_.current)},C=function(){var e=y();c.current&&(c.current.style.height=e+"px")},b=function(a,s){var t,c=a.input,d=a.overlay,m=d===void 0?0:d,p=f.current,y=i();if(!(!p||y==null)){if(c!==void 0){l(c);return}if(s){_.current=m,C(),u(y);return}if(_.current+=m,m<0&&(C(),u(y)),g.current){var b;h.current=!0,(b=g.current)==null||b.controller.abort()}var v=new AbortController,S=v.signal,R=(((t=g.current)==null?void 0:t.promise)||(e||(e=n("Promise"))).resolve()).then(function(){return r("WAWebVelocityAnimate")(p,{translateY:m>0?[-m,0]:[0,m]},{duration:300,easing:[.1,.82,.25,1]})}),L=r("WAPromiseRaceAbort")(R,S).catch(o("WAFilteredCatch").filteredCatch(o("WAWebMiscErrors").Unmount,r("WAWebNoop"))).then(function(){if(S.aborted)throw new(o("WAAbortError")).AbortError;m>0&&C(),p.style.transform="",m>0&&u(y)}).catch(o("WAAbortError").catchAbort(function(){r("WAWebVelocityAnimate")(p,"finish",!0)})).then(function(){h.current?h.current=!1:g.current=void 0});g.current={promise:L,controller:v}}},v;return s?v=d.jsx("div",{ref:c,className:"x1c4vz4f x2lah0s xdl72j9 x14yy4lh"}):a&&(v=d.jsx("div",{ref:c,style:{height:y()+"px"},className:"x1c4vz4f x2lah0s xdl72j9 x14yy4lh"})),{msgPanelRef:f,filler:v,handleComposeHeightChange:b}}l.default=_}),98); __d("useWAWebConversationPanelMessageSelection",["WANullthrows","WAWebForwardActionUserJourneyLogger","WAWebMultiSelectBar.react","WAWebMultiSelection","WAWebRevokeMetricUtils","react","useLazyRef","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useCallback,c=s.useState;function d(e){var t=c(!1),n=t[0],a=t[1],i=c(o("WAWebMultiSelectBar.react").MultiSelectMode.DEFAULT),l=i[0],s=i[1],d=r("useLazyRef")(function(){return new(r("WAWebMultiSelection"))([],function(e){return e.id.toString()})}),m=function(){o("WAWebRevokeMetricUtils").UiRevokeActionHelper.startSession(),a(!0)},p=u(function(t,n,o){if(!(!t||!e)){var a=e.indexOf(t);if(a)for(var i=e.indexOf(n),l=i>a?-1:1,s=a+(o?l:i0&&(oe=p.jsx(r("WAWebAnimationGroupItem.react"),{children:p.jsx(r("WAWebConversationSpam.react"),{chat:a,onClickNotSpam:function(){P(!1),o("WAWebConversationSpamUtils").acknowledgeGroupAsNotSpam(a)},onClickDismissSpam:function(){return P(!1)}})})),ee=re!=null&&p.jsxs("footer",{"data-testid":void 0,className:"_amm5 x1n2onr6 x1vjfegm x9f619 x1okw0bk xo1ph6p x122xwht",children:[oe,p.jsx("div",babelHelpers.extends({"data-testid":void 0},(c||(c=r("stylex"))).props(C.footerMessage,o("WAWebUISpacing").uiPadding.vert14,o("WAWebUISpacing").uiPadding.horiz18),{children:re}))]})}var ae;T||(ae=p.jsx(o("WAWebComposeBox.react").PlaceholderComposeBox,{chat:a,handleFocus:function(){var e;m==null||(e=m.current)==null||e.focus()}}));var ie=function(t){var e=t.onMenuComplete,n=t.questionReplyQuotedMessage,i=t.questionType,l=o("WAWebMediaCapture").start({type:o("WAWebMediaCaptureStreamType").WAWebMediaCaptureStreamType.CAMERA,featureSurface:o("WAWebGuidePopup.react").FeatureSurface.PHOTO_CAPTURE}),s=l.asyncStream,u=l.disposeStream;K.current=u,r("WAPromiseRaceAbort")(s,X).then(function(t){t&&(o("WAWebCmd").Cmd.closeContextMenu(),o("WAWebCmd").Cmd.closeTooltip(),o("WAWebDrawerManager").DrawerManager.closeDrawerRight(),o("WAWebModalManager").ModalManager.close(),o("WAWebDrawerManager").DrawerManager.openDrawerMid(p.jsx(o("WAWebCaptureMediaDrawerLoadable").CaptureMediaDrawerLoadable,{chat:o("WAWebStateUtils").unproxy(a),stream:t,disposeStream:K.current,onCaptureSent:function(){e(!0),o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(a,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CAMERA)},onCancel:function(){o("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(a,o("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CAMERA)},onClose:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerMid()},questionType:i,questionReplyQuotedMessage:n}),{transition:"slide-up",uim:Q,focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE}))}).catch(o("WAFilteredCatch").filteredCatch(o("WAWebMiscErrors").GetUserMedia.NotAllowedError,function(){var e;o("WAWebModalManager").ModalManager.open(p.jsx((e=o("WAWebGuidePopup.react")).GuidePopup,{messaging:e.Messaging.CAMERA_FAIL,type:e.GuidePopupType.GUIDE_UNBLOCK,featureSurface:e.FeatureSurface.PHOTO_CAPTURE}))})).catch(o("WAFilteredCatch").filteredCatch(o("WAWebMiscErrors").GetUserMedia.GetUserMediaError,function(){var e;o("WAWebModalManager").ModalManager.open(p.jsx((e=o("WAWebGuidePopup.react")).GuidePopup,{messaging:e.Messaging.CAMERA_MISSING,type:e.GuidePopupType.GUIDE_NONE,featureSurface:e.FeatureSurface.PHOTO_CAPTURE}))})).finally(function(){o("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(a)})};o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"open_capture_media",ie);var le=E.isLidDeprecated?p.jsx(r("WAWebConversationDeprecatedLidChatBanner.react"),{latestLid:E.latestLid}):null,se=[le],ue={ref:m,chat:a,selectable:F,onMessageSelect:w,onCancelSelectMessages:M,msgCollection:u,onSelectMessages:function(){o("WAWebForwardActionUserJourneyLogger").ForwardActionUserJourneyLogger.selectTappedInContextMenu(),A()},focusCtx:l,threadId:d,selectedMessages:O,notifyChatRendered:e.notifyChatRendered,updateOpenedChatInfo:e.updateOpenedChatInfo,updateCanShowSpamPanel:L,bottomBanners:se},ce=p.jsx(r("WAWebHeroInteraction.react"),{description:"ConversationMsgs",enableHoldTrigger:!0,policy:r("WAWebInteractionTracePolicy").LOAD_MESSAGES,children:function(t,n){return p.jsx("div",{ref:t,className:"x5yr21d",children:p.jsx(r("WAWebConversationMsgs.react"),babelHelpers.extends({},ue,{interaction:n}))})}}),de=Y?p.jsx(r("WAWebNewsletterSuspendedConversationPanelBody.react"),{isGeosuspended:J,isAdminOrOwner:o("WAWebNewsletterMembershipUtil").iAmOwner(a.newsletterMetadata)||o("WAWebNewsletterMembershipUtil").iAmAdmin(a.newsletterMetadata)}):ce,me=o("WAWebBizAiAgentStatusUtils").isChatEligibleForAiAgent(a)&&!a.getAttempToEnableAi()&&!o("WAWebBizAiAgentStatusUtils").isChatAiEnabled(a)&&o("WAWebBizAiAgentGating").isAiMuteUnmuteV2Enabled();return p.jsxs(p.Fragment,{children:[p.jsx(r("WAWebConversationBackground.react"),{wallpaper:e.wallpaper,showDoodle:e.showDoodle}),p.jsx(o("WAWebHeader.react").ConversationHeader,{chat:a,onSelectMessages:function(){o("WAWebForwardActionUserJourneyLogger").ForwardActionUserJourneyLogger.selectTappedInMoreMenu(),A()},threadId:d}),p.jsx(r("WAWebConversationPanelBanner.react"),{chat:a,groupMetadata:s}),p.jsxs("div",babelHelpers.extends({className:"x1n2onr6 x1vjfegm x1cqoux5 x14yy4lh",ref:z},U,{"data-testid":void 0,children:[ne,de]})),H,me&&p.jsx(S,{chat:a}),ee,ae,p.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"slide-up",children:te})]})}b.displayName=b.name+" [from "+i.id+"]";function v(){return p.jsx("div",{className:"xixxii4 x1kmv161 xd7zvh7 x3l9nec xhtitgo x1dmp6jm xlrawln x78zum5 x6s0dn4 xl56j7k xbrszos xea3l6g x18isctg x2q3nzr",children:p.jsx(o("WAWebText.react").WAWebTextMuted,{color:"white",children:u._(/*BTDS*/"Respuestas de la IA")})})}v.displayName=v.name+" [from "+i.id+"]";function S(e){var t=e.chat,n=y(!1),a=n[0],i=n[1];function l(){i(!0)}function s(){i(!1)}return p.jsxs(o("WAWebClickable.react").Clickable,{onClick:function(){o("WAWebCmd").Cmd.changeAiReplyStatus(t,!1)},tabIndex:0,children:[p.jsx("div",{className:"xixxii4 xhjxwu4 x9q68il x889kno x2vl965 x1a8lsjc xe2zdcy xhtitgo xvni27 xdd8jsf x1c9tyrk xeusxvb x1pahc9y x1ertn4p x27vdmw x1c7u0tx x178xt8z x1lun4ml xso031l xpilrb4 x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu xisoiy x347gel xfl8pta x1svocj7 x78zum5 xl56j7k x6s0dn4 x15g2dp1",onMouseEnter:l,onMouseLeave:s,children:a?p.jsx(r("WDSIconWdsIcAiFilled.react"),{width:30,height:30,iconXstyle:C.aiIconHover}):p.jsx(r("WDSIconWdsIcAiFilled.react"),{width:30,height:30,iconXstyle:C.aiIconXstyle})}),a&&p.jsx(v,{})]})}S.displayName=S.name+" [from "+i.id+"]",l.default=b}),226); __d("WAWebGetConversationPanelKey",[],(function(t,n,r,o,a,i){function e(e,t){return""+e.id.toString()+(t!=null?"-"+t.toString():"")}i.default=e}),66); __d("WAWebConversationPanelWrapper.react",["cx","fbt","WAWebABProps","WAWebChatPreferenceCollection","WAWebClassnames","WAWebCmd","WAWebConversationBackground.react","WAWebConversationPanel.react","WAWebErrorBoundary.react","WAWebGetConversationPanelKey","WAWebThemeContext","WAWebUim","WAWebUimUie.react","WAWebWallpaper","react","stylex","useWAWebListener","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s,u){var e=["ref"],c,d,m,p=m||(m=o("react")),_=c||(c=r("react")),f=p.useImperativeHandle,g=p.useRef,h=p.useState,y={paneDark:{backgroundColor:"x1q80dvb",$$css:!0},paneLight:{backgroundColor:"xkd2t4d",$$css:!0}};function C(t){var n,a,i=t.ref,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s=l.chat,c=l.chatEntryPoint,m=l.focusCtx,p=l.msgCollection,C=l.notifyChatRendered,b=l.showPreview,v=l.threadId,S=l.updateOpenedChatInfo,R=g(null),L=o("useWAWebModelValues").useModelValues(l.chatPreference,["wallpaper","showDoodle"]),E=o("useWAWebModelValues").useOptionalModelValues(l.chat,["wallpaper","showDoodle"]),k=o("WAWebThemeContext").useIsDarkTheme();function I(){var e;return!b&&o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&(e=E==null?void 0:E.wallpaper)!=null?e:L.wallpaper}var T=h(I()),D=T[0],x=T[1],$=h(I()),P=$[0],N=$[1],M=h([]),w=M[0],A=M[1];o("useWAWebListener").useListener(r("WAWebChatPreferenceCollection"),"wallpaper_preview",function(e){if(o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")){var t;x((t=e!=null?e:E==null?void 0:E.wallpaper)!=null?t:L.wallpaper)}else x(e!=null?e:L.wallpaper)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"show_overlay_animation",function(e){A(function(t){return[].concat(t,[e])}),window.setTimeout(function(){A(function(t){return t.filter(function(t){return t!==e})})},5e3)});var F=I();P!==F&&(x(F),N(F));var O=function(t){return R.current?R.current.contains(t):!1};f(i,function(){return{containsDOMNode:O}});var B={};D!==o("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER&&(B.backgroundColor=D);var W=b?_.jsxs(_.Fragment,{children:[_.jsx("header",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("_amid","_aqy6","_ajy1"),children:_.jsx("span",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("_ajy2","_amig"),children:u._(/*BTDS*/"Vista previa del fondo")})}),_.jsx(r("WAWebConversationBackground.react"),{wallpaper:D,showDoodle:L.showDoodle}),_.jsx("footer",{className:"_amm5"})]}):null,q=s&&p?_.jsx(r("WAWebConversationPanel.react"),{chat:s,chatEntryPoint:c,groupMetadata:s.groupMetadata,focusCtx:m,msgCollection:p,threadId:v,notifyChatRendered:C,updateOpenedChatInfo:S,wallpaper:D,showDoodle:o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&(n=E==null?void 0:E.showDoodle)!=null?n:L.showDoodle},r("WAWebGetConversationPanelKey")(s,v)):null,U;o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")?U=W!=null?W:q:U=q!=null?q:W;var V=k?y.paneDark:y.paneLight;return _.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"conversation-panel",type:"fatal",children:_.jsx(o("WAWebUimUie.react").UIE,{displayName:"ConversationPanel",uimState:o("WAWebUim").UIMState.INACTIVE,children:_.jsxs("div",{id:"main",className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((a={},a._ajy0=l.showPreview,a._ajx_=!0,a),(d||(d=r("stylex")))(V)),style:B,ref:R,"data-testid":void 0,children:[U,w]})})})}C.displayName=C.name+" [from "+i.id+"]",l.default=C}),226); __d("WAWebGetChatLockEntryPoint",["WAWebChatEntryPoint","WAWebWamEnumActionEntryPoint"],(function(t,n,r,o,a,i,l){function e(e){switch(e){case o("WAWebChatEntryPoint").ChatEntryPoint.Chatlist:return o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST;case o("WAWebChatEntryPoint").ChatEntryPoint.Notification:return o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.NOTIFICATIONS;case o("WAWebChatEntryPoint").ChatEntryPoint.PrivateReply:return o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.PRIVATE_REPLY;case o("WAWebChatEntryPoint").ChatEntryPoint.DirectMessage:return o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.DIRECT_MESSAGE;case o("WAWebChatEntryPoint").ChatEntryPoint.ContactInfo:return o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_INFO;case o("WAWebChatEntryPoint").ChatEntryPoint.Mention:return o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.DIRECT_MESSAGE;case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterIntegrity:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterChatlist:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectory:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectorySearch:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectoryCategory:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectoryCategorySearch:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsLetterRecommendation:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterUpdatesTab:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterUpdatesTabSearch:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterCreationFlow:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterAdminInviteAcceptModal:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterPostLinkCard:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterLinkCard:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterLinkCardButton:case o("WAWebChatEntryPoint").ChatEntryPoint.ForwardedNewsletterMessage:case o("WAWebChatEntryPoint").ChatEntryPoint.NewsletterCTAOnStatus:case o("WAWebChatEntryPoint").ChatEntryPoint.SimilarNewsletters:case o("WAWebChatEntryPoint").ChatEntryPoint.Link:case o("WAWebChatEntryPoint").ChatEntryPoint.Deeplink:case o("WAWebChatEntryPoint").ChatEntryPoint.Vcard:case o("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut:case o("WAWebChatEntryPoint").ChatEntryPoint.ChatsTab:case o("WAWebChatEntryPoint").ChatEntryPoint.NewslettersTab:case o("WAWebChatEntryPoint").ChatEntryPoint.CommunitiesTab:case o("WAWebChatEntryPoint").ChatEntryPoint.VoipWindow:case o("WAWebChatEntryPoint").ChatEntryPoint.MetaAINullStateSuggestion:case o("WAWebChatEntryPoint").ChatEntryPoint.MetaAITypeaheadSuggestion:case o("WAWebChatEntryPoint").ChatEntryPoint.MetaAINewThreadCreation:case o("WAWebChatEntryPoint").ChatEntryPoint.MetaAINavigationBar:case o("WAWebChatEntryPoint").ChatEntryPoint.MetaAIThreadList:case o("WAWebChatEntryPoint").ChatEntryPoint.MetaAIIntroPanel:case o("WAWebChatEntryPoint").ChatEntryPoint.MetaAIForward:case o("WAWebChatEntryPoint").ChatEntryPoint.RefreshRestore:case o("WAWebChatEntryPoint").ChatEntryPoint.AskMetaAI:case o("WAWebChatEntryPoint").ChatEntryPoint.Unknown:break}return o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.UNKNOWN}l.getChatLockEntryPoint=e}),98); __d("WAWebDesktopUpsellAnimationData",[],(function(t,n,r,o,a,i){"use strict";function e(e){return{v:"5.8.1",fr:60,ip:0,op:140,w:228,h:152,nm:"wds_anim_web_calling_doc",ddd:0,assets:[],layers:[{ddd:0,ind:1,ty:4,nm:"Phone",parent:7,sr:1,ks:{r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[1],y:[0]},t:15,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28,s:[-14]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:37.922,s:[5]},{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:48,s:[-5]},{t:61,s:[0]}],ix:10},p:{a:0,k:[14.947,85.892,0],ix:2,l:2},a:{a:0,k:[28.84,31.814,0],ix:1,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[.202,.44],[3.166,2.654],[.921,.042],[.565,-.257],[-.633,-5.96],[-3.186,-4.919],[-10.942,-3.421],[-3.547,1.887],[.761,2.96],[.905,1.078],[2.021,2.354],[1.43,-.045],[2.952,-.293],[.986,.815],[3.143,5.138],[-.771,2.538],[.028,2.137],[0,0],[0,0]],o:[[.004,-.476],[-1.905,-3.925],[-.794,-.639],[-.622,-.035],[-4.772,2.257],[.64,5.932],[6.811,10.539],[3.892,1.26],[2.395,-1.292],[-.379,-1.435],[-2.026,-2.385],[-1.042,-1.209],[-3.001,.075],[-1.184,.107],[-4.551,-3.652],[-1.341,-2.141],[.689,-2.217],[0,0],[0,0],[0,0]],v:[[-5.676,-15.63],[-6.07,-16.954],[-13.803,-26.972],[-16.365,-28.294],[-18.145,-27.866],[-24.495,-13.103],[-17.749,3.148],[8.9,26.736],[20.643,26.441],[24.367,19.326],[22.148,15.694],[16.072,8.583],[12.402,6.148],[5.626,12.005],[2.359,10.563],[-8.596,-2.908],[-9.876,-9.111],[-5.658,-15.596],[-5.648,-15.635],[-5.673,-15.643]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:0,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.145098039216,.827451040231,.400000029919,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[28.877,32.079],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:-27,op:140,st:-162,bm:0},{ddd:0,ind:2,ty:4,nm:"Mask_Plane",parent:7,td:1,sr:1,ks:{p:{a:0,k:[72.292,55.751,0],ix:2,l:2}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[140.428,97.908],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"st",c:{a:0,k:[.145097994337,.827450980392,.4,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.145097994337,.827450980392,.4,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[1.214,-4.546],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:28,op:55,st:15,bm:0},{ddd:0,ind:3,ty:4,nm:"Plane",tt:2,sr:1,ks:{r:{a:1,k:[{i:{x:[.068],y:[1]},o:{x:[.36],y:[0]},t:16,s:[-170]},{t:125,s:[2]}],ix:10},p:{a:1,k:[{i:{x:.15,y:1},o:{x:.36,y:0},t:16,s:[71.059,64.4,0],to:[-47.292,19.417,0],ti:[-66.357,-11.303,0]},{t:125,s:[75.809,20.4,0]}],ix:2,l:2},a:{a:0,k:[22.279,21.973,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.15,.15,.667],y:[1,1,1]},o:{x:[.36,.36,.333],y:[0,0,0]},t:16,s:[81.021,81.021,100]},{t:125,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[.644,-.294],[0,0],[-.256,-1.199],[0,0],[-1.443,1.312],[0,0],[2.037,.52],[0,0],[-.406,-1.878],[0,0],[-1.294,.094]],o:[[.712,-.051],[0,0],[-1.061,.484],[0,0],[.429,2],[0,0],[1.524,-1.385],[0,0],[-1.811,-.462],[0,0],[.287,1.324],[0,0]],v:[[.447,-4.079],[.799,-2.82],[-12.297,3.157],[-13.667,6.027],[-11.669,15.359],[-7.445,16.911],[17.005,-5.316],[15.777,-9.878],[-15.131,-17.76],[-18.124,-14.746],[-16.07,-5.251],[-13.29,-3.087]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1.5,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[22.279,21.973],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:28,op:140,st:-32,bm:0},{ddd:0,ind:4,ty:4,nm:"Moc Line (change in Dark Mode)",sr:1,ks:{p:{a:0,k:[35.302,52.662,0],ix:2,l:2},a:{a:0,k:[25.414,36.221,0],ix:1,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-31.602,22.595]],o:[[-38.994,3.069],[0,0]],v:[[18.164,-33.471],[9.938,9.876]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:e?[1,1,1,1]:[.066666670144,.105882361531,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1.5,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[25.414,36.222],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.161],y:[0]},t:46,s:[89]},{t:125,s:[1]}],ix:1},e:{a:0,k:90,ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:50,op:140,st:-93,bm:0},{ddd:0,ind:5,ty:4,nm:"document",parent:6,sr:1,ks:{r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[1],y:[0]},t:35,s:[8]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:48,s:[-6]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:57.922,s:[13]},{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:68,s:[3]},{t:81,s:[8]}],ix:10},p:{a:1,k:[{i:{x:0,y:1},o:{x:.753,y:0},t:15,s:[28.215,12.752,0],to:[0,0,0],ti:[0,0,0]},{t:65,s:[28.215,-31.248,0]}],ix:2,l:2},a:{a:0,k:[24.028,29.146,0],ix:1,l:2},s:{a:1,k:[{i:{x:[0,0,.667],y:[1,1,1]},o:{x:[.753,.753,.333],y:[0,0,0]},t:15,s:[0,0,100]},{t:65,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-9.736,-2.307],[9.736,2.307]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:37,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.901960844152,1,.854902020623,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[24.415,32.004],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-9.736,-2.307],[9.736,2.307]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:37,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.901960844152,1,.854902020623,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[22.752,40.527],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:3,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[4.867,1.153],[-4.867,-1.153]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:37,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.901960844152,1,.854902020623,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[21.209,22.329],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 3",np:3,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-1.025,-.243],[0,0],[0,0],[0,0],[-.57,-.964]],o:[[0,0],[0,0],[0,0],[-.218,1.121],[.57,.964]],v:[[-2.282,5.919],[5.539,7.772],[-3.652,-7.772],[-5.321,.781],[-4.772,4.036]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:37,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[38.761,16.277],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 4",np:3,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[.515,-.103],[.434,-.317],[.299,-.471],[.102,-.563],[0,0],[-.607,-1.01],[-.43,-.328],[-.513,-.115],[0,0],[-.516,.104],[-.435,.319],[-.298,.47],[-.103,.561],[0,0],[0,0]],o:[[-.511,-.129],[-.514,.103],[-.445,.302],[-.299,.471],[0,0],[-.228,1.169],[.276,.487],[.431,.328],[0,0],[.511,.129],[.516,-.104],[.444,-.302],[.297,-.47],[0,0],[0,0],[0,0]],v:[[-8.39,-25.254],[-9.944,-25.293],[-11.382,-24.655],[-12.51,-23.483],[-13.118,-21.916],[-20.05,13.61],[-19.487,16.887],[-18.416,18.124],[-16.985,18.795],[10.28,25.254],[11.837,25.292],[13.278,24.65],[14.402,23.479],[15.008,21.915],[20.278,-5.094],[11.081,-20.641]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:37,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.901960844152,1,.854902020623,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[24.028,29.146],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 5",np:3,cix:2,bm:0,ix:5,mn:"ADBE Vector Group",hd:!1}],ip:37,op:140,st:-10,bm:0},{ddd:0,ind:6,ty:4,nm:"chat",parent:7,sr:1,ks:{p:{a:1,k:[{i:{x:0,y:1},o:{x:.333,y:0},t:22,s:[100.695,66.349,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:1,y:0},t:37,s:[100.695,61.974,0],to:[0,0,0],ti:[0,0,0]},{i:{x:0,y:1},o:{x:.333,y:0},t:50,s:[100.695,66.349,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:58,s:[100.695,65.099,0],to:[0,0,0],ti:[0,0,0]},{t:63,s:[100.695,66.349,0]}],ix:2,l:2},a:{a:0,k:[31.455,23.737,0],ix:1,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,9.41],[0,0],[-8.696,.008],[0,0],[0,-9.409],[0,0],[0,0],[1.041,0],[0,0],[0,0],[0,0]],o:[[-8.696,.008],[0,0],[-.015,-9.41],[0,0],[8.696,-.008],[0,0],[0,0],[.524,.9],[0,0],[0,0],[0,0],[0,0]],v:[[-11.937,19.979],[-27.69,2.958],[-27.69,-2.91],[-11.959,-19.954],[7.729,-19.979],[23.483,-2.958],[23.497,11.59],[27.181,17.734],[25.993,19.947],[-11.922,19.986],[-11.944,19.986],[-11.937,19.986]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:0,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[31.455,23.736],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:-101,op:140,st:-89,bm:0},{ddd:0,ind:7,ty:4,nm:"web",sr:1,ks:{p:{a:1,k:[{i:{x:.15,y:1},o:{x:.65,y:0},t:0,s:[125.954,90.168,0],to:[0,0,0],ti:[0,0,0]},{t:50,s:[114.454,71.668,0]}],ix:2,l:2},a:{a:0,k:[72.746,51.419,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.15,.15,.667],y:[1,1,1]},o:{x:[.65,.65,.333],y:[0,0,0]},t:0,s:[75,75,100]},{t:50,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-2.12,2.336],[2.12,-2.336]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:0,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[13.598,12.722],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-2.217,-2.443],[2.217,2.443]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:0,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[13.695,12.829],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:3,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,-3.219],[0,0],[4.326,0],[0,0]],o:[[0,0],[3.22,0],[0,0],[0,4.766],[0,0],[0,0]],v:[[-46.971,-47.669],[41.14,-47.669],[46.971,-41.839],[46.971,39.024],[39.123,47.669],[-46.971,47.669]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:0,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.988235353956,.960784373564,.921568687289,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[94.771,51.419],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 3",np:3,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[14.065,54.655],[39.879,54.655]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:0,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 4",np:3,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[14.065,46.225],[39.879,46.225]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:0,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 5",np:3,cix:2,bm:0,ix:5,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,4.566],[0,0],[-4.143,0],[0,0]],o:[[0,0],[-4.143,0],[0,0],[0,-4.565],[0,0],[0,0]],v:[[22.301,47.663],[-14.798,47.663],[-22.301,39.395],[-22.301,-39.384],[-14.798,-47.663],[22.301,-47.663]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:0,s:[2]},{t:50,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.901960844152,1,.854902020623,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[26.052,51.413],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:3,cix:2,bm:0,ix:6,mn:"ADBE Vector Group",hd:!1}],ip:-9,op:140,st:10,bm:0},{ddd:0,ind:8,ty:4,nm:"line",sr:1,ks:{p:{a:1,k:[{i:{x:.15,y:1},o:{x:.65,y:0},t:0,s:[111.65,141.892,0],to:[0,0,0],ti:[0,0,0]},{t:50,s:[108.65,141.892,0]}],ix:2,l:2},a:{a:0,k:[19.038,5.757,0],ix:1,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[2.217,0],[0,0],[0,2.217]],o:[[0,0],[0,2.217],[0,0],[-2.216,0],[0,0]],v:[[15.288,-2.007],[15.288,-2.007],[11.274,2.007],[-11.275,2.007],[-15.288,-2.007]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882361531,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1.5,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[19.038,5.757],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"computer",sr:1,ks:{p:{a:0,k:[137.626,118.859,0],ix:2,l:2},a:{a:0,k:[73.682,32.806,0],ix:1,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[-4.003,0],[0,0],[0,4.411]],o:[[0,0],[0,4.423],[0,0],[4.025,0],[0,0]],v:[[60.457,-4.015],[-60.457,-4.015],[-53.169,4.015],[53.137,4.015],[60.425,-4.015]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1.5,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.145098039216,.827451040231,.400000029919,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[64.207,57.847],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.15,y:1},o:{x:.65,y:0},t:0,s:[{i:[[0,0],[0,0],[4.297,.025],[0,0],[0,0]],o:[[0,0],[1.699,-3.947],[0,0],[0,0],[0,0]],v:[[33.089,26.108],[45.295,-16.286],[39.819,-24.659],[-36.497,-26.224],[-52.994,26.108]],c:!0}]},{t:50,s:[{i:[[0,0],[0,0],[4.297,.025],[0,0],[0,0]],o:[[0,0],[1.699,-3.947],[0,0],[0,0],[0,0]],v:[[33.089,26.108],[51.295,-16.17],[45.819,-24.543],[-30.497,-26.108],[-52.994,26.108]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666666667,.105882360421,.129411764706,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1.5,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.145098039216,.827451040231,.400000029919,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[90.619,29.858],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:3,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[4.297,.025],[0,0],[0,0]],o:[[0,0],[1.699,-3.947],[0,0],[0,0],[0,0]],v:[[123.708,55.966],[135.914,13.572],[130.438,5.199],[54.122,3.634],[37.625,55.966]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 3",np:1,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0}],markers:[]}}i.default=e}),66); __d("WAWebIntroMdBetaLogoDarkIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="intro-md-beta-logo-dark";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=172,R=303;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 303 172",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M229.565 160.229C262.212 149.245 286.931 118.241 283.39 73.4194C278.009 5.31929 212.365 -11.5738 171.472 8.48673C115.998 35.6999 108.972 40.1612 69.2388 40.1612C39.645 40.1612 9.51317 54.4147 5.74669 92.952C3.01662 120.885 13.9985 145.267 54.6373 157.716C128.599 180.373 198.017 170.844 229.565 160.229Z",fill:"#364147"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M131.589 68.9422C131.593 68.9422 131.596 68.9422 131.599 68.9422C137.86 68.9422 142.935 63.6787 142.935 57.1859C142.935 50.6931 137.86 45.4297 131.599 45.4297C126.518 45.4297 122.218 48.8958 120.777 53.6723C120.022 53.4096 119.213 53.2672 118.373 53.2672C114.199 53.2672 110.815 56.7762 110.815 61.1047C110.815 65.4332 114.199 68.9422 118.373 68.9422C118.377 68.9422 118.381 68.9422 118.386 68.9422H131.589Z",fill:"#F1F1F2",fillOpacity:.38}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.682 128.716C109.186 128.716 112.026 125.908 112.026 122.446C112.026 118.983 109.186 116.176 105.682 116.176C104.526 116.176 103.442 116.481 102.509 117.015L102.509 116.959C102.509 110.467 97.1831 105.203 90.6129 105.203C85.3224 105.203 80.8385 108.616 79.2925 113.335C78.6052 113.143 77.88 113.041 77.1304 113.041C72.7503 113.041 69.1995 116.55 69.1995 120.878C69.1995 125.207 72.7503 128.716 77.1304 128.716C77.1341 128.716 77.1379 128.716 77.1416 128.716H105.682L105.682 128.716Z",fill:"#F1F1F2",fillOpacity:.38}),c.jsx("rect",{x:.445307,y:.549558,width:50.5797,height:100.068,rx:7.5,transform:"matrix(0.994522 0.104528 -0.103907 0.994587 10.5547 41.6171)",fill:"#42CBA5",stroke:"#316474"}),c.jsx("rect",{x:.445307,y:.549558,width:50.4027,height:99.7216,rx:7.5,transform:"matrix(0.994522 0.104528 -0.103907 0.994587 10.9258 37.9564)",fill:"#EEFAF6",stroke:"#316474"}),c.jsx("path",{d:"M57.1609 51.7354L48.5917 133.759C48.2761 136.78 45.5713 138.972 42.5503 138.654L9.58089 135.189C6.55997 134.871 4.36688 132.165 4.68251 129.144L13.2517 47.1204C13.5674 44.0992 16.2722 41.9075 19.2931 42.2251L24.5519 42.7778L47.0037 45.1376L52.2625 45.6903C55.2835 46.0078 57.4765 48.7143 57.1609 51.7354Z",fill:"#DFF3ED",stroke:"#316474"}),c.jsx("path",{d:"M26.2009 102.937C27.0633 103.019 27.9323 103.119 28.8023 103.21C29.0402 101.032 29.2706 98.8437 29.4916 96.6638L26.8817 96.39C26.6438 98.5681 26.4049 100.755 26.2009 102.937ZM23.4704 93.3294L25.7392 91.4955L27.5774 93.7603L28.7118 92.8434L26.8736 90.5775L29.1434 88.7438L28.2248 87.6114L25.955 89.4452L24.1179 87.1806L22.9824 88.0974L24.8207 90.3621L22.5508 92.197L23.4704 93.3294ZM22.6545 98.6148C22.5261 99.9153 22.3893 101.215 22.244 102.514C23.1206 102.623 23.9924 102.697 24.8699 102.798C25.0164 101.488 25.1451 100.184 25.2831 98.8734C24.4047 98.7813 23.5298 98.6551 22.6545 98.6148ZM39.502 89.7779C38.9965 94.579 38.4833 99.3707 37.9862 104.174C38.8656 104.257 39.7337 104.366 40.614 104.441C41.1101 99.6473 41.6138 94.8633 42.1271 90.0705C41.2625 89.9282 40.3796 89.8786 39.502 89.7779ZM35.2378 92.4459C34.8492 96.2179 34.4351 99.9873 34.0551 103.76C34.925 103.851 35.7959 103.934 36.6564 104.033C37.1028 100.121 37.482 96.1922 37.9113 92.2783C37.0562 92.1284 36.18 92.0966 35.3221 91.9722C35.2812 92.1276 35.253 92.286 35.2378 92.4459ZM31.1061 94.1821C31.0635 94.341 31.0456 94.511 31.0286 94.6726C30.7324 97.5678 30.4115 100.452 30.1238 103.348L32.7336 103.622C32.8582 102.602 32.9479 101.587 33.0639 100.567C33.2611 98.5305 33.5188 96.4921 33.6905 94.4522C32.8281 94.3712 31.9666 94.2811 31.1061 94.1821Z",fill:"#316474"}),c.jsx("path",{d:"M17.892 48.4889C17.7988 49.3842 18.4576 50.1945 19.3597 50.2923C20.2665 50.3906 21.0855 49.7332 21.1792 48.8333C21.2724 47.938 20.6136 47.1277 19.7115 47.0299C18.8047 46.9316 17.9857 47.5889 17.892 48.4889Z",fill:"white",stroke:"#316474"}),c.jsx("path",{d:"M231.807 136.678L197.944 139.04C197.65 139.06 197.404 139.02 197.249 138.96C197.208 138.945 197.179 138.93 197.16 138.918L196.456 128.876C196.474 128.862 196.5 128.843 196.538 128.822C196.683 128.741 196.921 128.668 197.215 128.647L231.078 126.285C231.372 126.265 231.618 126.305 231.773 126.365C231.814 126.381 231.842 126.395 231.861 126.407L232.566 136.449C232.548 136.463 232.522 136.482 232.484 136.503C232.339 136.584 232.101 136.658 231.807 136.678Z",fill:"white",stroke:"#316474"}),c.jsx("path",{d:"M283.734 125.679L144.864 135.363C141.994 135.563 139.493 133.4 139.293 130.54L133.059 41.6349C132.858 38.7751 135.031 36.2858 137.903 36.0856L276.773 26.4008C279.647 26.2005 282.144 28.364 282.345 31.2238L288.578 120.129C288.779 122.989 286.607 125.478 283.734 125.679Z",fill:"#EEFAF6"}),c.jsx("path",{d:"M144.864 135.363C141.994 135.563 139.493 133.4 139.293 130.54L133.059 41.6349C132.858 38.7751 135.031 36.2858 137.903 36.0856L276.773 26.4008C279.647 26.2004 282.144 28.364 282.345 31.2238L288.578 120.129C288.779 122.989 286.607 125.478 283.734 125.679",stroke:"#316474"}),c.jsx("path",{d:"M278.565 121.405L148.68 130.463C146.256 130.632 144.174 128.861 144.012 126.55L138.343 45.695C138.181 43.3846 139.994 41.3414 142.419 41.1723L272.304 32.1142C274.731 31.945 276.81 33.7166 276.972 36.0271L282.641 116.882C282.803 119.193 280.992 121.236 278.565 121.405Z",fill:"#DFF3ED",stroke:"#316474"}),c.jsx("path",{d:"M230.198 129.97L298.691 125.193L299.111 131.189C299.166 131.97 299.013 132.667 298.748 133.161C298.478 133.661 298.137 133.887 297.825 133.909L132.794 145.418C132.482 145.44 132.113 145.263 131.777 144.805C131.445 144.353 131.196 143.684 131.141 142.903L130.721 136.907L199.215 132.131C199.476 132.921 199.867 133.614 200.357 134.129C200.929 134.729 201.665 135.115 202.482 135.058L227.371 133.322C228.188 133.265 228.862 132.782 229.345 132.108C229.758 131.531 230.05 130.79 230.198 129.97Z",fill:"#42CBA5",stroke:"#316474"}),c.jsx("path",{d:"M230.367 129.051L300.275 124.175L300.533 127.851C300.591 128.681 299.964 129.403 299.13 129.461L130.858 141.196C130.025 141.254 129.303 140.627 129.245 139.797L128.987 136.121L198.896 131.245C199.485 132.391 200.709 133.147 202.084 133.051L227.462 131.281C228.836 131.185 229.943 130.268 230.367 129.051Z",fill:"#EEFAF6",stroke:"#316474"}),c.jsx("ellipse",{rx:15.9969,ry:15.9971,transform:"matrix(0.997577 -0.0695704 0.0699429 0.997551 210.659 83.553)",fill:"#42CBA5",stroke:"#316474"}),c.jsx("path",{d:"M208.184 87.1094L204.777 84.3593C204.777 84.359 204.776 84.3587 204.776 84.3583C203.957 83.6906 202.744 83.8012 202.061 84.6073C201.374 85.4191 201.486 86.6265 202.31 87.2997L202.312 87.3011L207.389 91.4116C207.389 91.4119 207.389 91.4121 207.389 91.4124C208.278 92.1372 209.611 91.9373 210.242 90.9795L218.283 78.77C218.868 77.8813 218.608 76.6968 217.71 76.127C216.817 75.5606 215.624 75.8109 215.043 76.6939L208.184 87.1094Z",fill:"white",stroke:"#316474"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.IntroMdBetaLogoDarkIcon=m}),98); __d("WAWebIntroMdBetaLogoLightIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="intro-md-beta-logo-light";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=172,R=303;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 303 172",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M229.565 160.229C262.212 149.245 286.931 118.241 283.39 73.4194C278.009 5.31929 212.365 -11.5738 171.472 8.48673C115.998 35.6999 108.972 40.1612 69.2388 40.1612C39.645 40.1612 9.51318 54.4147 5.7467 92.952C3.0166 120.885 13.9985 145.267 54.6373 157.716C128.599 180.373 198.017 170.844 229.565 160.229Z",fill:"#DAF7F3"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M131.589 68.9422C131.593 68.9422 131.596 68.9422 131.599 68.9422C137.86 68.9422 142.935 63.6787 142.935 57.1859C142.935 50.6931 137.86 45.4297 131.599 45.4297C126.518 45.4297 122.218 48.8958 120.777 53.6723C120.022 53.4096 119.213 53.2672 118.373 53.2672C114.199 53.2672 110.815 56.7762 110.815 61.1047C110.815 65.4332 114.199 68.9422 118.373 68.9422C118.377 68.9422 118.381 68.9422 118.386 68.9422H131.589Z",fill:"white"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.682 128.716C109.186 128.716 112.026 125.908 112.026 122.446C112.026 118.983 109.186 116.176 105.682 116.176C104.526 116.176 103.442 116.481 102.509 117.015L102.509 116.959C102.509 110.467 97.1831 105.203 90.6129 105.203C85.3224 105.203 80.8385 108.616 79.2925 113.335C78.6052 113.143 77.88 113.041 77.1304 113.041C72.7503 113.041 69.1995 116.55 69.1995 120.878C69.1995 125.207 72.7503 128.716 77.1304 128.716C77.1341 128.716 77.1379 128.716 77.1416 128.716H105.682L105.682 128.716Z",fill:"white"}),c.jsx("rect",{x:.445307,y:.549558,width:50.5797,height:100.068,rx:7.5,transform:"matrix(0.994522 0.104528 -0.103907 0.994587 10.5547 41.6171)",fill:"#42CBA5",stroke:"#316474"}),c.jsx("rect",{x:.445307,y:.549558,width:50.4027,height:99.7216,rx:7.5,transform:"matrix(0.994522 0.104528 -0.103907 0.994587 10.9258 37.9564)",fill:"white",stroke:"#316474"}),c.jsx("path",{d:"M57.1609 51.7354L48.5917 133.759C48.2761 136.78 45.5713 138.972 42.5503 138.654L9.58089 135.189C6.55997 134.871 4.36688 132.165 4.68251 129.144L13.2517 47.1204C13.5674 44.0992 16.2722 41.9075 19.2931 42.2251L24.5519 42.7778L47.0037 45.1376L52.2625 45.6903C55.2835 46.0078 57.4765 48.7143 57.1609 51.7354Z",fill:"#EEFEFA",stroke:"#316474"}),c.jsx("path",{d:"M26.2009 102.937C27.0633 103.019 27.9323 103.119 28.8023 103.21C29.0402 101.032 29.2706 98.8437 29.4916 96.6638L26.8817 96.39C26.6438 98.5681 26.4049 100.755 26.2009 102.937ZM23.4704 93.3294L25.7392 91.4955L27.5774 93.7603L28.7118 92.8434L26.8736 90.5775L29.1434 88.7438L28.2248 87.6114L25.955 89.4452L24.1179 87.1806L22.9824 88.0974L24.8207 90.3621L22.5508 92.197L23.4704 93.3294ZM22.6545 98.6148C22.5261 99.9153 22.3893 101.215 22.244 102.514C23.1206 102.623 23.9924 102.697 24.8699 102.798C25.0164 101.488 25.1451 100.184 25.2831 98.8734C24.4047 98.7813 23.5298 98.6551 22.6545 98.6148ZM39.502 89.7779C38.9965 94.579 38.4833 99.3707 37.9862 104.174C38.8656 104.257 39.7337 104.366 40.614 104.441C41.1101 99.6473 41.6138 94.8633 42.1271 90.0705C41.2625 89.9282 40.3796 89.8786 39.502 89.7779ZM35.2378 92.4459C34.8492 96.2179 34.4351 99.9873 34.0551 103.76C34.925 103.851 35.7959 103.934 36.6564 104.033C37.1028 100.121 37.482 96.1922 37.9113 92.2783C37.0562 92.1284 36.18 92.0966 35.3221 91.9722C35.2812 92.1276 35.253 92.286 35.2378 92.4459ZM31.1061 94.1821C31.0635 94.341 31.0456 94.511 31.0286 94.6726C30.7324 97.5678 30.4115 100.452 30.1238 103.348L32.7336 103.622C32.8582 102.602 32.9479 101.587 33.0639 100.567C33.2611 98.5305 33.5188 96.4921 33.6905 94.4522C32.8281 94.3712 31.9666 94.2811 31.1061 94.1821Z",fill:"#316474"}),c.jsx("path",{d:"M17.892 48.4889C17.7988 49.3842 18.4576 50.1945 19.3597 50.2923C20.2665 50.3906 21.0855 49.7332 21.1792 48.8333C21.2724 47.938 20.6136 47.1277 19.7115 47.0299C18.8047 46.9316 17.9857 47.5889 17.892 48.4889Z",fill:"white",stroke:"#316474"}),c.jsx("path",{d:"M231.807 136.678L197.944 139.04C197.65 139.06 197.404 139.02 197.249 138.96C197.208 138.945 197.179 138.93 197.16 138.918L196.456 128.876C196.474 128.862 196.5 128.843 196.538 128.822C196.683 128.741 196.921 128.668 197.215 128.647L231.078 126.285C231.372 126.265 231.618 126.305 231.773 126.365C231.814 126.381 231.842 126.395 231.861 126.407L232.566 136.449C232.548 136.463 232.522 136.482 232.484 136.503C232.339 136.584 232.101 136.658 231.807 136.678Z",fill:"white",stroke:"#316474"}),c.jsx("path",{d:"M283.734 125.679L144.864 135.363C141.994 135.563 139.493 133.4 139.293 130.54L133.059 41.6349C132.858 38.7751 135.031 36.2858 137.903 36.0856L276.773 26.4008C279.647 26.2005 282.144 28.364 282.345 31.2238L288.578 120.129C288.779 122.989 286.607 125.478 283.734 125.679Z",fill:"white"}),c.jsx("path",{d:"M144.864 135.363C141.994 135.563 139.493 133.4 139.293 130.54L133.059 41.6349C132.858 38.7751 135.031 36.2858 137.903 36.0856L276.773 26.4008C279.647 26.2004 282.144 28.364 282.345 31.2238L288.578 120.129C288.779 122.989 286.607 125.478 283.734 125.679",stroke:"#316474"}),c.jsx("path",{d:"M278.565 121.405L148.68 130.463C146.256 130.632 144.174 128.861 144.012 126.55L138.343 45.695C138.181 43.3846 139.994 41.3414 142.419 41.1723L272.304 32.1142C274.731 31.945 276.81 33.7166 276.972 36.0271L282.641 116.882C282.803 119.193 280.992 121.236 278.565 121.405Z",fill:"#EEFEFA",stroke:"#316474"}),c.jsx("path",{d:"M230.198 129.97L298.691 125.193L299.111 131.189C299.166 131.97 299.013 132.667 298.748 133.161C298.478 133.661 298.137 133.887 297.825 133.909L132.794 145.418C132.482 145.44 132.113 145.263 131.777 144.805C131.445 144.353 131.196 143.684 131.141 142.903L130.721 136.907L199.215 132.131C199.476 132.921 199.867 133.614 200.357 134.129C200.929 134.729 201.665 135.115 202.482 135.058L227.371 133.322C228.188 133.265 228.862 132.782 229.345 132.108C229.758 131.531 230.05 130.79 230.198 129.97Z",fill:"#42CBA5",stroke:"#316474"}),c.jsx("path",{d:"M230.367 129.051L300.275 124.175L300.533 127.851C300.591 128.681 299.964 129.403 299.13 129.461L130.858 141.196C130.025 141.254 129.303 140.627 129.245 139.797L128.987 136.121L198.896 131.245C199.485 132.391 200.709 133.147 202.084 133.051L227.462 131.281C228.836 131.185 229.943 130.268 230.367 129.051Z",fill:"white",stroke:"#316474"}),c.jsx("ellipse",{rx:15.9969,ry:15.9971,transform:"matrix(0.997577 -0.0695704 0.0699429 0.997551 210.659 83.553)",fill:"#42CBA5",stroke:"#316474"}),c.jsx("path",{d:"M208.184 87.1094L204.777 84.3593C204.777 84.359 204.776 84.3587 204.776 84.3583C203.957 83.6906 202.744 83.8012 202.061 84.6073C201.374 85.4191 201.486 86.6265 202.31 87.2997L202.312 87.3011L207.389 91.4116C207.389 91.4119 207.389 91.4121 207.389 91.4124C208.278 92.1372 209.611 91.9373 210.242 90.9795L218.283 78.77C218.868 77.8813 218.608 76.6968 217.71 76.127C216.817 75.5606 215.624 75.8109 215.043 76.6939L208.184 87.1094Z",fill:"white",stroke:"#316474"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.IntroMdBetaLogoLightIcon=m}),98); __d("WAWebWdsIllWebNativeIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-ill-web-native";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=180,R=270;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p,height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"#E6FFDA",stroke:"#111B21",strokeLinejoin:"round",strokeWidth:1.25,d:"M30.7 18.45a8 8 0 0 1 8-8h187.25a8 8 0 0 1 8 8v139.27H30.7z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#E6FFDA",stroke:"#111B21",strokeLinejoin:"round",strokeWidth:1.25,d:"M11.75 156.49c0 7.2 13.89 13.06 22.51 13.06H230.4c8.62 0 22.51-5.85 22.51-13.06z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("circle",{cx:128.06,cy:19.32,r:2.15,fill:"#E6FFDA",stroke:"#111B21",strokeWidth:1.25,style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeWidth:1.25,d:"M134.1 19.32h4.65",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeWidth:1.25,d:"M119.41 163.13h25.84",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#FCF5EB",stroke:"#111B21",strokeLinejoin:"round",strokeWidth:1.25,d:"M5.35 51.17a8.61 8.61 0 0 1 8.61-8.62h106.86a8.61 8.61 0 0 1 8.61 8.62v72.5a8.61 8.61 0 0 1-8.61 8.6H13.96a8.61 8.61 0 0 1-8.61-8.6z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#fff",stroke:"#111B21",strokeLinejoin:"round",strokeWidth:1.25,d:"M5.35 50.55a8 8 0 0 1 8-8h39.72v89.73H13.35a8 8 0 0 1-8-8zm59.18 67.41a4.77 4.77 0 0 1 4.77-4.77h42.95v9.54H69.3a4.77 4.77 0 0 1-4.77-4.77Z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#E6FFDA",stroke:"#111B21",strokeLinejoin:"round",strokeWidth:1.25,d:"M60.83 76.07a.86.86 0 0 1 .67-1.37l39.42-.85a6.89 6.89 0 0 1 7.04 6.89v16.85a6.9 6.9 0 0 1-6.9 6.89H71.19a6.89 6.89 0 0 1-6.89-6.9V80.86l-3.46-4.78Zm3.7-21.67a5.17 5.17 0 0 1 5.16-5.16h28.47a4.3 4.3 0 0 1 4.3 4.3v7.14a4.3 4.3 0 0 1-4.3 4.3H69.7a5.17 5.17 0 0 1-5.16-5.16V54.4Z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#25D366",d:"M18.43 70.13h22.91-22.9Z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M18.43 70.13h22.91",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#25D366",d:"M18.43 81.69h22.91-22.9Z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M18.43 81.69h22.91",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#25D366",d:"M18.43 93.24h22.91-22.9Z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M18.43 93.24h22.91",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#25D366",d:"M18.43 104.8h22.91-22.9Z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M18.43 104.8h22.91",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#fff",d:"M89.82 39.44a8 8 0 0 1 8-8h79.84v55.11H89.82z",style:{fillOpacity:1}}),c.jsx("path",{fill:"#FCF5EB",d:"M177.66 87.43h87.85v47.12a8 8 0 0 1-8 8h-79.85z",style:{fillOpacity:1}}),c.jsx("path",{fill:"#CDF5EB",d:"M89.82 87.42h87.84v55.12l-80.1.93a8 8 0 0 1-8.1-8.06l.36-48Z",style:{fillOpacity:1}}),c.jsx("path",{fill:"#FFDD9B",d:"M177.66 31.87h78.99a8 8 0 0 1 8 8v47.12h-86.99z",style:{fillOpacity:1}}),c.jsx("path",{fill:"#25D366",stroke:"#111B21",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.25,d:"M159.44 86.87c-5.13-8.28-8.65-11.83-18.14-12.54-.2.3-2.8 4.05-7.44 4.04a8.97 8.97 0 0 1-7.87-4.89c-6.05-3.13-15.36 1.2-22.12 13.39z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#AD7144",d:"M147.26 58.03c-.05 4.7-.82 10.37-5.54 13.39-1.1.83-.29 2.59-.68 3.92-.2.7-.2.6-.4 1.3-.4 1.5-3.52 2.29-7.42 2.37s-7.74-3.12-8.56-5.32.63-2.3.35-4.7c-.4-3.44-1.6-6.9-2.46-10.25-1.27-4.95-.21-9.04 3.89-12.05 3.77-2.76 10.63-6.38 14.87-3.21 3.37 2.52 5.98 10.54 5.95 14.56z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.25,d:"M124.9 61.74c.55 1.31-.23 11.95-.23 11.95s2.55 5.52 8.56 5.32c4.95-.18 8.34-.5 7.63-7.09",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.25,d:"M132.15 71.08c2.32 2.05 5.93 2.23 8.7.84 2.76-1.39 4.7-4.13 5.63-7.09.93-2.97.94-6.15.59-9.24-.4-3.52-1.37-7.2-3.9-9.67-3.1-3.02-8.25-3.51-12-1.36-3.74 2.15-6.46 5.49-6.1 9.82",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.25,d:"M141.05 55.9c-.6 1.46 1.3 2.64 1.33 3.38.05 1.25-1.4 1.8-2.14 1.84m.46 4.15c-1.54.7-3.48.4-4.73-.76m-10.98-1.49c.19 2.83-.32 10.68-.32 10.68",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#111B21",stroke:"#111B21",strokeWidth:1.25,d:"M144.4 45.78c0 1.73-.96 5.24-4.8 5.4-2.66.12-4-1.04-4.6-2.19.13 1-.08 2.08-1.31 2.4a4.06 4.06 0 0 1-3.78-.82c.61.96 1.92 3.78.79 4.85-1.86 1.76-2.55-.07-4.57-.05-.85 0-2.32.16-2.76 1.53-.62 1.98-.18 4.5 3.37 4.09 3.09-.36 3.47 6.74-.4 6.84 1.42 2.24.6 7.45-7.87 4.5-8.47-2.97-7.55-13.8-2.45-15.43-4.08-3.26-.92-14.19 7.35-11.94-.4-6.94 9.5-11.44 13.99-6.03 5.1-6.12 15.37 1.64 10.98 7.76 4.08.31 7.5 6.13 3.21 10.21 3.01.62 3.83 7.71-1.38 8.27 4.09 5.57-5.36 9.55-7.3 5.67 4.34-3.68 4.43-9.41 4.6-11.8-.35-5.74-1.06-8.6-3.06-13.26Z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("circle",{cx:.85,cy:.85,r:.85,fill:"#111B21",style:{fillOpacity:1},transform:"matrix(-1 0 0 1 136.67 55.27)"}),c.jsx("circle",{cx:.85,cy:.85,r:.85,fill:"#111B21",style:{fillOpacity:1},transform:"matrix(-1 0 0 1 144.52 55.27)"}),c.jsx("path",{fill:"#AD7144",d:"M145.76 78.21c1.45 4.15 2.79 5.53 2.84 8.54l15.73.1c2.2-1.84 6.69-6.57 6.06-7.93s-5.58 1.28-7.24 2.98c1.61-2.31 6.6-7.55 5.12-8.9-2.12-1.91-8.27 7.86-7.61 6.68.65-1.18 4.46-8.35 2.3-9.43-2.55-1.27-6.63 9.95-6.24 8.77.4-1.18 2.78-9.82.42-9.95s-5.52 8.35-5.91 12.44c-.36-.84-2.74-5.85-5.09-4.61-.45.24-.55.82-.38 1.31",style:{fillOpacity:1}}),c.jsx("path",{fill:"#111B21",d:"m148.6 86.75-.63.01.02.61h.6v-.62Zm-2.84-8.54-.6.2zm.38-1.31-.29-.56.3.56Zm5.09 4.6-.58.25a.63.63 0 0 0 1.2-.18l-.62-.06Zm5.9-12.43-.03.62.04-.62Zm-.4 9.95.59.2-.6-.2Zm6.22-8.77-.28.56zm-2.3 9.43.55.3-.54-.3Zm7.62-6.67.42-.46zm-5.12 8.9-.52-.36a.63.63 0 0 0 .96.79l-.44-.44Zm1.18 4.94v.63h.23l.17-.15zm-15.73-.1h.62c-.03-1.63-.4-2.8-.94-4.09-.54-1.28-1.22-2.6-1.93-4.65l-.6.2-.58.2c.73 2.1 1.45 3.54 1.96 4.74.5 1.2.82 2.21.84 3.61h.63Zm-2.46-9.85.3.55c.35-.19.7-.16 1.13.07.45.25.92.71 1.37 1.29a15.2 15.2 0 0 1 1.71 2.94l.58-.24.57-.25c-.19-.44-.9-1.96-1.88-3.22a6.1 6.1 0 0 0-1.74-1.61 2.38 2.38 0 0 0-2.33-.09l.3.56Zm5.09 4.6.62.07a28.8 28.8 0 0 1 2.17-7.62 16.3 16.3 0 0 1 1.75-3.2c.3-.39.58-.67.82-.85.25-.18.41-.21.51-.2l.04-.63.03-.63c-.49-.02-.93.17-1.31.45a5.2 5.2 0 0 0-1.08 1.11c-.68.9-1.33 2.13-1.9 3.46a30 30 0 0 0-2.27 7.99l.62.06Zm5.9-12.43-.03.62c.07 0 .12.02.19.13.09.14.17.38.21.77.1.76.02 1.82-.15 2.97a39 39 0 0 1-1.22 5.26l.6.2.59.2c.2-.62.9-3.11 1.26-5.48.18-1.17.28-2.37.16-3.3a3.1 3.1 0 0 0-.4-1.3 1.45 1.45 0 0 0-1.17-.7l-.03.63Zm-.4 9.95-.6-.2-.03.1-.01.05a.6.6 0 0 0 0 .25c0 .06.1.24.18.34.15.1.48.17.63.14.08-.04.2-.11.23-.14l.07-.07.06-.1.1-.22a50 50 0 0 1 1.94-4.28 17.8 17.8 0 0 1 2.02-3.23c.35-.4.66-.67.9-.8.24-.12.36-.1.45-.05l.28-.56.28-.56a1.7 1.7 0 0 0-1.58.06 4.5 4.5 0 0 0-1.27 1.1c-.79.9-1.55 2.2-2.2 3.46a51 51 0 0 0-1.58 3.41l-.4.97-.05.12.01-.02.04-.06.07-.07c.03-.04.14-.1.22-.14a1 1 0 0 1 .64.14c.08.1.17.27.18.34a.6.6 0 0 1 0 .23v.03-.04l-.59-.2Zm6.22-8.77-.28.56c.17.08.37.35.3 1.16a11 11 0 0 1-.7 2.74 37 37 0 0 1-2.16 4.66l.55.3.54.3c.34-.59 1.47-2.7 2.25-4.83.39-1.05.7-2.15.77-3.08.07-.88-.07-1.91-.99-2.37zm-2.3 9.43-.54-.3-.06.11a.7.7 0 0 0-.07.32.62.62 0 0 0 .97.49c.06-.04.1-.08.1-.09l.04-.04.04-.05.08-.1.57-.8c.51-.7 1.28-1.75 2.12-2.75a16 16 0 0 1 2.56-2.56c.4-.3.74-.45.98-.5.22-.06.33-.01.41.06l.42-.46.42-.46c-.45-.41-1-.48-1.51-.37-.5.1-.99.38-1.45.72-.93.67-1.92 1.73-2.78 2.76a50 50 0 0 0-2.19 2.84l-.56.78-.05.07c0 .01 0 0 0 0l.02-.02.1-.08c.02-.01.09-.06.2-.08a.62.62 0 0 1 .76.56v.16l-.04.1v.03l.01-.04-.54-.3Zm7.62-6.67-.42.46c.03.02.07.07.07.21 0 .17-.05.4-.18.73a11.8 11.8 0 0 1-1.38 2.32c-.62.86-1.34 1.77-2.01 2.6-.66.83-1.3 1.62-1.72 2.22l.52.35.5.36c.4-.56 1-1.3 1.67-2.14.68-.84 1.41-1.77 2.06-2.67.63-.89 1.2-1.8 1.52-2.58.16-.4.27-.8.27-1.2s-.13-.81-.48-1.12zm-5.12 8.9.44.43a14.6 14.6 0 0 1 3.83-2.51 7.4 7.4 0 0 1 1.9-.64c.24-.03.4-.02.48 0 .06.02.04.03.02 0l.57-.27.57-.26c-.17-.38-.5-.58-.83-.68a2.5 2.5 0 0 0-1-.03 9 9 0 0 0-2.24.74 16.1 16.1 0 0 0-4.2 2.78l.46.43Zm7.24-2.99-.57.26c0-.02.03.04-.02.24q-.075.3-.33.75a15 15 0 0 1-1.53 2.14 36 36 0 0 1-4.01 4.06l.4.48.4.48a37 37 0 0 0 4.17-4.22 15.5 15.5 0 0 0 1.66-2.33c.2-.36.36-.71.45-1.05a1.6 1.6 0 0 0-.05-1.07zm-6.06 7.93v-.62l-15.73-.1v1.25l15.73.1zm-18.57-8.64.59-.2a.7.7 0 0 1-.03-.4c.02-.09.07-.14.12-.16l-.3-.55-.29-.56c-.84.45-.9 1.43-.68 2.08l.59-.2Z",style:{fillOpacity:1}}),c.jsx("mask",{id:"mask0_2505_9168",width:88,height:55,x:177,y:31,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:c.jsx("path",{fill:"#FFDD9B",d:"M177.3 31.67h79.26a8 8 0 0 1 8 8v45.88H177.3z",style:{fillOpacity:1}})}),c.jsxs("g",{mask:"url(#mask0_2505_9168)",children:[c.jsx("path",{fill:"#fff",d:"M214.9 61.37c-2.02 5.22-6.69 2.92-10.92 3.93-5.07 1.45-6.44 4.03-7.08 5.78-.31.85.34 1.74 1.24 1.72 14.1-.49 16.86-.33 30.96-.8",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M214.9 61.37c-2.02 5.22-6.69 2.92-10.92 3.93-5.07 1.45-6.44 4.03-7.08 5.78-.31.85.34 1.74 1.24 1.72 14.1-.49 16.86-.33 30.96-.8",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#BDB6E4",stroke:"#111B21",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.25,d:"M211.3 64.92c0 1.93-2.45 4.62-4.39 4.62s-3.72-2.08-3.72-4.01c.84-.31 2.84-.47 3.85-.58 1.55-.15 3.17-.1 4.25-.04v.01Z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#fff",d:"M220.97 66.29c-2.02 5.22-6.69 2.91-10.92 3.93-5.08 1.44-6.44 4.02-7.08 5.77-.31.85.34 1.74 1.24 1.72 14.1-.48 45.75 1.65 65.9-3.85 3.33-4.35-5.05-5.17-4.57-7.57 1.66-8.38 5.27-24.47 4.57-25.41-.02 0-9.13 1.8-9.16 1.83-9.16 1.83-26.6 10.74-26.6 10.74l-3.99 2.95",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M220.97 66.29c-2.02 5.22-6.69 2.91-10.92 3.93-5.08 1.44-6.44 4.02-7.08 5.77-.31.85.34 1.74 1.24 1.72 14.1-.48 45.75 1.65 65.9-3.85 3.33-4.35-5.05-5.17-4.57-7.57 1.66-8.38 5.27-24.47 4.57-25.41-.02 0-9.13 1.8-9.16 1.83-9.16 1.83-26.6 10.74-26.6 10.74l-3.99 2.95",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#fff",d:"M220.97 66.29c-2.02 5.22-6.69 2.91-10.92 3.93-5.08 1.44-6.44 4.02-7.08 5.77-.31.85.34 1.74 1.24 1.72 14.1-.48 45.75 1.65 65.9-3.85 3.33-4.35 23.11-23.55 23.11-23.55 26.97-8.75-9.03-15.15-32.27-7.6-9.16 1.83-26.6 10.74-26.6 10.74l-3.99 2.95",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M220.97 66.29c-2.02 5.22-6.69 2.91-10.92 3.93-5.08 1.44-6.44 4.02-7.08 5.77-.31.85.34 1.74 1.24 1.72 14.1-.48 45.75 1.65 65.9-3.85 3.33-4.35 23.11-23.55 23.11-23.55 26.97-8.75-9.03-15.15-32.27-7.6-9.16 1.83-26.6 10.74-26.6 10.74l-3.99 2.95",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#fff",d:"M245.56 69.51c-2.02 5.22-6.68 2.92-10.92 3.93-5.07 1.45-6.43 4.03-7.07 5.78-.32.85.33 1.74 1.23 1.72 14.11-.48 45.75 1.64 65.9-3.86 3.33-4.35-5.04-5.17-4.57-7.57 1.67-8.37 5.27-24.46 4.58-25.4-.02 0-9.14 1.8-9.16 1.83-9.16 1.83-6.11-5.6-6.11-5.6",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M245.56 69.51c-2.02 5.22-6.68 2.92-10.92 3.93-5.07 1.45-6.43 4.03-7.07 5.78-.32.85.33 1.74 1.23 1.72 14.11-.48 45.75 1.64 65.9-3.86 3.33-4.35-5.04-5.17-4.57-7.57 1.67-8.37 5.27-24.46 4.58-25.4-.02 0-9.14 1.8-9.16 1.83-9.16 1.83-6.11-5.6-6.11-5.6",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#fff",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M212.4 46.43c.52-.8 4.23-11.1 6.07-10.57 1.85.53 2.12 8.73 2.12 8.73s4.5 1.06 5.82 1.85c1.32.8 2.91-9.25 4.76-8.46 1.84.78 2.64 10.84 2.64 10.84s5.55 16.13-5.3 19.31c-10.84 3.18-20.9-1.85-21.68-7.93-1.05-8.05 5.55-13.76 5.55-13.76h.01Z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#fff",d:"M212.52 51.86s2.51 1.59 2.64 3.18z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M212.52 51.86s2.51 1.59 2.64 3.18m.88 3.16 3.46.65",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#fff",d:"M215.17 63.63c1.78-1.1 2.38-3.17 2.38-3.17s-1.28 3.52 1.72 4.36c0 0 2.65.87 3.2-2.08",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M215.17 63.63c1.78-1.1 2.38-3.17 2.38-3.17s-1.28 3.52 1.72 4.36c0 0 2.65.87 3.2-2.08",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#fff",d:"M221.44 61.37s.72 2.06 3.3 2.38z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M221.44 61.37s.72 2.06 3.3 2.38",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#BDB6E4",stroke:"#111B21",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.25,d:"M234.35 53.45a7.01 7.01 0 1 1-7.01-7.01c.57-2.86 2.8-9.97 4.14-8.46 2.1 2.38 2.87 13.15 2.87 15.47Z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#fff",d:"M227.4 53.56s-2.97.13-3.88 1.44l3.87-1.44Z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M227.4 53.56s-2.97.13-3.88 1.44",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#BDB6E4",stroke:"#111B21",strokeWidth:1.25,d:"M257.32 57.17c-9.88 2.4-11.88-5.81-11.18-9.05 3.56-1.93 13.57-6.08 22.07-7 3.03-.33-1.3 13.73-10.89 16.05Z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#fff",d:"M268.58 50c-4.18-.56-13.3 6.51-15.48 10.14.82.67 3.97 2.02 10.07 2.09 6.1.06 7.4-8.11 5.41-12.24Z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeWidth:1.25,d:"M253.1 60.14c2.17-3.63 11.48-10.88 15.67-10.33",style:{strokeOpacity:1}})]}),c.jsx("path",{stroke:"#111B21",strokeWidth:1.25,d:"M89.79 86.79h174.89M177.43 32.3v110.24",style:{strokeOpacity:1}}),c.jsx("mask",{id:"mask1_2505_9168",width:87,height:62,x:179,y:81,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:c.jsx("path",{fill:"#FCF5EB",d:"M179.25 81.15h86.33v53.4a8 8 0 0 1-8 8h-78.33z",style:{fillOpacity:1}})}),c.jsxs("g",{mask:"url(#mask1_2505_9168)",children:[c.jsx("path",{fill:"#E7C09A",d:"m210.42 114.11-1.1 16.07 9 4.77-.9 8.96c-5.76.03-24.2.83-29.05.52-2.14-10.1 9.97-31.8 10.43-32.65-4.4-4.24 4.29-17.2 5.44-17.33 1.16-.13 1.54 0 1.29 2.69 2.3-3.6 3.04-4.2 4.58-4.2 1.53 0 .93 2.02 2.34 1 1.4-1.03 1.6-.96 2.75-.32 1.16.64.3 3.07 1.2 2.43s2.06-.06 2.06 1.09-3.36 3.39-2.2 3.26c1.15-.13 1.78-.18 1.78 1.36 0 1.23-1.81 2.28-2.84 3.05-.25 1.24-1.68 3.93-1.68 5.57s-1.65 3.13-3.1 3.73",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M203.74 99.56c.61-1.66 2.72-3.8 1.04-4.84-2.1-1.3-4.49 5.17-6.35 9.28-1.72 3.77-1.07 6.73-.08 7.56-6.09 12.28-10.72 22.4-9.98 31.69",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeWidth:1.25,d:"M198.11 111.28c.67 1.11 3.3 1.87 3.92 1.74m8.13 1.25c-.48 8.82.14 14.72-2.91 21.4",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M209.09 101.63c4.65-6.23 7.75-6.76 9-5.35.83.8.44 1.91-2.17 4.2",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M207.08 99.6c3.93-5.73 6.94-7.14 8.32-5.86.92.7.1 2.2-.7 2.5",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M203.55 99.83c2.58-4.42 5.67-8.5 7.57-6.5.98 1.18-.34 1.68-1.94 3.54m-4.12 11.31c.66-1.75 2.86-2.18 4.24-1.53 1-2.45 4-7.06 8.01-5.97 1.58.74.69 1.8.36 2.16s-2.5 1.6-2.81 3.07c-.32 1.48-1.66 8.94-7.1 8.85",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#5C4A3D",d:"M230.05 92.67c4.1 2.81 6.53.05 8.47.95 1.67.78 1.33 2.56-.13 3.68l-5.32 4.28s4.45 1.67 5.6 1.98c.14-.24 2.93-3.92 5.06-.81 1.26 1.83-.53 4.06-2.41 4.7l5.14 5.17c4.46-1.7 4.57-7.3 3.81-10.17a6 6 0 0 0 2.72-2.8c.68-1.34.07-3.56-.99-4.38.56-1.26.14-4.2-1.56-4.46-.33-1.91-2.05-3.46-3.38-3.42-.72-1.25-2.55-2.44-4.06-1.74-.64-1.45-2.93-1.77-3.93-.55-1.22-1.34-3.69-1.21-4.75.26-.3-.9-4.72-1.45-4.72 1.73-2.53.63-2.52 4.71.44 5.57Z",style:{fillOpacity:1}}),c.jsx("path",{fill:"#AFE966",d:"M250.04 116.28c19.1 2.47 19.62 20.63 22.2 24.47l-10.74 16.23-9.58-4.98-37.13-2.61c4.1-4.43 3.28-14.34 3.28-14.34-1.3-1.88-5.06-3.84-8.18-4.64.71-3.84 7.58-14.84 22.72-15.23z",style:{fillOpacity:1}}),c.jsx("path",{fill:"#E7C09A",d:"M221.62 99.8c1.1-1.73 3.95-.6 5.55-3.36.97-1.68 2.04-3.46 2.87-3.77 4.1 2.81 6.53.05 8.47.95 1.68.78 1.33 2.56-.12 3.69l-5.33 4.27s4.45 1.67 5.6 1.98c.14-.24 2.93-3.92 5.06-.8 1.26 1.82-.53 4.05-2.41 4.7l8.51 8.69c.34 1.19-9.49 6.31-12.94 6.66-3.72.37-7.85-1.17-7.92-5.58l.08-2.1V115c-1.68-.3-3.68-1.1-5.95-2.72-4.84-3.45.4-8.74.4-8.74s-3.08-1.84-1.87-3.75Z",style:{fillOpacity:1}}),c.jsx("path",{fill:"#5C4A3D",d:"M233.77 114.47c2.2-1.28 2.4-4.54 2.4-4.54.3-2.27-4.83-5.96-5.05-5.94-.25.02-2.98 1.41-4.2 1.14-1.23-.27-2.34-.93-3.42-1.57 0 0-5.25 5.29-.4 8.74 4.76 3.4 8.35 3.2 10.3 2.36.13-.06.26-.12.38-.2h-.01Z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M230.05 92.67c-2.97-.86-2.98-4.94-.45-5.56 0-3.18 4.42-2.64 4.72-1.73 1.07-1.48 3.53-1.6 4.75-.26 1.02-1.22 3.3-.9 3.93.54 1.51-.7 3.35.5 4.06 1.74 1.34-.04 3.04 1.52 3.38 3.43 1.7.26 2.12 3.2 1.57 4.46 1.05.82 1.67 3.04.99 4.38a6.1 6.1 0 0 1-2.72 2.8c.76 2.86.65 8.46-3.82 10.17",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M230.05 92.67c-.83.32-1.9 2.1-2.88 3.78-1.6 2.75-4.46 1.62-5.54 3.36-1.2 1.92 1.88 3.76 1.88 3.76m0 0s-5.26 5.28-.4 8.74c4.76 3.39 8.35 3.2 10.3 2.36 2.56-1.1 2.77-4.73 2.77-4.73.3-2.27-4.83-5.97-5.05-5.95-.26.03-2.98 1.42-4.2 1.15-1.24-.27-2.34-.93-3.42-1.57",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M228.4 108.45c-.75.67-2.02.63-2.73-.1m46.85 32.12c-2.57-3.84-3.73-21.76-22.83-24.23",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M230.05 92.67c4.1 2.82 6.53.05 8.47.95 1.67.78 1.33 2.56-.13 3.69l-5.33 4.27s4.46 1.68 5.62 1.98c.13-.24 2.92-3.92 5.05-.8 1.26 1.82-.53 4.05-2.41 4.7l8.44 8.64c.34 1.2-9.42 6.37-12.87 6.71-3.73.38-7.85-1.17-7.93-5.58l.1-2.1",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#111B21",d:"M227.7 99.83c.06-.55.36-.96.66-.92s.5.5.43 1.05-.37.96-.67.92c-.3-.03-.5-.5-.43-1.05Z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M231.1 98.93c-.07-1.12-1.5-1.96-2.07-1.87",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeWidth:1.25,d:"M231.17 115.25c-10.31.5-18.82 7.36-21.63 15.25 5.88 2.22 9.98 4.47 10.02 8.48",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#AFE966",d:"M222.75 126.76c1.8-2.09 3.68 7.53 4.76 15.24h-10.93c1.83-5.79 4.46-13.26 6.17-15.24",style:{fillOpacity:1}}),c.jsx("path",{fill:"#111B21",d:"M222.9 127.55a.62.62 0 1 0-1.03-.7l1.04.7Zm-5.92 16.36.63.03a36 36 0 0 1 2.07-9.53 32.5 32.5 0 0 1 3.23-6.86l-.52-.35-.51-.36a34 34 0 0 0-3.38 7.15 37 37 0 0 0-2.14 9.88z",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeWidth:1.25,d:"M247.36 146.12c-.07-.36-1.87-6.9-.57-12.38",style:{strokeOpacity:1}})]}),c.jsx("mask",{id:"mask2_2505_9168",width:89,height:57,x:96,y:87,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:c.jsx("path",{fill:"#CDF5EB",d:"M96.96 87.01h87.85v55.12l-80.1.94a8 8 0 0 1-8.1-8.06z",style:{fillOpacity:1}})}),c.jsxs("g",{mask:"url(#mask2_2505_9168)",children:[c.jsx("path",{fill:"#fff",stroke:"#111B21",strokeWidth:1.25,d:"M144.87 126.68c-6.51-2.88-15.16-1.54-15.16-1.54-9.7 1.26-14.32 3.38-18.61 8.35-2.41 2.97-2.99 7.88-3.5 10.57h52.15s-1.1-12.37-14.88-17.38Z",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{fill:"#BDB6E4",d:"M116.51 116.67c-3.34-3.03-7.1-13.44 6.75-20.38 6.12-3.07 10.46-1.14 12.68 0 3.95-.9 8.2 4.12 8.2 4.12 5.32 7.23-1.13 18.1-10.15 17.96l-17.5-1.72",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M116.51 116.67c-3.34-3.03-7.1-13.44 6.75-20.38 6.12-3.07 10.46-1.14 12.68 0 3.95-.9 8.2 4.12 8.2 4.12 5.32 7.23-1.13 18.1-10.15 17.96l-17.5-1.72",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#BDB6E4",d:"M123.29 120.47c2.76 5 6.27.9 9.17.82-.63 2.56-2.87 11.64-9.65 10.25-6.9-1.42-6.28-4.02-7.54-9.54 5.03.4 6.05-.65 8.02-1.53",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M115.78 123.12c-.43 5.83 5.57 10.6 11.77 6.65",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#F9DFCF",d:"M136.1 99.77c.3 3.02-1.5 5.4-3.92 6.92l-2.53.8a7.53 7.53 0 0 1-3.94-.8c-.2 3.2-1.6 5.6-3.02 7.26a7.85 7.85 0 0 1-6.18 2.7c-2.5-.23-4.38 2.37-3.7 4.57.38 1.25 1.48 2.05 2.83 2.42 1.45.87 6.07-1.41 6.3-1.56 1.51 1.95 2.48 2.43 3.92 3.3v3.89c0 2 1.36 3.78 3.34 4.01 2.2.26 4.17.16 6.04-.14 2.44-.4 3.98-2.77 3.7-5.23l-.24-1.96c5.95-2.5 9.83-8.74 6.73-16.17a4.01 4.01 0 0 0-3.8-5.3h-.17l.01-.01c-2.93-.83-5.37-4.7-5.37-4.7",style:{fillOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M121.48 120.36c1.14 3.63 4.04 5.79 7.56 6.56m8.4-.51c6.64-2.12 11.3-8.7 7.98-16.64",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeWidth:1.25,d:"M126.4 125.78c-.64 2.2-1.03 3.9-.33 5.04 2.46 4.01 9.55 3.02 11.43.94 2.42-2.67.93-5.86.93-5.86",style:{strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M135.95 119.97c-1.06.7-2.6.53-3.5-.36m6.61-8.04c.44.21 1.08 1.33 1 1.81a2.77 2.77 0 0 1-2.17 2.2m-15.79 6.3c-2.17 2.87-8.29 2.65-9.3-.65-.67-2.2 1.2-4.8 3.71-4.57 2.36.07 4.64-.9 6.19-2.7a12.18 12.18 0 0 0 3.01-7.27c1.97 1.07 4.66 1.05 6.01.29 2.64-1.5 4.71-4 4.39-7.2 0 0 2.44 3.87 5.36 4.7",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#fff",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M141.64 112.52c-2.2 0-4-1.8-4-4.03a4 4 0 1 1 8 0 4 4 0 0 1-4 4.03",style:{fillOpacity:1,strokeOpacity:1}}),c.jsx("path",{stroke:"#111B21",strokeWidth:1.25,d:"M135.34 109.93c.94-.58 1.44-.66 2.28-.52",style:{strokeOpacity:1}}),c.jsx("path",{fill:"#fff",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"M134.96 112.67a4.01 4.01 0 0 1-7.42-.6 4.06 4.06 0 0 1 1.57-4.56 5.3 5.3 0 0 0 2.6-.55l.48-.27a5.3 5.3 0 0 1 3 2.94 4.04 4.04 0 0 1-.23 3.04",style:{fillOpacity:1,strokeOpacity:1}})]}),c.jsx("path",{stroke:"#111B21",strokeWidth:1.25,d:"M96.84 31.9h161.02c4.07 0 7.37 3.3 7.37 7.38v96.43c0 4.07-3.3 7.37-7.37 7.37H96.84a7.38 7.38 0 0 1-7.38-7.37V39.28c0-4.07 3.3-7.37 7.38-7.37Z",style:{strokeOpacity:1}})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsIllWebNativeIcon=m}),98); __d("WAWebWdsSmbIllStartAChatIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-smb-ill-start-a-chat";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=152,R=228;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p,height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsxs("g",{clipPath:"url(#a)",children:[c.jsx("path",{fill:"#FCF5EB",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M55.58 85.94a27.55 27.55 0 1 0 0-55.1 27.55 27.55 0 0 0 0 55.1"}),c.jsx("path",{fill:"#FCF5EB",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M67.23 83.36c7.2-3.36 7.83-17.27 1.4-31.05-6.43-13.8-17.48-22.25-24.69-18.89-7.2 3.36-7.83 17.27-1.4 31.05 6.43 13.8 17.49 22.25 24.7 18.89Z"}),c.jsx("path",{fill:"#FCF5EB",d:"m36.93 79.01 46.09-22.46L36.93 79Zm-8.8-23.03 21.63-10.07 21.62-10.08"}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m36.93 79.01 46.09-22.46m-54.88-.57 21.62-10.07 21.62-10.08"}),c.jsx("path",{fill:"#FCF5EB",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M46.78 76.74a2.8 2.8 0 1 0 0-5.6 2.8 2.8 0 0 0 0 5.6m-8.54-22.65a2.8 2.8 0 1 0 0-5.6 2.8 2.8 0 0 0 0 5.6m29.09-1.95a2.8 2.8 0 1 0 0-5.6 2.8 2.8 0 0 0 0 5.6"}),c.jsx("path",{fill:"#E6FFDA",fillRule:"evenodd",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m77.62 54.27 93.79-19.34c2.59-.52 4.94 2.16 4.01 4.53l-6.17 16.09 6.94 33.66c4.48 21.78-9.34 43-30.83 47.44l-48.7 10.04c-21.52 4.45-42.57-9.61-47.09-31.38l-2.81-13.58c-4.49-21.79 9.34-43 30.82-47.44z",clipRule:"evenodd"}),c.jsx("path",{fill:"#fff",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M48.28 121.82c.07-.06.12-.08.16-.08s.1.02.16.06.1.1.1.14c.02.03.02.09-.02.17L42 135.48a3.25 3.25 0 0 0 1 4.1l9.1 6.53c1.95 1.41 4.7.28 5.1-2.1l6.36-37.98a3.25 3.25 0 0 0-4.73-3.4l-34.05 18.06a3.25 3.25 0 0 0-.37 5.5l9.05 6.5c1.3.92 3.06.78 4.18-.34l10.63-10.53Z"}),c.jsx("path",{fill:"#AFE966",d:"M146.6 81.15c.92 4.52-.28 8.8-2.77 12.04l3.95 19.24a8.8 8.8 0 0 1-6.84 10.37l-46.5 9.54a8.8 8.8 0 0 1-10.37-6.83l-3.95-19.24a14.78 14.78 0 0 1-7.25-9.97h-.04L71.8 79.08c-.17-3.13 1.77-5.86 4.57-6.44l57.67-11.83h-.02c2.82-.57 5.66 1.18 6.74 4.13l5.84 16.22h.03-.04Z"}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M146.6 81.15c.92 4.52-.28 8.8-2.77 12.04l3.95 19.24a8.8 8.8 0 0 1-6.84 10.37l-46.5 9.54a8.8 8.8 0 0 1-10.37-6.83l-3.95-19.24a14.78 14.78 0 0 1-7.25-9.97h-.04L71.8 79.08c-.17-3.13 1.77-5.86 4.57-6.44l57.67-11.83h-.02c2.82-.57 5.66 1.18 6.74 4.13l5.84 16.22Zm0 0h.03-.04Z"}),c.jsx("path",{fill:"#AFE966",d:"M99.73 102.44a15 15 0 0 1-9.97 5.64c-3.35.51-6.74-.17-9.64-1.81l3.94 19.23a8.8 8.8 0 0 0 10.37 6.84l15.53-3.18-4.43-21.58"}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M99.73 102.44a15 15 0 0 1-9.97 5.64m0 0a6.4 6.4 0 0 0-.05 2.77l4.72 21.5m-4.67-24.27c-3.35.51-6.74-.17-9.64-1.81l3.94 19.23a8.8 8.8 0 0 0 10.37 6.84m0 0 15.53-3.18-4.43-21.58"}),c.jsx("path",{fill:"#AFE966",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M138.02 108.08a6.5 6.5 0 0 1-5.06 7.67l-12.01 2.46a6.5 6.5 0 0 1-7.67-5.06l-1.68-8.19c-3.13.4-9.8-1.84-11.86-2.5 1.72.7 4.84.44 5.8 5.16l4.43 21.57 30.98-6.35a8.8 8.8 0 0 0 6.84-10.37l-3.95-19.24a15.15 15.15 0 0 1-7.76 5.37l1.95 9.5v-.02Z"}),c.jsx("path",{fill:"#AFE966",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M128.52 98.75c-2.54-.61-4.21-1.36-4.21-1.36a18.8 18.8 0 0 1-11.06 7.33c-.56.11-1.11.17-1.64.24l1.68 8.19a6.5 6.5 0 0 0 7.67 5.06l12.02-2.47a6.5 6.5 0 0 0 5.05-7.67l-1.94-9.5c-2.36.68-4.94.8-7.57.18m18.08-17.56-25.06 5.12-23.2 4.76-24.95 5.14L146.6 81.2Z"}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m94.44 68.94 5.28 33.5m17.78-37.32 7.16 32.2"}),c.jsx("path",{fill:"#06CF9C",d:"M168.78 86.62c-4.4-.18-8.5 1.88-10.5 5.93-3.63 7.41.9 15.62 5.65 21.33 3.3 3.92 7.17 7.25 11.06 10.59.38.33.8.69 1.32.71.52.05.98-.23 1.41-.5 6.59-4 13.09-8.34 18.24-14.05 3.01-3.35 5.65-7.66 4.91-12.1a10.35 10.35 0 0 0-4.66-6.93c-7.88-5-16.06 1.86-16.06 1.86s-4.53-7.46-11.4-6.84"}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M168.78 86.62c-4.4-.18-8.5 1.88-10.5 5.93-3.63 7.41.9 15.62 5.65 21.33 3.3 3.92 7.17 7.25 11.06 10.59.38.33.8.69 1.32.71.52.05.98-.23 1.41-.5 6.59-4 13.09-8.34 18.24-14.05 3.01-3.35 5.65-7.66 4.91-12.1a10.35 10.35 0 0 0-4.66-6.93c-7.88-5-16.06 1.86-16.06 1.86s-4.53-7.46-11.4-6.84"}),c.jsx("path",{fill:"#25D366",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m167.9 17-.2 3.7a3.58 3.58 0 0 0 3.24 3.8 3.52 3.52 0 0 0 3.74-3.31l.78-15.12a3.51 3.51 0 0 0-4.54-3.52l-14.98 4.34c-1.85.53-3 2.44-2.51 4.3a3.5 3.5 0 0 0 4.35 2.44l3.88-1.13-21 29.54-8.71-14.07a4.16 4.16 0 0 0-7-.11L112.08 47.2l11.56-2.36 4.63-6.97 8.57 13.83a4.16 4.16 0 0 0 6.9.25l24.1-35 .04.05Z"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"a",children:c.jsx("path",{fill:"#fff",d:"M0 0h228v152H0z"})})})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsSmbIllStartAChatIcon=m}),98); __d("WAWebIntroPanel.react",["cx","fbt","WALogger","WAWebABProps","WAWebBizGatingUtils","WAWebButton.react","WAWebDesktopUpsellAnimationData","WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebDesktopUpsellUtils","WAWebEnvironment","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebIntroMdBetaLogoDarkIcon.react","WAWebIntroMdBetaLogoLightIcon.react","WAWebLockOutlineIcon.react","WAWebLottieAnimationLoadable","WAWebMobilePlatforms","WAWebThemeContext","WAWebUseIsFeatureEnabled","WAWebVelocityAnimate","WAWebWaLogoIcon.react","WAWebWamEnumWebcNativeUpsellCtaSourceType","WAWebWdsIllWebNativeIcon.react","WAWebWdsSmbIllStartAChatIcon.react","WDSButton.react","WDSText.react","bx","cr:10211","cr:23046","react","stylex","useWAWebDesktopUpsellWamImpression","useWAWebExternalBetaOptIn"],(function(t,n,r,o,a,i,l,s,u){var e,c,d=["ref"],m,p,_,f=_||(_=o("react")),g=m||(m=r("react")),h=f.useContext,y=f.useEffect,C=f.useImperativeHandle,b=f.useRef,v={whatsappLogo:{color:"x1vef352",display:"x1rg5ohu",$$css:!0},textContainer:{opacity:"xg01cxk",$$css:!0},mdTextContainer:{opacity:"xg01cxk",$$css:!0},mdBetaImage:{display:"x1rg5ohu",marginTop:"xdj266r",marginInlineEnd:"x11t971q",marginBottom:"xat24cr",marginInlineStart:"xvc5jky",$$css:!0},spacingSingleBottom:{marginBottom:"xcytdqz",$$css:!0},spacingTripleBottom:{marginBottom:"x14mdic9",$$css:!0},spacingTripleTop:{marginTop:"x9u28bd",$$css:!0},animation:{width:"x9r4l05",height:"x1ebt64t",$$css:!0}};function S(t){var a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,d),l=i.animate,s=h(o("WAWebThemeContext").ThemeContext),m=o("WAWebDesktopUpsellUtils").getUserDesktopOs(),_=o("useWAWebExternalBetaOptIn").useExternalBetaOptIn(),f=_[0],S=o("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb(),E=b(null),k=b(null);y(function(){var t=E.current,n=k.current;l?(r("WAWebVelocityAnimate")(t,{scale:[1,0],opacity:[1,0]},{delay:1340,duration:180,easing:[.05,1.02,0,1.01]}).catch(function(){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[intro-panel] Velocity animate failed"])))}),r("WAWebVelocityAnimate")(n,{translateY:[0,80],opacity:[1,0]},{delay:1300,duration:140,easing:[.05,1.02,0,1.01]}).catch(function(){o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[intro-panel] 2nd Velocity animate failed"])))})):(t&&(t.style.opacity="1"),n&&(n.style.opacity="1"))},[]);var I=b(null),T=function(t){return I.current?I.current.contains(t):!1};C(a,function(){return{containsDOMNode:T}});var D=r("WAWebUseIsFeatureEnabled")("MD_EXTENSION"),x,$,P,N=v.textContainer,M=o("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck();o("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({source:o("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.INTRO_PANEL,isCtaVisible:M,isBeta:M&&S,isBetaUser:f});var w=(n("cr:23046")==null?void 0:n("cr:23046").isWindowsHybridEnabled())===!0,A=o("WAWebMobilePlatforms").isSMB();if(M){x=g.jsx("div",{ref:E,className:"xg01cxk x1g0ag68 x78zum5 xl56j7k",children:g.jsx(R,{userDesktopOs:m})});var F=g.jsx(r("WDSText.react"),{type:"LargeTitle1",colorName:"contentDefault",isPrimaryHeading:!0,xstyle:[v.spacingSingleBottom,v.spacingTripleTop],children:o("WAWebDesktopUpsellCommonStrings").getDesktopUpsellDownloadWhatsAppTitle(S)}),O=g.jsx(r("WDSText.react"),{type:"Body1",colorName:"contentDeemphasized",xstyle:v.spacingTripleBottom,children:o("WAWebDesktopUpsellCommonStrings").getDesktopUpsellIntroPanelText(S)});$=g.jsxs(g.Fragment,{children:[F,O]}),P=L({buttonText:o("WAWebDesktopUpsellCommonStrings").getDesktopAppDownloadFromStoreBtnLabel(S),onClick:function(){o("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:o("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.INTRO_PANEL,isBetaUpsell:S,isBetaUser:f})}})}else{N=v.mdTextContainer;var B;w?B=g.jsx(o("WAWebWaLogoIcon.react").WaLogoIcon,{height:56,width:56,iconXstyle:v.whatsappLogo}):A?B=g.jsx(o("WAWebWdsSmbIllStartAChatIcon.react").WdsSmbIllStartAChatIcon,{xstyle:v.mdBetaImage}):B=s.theme==="light"?g.jsx(o("WAWebIntroMdBetaLogoLightIcon.react").IntroMdBetaLogoLightIcon,{className_DONOTUSE:"x1rg5ohu xdj266r x11t971q xat24cr xvc5jky",width:360}):g.jsx(o("WAWebIntroMdBetaLogoDarkIcon.react").IntroMdBetaLogoDarkIcon,{className_DONOTUSE:"x1rg5ohu xdj266r x11t971q xat24cr xvc5jky",width:360}),x=g.jsx("div",{ref:E,className:"xg01cxk x1g0ag68 x78zum5 xl56j7k",children:B});var W;A?W=r("WAWebFbtCommon")("WhatsApp Business on Web"):W=r("WAWebFbtCommon")("WhatsApp Web"),r("WAWebEnvironment").isWindows&&(W=r("WAWebFbtCommon")("WhatsApp for Windows"));var q=g.jsx("div",{className:"x3nfvp2 x1q9ymp4 x579bpy x1iikomf x1srq1fq x14ug900",children:g.jsx("h1",{"data-testid":void 0,children:W})});D?$=g.jsxs(g.Fragment,{children:[q,g.jsxs("div",{"data-testid":void 0,className:"x98l61r x1f6kntn xo1l8bm x1fc57z9 xhslqc4",children:[u._(/*BTDS*/"Tu suscripci\u00f3n verificada a Meta te permite vincular hasta 6 dispositivos a tu cuenta de WhatsApp y asignar chats a cada uno de ellos."),g.jsx("br",{}),u._(/*BTDS*/"Usa tu tel\u00e9fono para a\u00f1adir dispositivos.")]})]}):o("WAWebBizGatingUtils").billingEnabled()?$=g.jsxs(g.Fragment,{children:[q,g.jsxs("div",{"data-testid":void 0,className:"x98l61r x1f6kntn xo1l8bm x1fc57z9 xhslqc4",children:[u._(/*BTDS*/"{=m0}",[u._implicitParam("=m0",g.jsx("strong",{children:u._(/*BTDS*/"Nuevo: Ventas y soporte desde varios agentes")}))]),g.jsx("br",{}),u._(/*BTDS*/"Resp\u00f3ndeles m\u00e1s r\u00e1pido a los clientes con hasta 10 agentes asignables. Disponible con WhatsApp\u00a0Business\u00a0Premium."),g.jsx("br",{}),g.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getWhatsAppBusinessPremiumFaqUrl(),children:u._(/*BTDS*/"M\u00e1s informaci\u00f3n")})]})]}):A?$=g.jsxs(g.Fragment,{children:[q,g.jsxs("div",{"data-testid":void 0,className:"x98l61r x1f6kntn xo1l8bm x1fc57z9 xhslqc4",children:[u._(/*BTDS*/"Organiza, administra y haz crecer tu cuenta de empresa."),g.jsx("br",{})]})]}):$=g.jsxs(g.Fragment,{children:[q,g.jsxs("div",{"data-testid":void 0,className:"x98l61r x1f6kntn xo1l8bm x1fc57z9 xhslqc4",children:[u._(/*BTDS*/"Env\u00eda y recibe mensajes sin necesidad de tener tu tel\u00e9fono conectado."),g.jsx("br",{}),u._(/*BTDS*/"Usa WhatsApp en hasta 4\u00a0dispositivos vinculados y 1\u00a0tel\u00e9fono a la vez.")]})]})}var U=g.jsx(o("WAWebLockOutlineIcon.react").LockOutlineIcon,{height:20,width:20});return g.jsx("div",{className:"x10l6tqk x1vjfegm x9f619 x78zum5 x1iyjqo2 x6s0dn4 xl56j7k xh8yej3 x5yr21d xv8gdss xgb8hzy xt0e3qv x6egj2d",ref:I,children:g.jsxs("div",{className:"xktia5q x27kpxv x135pmgq x2b8uid","data-testid":void 0,children:[x,g.jsxs("div",babelHelpers.extends({ref:k},(p||(p=r("stylex"))).props(N),{children:[$,P,n("cr:10211")?g.jsx("div",{className:"x1hogkm0",children:g.jsx(n("cr:10211"),{})}):null]})),g.jsxs("div",{className:"_al_x",children:[U," ",u._(/*BTDS*/"Tus mensajes personales est\u00e1n cifrados de extremo a extremo.")]})]})})}S.displayName=S.name+" [from "+i.id+"]";function R(e){var t=e.userDesktopOs,n=o("WAWebThemeContext").useIsDarkTheme(),a=r("bx")("482"),i=r("bx")("484"),l=o("WAWebABProps").getABPropConfigValue("desktop_upsell_intro_panel_illustration_variant");if(l===1)a=r("bx")("32107"),i=r("bx")("32108");else{if(l===2)return g.jsx(o("WAWebLottieAnimationLoadable").LottieAnimation,{loop:!1,autoplay:!0,data:r("WAWebDesktopUpsellAnimationData")(n),xstyle:v.animation});if(l===3)return g.jsx(o("WAWebWdsIllWebNativeIcon.react").WdsIllWebNativeIcon,{width:270,height:180})}return g.jsx("img",{src:t===o("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS?r("bx").getURL(a):r("bx").getURL(i),width:320,alt:""})}R.displayName=R.name+" [from "+i.id+"]";function L(e){var t=e!=null?e:{},n=t.buttonText,a=t.onClick;return n!=null&&a!=null?o("WAWebABProps").getABPropConfigValue("wds_web_button")?g.jsx("div",{className:"x1ci5j9l x78zum5 xl56j7k",children:g.jsx(r("WDSButton.react"),{variant:"filled",type:"default",size:"medium",onPress:a,label:n})}):g.jsx("div",{className:"x1ci5j9l",children:g.jsx(o("WAWebButton.react").Button,{type:"strong-primary",onClick:a,children:n})}):null}l.default=S}),226); __d("WAWebDesktopUpsellAnimationDataV2LaptopLayers",[],(function(t,n,r,o,a,i){"use strict";function e(){return{ddd:0,ind:3,ty:4,nm:"Laptop",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[75.513,68.252,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-2.906,0],[0,0],[0,2.049]],o:[[0,2.481],[0,0],[1.923,0],[0,0]],v:[[-13.975,-2.208],[-9.193,2.208],[10.168,2.208],[13.975,-2.208]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[.025,33.424],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,4.437],[0,0],[4.437,0]],o:[[-4.437,0],[0,0],[0,4.437],[0,0]],v:[[-53.978,4.018],[-62.013,-4.018],[62.013,-4.018],[53.978,4.018]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.901960790157,1,.854901969433,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,35.234],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:3,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1}],ip:12,op:612,st:12,ct:1,bm:0}}function l(){return{ddd:0,ind:4,ty:4,nm:"Laptop_Top",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[75.513,68.252,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:0,y:.917},o:{x:.66,y:0},t:182,s:[{i:[[-3.598,0],[0,0],[0,3.401],[0,0],[3.598,0],[0,0],[0,-3.401],[0,0]],o:[[0,0],[3.598,0],[0,0],[0,-3.401],[0,0],[-3.598,0],[0,0],[0,3.401]],v:[[-45.598,35.616],[45.598,35.616],[52.105,29.404],[52.105,-29.454],[45.598,-35.616],[-45.598,-35.616],[-52.105,-29.454],[-52.105,29.454]],c:!0}]},{i:{x:.833,y:.833},o:{x:.48,y:.04},t:200,s:[{i:[[-3.598,0],[0,0],[0,3.401],[0,0],[3.598,0],[0,0],[0,-3.401],[0,0]],o:[[0,0],[3.598,0],[0,0],[0,-3.401],[0,0],[-3.598,0],[0,0],[0,3.401]],v:[[-45.598,35.616],[45.598,35.616],[52.105,29.404],[62.105,-19.454],[55.598,-25.616],[-55.598,-25.616],[-62.105,-19.454],[-52.105,29.454]],c:!0}]},{i:{x:.52,y:.96},o:{x:.167,y:.167},t:207,s:[{i:[[-3.598,0],[0,0],[0,3.401],[0,0],[3.598,0],[0,0],[0,-3.401],[0,0]],o:[[0,0],[3.598,0],[0,0],[0,-3.401],[0,0],[-3.598,0],[0,0],[0,3.401]],v:[[-45.598,35.616],[45.598,35.616],[52.105,29.404],[52.105,-29.454],[45.598,-35.616],[-45.598,-35.616],[-52.105,-29.454],[-52.105,29.454]],c:!0}]},{i:{x:.34,y:1},o:{x:.167,y:.167},t:214,s:[{i:[[-3.598,0],[0,0],[0,3.401],[0,0],[3.598,0],[0,0],[0,-3.401],[0,0]],o:[[0,0],[3.598,0],[0,0],[0,-3.401],[0,0],[-3.598,0],[0,0],[0,3.401]],v:[[-45.598,35.616],[45.598,35.616],[52.105,29.404],[42.105,-22.454],[35.598,-28.616],[-35.598,-28.616],[-42.105,-22.454],[-52.105,29.454]],c:!0}]},{t:231,s:[{i:[[-3.598,0],[0,0],[0,3.401],[0,0],[3.598,0],[0,0],[0,-3.401],[0,0]],o:[[0,0],[3.598,0],[0,0],[0,-3.401],[0,0],[-3.598,0],[0,0],[0,3.401]],v:[[-45.598,35.616],[45.598,35.616],[52.105,29.404],[52.105,-29.454],[45.598,-35.616],[-45.598,-35.616],[-52.105,-29.454],[-52.105,29.454]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.901960790157,1,.854901969433,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-.049,.924],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:12,op:612,st:12,ct:1,bm:0}}i.createLaptopLayer=e,i.createLaptopTopLayer=l}),66); __d("WAWebDesktopUpsellAnimationDataV2PhoneLayer",[],(function(t,n,r,o,a,i){"use strict";function e(){return{ddd:0,ind:1,ty:4,nm:"Phone",parent:2,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.52],y:[.924]},o:{x:[.65],y:[0]},t:206,s:[0]},{i:{x:[.52],y:[.962]},o:{x:[.48],y:[.038]},t:222,s:[-6]},{i:{x:[.52],y:[.99]},o:{x:[.48],y:[.019]},t:230,s:[6]},{i:{x:[.52],y:[.981]},o:{x:[.48],y:[.019]},t:234,s:[-6]},{i:{x:[.52],y:[.99]},o:{x:[.48],y:[.019]},t:238,s:[6]},{i:{x:[.52],y:[.981]},o:{x:[.48],y:[.019]},t:242,s:[-6]},{i:{x:[.52],y:[.99]},o:{x:[.48],y:[.019]},t:246,s:[6]},{i:{x:[.52],y:[.981]},o:{x:[.48],y:[.019]},t:250,s:[-6]},{i:{x:[.52],y:[.99]},o:{x:[.48],y:[.019]},t:254,s:[6]},{i:{x:[.52],y:[.981]},o:{x:[.48],y:[.019]},t:258,s:[-6]},{i:{x:[.35],y:[1]},o:{x:[.48],y:[.124]},t:262,s:[6]},{t:275,s:[0]}],ix:10},p:{a:0,k:[14.609,0,0],ix:2,l:2},a:{a:0,k:[14.609,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-.937,-1.889],[-.693,-.093],[-1.743,-.342],[-.445,-.703],[-.883,-1.396],[-.044,-.722],[1.553,-.308],[2.114,1.084],[2.636,5.911],[-.376,2.939],[-3.046,.473],[-.351,-.098],[-.371,-.405],[-.61,-2.118],[.059,-.225]],o:[[-.254,1.03],[.569,1.29],[1.762,.23],[.839,.166],[.883,1.391],[.391,.63],[.078,1.518],[-2.309,.459],[-5.931,-3.031],[-1.225,-2.753],[.376,-2.939],[.356,-.059],[.532,.156],[1.503,1.674],[.068,.225],[0,0]],v:[[-.867,-8.059],[-4.46,-2.895],[2.213,6.614],[6.894,4.656],[8.71,6.292],[11.35,10.475],[12.185,12.486],[9.134,15.43],[2.272,14.097],[-10.244,-.591],[-12.109,-9.241],[-6.573,-15.523],[-5.49,-15.503],[-4.172,-14.537],[-.945,-8.748],[-.877,-8.074]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:200,s:[1.875]},{t:226,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.145098045468,.827450990677,.40000000596,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[14.236,-.041],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:12,op:612,st:12,ct:1,bm:0}}i.default=e}),66); __d("WAWebDesktopUpsellAnimationDataV2UILayerShapes1",[],(function(t,n,r,o,a,i){"use strict";function e(){return[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1.622,-1.622],[-1.622,1.622]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:200,s:[1.875]},{t:226,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-45.217,-26.864],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1.622,-1.622],[-1.622,1.622]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098045468,.827450990677,.40000000596,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-45.217,-26.864],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1.694,1.694],[-1.694,-1.694]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:200,s:[1.875]},{t:226,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-45.145,-26.792],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1.694,1.694],[-1.694,-1.694]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098045468,.827450990677,.40000000596,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-45.145,-26.792],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[9.869,0],[-9.869,0]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:200,s:[1.875]},{t:226,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-34.998,5.185],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:5,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[9.869,0],[-9.869,0]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098045468,.827450990677,.40000000596,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-34.998,5.185],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:6,mn:"ADBE Vector Group",hd:!1}]}i.default=e}),66); __d("WAWebDesktopUpsellAnimationDataV2UILayerShapes2",[],(function(t,n,r,o,a,i){"use strict";function e(){return[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[9.869,0],[-9.869,0]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:200,s:[1.875]},{t:226,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-34.998,-10.308],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:7,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[9.869,0],[-9.869,0]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098045468,.827450990677,.40000000596,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-34.998,-10.308],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:8,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[9.869,0],[-9.869,0]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:200,s:[1.875]},{t:226,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-34.998,-2.52],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:9,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[9.869,0],[-9.869,0]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098045468,.827450990677,.40000000596,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-34.998,-2.52],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:10,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,-3.16],[0,0],[-3.16,0]],o:[[0,0],[0,0],[0,0],[-3.171,0],[0,0],[0,3.171],[0,0]],v:[[16.84,33.087],[16.84,3.248],[16.84,-33.087],[-11.098,-33.087],[-16.84,-27.344],[-16.84,27.344],[-11.098,33.087]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:200,s:[1.875]},{t:226,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.145098045468,.827450990677,.40000000596,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-35.917,-.005],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:3,cix:2,bm:0,ix:11,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[3.367,0],[0,0],[0,0],[0,0],[0,3.16],[0,0]],o:[[0,0],[0,0],[0,0],[3.161,0],[0,0],[0,-3.367]],v:[[32.033,-33.092],[-38.147,-33.092],[-38.147,33.092],[32.404,33.092],[38.147,27.349],[38.147,-26.988]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.066666670144,.105882354081,.129411771894,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.15],y:[1]},o:{x:[.65],y:[0]},t:200,s:[1.875]},{t:226,s:[1.5]}],ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.988235294819,.960784316063,.921568632126,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[14.609,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:3,cix:2,bm:0,ix:12,mn:"ADBE Vector Group",hd:!1}]}i.default=e}),66); __d("WAWebDesktopUpsellAnimationDataV2UILayer",["WAWebDesktopUpsellAnimationDataV2UILayerShapes1","WAWebDesktopUpsellAnimationDataV2UILayerShapes2"],(function(t,n,r,o,a,i,l){"use strict";function e(){return{ddd:0,ind:2,ty:4,nm:"UI",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.15,y:1},o:{x:.65,y:0},t:200,s:[77.507,66.092,0],to:[0,0,0],ti:[0,0,0]},{t:226,s:[90.757,57.592,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.15,.15,.15],y:[1,1,1]},o:{x:[.65,.65,.65],y:[0,0,0]},t:200,s:[75,75,100]},{t:226,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[].concat(r("WAWebDesktopUpsellAnimationDataV2UILayerShapes1")(),r("WAWebDesktopUpsellAnimationDataV2UILayerShapes2")()),ip:12,op:612,st:12,ct:1,bm:0}}l.default=e}),98); __d("WAWebDesktopUpsellAnimationDataV2",["WAWebDesktopUpsellAnimationDataV2LaptopLayers","WAWebDesktopUpsellAnimationDataV2PhoneLayer","WAWebDesktopUpsellAnimationDataV2UILayer"],(function(t,n,r,o,a,i,l){"use strict";function e(){return{v:"5.12.1",fr:60,ip:180,op:301,w:156,h:132,nm:"2025_10_CPX_Web_Empty_State",ddd:0,assets:[],layers:[r("WAWebDesktopUpsellAnimationDataV2PhoneLayer")(),r("WAWebDesktopUpsellAnimationDataV2UILayer")(),o("WAWebDesktopUpsellAnimationDataV2LaptopLayers").createLaptopLayer(),o("WAWebDesktopUpsellAnimationDataV2LaptopLayers").createLaptopTopLayer()],markers:[],props:{}}}l.default=e}),98); __d("WAWebEmptyStateActionTile.react",["WAWebFilePicker.react","WAWebMetaAIIcon.react","WAWebTabOrder","WDSFlex.stylex","WDSFocusStateStyles","WDSText.react","react","stylex"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useRef,m={actionTileContainer:{textAlign:"x2b8uid",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",$$css:!0},button:{height:"xjp8j0k",width:"x13oubkp",backgroundColor:"x4wrhlh xzn9hfk",borderStartStartRadius:"x6nvzda",borderStartEndRadius:"x4i4b9w",borderEndEndRadius:"xhl9efl",borderEndStartRadius:"xj65ea0",marginTop:"x98l61r",marginInlineEnd:"xviac27",marginBottom:"x1ua1l7f",marginInlineStart:"xlese2p",$$css:!0}};function p(e){var t=e.Icon,n=e.clickHandler,a=e.filePicker,i=e.testid,l=e.title,u=d(),p;t==="meta-ai"?p=c.jsx(r("WAWebMetaAIIcon.react"),{height:24,width:24}):p=c.jsx(t,{height:24,width:24,colorName:"contentDeemphasized"});function _(){if(a!=null){var e;(e=u.current)==null||e.open()}else n&&n()}return c.jsxs("button",babelHelpers.extends({},(s||(s=r("stylex"))).props(m.actionTileContainer,o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus,{"x-default-marker":"x-default-marker",$$css:!0}),{"data-tab":o("WAWebTabOrder").TAB_ORDER.EMPTY_STATE,tabIndex:0,onClick:_,"data-testid":void 0,children:[c.jsx("div",babelHelpers.extends({},s.props(m.button,o("WDSFlex.stylex").wdsFlex.flexCenter),{children:p})),c.jsx(r("WDSText.react"),{colorName:"contentDeemphasized",type:"Body2",children:l}),a?c.jsx(r("WAWebFilePicker.react"),babelHelpers.extends({ref:u},a)):null]}))}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("WAWebEmptyStateModule.react",["WAWebABProps","WAWebEmptyStateActionTile.react","WAWebTabOrder","WDSButton.react","WDSFlex.stylex","WDSText.react","react","stylex"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=s.useRef,d={wrapper:{backgroundColor:"x6egj2d",width:"xh8yej3",height:"x5yr21d",textAlign:"x2b8uid",$$css:!0},titleCardWrapper:{maxWidth:"x1rjt51p",backgroundColor:"x16w0wmm",borderStartStartRadius:"x1g83kfv",borderStartEndRadius:"x3qq2k7",borderEndEndRadius:"x2x8art",borderEndStartRadius:"x1qor8vf",paddingTop:"xl7twdi",paddingInlineEnd:"xyo0t3i",paddingBottom:"xvg22vi",paddingInlineStart:"xb0esv5",marginTop:"x98l61r",marginInlineEnd:"xviac27",marginBottom:"x1ua1l7f",marginInlineStart:"xlese2p",rowGap:"x1j3ira4",columnGap:"xrdqr27",boxSizing:"x9f619",height:"xg7h5cd",$$css:!0}};function m(t){var n=t.titleCard,a=c(null),i;return n.Illustration?i=u.jsx(n.Illustration,{height:88,width:132}):n.animation&&(i=n.animation),u.jsxs("div",babelHelpers.extends({},(e||(e=r("stylex"))).props(d.titleCardWrapper,o("WDSFlex.stylex").wdsFlex.flexColumn,o("WDSFlex.stylex").wdsFlex.alignCenter),{children:[i,u.jsxs("div",babelHelpers.extends({},e.props(o("WDSFlex.stylex").wdsFlex.flexColumn,o("WDSFlex.stylex").wdsFlex.gapSingle),{children:[u.jsx(r("WDSText.react"),{colorName:"contentDefault",type:"Headline2",robotoPropValue:o("WAWebABProps").getABPropConfigValue("wds_web_roboto"),children:n.title}),u.jsx(r("WDSText.react"),{colorName:"contentDeemphasized",type:"Body2",children:n.description})]})),u.jsx(r("WDSButton.react"),{tabOrder:o("WAWebTabOrder").TAB_ORDER.EMPTY_STATE,ref:a,type:"default",variant:"tonal",size:"small",label:n.actionButtonLabel,onPress:n.actionButtonClickHandler})]}))}m.displayName=m.name+" [from "+i.id+"]";function p(t){var n=t.actions,a=t.titleCard;return u.jsxs("section",babelHelpers.extends({"data-testid":void 0},(e||(e=r("stylex"))).props(d.wrapper,o("WDSFlex.stylex").wdsFlex.flexCenter,o("WDSFlex.stylex").wdsFlex.flexColumn),{children:[a&&u.jsx(m,{titleCard:a}),u.jsx("div",babelHelpers.extends({},e.props(o("WDSFlex.stylex").wdsFlex.flex),{children:n.map(function(e){return u.jsx(r("WAWebEmptyStateActionTile.react"),babelHelpers.extends({},e),e.title.toString())})}))]}))}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("WAWebSendFilesToChats",["fbt","Promise","WALogger","WAWebAttachMediaCollection","WAWebCmd","WAWebFileUtils","WAWebMediaGatingUtils","WAWebMimeTypes","WAWebModalManager","WAWebSendMsgResultAction","WAWebToast.react","WAWebToastManager","WAWebWamEnumMediaPickerOriginType","asyncToGeneratorRuntime","countWhere","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react"));function m(e,t){return p.apply(this,arguments)}function p(){return p=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,a){if(o("WAWebModalManager").ModalManager.close(),!(t.length===0||a.length===0)){var i=a.map(function(e){var t,n=(t=o("WAWebFileUtils").getMimeTypeForFilepath(e.name))!=null?t:o("WAWebMimeTypes").DOC_MIMES;return{file:e,type:o("WAWebFileUtils").FILETYPE.DOCUMENT,filename:e.name,mimetype:n}});if(t.forEach((function(){var l=n("asyncToGeneratorRuntime").asyncToGenerator(function*(l){var c=new(r("WAWebAttachMediaCollection"))({chatParticipantCount:l.getParticipantCount()});yield c.processAttachmentsForChat(i,o("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.DOCUMENT_PICKER,l);var m=o("WAWebMediaGatingUtils").getMaxNumberSelectableMedia(c.getPreviewableMedias().length,l.id),p=c.uiProcessMsgs(m,null),_=p.errorMsgs;if(_){o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:_}));return}var f=c.getValidMedias(),g=f.map(function(e){return e.sendToChat(l,{type:e.type,multicast:t.length>1})});try{var h=yield(u||(u=n("Promise"))).all(g),y=r("countWhere")(h,function(e){return e.messageSendResult!==o("WAWebSendMsgResultAction").SendMsgResult.OK});y>0?o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"_j{\"*\":{\"*\":\"No se pudieron enviar {error-count} documentos a {chat-name}\",\"_1\":\"No se pudo enviar {error-count} documento a {chat-name}\"}}",[s._param("error-count",y,[0]),s._plural(y),s._param("chat-name",l.formattedTitle)])})):o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"_j{\"*\":\"Los documentos se enviaron correctamente a {chat-name}\",\"_1\":\"Se envi\\u00f3 correctamente el documento a {chat-name}\"}",[s._plural(h.length),s._param("chat-name",l.formattedTitle)])}))}catch(t){o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Error sending documents to chats from IntroPanel ",""])),t),o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"_j{\"*\":\"No se pudieron enviar los documentos a {chat-name}\",\"_1\":\"No se pudo enviar el documento a {chat-name}\"}",[s._plural(a.length),s._param("chat-name",l.formattedTitle)])}))}});return function(e){return l.apply(this,arguments)}})()),t.length===1){var l=t[0];o("WAWebCmd").Cmd.openChatFromUnread({chat:l})}}}),p.apply(this,arguments)}l.default=m}),226); __d("WDSIconIcDescription.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-description";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M9 18H15C15.2833 18 15.5208 17.9042 15.7125 17.7125C15.9042 17.5208 16 17.2833 16 17C16 16.7167 15.9042 16.4792 15.7125 16.2875C15.5208 16.0958 15.2833 16 15 16H9C8.71667 16 8.47917 16.0958 8.2875 16.2875C8.09583 16.4792 8 16.7167 8 17C8 17.2833 8.09583 17.5208 8.2875 17.7125C8.47917 17.9042 8.71667 18 9 18ZM9 14H15C15.2833 14 15.5208 13.9042 15.7125 13.7125C15.9042 13.5208 16 13.2833 16 13C16 12.7167 15.9042 12.4792 15.7125 12.2875C15.5208 12.0958 15.2833 12 15 12H9C8.71667 12 8.47917 12.0958 8.2875 12.2875C8.09583 12.4792 8 12.7167 8 13C8 13.2833 8.09583 13.5208 8.2875 13.7125C8.47917 13.9042 8.71667 14 9 14ZM6 22C5.45 22 4.97917 21.8042 4.5875 21.4125C4.19583 21.0208 4 20.55 4 20V4C4 3.45 4.19583 2.97917 4.5875 2.5875C4.97917 2.19583 5.45 2 6 2H13.175C13.4417 2 13.6958 2.05 13.9375 2.15C14.1792 2.25 14.3917 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60833 19.75 7.82083 19.85 8.0625C19.95 8.30417 20 8.55833 20 8.825V20C20 20.55 19.8042 21.0208 19.4125 21.4125C19.0208 21.8042 18.55 22 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebIntroPanelV2.react",["fbt","WAWebBotFrontendUtils","WAWebBotGating","WAWebChatEntryPoint","WAWebContactEditUtils","WAWebContactLogging","WAWebDesktopUpsellAnimationDataV2","WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebEmptyStateModule.react","WAWebLottieAnimationLoadable","WAWebMimeTypes","WAWebModalManager","WAWebSelectModal.react","WAWebSendFilesToChats","WAWebServerPropConstants","WAWebWamEnumWebcNativeUpsellCtaSourceType","WDSIconIcDescription.react","WDSIconIcPersonAdd.react","react","useWAWebExternalBetaOptIn"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=r("react"));function c(){var e=o("WAWebBotGating").isBotEnabled(),t=o("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb(),n=o("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck(),a=o("useWAWebExternalBetaOptIn").useExternalBetaOptIn(),i=a[0];function l(){o("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:o("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.INTRO_PANEL,isBetaUpsell:t,isBetaUser:i})}function c(e){var t;e.stopPropagation();var n=Array.from((t=e.target.files)!=null?t:[]);n.length&&o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebSelectModal.react").SelectModal,{title:s._(/*BTDS*/"Seleccionar chats"),listType:o("WAWebSelectModal.react").ListType.ChatSelectModal,onConfirm:function(t){return r("WAWebSendFilesToChats")(t,n)},maxItems:o("WAWebServerPropConstants").MULTICAST_LIMIT_GLOBAL}))}function d(){o("WAWebContactEditUtils").openContactEditDrawer(null,o("WAWebContactLogging").ContactSourceType.NewChat)}function m(){var e=o("WAWebChatEntryPoint").ChatEntryPoint.MetaAIIntroPanel;o("WAWebBotGating").isAiChatThreadsEnabled()?o("WAWebBotFrontendUtils").getMetaAiChat().then(function(e){o("WAWebBotFrontendUtils").runMetaAiFlow(e,{type:"MetaAiIntroPanel"})}):o("WAWebBotFrontendUtils").openMetaBotChat(e)}var p={animation:u.jsx(o("WAWebLottieAnimationLoadable").LottieAnimation,{loop:!1,autoplay:!0,data:r("WAWebDesktopUpsellAnimationDataV2")()}),title:o("WAWebDesktopUpsellCommonStrings").getDesktopUpsellDownloadWhatsAppTitle(t),description:o("WAWebDesktopUpsellCommonStrings").getDesktopUpsellIntroPanelText(t),actionButtonLabel:o("WAWebDesktopUpsellCommonStrings").getDesktopAppDownloadFromStoreBtnLabel(t),actionButtonClickHandler:l},_=[{title:s._(/*BTDS*/"Enviar documento"),Icon:r("WDSIconIcDescription.react"),filePicker:{mimes:o("WAWebMimeTypes").DOC_MIMES,onChange:c,multiple:!0},testid:"send-document-tile"},{title:s._(/*BTDS*/"A\u00f1adir contacto"),Icon:r("WDSIconIcPersonAdd.react"),clickHandler:d,testid:"add-contact-tile"}];return e&&_.push({title:s._(/*BTDS*/"Preg\u00fantale a Meta AI"),Icon:"meta-ai",clickHandler:m,testid:"meta-ai-tile"}),u.jsx(r("WAWebEmptyStateModule.react"),{titleCard:n===!0?p:void 0,actions:_})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebResetLastActiveSideNavStateAction",["WAWebChatGetters","WAWebDrawerManager","WAWebGroupType","WAWebNavBarEmptyState.react","WAWebNavBarTypes","WAWebSideNavButtonsActivityModel","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=function(){o("WAWebDrawerManager").DrawerManager.openDrawerMid(s.jsx(o("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:o("WAWebNavBarTypes").NavBarItems.Communities}),{transition:"none"})},c=function(){o("WAWebDrawerManager").DrawerManager.openDrawerMid(s.jsx(o("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:o("WAWebNavBarTypes").NavBarItems.Updates}),{transition:"none"})},d=function(){o("WAWebDrawerManager").DrawerManager.openDrawerMid(s.jsx(o("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:o("WAWebNavBarTypes").NavBarItems.Newsletters}),{transition:"none"})},m=function(t){var e=o("WAWebSideNavButtonsActivityModel").getLastActiveButton();if(e!=null)switch(e){case o("WAWebNavBarTypes").NavBarItems.Chats:o("WAWebSideNavButtonsActivityModel").setLastActiveChat(null);break;case o("WAWebNavBarTypes").NavBarItems.Newsletters:o("WAWebChatGetters").getIsNewsletter(t)&&(o("WAWebSideNavButtonsActivityModel").setLastActiveNewsletter(null),d());break;case o("WAWebNavBarTypes").NavBarItems.Communities:if(t.groupType!=null)switch(t.groupType){case o("WAWebGroupType").GroupType.COMMUNITY:case o("WAWebGroupType").GroupType.LINKED_SUBGROUP:case o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP:case o("WAWebGroupType").GroupType.LINKED_GENERAL_GROUP:o("WAWebSideNavButtonsActivityModel").setLastActiveCommunity(null),u();break;case o("WAWebGroupType").GroupType.DEFAULT:o("WAWebSideNavButtonsActivityModel").setLastActiveChat(null);break}break;case o("WAWebNavBarTypes").NavBarItems.Updates:o("WAWebChatGetters").getIsNewsletter(t)&&(o("WAWebSideNavButtonsActivityModel").setLastActiveNewsletter(null),c());break;case o("WAWebNavBarTypes").NavBarItems.Archived:case o("WAWebNavBarTypes").NavBarItems.Beta:case o("WAWebNavBarTypes").NavBarItems.BizTools:case o("WAWebNavBarTypes").NavBarItems.AdCreation:case o("WAWebNavBarTypes").NavBarItems.Calls:case o("WAWebNavBarTypes").NavBarItems.Contacts:case o("WAWebNavBarTypes").NavBarItems.Orders:case o("WAWebNavBarTypes").NavBarItems.Labels:case o("WAWebNavBarTypes").NavBarItems.LockedChats:case o("WAWebNavBarTypes").NavBarItems.Starred:case o("WAWebNavBarTypes").NavBarItems.Settings:case o("WAWebNavBarTypes").NavBarItems.Profile:case o("WAWebNavBarTypes").NavBarItems.Status:case o("WAWebNavBarTypes").NavBarItems.MediaHub:case o("WAWebNavBarTypes").NavBarItems.MetaAI:break}};l.resetLastActiveSideNavStateForChat=m}),98); __d("useWAWebCmdChatEvents",["WALogger","WAWebBizAiAgentGating","WAWebBizAiAgentStatusUtils","WAWebBotDisclaimerManager","WAWebBotFeatureNotAvailable.react","WAWebBotGating","WAWebBotLogging","WAWebBotTosIds","WAWebBotUtils","WAWebChatEntryPoint","WAWebChatEphemerality","WAWebChatGetters","WAWebChatGroupUtils","WAWebChatLockCodeModal.react","WAWebChatLockUtils","WAWebChatLockWAMUtils","WAWebCmd","WAWebDrawerManager","WAWebFrontendMsgGetters","WAWebGetChatLockEntryPoint","WAWebGetOrQueryUsyncInfoContactAction","WAWebKeyboardTabUtils","WAWebLockedChatsDrawer.react","WAWebModalManager","WAWebMsgCollection","WAWebNoop","WAWebPonyfillsIdleCallback","WAWebResetLastActiveSideNavStateAction","WAWebUpdateEphemeralSettingChatAction","WAWebWamEnumLandingSurface","WAWebWid","asyncToGeneratorRuntime","gkx","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u,c,d,m,p=m||(m=o("react")),_=d||(d=r("react")),f=p.useCallback,g=p.useMemo,h=p.useRef,y=p.useState;function C(t){t===void 0&&(t=void 0);var a=h(),i=h(0),l=h(r("WAWebNoop")),d=h(o("WAWebChatEntryPoint").ChatEntryPoint.Unknown),m=h(r("WAWebNoop")),p=y(t),C=p[0],b=p[1],v=y(),S=v[0],R=v[1],L=y(),E=L[0],k=L[1],I=y(),T=I[0],D=I[1],x=f(function(e,t,n,r){b(e),R(t),k(n),D(r)},[]),$=f((function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){var n,p=t.chat,f=t.chatEntryPoint,g=t.msgContext,h=t.onComplete,y=t.threadId;if(!o("WAWebChatLockUtils").chatIsAccessible(p)){var b=o("WAWebGetChatLockEntryPoint").getChatLockEntryPoint(f),v=o("WAWebChatLockWAMUtils").actionEntryPointToUnlockEntryPoint(o("WAWebGetChatLockEntryPoint").getChatLockEntryPoint(f)),S=yield o("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,landingSurface:o("WAWebWamEnumLandingSurface").LANDING_SURFACE.THREAD,unlockEntryPoint:v,entryPoint:b});if(!S)return;o("WAWebDrawerManager").DrawerManager.openDrawerLeft(_.jsx(r("WAWebLockedChatsDrawer.react"),{entryPoint:b,unlockEntryPoint:v,focusOnMount:!1}),{focusType:o("WAWebKeyboardTabUtils").FocusType.CUSTOM,transition:"flow-transition-drawer-pop"})}if(p.id.isBot()){if(!o("WAWebBotGating").isBotEnabled()){o("WAWebModalManager").ModalManager.open(_.jsx(r("WAWebBotFeatureNotAvailable.react"),{}));return}var R=o("WAWebBotUtils").isMetaAiBot(p.id),L=o("WAWebBotLogging").getBotEntryPoint(p.id,f);o("WAWebBotLogging").logAiChatClickBotJourneyEvent(L);var E=o("WAWebBotTosIds").getApplicableBotNoticeId(L);if(!p.id.isFbidBot()||R)try{yield o("WAWebBotDisclaimerManager").enterBotTosFlow({noticeId:String(E),botEntryPoint:L,chat:p})}catch(e){if(e!==o("WAWebBotDisclaimerManager").TOS_ACCEPTANCE_NOT_SUPPORTED_ERROR)return}o("WAWebBotDisclaimerManager").canShowLegacyBotNux(String(E))||o("WAWebChatGroupUtils").updateCanSend(p)}C!==p&&o("WAWebCmd").Cmd.updateChatlistSelection(p);var k=a.current,I={};if(a.current=I,m.current=function(e){Object.assign(I,e)},!r("gkx")("26258"))if(g){var T;o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["msgContext.collection length: ",""])),(T=g.collection)==null?void 0:T.length)}else o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["chat.msgs length: ",""])),p.msgs.length);var D=g?g.collection:p.msgs;i.current++;var $=i.current,P=function(){return $===i.current};d.current=f;var N=!1,M=function(t,n){var e=n?n.msg||n.key&&o("WAWebMsgCollection").MsgCollection.get(n.key.toString()):void 0;if(n&&e&&t){var r=t.chat,a=t.renderedMsgsInfo,i=t.visibleMsgOrder;if(r&&a&&i&&Object.keys(a).length>0&&i.length>0){var l=a[i[0].toString()],s=e.id.toString(),u=Object.entries(a).find(function(e){var t=e[0];return t===s}),c=u?u[1]:null;if(c)return{wasVisible:!0,offset:c.offset};if(r===o("WAWebFrontendMsgGetters").getChat(e))return l&&e.te)){if(a.start<=n&&a.end<=e){r+=a.end-n;continue}if(a.start<=n&&a.end>e){r+=e-n;continue}if(a.start>=n&&a.end<=e){r+=a.end-a.start;continue}if(a.start>=n&&a.end>e){r+=e-a.start;continue}}return r},n.observe=function(){var t=this,n=function(r,o){o!==t.$1&&(t.$1=o,o?t.$3=r.timeStamp:t.$3!=null&&(t.$4.push({start:t.$3,end:r.timeStamp}),t.$3=null),t.$4=t.$4.filter(function(t){return t.end>=r.timeStamp-e}))},r=function(t){n(t,!document.hidden)},o=function(){t.$2=!0},a=function(){t.$2=!1};return document.addEventListener("visibilitychange",r),window.addEventListener("focus",o),window.addEventListener("blur",a),function(){document.removeEventListener("visibilitychange",r),window.removeEventListener("focus",o),window.removeEventListener("blur",a)}},t})();i.WAWebDocumentVisibilityObserver=l}),66); __d("WAWebDrawerCoordination",["WAWebDrawerManagerGlobalContext"],(function(t,n,r,o,a,i,l){var e=["left","right","fullscreen"];function s(t,n){if(e.includes(t)&&n==="opened")if(t==="left"||t==="right"){var r;(r=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("fullscreen"))==null||r.closeDrawer(null,{isConflictingDrawerOpening:!0})}else{var a,i;(a=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("left"))==null||a.closeDrawer(null,{isConflictingDrawerOpening:!0}),(i=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("right"))==null||i.closeDrawer(null,{isConflictingDrawerOpening:!0})}}l.closeConflictingDrawer=s}),98); __d("WAWebFeedbackNavBarItem.react",["fbt","WAWebABProps","WAWebBugnubRefreshedIcon.react","WAWebFeedbackModalUtils","WAWebNavBarItem.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){if(!o("WAWebABProps").getABPropConfigValue("public_bug_reporting_sidebar"))return null;var e=function(){o("WAWebFeedbackModalUtils").openFeedbackModal()},t=u.jsx(o("WAWebBugnubRefreshedIcon.react").BugnubRefreshedIcon,{}),n=s._(/*BTDS*/"Env\u00eda comentarios"),r=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:t,title:n,testid:void 0,isActive:!1,onClick:e});return r}c.displayName=c.name+" [from "+i.id+"]",l.FeedbackNavBarItem=c}),226); __d("WAWebPipFloatingMsgVideoPlayer.react",["WAWebMediaOpaqueData","WAWebPipConst","WAWebPipFloatingVideoPlayer.react","WAWebPipMsgVideoPlayer.react","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e=["ref"],s,u=s||(s=r("react"));function c(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=o("useWAWebModelValues").useModelValues(a.mediaData,["preview","aspectRatio"]),l=i.preview instanceof r("WAWebMediaOpaqueData")?"url("+i.preview.url()+")":void 0;return u.jsx(o("WAWebPipFloatingVideoPlayer.react").FloatingVideoPlayer,{ref:n,aspectRatio:i.aspectRatio,previewUrl:l,animationStartStyle:a.animationStartStyle,bottomContent:a.bottomContent,topContent:a.topContent,enableDragBar:a.enableDragBar,children:u.jsx(o("WAWebPipMsgVideoPlayer.react").WrappedMsgVideoPlayer,{msg:a.msg,mediaData:i,startTime:a.startTime,onClose:a.onClose,onError:a.onError,onOpenMediaViewer:a.onOpenMediaViewer,onMissingMedia:a.onMissingMedia,onUnsupportedMedia:a.onUnsupportedMedia,autoPlay:a.autoPlay,type:o("WAWebPipConst").PlayerType.FLOATER,disablePiPControls:a.disablePiPControls,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebFloatingMsgVideoPlayerRenderer.react",["WAWebPipFloatingMsgVideoPlayer.react","react"],(function(t,n,r,o,a,i,l){var e=["ref","msg"],s,u=s||(s=r("react"));function c(t){var n=t.ref,o=t.msg,a=babelHelpers.objectWithoutPropertiesLoose(t,e);return o==null?null:u.jsx(r("WAWebPipFloatingMsgVideoPlayer.react"),{ref:n,msg:o,mediaData:o.mediaData,animationStartStyle:a.animationStartStyle,startTime:a.startTime,onClose:a.onClose,onError:a.onError,onOpenMediaViewer:a.onClose,onMissingMedia:a.onClose,onUnsupportedMedia:a.onClose,autoPlay:a.autoPlay,enableDragBar:a.enableDragBar,topContent:a.topContent,bottomContent:a.bottomContent,disablePiPControls:a.enableDragBar,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebPipGetImageDimensionsByUrl",[],(function(t,n,r,o,a,i){function e(e){var t=document.createElement("img");return t.src=e,{width:t.naturalWidth,height:t.naturalHeight}}i.default=e}),66); __d("WAWebPipFloatingOgVideoPlayer.react",["WAWebPipFloatingVideoPlayer.react","WAWebPipGetImageDimensionsByUrl","WAWebPipOgVideoPlayer.react","isNonZeroNumber","react","vulture"],(function(t,n,r,o,a,i,l){var e=["ref"],s,u,c=u||(u=r("react")),d=(s||(s=o("react"))).useState;function m(e){var t=r("WAWebPipGetImageDimensionsByUrl")(e),n=t.height,a=t.width;return o("isNonZeroNumber").isNonZeroNumber(a)&&o("isNonZeroNumber").isNonZeroNumber(n)?a/n:void 0}function p(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e);r("vulture")("XrX6MRU1IobW73Bn0L3bM21_7D0=");var i=d(function(){return m(a.ogVideoInfo.previewUrl)}),l=i[0],s=i[1],u=function(t){t&&(l==null||l===0||Math.abs(t-l)>.01)&&s(t)};return c.jsx(o("WAWebPipFloatingVideoPlayer.react").FloatingVideoPlayer,{ref:n,aspectRatio:l,previewUrl:a.ogVideoInfo.previewUrl,animationStartStyle:a.animationStartStyle,bottomContent:a.bottomContent,topContent:a.topContent,enableDragBar:a.enableDragBar,children:c.jsx(r("WAWebPipOgVideoPlayer.react"),{ogVideoInfo:a.ogVideoInfo,startTime:a.startTime,onClose:a.onClose,onError:a.onError,onAspectRatio:u,autoPlay:!0,disablePiPControls:a.disablePiPControls,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("WAWebFloatingOgVideoPlayerRenderer.react",["WAWebPipFloatingOgVideoPlayer.react","react","vulture"],(function(t,n,r,o,a,i,l){var e=["ref","msg","previewUrl","videoSrc"],s,u=s||(s=r("react"));function c(t){var n=t.ref,o=t.msg,a=t.previewUrl,i=t.videoSrc,l=babelHelpers.objectWithoutPropertiesLoose(t,e);return r("vulture")("_g1xesU8LCXhVH6Rt8JJoyVYU94="),o==null||i==null||a==null?null:u.jsx(r("WAWebPipFloatingOgVideoPlayer.react"),{ref:n,ogVideoInfo:{videoMsg:o,videoUrl:i,previewUrl:a},startTime:l.startTime,onClose:l.onClose,onError:l.onError,animationStartStyle:l.animationStartStyle,autoPlay:l.autoPlay,enableDragBar:l.enableDragBar,topContent:l.topContent,bottomContent:l.bottomContent,disablePiPControls:l.enableDragBar,onRefSet:l.onRefSet,onVideoMetadataChange:l.onVideoMetadataChange,onSetFullscreenToggleCallback:l.onSetFullscreenToggleCallback})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebFloatingVoipRenderer.react",["WAWebCallCollection","WAWebPipFloatingVideoPlayer.react","WAWebThemeContext","WAWebVelocityAnimate","WAWebVoipLobbyUtils","WAWebVoipUiLoadable","WAWebVoipUiPopoutWindowPortalContainer.react","WAWebVoipWaCallEnums","react","useMergeRefs","useWAWebEventTargetValue"],(function(t,n,r,o,a,i,l){var e=["ref","animationStartStyle","msg"],s,u,c=u||(u=o("react")),d=s||(s=r("react")),m=c.useEffect,p=c.useRef,_=c.useState,f="#3a3c3c",g={moveResizeContainer:{pointerEvents:"x47corl",$$css:!0},voipBorderRadius:{borderStartStartRadius:"x1g83kfv",borderStartEndRadius:"x3qq2k7",borderEndEndRadius:"x2x8art",borderEndStartRadius:"x1qor8vf",$$css:!0},voipBorder:{borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopColor:"x1uaztaz",borderInlineEndColor:"xabo58m",borderBottomColor:"x28feff",borderInlineStartColor:"x1556f1n",$$css:!0}},h=640,y=h/(h*(3/4)+60),C=48,b=16,v=4/3,S={MIN_VOICE_CALL_WIDTH:400,MIN_VOICE_CALL_HEIGHT:120,MIN_VIDEO_CALL_WIDTH:400,MIN_VIDEO_CALL_HEIGHT:400,MIN_SURVEY_HEIGHT:320,MIN_MOVE_CALL_HERE_HEIGHT:120,MIN_CALL_LINK_PREVIEW_HEIGHT:520,MIN_CALL_LINK_LOBBY_WIDTH:720,INITIAL_VOICE_CALL_WIDTH:500,INITIAL_VIDEO_CALL_WIDTH:500,INITIAL_CALL_LINK_LOBBY_WIDTH:820,SHARE_PANEL_WIDTH:280,MIN_VIDEO_CALL_LOBBY_HEIGHT:700,MIN_VOICE_CALL_LOBBY_HEIGHT:300},R=250,L=.8;function E(e,t){var n=t/e,r=n+C+b;return t/r}function k(t){var n,a=t.ref,i=t.animationStartStyle,l=t.msg,s=babelHelpers.objectWithoutPropertiesLoose(t,e),u=(n=l==null?void 0:l.isVideoCall)!=null?n:!1,c=o("WAWebThemeContext").useIsDarkTheme(),f=p(null),C=r("useMergeRefs")(a,f),b=p(null),k=p(null),I=p(null),T=p(null),D=function(t){T.current==null&&(T.current=t)},x=p(!1),$=p(!1),P=_(null),N=P[0],M=P[1],w=r("useWAWebEventTargetValue")(r("WAWebCallCollection").activeCall,"change:isVideo",function(){var e,t;return(e=(t=r("WAWebCallCollection").activeCall)==null?void 0:t.isVideo)!=null?e:!1}),A=r("useWAWebEventTargetValue")(r("WAWebCallCollection").activeCall,"change:state",function(){var e;return(e=r("WAWebCallCollection").activeCall)==null?void 0:e.getState()}),F=A===o("WAWebVoipWaCallEnums").CallState.ReceivedCall||A===o("WAWebVoipWaCallEnums").CallState.ReceivedCallWithoutOffer,O=r("useWAWebEventTargetValue")(r("WAWebCallCollection").activeCall,"change:shouldShowPostCallSurvey",function(){var e,t;return(e=(t=r("WAWebCallCollection").activeCall)==null?void 0:t.shouldShowPostCallSurvey)!=null?e:!1}),B=r("useWAWebEventTargetValue")(o("WAWebVoipUiPopoutWindowPortalContainer.react").WAWebVoipUiPopoutWindowEventEmitter,"setPopoutWindowProps",function(){var e,t;return(e=b.current)==null||e.cancelDefaultHeightEnforcement(),(t=b.current)==null||t.markExternalResizeInProgress(!0),o("WAWebVoipUiPopoutWindowPortalContainer.react").getIsCallActiveInPopoutWindow()}),W=r("useWAWebEventTargetValue")(r("WAWebCallCollection").activeCall,"change:videoState",function(){var e,t;return(e=(t=r("WAWebCallCollection").activeCall)==null?void 0:t.shouldShowPeerVideo())!=null?e:!1}),q=r("useWAWebEventTargetValue")(r("WAWebCallCollection").activeCall,"change:callLinkState",function(){var e,t;return(e=(t=r("WAWebCallCollection").activeCall)==null?void 0:t.isInCallLinkPreview())!=null?e:!1}),U=r("useWAWebEventTargetValue")(r("WAWebCallCollection").activeCall,"change:callLinkState",function(){var e,t;return(e=(t=r("WAWebCallCollection").activeCall)==null?void 0:t.isInCallLinkLobby())!=null?e:!1}),V=A===o("WAWebVoipWaCallEnums").CallState.CallActive,H=U&&!V,G=r("useWAWebEventTargetValue")(r("WAWebCallCollection").activeCall,"change:isGroup",function(){var e,t;return(e=(t=r("WAWebCallCollection").activeCall)==null?void 0:t.isGroup)!=null?e:!1}),z=o("WAWebVoipLobbyUtils").isLobbyApplicableForCallState(G,A),j=w||u,K=W&&!B&&!z,Q=K?E(v,h):y,X;O?X=S.MIN_SURVEY_HEIGHT:B?X=S.MIN_MOVE_CALL_HERE_HEIGHT:q?X=S.MIN_CALL_LINK_PREVIEW_HEIGHT:z?X=j?S.MIN_VIDEO_CALL_LOBBY_HEIGHT:S.MIN_VOICE_CALL_LOBBY_HEIGHT:j?X=S.MIN_VIDEO_CALL_HEIGHT:X=S.MIN_VOICE_CALL_HEIGHT;var Y;z?Y=S.MIN_VIDEO_CALL_WIDTH:H?Y=S.MIN_CALL_LINK_LOBBY_WIDTH:j?Y=S.MIN_VIDEO_CALL_WIDTH:Y=S.MIN_VOICE_CALL_WIDTH;var J;H?J=S.INITIAL_CALL_LINK_LOBBY_WIDTH:j?J=S.INITIAL_VIDEO_CALL_WIDTH:J=S.INITIAL_VOICE_CALL_WIDTH;var Z={width:J},ee=function(t,n,r){var e=f.current;if(e){var o=e.offsetHeight;I.current={width:t,height:o}}};m(function(){var e=x.current;if(x.current=B,B&&!e){var t;f.current&&(k.current={width:f.current.offsetWidth,height:f.current.offsetHeight});var n={width:(t=T.current)!=null?t:Y,height:S.MIN_MOVE_CALL_HERE_HEIGHT};M(n)}else if(!B&&e){var r=I.current||k.current;if(r){var o={width:Math.max(r.width,Y),height:Math.max(r.height,X)};M(o),k.current=null}}},[B,Y,X]),m(function(){if(z){var e=f.current;if(e){var t=e.offsetWidth,n=e.offsetHeight,r=j?S.MIN_VIDEO_CALL_LOBBY_HEIGHT:S.MIN_VOICE_CALL_LOBBY_HEIGHT,o={width:Math.max(t,S.MIN_VIDEO_CALL_WIDTH),height:Math.max(n,r)};M(o)}}else{var a=$.current;if($.current=j,j&&!a&&!B){var i=f.current;if(i){var l=i.offsetWidth,s=i.offsetHeight,u=lo("WATimeUtils").unixTime())return;var l=o("WAWebABProps").getABPropConfigValue("web_intern_dogfooding_upsell_content"),u=JSON.parse(l);if(u.title==null||u.web_link==null||u.ok_text==null||u.cancel_text==null)return;var p=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){window.location.replace(u.web_link)});return function(){return e.apply(this,arguments)}})(),_=function(){var e=o("WAWebABProps").getABPropConfigValue("web_intern_dogfooding_upsell_snooze_duration");g(o("WATimeUtils").unixTime()+e),a(!1)},f=c.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(m.body,o("WAWebUISpacing").uiMargin.horiz16),{children:c.jsxs("div",{children:["Help us with dogfooding by moving to the ",c.jsx(o("WAWebExternalLink.react").ExternalLink,{href:u.web_link,className:"x117nqv4",children:"internal version"})," ","of the web client. Share your feedback/bugs on the ",c.jsx(o("WAWebExternalLink.react").ExternalLink,{href:u.group_link,className:"x117nqv4",children:"WhatsApp Web Feedback"})," on Workplace."]})}));return c.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:p,onOverlayClick:_,okText:u.ok_text,onCancel:_,cancelText:u.cancel_text,children:[c.jsx(o("WAWebAnnouncementSpeakerIcon.react").AnnouncementSpeakerIcon,{width:120,height:120,xstyle:m.chatIcon}),c.jsxs("div",{className:"xh8yej3",children:[c.jsx("div",babelHelpers.extends({},s.props(m.title,o("WAWebUISpacing").uiPadding.all16),{children:c.jsx("b",{children:u.title})})),f]})]});function g(e){r("WANullthrows")(r("WAWebLocalStorage")).setItem(o("WAWebUserPrefsKeys").KEYS.WA_WEB_ID_UPSELL_SNOOZE_UNTIL,String(e))}function h(){var e=r("WANullthrows")(r("WAWebLocalStorage")).getItem(o("WAWebUserPrefsKeys").KEYS.WA_WEB_ID_UPSELL_SNOOZE_UNTIL);return e==null?null:Number.parseInt(e,10)}}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("WAWebKeyboardEventConstants",[],(function(t,n,r,o,a,i){var e={Action:"keyboard_action",Event:"keyboard_event",Events:{LOGGED_IN:"logged_in",LOGGED_OUT:"logged_out",ARCHIVE:"archived",MUTE:"muted",PIN:"pinned",READ:"read",READ_ONLY:"read_only",CHAT_KIND:"chat_kind",ZOOM:"zoom",LAUNCH:"launch",AB_PROPS_UPDATE:"ab_props_update",BATCH_RENDER:"batch_render"}};i.default=e}),66); __d("WAWebKeyboardManager",["WAWebKeyboardRun","WAWebKeyboardShortcuts"],(function(t,n,r,o,a,i,l){var e=(function(){function e(){document.addEventListener("keydown",function(e){var t=o("WAWebKeyboardShortcuts").getAction(e);t&&r("WAWebKeyboardRun")(t)})}var t=e.prototype;return t.trigger=function(t){},t.menuBatchRenderWith=function(t){},e})(),s=new e;l.default=s}),98); __d("WAWebKeyboardTopLevelHotKeys.react",["WAWebFocusTracer","WAWebKeyboardHotKeys.react","WAWebKeyboardTabUtils","react","useMergeRefs"],(function(t,n,r,o,a,i,l){var e=["ref"],s,u,c=u||(u=o("react")),d=s||(s=r("react")),m=c.useEffect,p=c.useRef;function _(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.children,l=a.className,s=a.onBlur,u=a.skipNode,c=p(null),_=r("useMergeRefs")(n,c);m(function(){r("WAWebFocusTracer").focus(c.current)},[]);var f=function(t){var e=c.current;if(e){var n=o("WAWebKeyboardTabUtils").TabDirection.FORWARD;t&&(t.preventDefault(),n=t.shiftKey?o("WAWebKeyboardTabUtils").TabDirection.BACKWARD:o("WAWebKeyboardTabUtils").TabDirection.FORWARD);var a=o("WAWebKeyboardTabUtils").getNextTabbableElement(e,n,o("WAWebKeyboardTabUtils").FocusType.CUSTOM,function(e){return!u(e)});a!=null&&r("WAWebFocusTracer").focus(a)}},g={tab:f,"shift+tab":f,"shift+?":a.onShowKeyboardShortcuts};return d.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:g,className:l,onBlur:s,ref:_,children:i})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),98); __d("WAWebLongAnimationFrameObserver",["WALogger","WAWebDocumentVisibilityObserver"],(function(t,n,r,o,a,i,l){var e,s=500;function u(e){var t=e.match(/.*\.(.*)/);return t?t[1]:e}var c=(function(){function t(){this.documentVisibilityObserver=new(o("WAWebDocumentVisibilityObserver")).WAWebDocumentVisibilityObserver}var n=t.prototype;return n.isSupported=function(){var e;return typeof((e=window.PerformanceObserver)==null||(e=e.supportedEntryTypes)==null?void 0:e.includes)=="function"&&window.PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")},n.observe=function(t){t.observe({type:"long-animation-frame",buffered:!0})},n.handle=function(n){for(var t of n)if(!(t.blockingDurationt.duration?e:t});o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[long-animation-frame] blockingDuration: ","ms - ",":"," ","ms"])),t.blockingDuration,u(i.invoker),i.sourceFunctionName,i.duration).sendLogs("[performance observer] long-animation-frame by "+u(i.invoker),{sampling:.001})}}},t})();l.WAWebLongAnimationFrameObserver=c}),98); __d("WAWebLongTaskObserver",["WALogger","WAWebCrashContextUtils","WAWebDocumentVisibilityObserver"],(function(t,n,r,o,a,i,l){var e,s,u=5e3,c=10*1e3,d=15*1e3,m=30*1e3;function p(e){return e>d?"15s+":e>c?"10s-15s":e>u?"5s-10s":"0s-5s"}var _=(function(){function t(){this.documentVisibilityObserver=new(o("WAWebDocumentVisibilityObserver")).WAWebDocumentVisibilityObserver}var n=t.prototype;return n.isSupported=function(){var e;return typeof((e=window.PerformanceObserver)==null||(e=e.supportedEntryTypes)==null?void 0:e.includes)=="function"&&window.PerformanceObserver.supportedEntryTypes.includes("longtask")},n.observe=function(t){t.observe({type:"longtask",buffered:!1}),this.documentVisibilityObserver.observe()},n.handle=function(n){for(var t of n)if(!(t.durationm)){var r=this.documentVisibilityObserver.isWindowInFocus(),a=this.documentVisibilityObserver.isDocumentVisible();if(!(!a||!r)){var i=t.startTime+t.duration;o("WAWebCrashContextUtils").recordHangEvent(i,t.duration),o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[longtask] entryStartTime: ","s ago"])),((t.startTime-self.performance.now())/1e3).toFixed(0)),o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[longtask][","] entryDuration: ","ms"])),p(t.duration),t.duration).sendLogs("[performance observer] longtask",{sampling:.01,sendLogsType:o("WALogger").SendLogsType.PERFORMANCE_OBSERVER_LONGTASK_SAD})}}},t})();l.WAWebLongTaskObserver=_}),98); __d("WAWebMouseManager",["WAWebKeyboardRun","WAWebKeyboardShortcuts"],(function(t,n,r,o,a,i,l){var e=function(t){var e=o("WAWebKeyboardShortcuts").getActionFromMouseEvent(t);e&&r("WAWebKeyboardRun")(e)};l.mouseWheelListener=e}),98); __d("WAWebNativeAdsExperimentInfoContext.react",["FBLogger","Promise","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=s,d=c.useEffect,m=c.useSyncExternalStore,p={isEligibleForMVPQE2:!1},_=new Set;function f(e){return _.add(e),function(){_.delete(e)}}function g(){_.forEach(function(e){return e()})}function h(e){p=e,g()}function y(){return p}function C(){return(e||(e=n("Promise"))).resolve(null)}function b(e){var t=e.children;return d(function(){C().then(function(e){e!=null&&h(e)}).catch(function(e){r("FBLogger")("wa_ctwa_web").catching(e).warn("WAWebNativeAdsExperimentInfoContext: could not fetch native ads experiment info")})},[]),t}b.displayName=b.name+" [from "+i.id+"]";function v(){return m(f,y)}l.setNativeAdsExperimentInfo=h,l.getNativeAdsExperimentInfo=y,l.NativeAdsExperimentInfoProvider=b,l.useNativeAdsExperimentInfo=v}),98); __d("WAWebMediaHubNavBarItem.react",["fbt","WAWebFocusTracer","WAWebIconButton.react","WAWebKeyboardHotKeys.react","WAWebMediaHubGating","WAWebMediaHubLogger","WAWebMediaHubModalLoadable","WAWebMediaHubNUX","WAWebMediaRefreshedIcon.react","WAWebModalManager","WAWebNavBarItem.react","WAWebNux","WAWebText.react","WAWebUISpacing","WAWebWamEnumActionCode","WAWebWamEnumEntryPointType","react","useWAWebNux"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useRef,m={icon:{color:"xhslqc4",$$css:!0}};function p(e){var t=e.shouldShowText,n=t===void 0?!1:t,a=e.size,i=a===void 0?24:a,l=r("useWAWebNux")(o("WAWebNux").NUX.MEDIA_HUB_TOOLTIP,o("WAWebMediaHubNUX").isMediaHubTooltipVisible),u=l[0],p=d(null),_=d(null);if(!o("WAWebMediaHubGating").isFilesMediaHubComponentEnabled())return null;var f=function(){o("WAWebMediaHubLogger").logMediaHubAction({action:o("WAWebWamEnumActionCode").ACTION_CODE.OPEN_MEDIA_HUB,entrypoint:o("WAWebWamEnumEntryPointType").ENTRY_POINT_TYPE.MAIN_SCREEN}),o("WAWebMediaHubNUX").ackMediaHubNux(),o("WAWebModalManager").ModalManager.open(c.jsx(o("WAWebMediaHubModalLoadable").MediaHubModalLoadable,{}))},g=s._(/*BTDS*/"Contenido multimedia"),h={right:function(){r("WAWebFocusTracer").focus(p.current)},left:function(){r("WAWebFocusTracer").focus(_.current)}},y=o("WAWebMediaHubGating").isNuxMediaHubEnabled();return n?c.jsx(r("WAWebIconButton.react"),{onClick:f,icon:c.jsx(o("WAWebMediaRefreshedIcon.react").MediaRefreshedIcon,{width:i,height:i,xstyle:[m.icon,o("WAWebUISpacing").uiPadding.end8]}),children:c.jsx(o("WAWebText.react").WAWebTextMutedRefreshed,{xstyle:[o("WAWebUISpacing").uiPadding.top2,o("WAWebUISpacing").uiPadding.end9],children:s._(/*BTDS*/"Todos los chats")})}):c.jsxs(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:h,children:[c.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:c.jsx(o("WAWebMediaRefreshedIcon.react").MediaRefreshedIcon,{width:i,height:i}),ref:_,spacingXstyle:o("WAWebUISpacing").uiPadding.all9,title:g,testid:void 0,isActive:!1,onClick:f,isTooltipDisabled:u}),y&&c.jsx(o("WAWebMediaHubNUX").WAWebMediaHubNUX,{ref:_,closeRef:p})]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebMetaBotNavBarItem.react",["fbt","WAWebBotFrontendUtils","WAWebBotGating","WAWebChatEntryPoint","WAWebDrawerManager","WAWebFlex.react","WAWebInteractionTracePolicy","WAWebMetaAIIcon.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebUISpacing","WAWebWamEnumWebcNavbarItemLabel","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={iconWrapper:{width:"x17z2i9w",height:"x17rw0jw",$$css:!0}};function d(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,a=function(){o("WAWebBotGating").isAiChatThreadsEnabled()?o("WAWebBotFrontendUtils").getMetaAiChat().then(function(e){o("WAWebBotFrontendUtils").runMetaAiFlow(e,{type:"MetaAiNavigationBar"})}):(o("WAWebBotFrontendUtils").openMetaBotChat(o("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut),o("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),n(o("WAWebNavBarTypes").NavBarItems.Chats),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.CHATS))},i=s._(/*BTDS*/"Meta AI"),l=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:u.jsx(o("WAWebFlex.react").FlexColumn,{grow:1,align:"center",justify:"center",xstyle:c.iconWrapper,children:u.jsx(r("WAWebMetaAIIcon.react"),{})}),spacingXstyle:o("WAWebUISpacing").uiPadding.all9,title:i,testid:void 0,isActive:t===o("WAWebNavBarTypes").NavBarItems.MetaAI,onClick:a,tracePolicy:r("WAWebInteractionTracePolicy").NAVIGATION_METABOT});return o("WAWebBotGating").isBotShortcutEntryPointEnabled()&&l}d.displayName=d.name+" [from "+i.id+"]",l.MetaBotNavBarItem=d}),226); __d("WAWebNewsletterTabIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="newsletter-tab";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M21.9218 10.6469C21.321 6.08949 17.5557 2.45561 12.9894 2.04404C7.06124 1.50197 2.16447 6.05937 2.05432 11.982C2.01426 14.1101 2.82538 15.9371 3.23595 16.7201L2.0443 20.6651C1.81398 21.4281 2.52497 22.1408 3.28602 21.9099L7.17139 20.7455C8.65344 21.5686 10.3157 22.0002 12.0181 22.0002C17.9663 22.0002 22.7129 16.7602 21.9118 10.6469H21.9218ZM8.06262 14.6823C8.333 15.0838 8.30296 15.6259 7.96249 15.9672C7.51186 16.429 6.76082 16.3386 6.40033 15.7966C5.66931 14.7124 5.23872 13.3974 5.23872 11.992C5.23872 10.5867 5.69936 9.17125 6.49045 8.057C6.84093 7.56512 7.57195 7.53501 8.00254 7.96665C8.35302 8.318 8.38307 8.86007 8.10268 9.2616C7.56193 10.0346 7.2515 10.9782 7.2515 11.992C7.2515 13.0059 7.56193 13.9093 8.08265 14.6723L8.06262 14.6823ZM12.0682 13.4978C11.237 13.4978 10.5661 12.8252 10.5661 11.992C10.5661 11.1588 11.237 10.4863 12.0682 10.4863C12.8993 10.4863 13.5702 11.1588 13.5702 11.992C13.5702 12.8252 12.8993 13.4978 12.0682 13.4978ZM17.5257 15.9471C17.1752 16.439 16.4442 16.4691 16.0236 16.0375C15.6731 15.6861 15.6431 15.1441 15.9235 14.7425C16.4642 13.9696 16.7847 13.0159 16.7847 12.0021C16.7847 10.9882 16.4542 10.0145 15.9035 9.24152C15.6131 8.82995 15.6331 8.27784 15.9836 7.91646C16.4042 7.49485 17.1252 7.51493 17.4857 8.00681C18.3068 9.1311 18.7875 10.5064 18.7875 12.0121C18.7875 13.5179 18.3168 14.8429 17.5257 15.9572V15.9471Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.NewsletterTabIcon=m}),98); __d("WAWebOpenLastActiveNewsletterAction",["Promise","WAWebCmd","WAWebDrawerManager","WAWebNavBarEmptyState.react","WAWebNavBarTypes","WAWebNewsletterCollection","WAWebSideNavButtonsActivityModel","WAWebStatusGatingUtils","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=function(){o("WAWebStatusGatingUtils").isUpdatesTabInNavigationBarEnabled()?o("WAWebDrawerManager").DrawerManager.openDrawerMid(u.jsx(o("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:o("WAWebNavBarTypes").NavBarItems.Updates}),{transition:"none",disableRotateFocus:!0}):o("WAWebDrawerManager").DrawerManager.openDrawerMid(u.jsx(o("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:o("WAWebNavBarTypes").NavBarItems.Newsletters}),{transition:"none",disableRotateFocus:!0})},d=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=o("WAWebSideNavButtonsActivityModel").getLastActiveNewsletter();if(t==null)return c(),(e||(e=n("Promise"))).resolve(!1);try{var a=r("WAWebNewsletterCollection").get(t);return a==null?(c(),(e||(e=n("Promise"))).resolve(!1)):(o("WAWebDrawerManager").DrawerManager.closeDrawerMid(),o("WAWebCmd").Cmd.openChatFromUnread({chat:a,chatEntryPoint:o("WAWebSideNavButtonsActivityModel").getLastActiveNewsletterEntryPoint()}))}catch(t){return(e||(e=n("Promise"))).resolve(!1)}});return function(){return t.apply(this,arguments)}})();l.openLastActiveNewsletter=d}),98); __d("useWAWebIsNewsletterUiEnabled",["WAWebCmd","WAWebNewsletterGatingUtils","WAWebPrimaryFeaturesModel","useWAWebEventTargetValue"],(function(t,n,r,o,a,i,l){function e(){return r("useWAWebEventTargetValue")([o("WAWebPrimaryFeaturesModel").PrimaryFeatures,o("WAWebCmd").Cmd],["change:newsletter","on_ab_props_update_from_bridge"],function(){return o("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&o("WAWebNewsletterGatingUtils").isNewsletterEnabledOnPrimary()})}l.default=e}),98); __d("WAWebNewslettersNavBarItem_ToBeDeprecated.react",["fbt","WATimeUtils","WAWebInteractionTracePolicy","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebNewsletterCollection","WAWebNewsletterOutlineIcon.react","WAWebNewsletterTabIcon.react","WAWebOpenLastActiveNewsletterAction","WAWebOpenNewsletterTab","WAWebSideNavButtonsActivityModel","WAWebUnreadActivityIndicator.react","WAWebUserPrefsNewsletter","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebEventTargetValue","useWAWebIsNewsletterUiEnabled"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,a=r("useWAWebIsNewsletterUiEnabled")(),i=function(){t!==o("WAWebNavBarTypes").NavBarItems.Newsletters&&(n(o("WAWebNavBarTypes").NavBarItems.Newsletters),o("WAWebOpenNewsletterTab").openNewsletterTab(),o("WAWebUserPrefsNewsletter").setNewsletterTabLastSeenTimestamp(o("WATimeUtils").unixTime()),r("WAWebNewsletterCollection").trigger("newsletter_tab_close"),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.NEWSLETTERS),o("WAWebSideNavButtonsActivityModel").setLastActiveButton(o("WAWebNavBarTypes").NavBarItems.Newsletters),o("WAWebOpenLastActiveNewsletterAction").openLastActiveNewsletter())},l=t===o("WAWebNavBarTypes").NavBarItems.Newsletters?u.jsx(o("WAWebNewsletterTabIcon.react").NewsletterTabIcon,{directional:!0}):u.jsx(o("WAWebNewsletterOutlineIcon.react").NewsletterOutlineIcon,{directional:!0}),c=r("useWAWebEventTargetValue")(r("WAWebNewsletterCollection"),"add change remove newsletter_tab_close",function(){return r("WAWebNewsletterCollection").hasAnyUnreadSinceGivenTimestamp(o("WAWebUserPrefsNewsletter").getNewsletterTabLastSeenTimestamp())}),d=c?u.jsx(r("WAWebUnreadActivityIndicator.react"),{}):null,m=s._(/*BTDS*/"Canales"),p=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:l,inlineActivityIndicator:d,inlineActivityIndicatorType:o("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:m,testid:void 0,isActive:t===o("WAWebNavBarTypes").NavBarItems.Newsletters,onClick:i,tracePolicy:r("WAWebInteractionTracePolicy").NAVIGATION_NEWSLETTERS,shouldHoldInteractionManually:!0});return a&&p}c.displayName=c.name+" [from "+i.id+"]",l.NewslettersNavBarItem_ToBeDeprecated=c}),226); __d("WAWebProfileNavBarItem.react",["fbt","WAWebBizGatingUtils","WAWebBizRefreshedProfileDrawerLoadable","WAWebConnModel","WAWebContactCollection","WAWebDetailImage.react","WAWebDrawerManager","WAWebInteractionTracePolicy","WAWebKeyboardTabUtils","WAWebNavBarEmptyState.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebProfilePicThumbCollection","WAWebTextStatusCollection","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebWamEnumEntryPoint","WAWebWamEnumWebcNavbarItemLabel","cr:1923","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useMemo,m={profilePictureWrapper:{borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",$$css:!0},profilePictureActive:{outline:"x139wjo3",$$css:!0}};function p(e){var t=e.activeNavBarItem,a=e.updateActiveNavBarItem,i=d(function(){return o("WAWebUserPrefsMeUser").getMePnUserOrThrow()},[]),l=function(){if(t!==o("WAWebNavBarTypes").NavBarItems.Profile){var e=o("WAWebTextStatusCollection").TextStatusCollection.assertGet(i),r=o("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(i),l=o("WAWebContactCollection").ContactCollection.assertGet(i),s=o("WAWebBizGatingUtils").businessProfileRefreshEnabled();a(o("WAWebNavBarTypes").NavBarItems.Profile),s?o("WAWebDrawerManager").DrawerManager.openDrawerFullscreen(c.jsx(o("WAWebBizRefreshedProfileDrawerLoadable").WAWebBizRefreshedProfileDrawerLoadable,{entryPoint:o("WAWebWamEnumEntryPoint").ENTRY_POINT.NAV_BAR,onClose:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerFullscreen()}})):o("WAWebDrawerManager").DrawerManager.openDrawerLeft(c.jsx(n("cr:1923"),{status:e,profilePicThumb:r,contact:l,conn:o("WAWebConnModel").Conn,entryPoint:o("WAWebWamEnumEntryPoint").ENTRY_POINT.NAV_BAR,onClose:o("WAWebDrawerManager").closeDrawerLeft,isInitialStep:!0}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0}),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.PROFILE),s||o("WAWebDrawerManager").DrawerManager.openDrawerMid(c.jsx(o("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:o("WAWebNavBarTypes").NavBarItems.Profile}),{transition:"none",disableRotateFocus:!0})}},u=t===o("WAWebNavBarTypes").NavBarItems.Profile,p=d(function(){return c.jsx(o("WAWebDetailImage.react").DetailImage,{ariaLabel:s._(/*BTDS*/"Foto del perfil"),testId:"navbar-item-profile-photo",theme:"chatlist_header_profile_photo",tabIndex:-1,id:i,size:28,xstyle:[m.profilePictureWrapper,u&&m.profilePictureActive]})},[i,u]),_=c.jsx(o("WAWebNavBarItem.react").NavBarItem,{testid:void 0,icon:p,spacingXstyle:o("WAWebUISpacing").uiPadding.all6,title:s._(/*BTDS*/"Perfil"),onClick:l,isActive:t===o("WAWebNavBarTypes").NavBarItems.Profile,tracePolicy:r("WAWebInteractionTracePolicy").NAVIGATION_PROFILE});return _}p.displayName=p.name+" [from "+i.id+"]",l.ProfileNavBarItem=p}),226); __d("WAWebSettingsNavBarItem.react",["fbt","WAWebActions","WAWebActiveAccountInfoContext.react","WAWebDrawerManager","WAWebInteractionTracePolicy","WAWebKeyboardTabUtils","WAWebNavBarEmptyState.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebSettingsFilledRefreshedIcon.react","WAWebSettingsFlow.react","WAWebSettingsRefreshedIcon.react","WAWebWamEnumWebcNavbarItemLabel","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,a=o("WAWebActiveAccountInfoContext.react").useActiveAccountInfo(),i=function(){t!==o("WAWebNavBarTypes").NavBarItems.Settings&&(n(o("WAWebNavBarTypes").NavBarItems.Settings),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebSettingsFlow.react").SettingsFlow,{activeAccountInfo:a,onEnd:o("WAWebDrawerManager").closeDrawerLeft}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0}),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS),self.setTimeout(function(){o("WAWebDrawerManager").DrawerManager.openDrawerMid(u.jsx(o("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:o("WAWebNavBarTypes").NavBarItems.Settings}),{transition:"none",disableRotateFocus:!0,noFocus:!0})},0))},l=t===o("WAWebNavBarTypes").NavBarItems.Settings?u.jsx(o("WAWebSettingsFilledRefreshedIcon.react").SettingsFilledRefreshedIcon,{}):u.jsx(o("WAWebSettingsRefreshedIcon.react").SettingsRefreshedIcon,{}),c=s._(/*BTDS*/"Ajustes"),d=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{testid:void 0,icon:l,title:c,keyboardShortcutAction:o("WAWebActions").Action.OPEN_SETTINGS,onClick:i,isActive:t===o("WAWebNavBarTypes").NavBarItems.Settings,tracePolicy:r("WAWebInteractionTracePolicy").NAVIGATION_SETTINGS});return d}c.displayName=c.name+" [from "+i.id+"]",l.SettingsNavBarItem=c}),226); __d("useWAWebStatusActivityIndicator",["WAWebCollectionConstants","WAWebContactCollection","WAWebContactGetters","WAWebStatusCollection","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useRef,c=s.useState;function d(){var e=c(function(){return o("WAWebStatusCollection").StatusCollection.getUnexpired({containsAnyUnreadStatus:!0}).some(function(e){return e.unreadCount>0&&!o("WAWebContactGetters").getCalculatedStatusMute(e.contact)})}),t=e[0],n=e[1],r=u({}),a=function(){var e=o("WAWebStatusCollection").StatusCollection.getUnexpired({containsAnyUnreadStatus:!0}).some(function(e){var t=r.current[e.id.toString()],n=!t||e.t>t;return!e.contact.statusMute&&e.unreadCount>0&&n});e!==t&&n(e)};o("useWAWebListener").useListener(o("WAWebContactCollection").ContactCollection,o("WAWebCollectionConstants").COLLECTION_HAS_SYNCED,a),o("useWAWebListener").useListener(o("WAWebStatusCollection").StatusCollection,"add remove change:unreadCount change:t",a);var i=function(){o("WAWebStatusCollection").StatusCollection.getUnexpired({containsAnyUnreadStatus:!0}).forEach(function(e){r.current[e.id.toString()]=e.t})},l=function(){i(),n(!1)};return{hasUnread:t,clearUnreadActivity:l}}l.useWAWebStatusActivityIndicator=d}),98); __d("WAWebStatusNavBarItem_ToBeDeprecated.react",["fbt","WAWebDrawerManager","WAWebInteractionTracePolicy","WAWebNavBarEmptyState.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebStatusFilledRefreshedIcon.react","WAWebStatusNavigateTo","WAWebStatusRefreshedIcon.react","WAWebUnreadActivityIndicator.react","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebStatusActivityIndicator"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,a=o("useWAWebStatusActivityIndicator").useWAWebStatusActivityIndicator(),i=a.clearUnreadActivity,l=a.hasUnread,c=l?u.jsx(r("WAWebUnreadActivityIndicator.react"),{}):null,d=function(){t!==o("WAWebNavBarTypes").NavBarItems.Status&&(n(o("WAWebNavBarTypes").NavBarItems.Status),o("WAWebStatusNavigateTo").navigateToStatus(i),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.STATUS),o("WAWebDrawerManager").DrawerManager.openDrawerMid(u.jsx(o("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:o("WAWebNavBarTypes").NavBarItems.Status}),{transition:"none",disableRotateFocus:!0}))},m=t===o("WAWebNavBarTypes").NavBarItems.Status?u.jsx(o("WAWebStatusFilledRefreshedIcon.react").StatusFilledRefreshedIcon,{}):u.jsx(o("WAWebStatusRefreshedIcon.react").StatusRefreshedIcon,{}),p=s._(/*BTDS*/"Estados"),_=l?s._(/*BTDS*/"Actualizaciones en Estados"):s._(/*BTDS*/"Estado"),f=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:m,ariaLabel:_,inlineActivityIndicator:c,inlineActivityIndicatorType:o("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:p,testid:void 0,isActive:t===o("WAWebNavBarTypes").NavBarItems.Status,onClick:d,tracePolicy:r("WAWebInteractionTracePolicy").NAVIGATION_STATUS});return f}c.displayName=c.name+" [from "+i.id+"]",l.StatusNavBarItem_ToBeDeprecated=c}),226); __d("WAWebUpdatesDrawerFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebUpdatesDrawerFlow.react").__setRef("WAWebUpdatesDrawerFlowLoadable").load();return e}),"UpdatesDrawerFlow"),c=r("react-loadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error,cancellable:!1})}});l.UpdatesDrawerFlowLoadable=c}),98); __d("WAWebOpenUpdatesTab",["WAWebBootstrapNewsletter","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebUpdatesDrawerFlowLoadable","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){o("WAWebBootstrapNewsletter").bootstrapNewsletterBackend(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(s.jsx(o("WAWebUpdatesDrawerFlowLoadable").UpdatesDrawerFlowLoadable,{onBack:o("WAWebDrawerManager").closeDrawerLeft}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0}),e==null||e()}l.openUpdatesTab=u}),98); __d("WDSIconWdsIcUpdates.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-ic-updates";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M12 2C10.1799 2 8.47054 2.48717 6.99848 3.3389C6.52044 3.61548 6.35713 4.22723 6.63372 4.70526C6.91031 5.1833 7.52205 5.3466 8.00009 5.07001C9.17591 4.3897 10.5409 4 12 4C13.4591 4 14.8241 4.3897 15.9999 5.07001C16.4779 5.3466 17.0897 5.1833 17.3663 4.70526C17.6429 4.22723 17.4796 3.61548 17.0015 3.3389C15.5295 2.48717 13.8201 2 12 2Z",fill:"currentColor"}),c.jsx("path",{d:"M20.6611 6.99848C20.3845 6.52044 19.7728 6.35713 19.2947 6.63372C18.8167 6.91031 18.6534 7.52205 18.93 8.00009C19.6103 9.17591 20 10.5409 20 12C20 13.4591 19.6103 14.8241 18.93 15.9999C18.6534 16.4779 18.8167 17.0897 19.2947 17.3663C19.7728 17.6429 20.3845 17.4796 20.6611 17.0015C21.5128 15.5295 22 13.8201 22 12C22 10.1799 21.5128 8.47054 20.6611 6.99848Z",fill:"currentColor"}),c.jsx("path",{d:"M4.70526 6.63372C5.1833 6.91031 5.3466 7.52205 5.07001 8.00009C4.3897 9.17591 4 10.5409 4 12C4 13.3588 4.34295 14.6355 4.94296 15.7556L5.33243 16.4826L5.09622 17.2728C4.86428 18.0487 4.62086 18.8707 4.41748 19.5825C5.12931 19.3791 5.95126 19.1357 6.72722 18.9038L7.51743 18.6676L8.24444 19.057C9.36447 19.6571 10.6412 20 12 20C13.4591 20 14.8241 19.6103 15.9999 18.93C16.4779 18.6534 17.0897 18.8167 17.3663 19.2947C17.6429 19.7728 17.4796 20.3845 17.0015 20.6611C15.5295 21.5128 13.8201 22 12 22C10.2986 22 8.69405 21.5743 7.28958 20.8231C5.45189 21.3724 3.30942 22 3 22C2.45 22 2 21.55 2 21C2 20.6906 2.62762 18.5481 3.17689 16.7104C2.42568 15.306 2 13.7014 2 12C2 10.1799 2.48717 8.47054 3.3389 6.99848C3.61548 6.52044 4.22723 6.35713 4.70526 6.63372Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12ZM16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebUpdatesNavBarItem.react",["fbt","WATimeUtils","WAWebInteractionTracePolicy","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebNewsletterCollection","WAWebOpenLastActiveNewsletterAction","WAWebOpenUpdatesTab","WAWebSideNavButtonsActivityModel","WAWebUnreadActivityIndicator.react","WAWebUserPrefsNewsletter","WAWebWamEnumWebcNavbarItemLabel","WDSIconWdsIcUpdates.react","WDSIconWdsIcUpdatesFilled.react","react","useWAWebEventTargetValue","useWAWebStatusActivityIndicator"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,a=o("useWAWebStatusActivityIndicator").useWAWebStatusActivityIndicator(),i=a.clearUnreadActivity,l=a.hasUnread,c=r("useWAWebEventTargetValue")(r("WAWebNewsletterCollection"),"add change remove updates_tab_close",function(){return r("WAWebNewsletterCollection").hasAnyUnreadSinceGivenTimestamp(o("WAWebUserPrefsNewsletter").getNewsletterTabLastSeenTimestamp())}),d=l||c,m=d?u.jsx(r("WAWebUnreadActivityIndicator.react"),{}):null,p=function(){t!==o("WAWebNavBarTypes").NavBarItems.Updates&&(n(o("WAWebNavBarTypes").NavBarItems.Updates),o("WAWebUserPrefsNewsletter").setNewsletterTabLastSeenTimestamp(o("WATimeUtils").unixTime()),r("WAWebNewsletterCollection").trigger("updates_tab_close"),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.UPDATES),o("WAWebSideNavButtonsActivityModel").setLastActiveButton(o("WAWebNavBarTypes").NavBarItems.Updates),o("WAWebOpenUpdatesTab").openUpdatesTab(i),o("WAWebOpenLastActiveNewsletterAction").openLastActiveNewsletter())},_=t===o("WAWebNavBarTypes").NavBarItems.Updates?u.jsx(r("WDSIconWdsIcUpdatesFilled.react"),{}):u.jsx(r("WDSIconWdsIcUpdates.react"),{}),f=s._(/*BTDS*/"Novedades"),g=d?s._(/*BTDS*/"Actualizaciones no vistas"):s._(/*BTDS*/"Actualizaciones"),h=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:_,ariaLabel:g,inlineActivityIndicator:m,inlineActivityIndicatorType:o("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:f,testid:void 0,isActive:t===o("WAWebNavBarTypes").NavBarItems.Updates,onClick:p,tracePolicy:r("WAWebInteractionTracePolicy").NAVIGATION_UPDATES});return h}c.displayName=c.name+" [from "+i.id+"]",l.UpdatesNavBarItem=c}),226); __d("WAWebUseArrowKeyNavigation",["react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useEffect,c=s.useRef;function d(e){var t=e.prefix;u(function(){var e=Array.from(document.querySelectorAll("[data-"+t+"-item]"));e.forEach(function(e,n){e.setAttribute("data-"+t+"-item-index",n.toString())})},void 0)}function m(e){var t=e.prefix,n=c(null),r=c(0);d({prefix:t});var o=function(){var e=n.current;return e==null?[]:Array.from(e.querySelectorAll("[data-"+t+"-item]"))},a=function(){var e,o=(e=n.current)==null?void 0:e.querySelector("[data-"+t+'-item-selected="true"]');if(o){var a=parseInt(o.getAttribute("data-"+t+"-item-index"),10);r.current=a,o.focus()}},i=function(t){var e={next:1,prev:-1},n=o(),a=r.current+e[t];a<0||a>=n.length||l(a)},l=function(t){var e=o(),n=e[t];n==null||n.focus(),r.current=t},s=function(t){var e=t.target===n.current;e&&a()};return{ref:n,onFocus:s,up:function(){return i("prev")},down:function(){return i("next")},focusItemIndex:l}}l.useArrowKeyNavigation=m}),98); __d("WAWebWindowsArchivedChatsNavBarItem.react",["fbt","WAWebArchiveFilledRefreshedIcon.react","WAWebArchiveRefreshedIcon.react","WAWebArchivedFlowLoadable","WAWebChatUnreadCount.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebArchivedChatsActivityIndicator"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=e.activeNavBarItem,n=e.updateActiveNavBarItem,r=o("useWAWebArchivedChatsActivityIndicator").useArchivedChatsActivityIndicator(),a=r.unreadCount,i=a>0?u.jsx(o("WAWebChatUnreadCount.react").UnreadCount,{count:a,theme:o("WAWebChatUnreadCount.react").UnreadCountTheme.Outlined},"icon-count"):null,l=function(){t!==o("WAWebNavBarTypes").NavBarItems.Archived&&(n(o("WAWebNavBarTypes").NavBarItems.Archived),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebArchivedFlowLoadable").ArchivedFlowLoadable,{onEnd:o("WAWebDrawerManager").closeDrawerLeft}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0}),o("WAWebNavBarLogEvents").logNavBarEvent(o("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.ARCHIVED))},c=s._(/*BTDS*/"Archivado"),d=t===o("WAWebNavBarTypes").NavBarItems.Archived?u.jsx(o("WAWebArchiveFilledRefreshedIcon.react").ArchiveFilledRefreshedIcon,{}):u.jsx(o("WAWebArchiveRefreshedIcon.react").ArchiveRefreshedIcon,{}),m=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:d,title:c,inlineActivityIndicator:i,inlineActivityIndicatorType:o("WAWebNavBarItem.react").InlineActivityIndicatorType.Counter,testid:void 0,isActive:t===o("WAWebNavBarTypes").NavBarItems.Archived,onClick:l});return m}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WDSIconWdsIcChatlockUnlockedFilled.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-ic-chatlock-unlocked-filled";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9541 7.14844V5.52295C12.9541 2.47271 15.4268 0 18.4771 0C21.5273 0 24 2.47271 24 5.52295V6.03882C24 6.59125 23.5521 7.03902 22.9996 7.03882C22.4475 7.03862 22 6.59096 22 6.03882V5.52295C22 3.57728 20.4227 2 18.4771 2C16.5314 2 14.9541 3.57728 14.9541 5.52295V7.14844H18.8353C20.308 7.14844 21.502 8.34235 21.502 9.81511V18.4578C21.502 19.9306 20.3081 21.1245 18.8353 21.1245H16.4876V21.1266H11.5068L8.03684 23.7463C7.37031 24.1462 6.50684 23.6736 6.50684 22.8963V21.1245H5.16471C3.69195 21.1245 2.49805 19.9306 2.49805 18.4578V9.81511C2.49805 8.34235 3.69195 7.14844 5.16471 7.14844H12.9541ZM7.50056 13H16.502C17.0542 13 17.502 12.5523 17.502 12C17.502 11.4477 17.0542 11 16.502 11H7.49804C6.94576 11 6.49805 11.4477 6.49805 12C6.49805 12.5523 6.94576 13 7.49805 13H7.50056ZM7.50196 15C6.94967 15 6.50196 15.4477 6.50196 16C6.50196 16.5523 6.94967 17 7.50196 17H13.498C14.0503 17 14.498 16.5523 14.498 16C14.498 15.4477 14.0503 15 13.498 15H7.50196Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebWindowsLockedChatsNavBarItem.react",["fbt","WAWebChatLockCodeModal.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebLockedChatsDrawer.react","WAWebNavBarItem.react","WAWebNavBarTypes","WAWebWamEnumActionEntryPoint","WAWebWamEnumLandingSurface","WAWebWamEnumUnlockEntryPoint","WDSIconWdsIcChatlockOutline.react","WDSIconWdsIcChatlockUnlockedFilled.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=e.activeNavBarItem,a=e.updateActiveNavBarItem,i=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(t!==o("WAWebNavBarTypes").NavBarItems.LockedChats){var e=yield o("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,entryPoint:o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST,unlockEntryPoint:o("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST,landingSurface:o("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER});e&&(a(o("WAWebNavBarTypes").NavBarItems.LockedChats),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(r("WAWebLockedChatsDrawer.react"),{entryPoint:o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST,unlockEntryPoint:o("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST}),{focusType:o("WAWebKeyboardTabUtils").FocusType.CUSTOM,transition:"pop-drawer-fast"}))}});return function(){return e.apply(this,arguments)}})(),l=s._(/*BTDS*/"Chats restringidos"),c=t===o("WAWebNavBarTypes").NavBarItems.LockedChats?u.jsx(r("WDSIconWdsIcChatlockUnlockedFilled.react"),{height:24,width:24}):u.jsx(r("WDSIconWdsIcChatlockOutline.react"),{}),d=u.jsx(o("WAWebNavBarItem.react").NavBarItem,{icon:c,title:l,testid:void 0,isActive:t===o("WAWebNavBarTypes").NavBarItems.LockedChats,onClick:i});return d}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebNavigationBar.react",["WAWebABProps","WAWebActiveAccountInfoContext.react","WAWebBetaNavBarItem.react","WAWebBizAdCreationNavBarItem.react","WAWebBizToolsNavBarItem.react","WAWebBotGating","WAWebBugnubNavBarItem.react","WAWebCallsNavBarItemLoadable.react","WAWebChatCollection","WAWebChatLockUtils","WAWebChatsNavBarItem.react","WAWebCommunitiesNavBarItem.react","WAWebCurrentUser","WAWebDrawerManager","WAWebEnvironment","WAWebFeedbackNavBarItem.react","WAWebFlex.react","WAWebFrontendChatGetters","WAWebKeyboardHotKeys.react","WAWebMediaHubGating","WAWebMediaHubNavBarItem.react","WAWebMetaBotNavBarItem.react","WAWebMobilePlatforms","WAWebNewslettersNavBarItem_ToBeDeprecated.react","WAWebProfileNavBarItem.react","WAWebSettingsNavBarItem.react","WAWebStatusGatingUtils","WAWebStatusNavBarItem_ToBeDeprecated.react","WAWebTabOrder","WAWebUISpacing","WAWebUpdatesNavBarItem.react","WAWebUseArrowKeyNavigation","WAWebWindowsArchivedChatsNavBarItem.react","WAWebWindowsLockedChatsNavBarItem.react","cr:13381","cr:21012","cr:21280","cr:2226","react","useMergeRefs","useWAWebChatLockSettings","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.memo,_=d.useState,f=(e=n("cr:2226"))==null?void 0:e.WAWebAppRatingNavBarItem,g=(s=n("cr:13381"))==null?void 0:s.WAWebWindowsFeedbackNavBarItem,h={header:{zIndex:"x12xzxwr",position:"x1n2onr6",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",minWidth:"xq3y45c",width:"xbyj736",height:"x5yr21d",backgroundColor:"x1h3rtpe",$$css:!0},fullWidth:{width:"xh8yej3",$$css:!0},fullHeight:{height:"x5yr21d",$$css:!0},wrapper:{":hover_cursor":"x1277o0a",$$css:!0}};function y(){return m.jsx("hr",{className:"xh8yej3 xjm9jq1 x178xt8z x13fuv20 xx42vgk x18oe1m7 x1sy0etr xstzfhl"})}y.displayName=y.name+" [from "+i.id+"]";function C(e){var t=e.activeNavBarItem,a=e.headerRef,i=e.updateActiveNavBarItem,l=o("WAWebUseArrowKeyNavigation").useArrowKeyNavigation({prefix:"navbar"}),s=l.down,u=l.focusItemIndex,c=l.onFocus,d=l.ref,p=l.up,C=o("WAWebActiveAccountInfoContext.react").useActiveAccountInfo(),b=function(){u(0)},v={up:p,down:s,escape:b},S=r("useMergeRefs")(a,d),R=r("WAWebEnvironment").isWindows===!0,L=function(){return R&&o("WAWebChatCollection").ChatCollection.some(function(e){return e.archive&&o("WAWebFrontendChatGetters").getShouldAppearInList(e)})},E=function(){return R&&o("WAWebChatLockUtils").shouldShowChatLockEntryPoints()},k=_(L()),I=k[0],T=k[1],D=_(E()),x=D[0],$=D[1],P=o("useWAWebChatLockSettings").useChatLockSettings(),N=P.hideLockedChats;o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:archive",function(e){if(R)if(e.archive===!0)T(!0);else{var t=L();t||o("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),T(t)}}),o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:isLocked",function(e){if(R)if(e.isLocked===!0)$(!0);else{var t=E();t||o("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),$(t)}});var M={activeNavBarItem:t,updateActiveNavBarItem:i},w=I&&m.createElement(r("WAWebWindowsArchivedChatsNavBarItem.react"),babelHelpers.extends({},M,{key:"navbar-item-archived-chats"})),A=x&&!N&&m.createElement(r("WAWebWindowsLockedChatsNavBarItem.react"),babelHelpers.extends({},M,{key:"navbar-item-locked-chats"})),F=o("WAWebBotGating").isBotShortcutEntryPointEnabled()&&m.createElement(o("WAWebMetaBotNavBarItem.react").MetaBotNavBarItem,babelHelpers.extends({},M,{key:"navbar-item-metabot"})),O=o("WAWebMediaHubGating").isFilesMediaHubSidebarEnabled()&&m.jsx(r("WAWebMediaHubNavBarItem.react"),{}),B=o("WAWebMobilePlatforms").isSMB()&&m.createElement(o("WAWebBizToolsNavBarItem.react").BizToolsNavBarItem,babelHelpers.extends({},M,{key:"navbar-item-biz-tools",activeAccountInfo:C})),W=o("WAWebMobilePlatforms").isSMB()&&m.jsx(o("WAWebBizAdCreationNavBarItem.react").BizAdCreationNavBarItem,{activeNavBarItem:M.activeNavBarItem},"navbar-item-ads-creation"),q=[w,A,F,B,W];q.some(Boolean)&&q.unshift(m.jsx(y,{},"separator"));var U=g!=null?m.jsx(g,{}):null,V=o("WAWebCurrentUser").isEmployee()&&m.jsx(o("WAWebBugnubNavBarItem.react").BugnubNavBarItem,{}),H=f&&o("WAWebABProps").getABPropConfigValue("web_rating_and_review_enabled")&&!o("WAWebABProps").getABPropConfigValue("web_rating_and_review_contextual_prompt_enabled")?m.jsx(f,{}):null,G=U||V||H?m.jsxs(m.Fragment,{children:[V,H,U]}):null,z,j=o("WAWebStatusGatingUtils").isUpdatesTabInNavigationBarEnabled();return m.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{ref:S,"data-testid":void 0,component:"header",tabIndex:0,"data-tab":o("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,handlers:v,onFocus:c,xstyle:[h.header,o("WAWebUISpacing").uiPadding.horiz12,o("WAWebUISpacing").uiPadding.vert10],children:m.jsxs(o("WAWebFlex.react").FlexColumn,{xstyle:[h.fullWidth,h.fullHeight],children:[m.jsx(o("WAWebFlex.react").FlexItem,{grow:1,xstyle:h.fullWidth,children:m.jsxs(o("WAWebFlex.react").FlexColumn,{xstyle:h.wrapper,children:[m.jsx(o("WAWebChatsNavBarItem.react").ChatsNavBarItem,babelHelpers.extends({},M)),m.jsx(o("WAWebCallsNavBarItemLoadable.react").CallsNavBarItemLoadable,babelHelpers.extends({},M)),j?m.jsx(o("WAWebUpdatesNavBarItem.react").UpdatesNavBarItem,babelHelpers.extends({},M)):m.jsxs(m.Fragment,{children:[m.jsx(o("WAWebStatusNavBarItem_ToBeDeprecated.react").StatusNavBarItem_ToBeDeprecated,babelHelpers.extends({},M)),m.jsx(o("WAWebNewslettersNavBarItem_ToBeDeprecated.react").NewslettersNavBarItem_ToBeDeprecated,babelHelpers.extends({},M))]}),m.jsx(o("WAWebCommunitiesNavBarItem.react").CommunitiesNavBarItem,babelHelpers.extends({},M)),n("cr:21280")?m.jsx(n("cr:21280"),babelHelpers.extends({},M)):null,q]})}),m.jsx(o("WAWebFlex.react").FlexItem,{grow:0,xstyle:h.fullWidth,children:m.jsxs(o("WAWebFlex.react").FlexColumn,{xstyle:h.wrapper,children:[m.jsx(o("WAWebFeedbackNavBarItem.react").FeedbackNavBarItem,{}),G,O,m.jsx(o("WAWebBetaNavBarItem.react").BetaNavBarItem,babelHelpers.extends({},M)),G==null?null:m.jsx(y,{}),m.jsx(o("WAWebSettingsNavBarItem.react").SettingsNavBarItem,babelHelpers.extends({},M)),m.jsx(o("WAWebProfileNavBarItem.react").ProfileNavBarItem,babelHelpers.extends({},M))]})}),z]})})}C.displayName=C.name+" [from "+i.id+"]";var b=p(C);l.NavigationBar=b}),98); __d("WAWebNotificationsCallNotification",["WAWebBaseNotification","WAWebCallRingtone","WAWebChatFlowTypes","WAWebContactCollection","WAWebFrontendContactGetters","WAWebLidMigrationUtils","WAWebMuteCollection","WAWebNotificationController","WAWebNotificationIconUtils","WAWebNotificationMuteReason","WAWebNotificationTone","WAWebVoipGatingUtils","WAWebWamEnumNotificationTypeEnum","WAWebWid","WAWebWidFormat","asyncToGeneratorRuntime","fbs"],(function(t,n,r,o,a,i,l){function e(e){return o("WAWebNotificationController").WANotificationController.triggerNotification(new u(e))}function s(e){e&&o("WAWebNotificationController").WANotificationController.closeOrCancelNotification(e.toString()),o("WAWebCallRingtone").stopCallRingtone()}var u=(function(e){function t(t){var n,r=t.isGroup,a=t.isSilenced,i=t.isVideo,l=t.msgId,s=t.wid;return n=e.call(this)||this,n.closeBanner=function(){o("WAWebCallRingtone").stopCallRingtone(),e.prototype.closeBanner.call(n)},n.wid=s,n.msgId=l,n.isVideo=i,n.isGroup=r,n.isSilenced=a,n}babelHelpers.inheritsLoose(t,e);var a=t.prototype;return a.shouldMute=function(t){return!this.wid||!this.msgId||this.isSilenced?r("WAWebNotificationMuteReason").GlobalMute:null},a.buildKey=function(){return"call:"+this.wid.toString()},a.matchesChat=function(t){return r("WAWebWid").equals.apply(r("WAWebWid"),o("WAWebLidMigrationUtils").toCommonAddressingMode(this.wid,t.id))},a.getChatKind=function(){return this.isGroup?o("WAWebChatFlowTypes").ChatKindType.Group:o("WAWebChatFlowTypes").ChatKindType.Chat},a.getIcon=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return o("WAWebNotificationIconUtils").getNotificationIconByWid(this.wid,this.abortController.signal,o("WAWebNotificationIconUtils").USER_DEFAULT_ICON)});function t(){return e.apply(this,arguments)}return t})(),a.getBannerOptions=function(){var e=o("WAWebContactCollection").ContactCollection.get(this.wid),t=e?o("WAWebFrontendContactGetters").getFormattedName(e):o("WAWebWidFormat").widToFormattedUser(this.wid),n=r("fbs")._(/*BTDS*/"Llamada entrante. Revisa tu tel\u00e9fono para responder.").toString();return o("WAWebVoipGatingUtils").isCallingEnabled()&&(this.isGroup?n=this.isVideo?r("fbs")._(/*BTDS*/"Videollamada grupal entrante").toString():r("fbs")._(/*BTDS*/"Llamada grupal entrante").toString():n=this.isVideo?r("fbs")._(/*BTDS*/"Videollamada entrante").toString():r("fbs")._(/*BTDS*/"Llamada entrante").toString()),{wid:this.wid,msgId:this.msgId,tag:this.msgId,title:t,body:n}},a.shouldShowBanner=function(){return e.prototype.shouldShowBanner.call(this)?o("WAWebMuteCollection").MuteCollection.getGlobalCallNotifications():!1},a.shouldPlaySound=function(){return e.prototype.shouldPlaySound.call(this)?o("WAWebMuteCollection").MuteCollection.getGlobalCallRingtone():!1},a.playSound=function(){o("WAWebVoipGatingUtils").isCallingEnabled()?o("WAWebCallRingtone").playCallRingtone():o("WAWebNotificationTone").playNotification()},a.afterBannerShown=function(n){e.prototype.afterBannerShown.call(this,n),n.waitForClose().then(function(){o("WAWebCallRingtone").stopCallRingtone()})},a.getNotificationDeliveryWamEventData=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return{uiNotificationType:this.isVideo?o("WAWebWamEnumNotificationTypeEnum").NOTIFICATION_TYPE_ENUM.INCOMING_VIDEO_CALL:o("WAWebWamEnumNotificationTypeEnum").NOTIFICATION_TYPE_ENUM.INCOMING_VOICE_CALL}});function t(){return e.apply(this,arguments)}return t})(),t})(o("WAWebBaseNotification").WABaseNotification);l.showCallNotification=e,l.cancelCallNotification=s}),226); __d("WAWebNotificationManager.react",["WAWebAppContext.react","WAWebChatCollection","WAWebCmd","WAWebEnvironment","WAWebNavBarTypes","WAWebNotificationBackend","WAWebNotificationIcon","WAWebNotificationsCallNotification","WAWebStreamModel","cr:8852","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=u.useEffect,d=u.useRef,m=(e=n("cr:8852"))!=null?e:{},p=m.WATaskbarController;function _(){var e,t=d(null),n=function(){var e;o("WAWebStreamModel").Stream.displayInfo===o("WAWebStreamModel").StreamInfo.OFFLINE&&!r("WAWebEnvironment").isWindows?e=-1:e=o("WAWebChatCollection").ChatCollection.getUnreadCount(),t.current!==e&&(t.current=e,o("WAWebNotificationIcon").setTitleAndIcon(e),p==null||p.UpdateTaskbarBadge(e))};c(function(){n()},[]),(e=o("useWAWebListener")).useListener(o("WAWebCmd").Cmd,"alert_new_msg",function(e){return o("WAWebNotificationBackend").showMsgNotification(e)}),e.useListener(o("WAWebCmd").Cmd,"alert_call",o("WAWebNotificationsCallNotification").showCallNotification),e.useListener(o("WAWebCmd").Cmd,"cancel_call",o("WAWebNotificationsCallNotification").cancelCallNotification),e.useListener(o("WAWebChatCollection").ChatCollection,"add remove reset change:showUnreadInTitle",n),e.useListener(o("WAWebChatCollection").ChatCollection,"change:unreadCount",o("WAWebNotificationBackend").closeNotifications),e.useListener(o("WAWebStreamModel").Stream,"change:displayInfo",n);var a=o("WAWebAppContext.react").useAppContext();return o("WAWebNotificationBackend").setAppContext(function(){return{isChatsSurfaceActive:a.activeNavBarItem===o("WAWebNavBarTypes").NavBarItems.Chats}}),null}l.default=_}),98); __d("WAWebOpenNotificationsSetting",["WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNotificationsFlow.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(){var e,t,n=new URLSearchParams(((e=window.location.search)!=null?e:"").toLowerCase()),r=((t=n.get("ns"))!=null?t:"")==="1";r&&(o("WAWebDrawerManager").DrawerManager.openDrawerLeft(s.jsx(o("WAWebNotificationsFlow.react").NotificationsFlow,{onEnd:o("WAWebDrawerManager").closeDrawerLeft}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"}),window.history.pushState({},"",window.location.origin))}l.handleOpenNotificationsSettingDeeplink=u}),98); __d("WAWebYoutube.react",["Promise","WAWebNoop","WAWebTimeSpentLoggingNavigation","asyncToGeneratorRuntime","lodash","react","youtube-player"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=s||(s=r("react")),m=c.useCallback,p=c.useEffect,_=c.useRef;function f(e,t){var n,r;if(e.videoId!==t.videoId)return!0;var o=((n=e.opts)==null?void 0:n.playerVars)||{},a=((r=t.opts)==null?void 0:r.playerVars)||{};return o.start!==a.start||o.end!==a.end}function g(e){return babelHelpers.extends({},e,{playerVars:babelHelpers.extends({},e==null?void 0:e.playerVars,{autoplay:0,start:0,end:0})})}function h(e,t){return!r("lodash").isEqual(g(e==null?void 0:e.opts),g(t==null?void 0:t.opts))}function y(e,t){return e.id===t.id||e.className===t.className}var C={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};function b(t){var a=t.onReady,i=a===void 0?r("WAWebNoop"):a,l=t.onError,s=l===void 0?r("WAWebNoop"):l,u=t.onStateChange,c=u===void 0?r("WAWebNoop"):u,g=t.onEnd,b=g===void 0?r("WAWebNoop"):g,v=t.onPlay,S=v===void 0?r("WAWebNoop"):v,R=t.onPause,L=R===void 0?r("WAWebNoop"):R,E=t.onPlaybackRateChange,k=E===void 0?r("WAWebNoop"):E,I=t.onPlaybackQualityChange,T=I===void 0?r("WAWebNoop"):I,D=t.opts,x=D===void 0?{playerVars:{}}:D,$=t.videoId,P=t.id,N=P===void 0?null:P,M=t.className,w=M===void 0?null:M,A=t.containerClassName,F=A===void 0?"":A,O=_(null),B=_(null),W=_([]),q=_(t),U=m(function(e){return i(e)},[i]),V=m(function(e){return s(e)},[s]),H=m(function(e){switch(c(e),e.data){case C.ENDED:b(e);break;case C.PLAYING:S(e);break;case C.PAUSED:L(e);break;default:return}},[b,L,S,c]),G=m(function(e){return k(e)},[k]),z=m(function(e){return T(e)},[T]),j=m(function(){var e,t,n,o,a=babelHelpers.extends({},x,{videoId:$});B.current=r("youtube-player")(O.current,a),W.current.push(B.current.on("ready",U),(e=B.current)==null?void 0:e.on("error",V),(t=B.current)==null?void 0:t.on("stateChange",H),(n=B.current)==null?void 0:n.on("playbackRateChange",G),(o=B.current)==null?void 0:o.on("playbackQualityChange",z))},[V,z,G,U,H,x,$]);p(function(){return j(),function(){var e;W.current.filter(Boolean).forEach(function(e){var t;(t=B.current)==null||t.off(e)}),(e=B.current)==null||e.destroy()}},[]);var K=m(function(){var t,r;return(t=(r=B.current)==null?void 0:r.destroy().then(j))!=null?t:(e||(e=n("Promise"))).resolve()},[j]),Q=m(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e,t=yield(e=B.current)==null?void 0:e.getIframe();N?t==null||t.setAttribute("id",N):t==null||t.removeAttribute("id"),w?t==null||t.setAttribute("class",w):t==null||t.removeAttribute("class")}),[w,N]),X=m(function(){var e;if($==null){var t;(t=B.current)==null||t.stopVideo();return}var n=!1,r,o;"playerVars"in x&&(n=x.playerVars.autoplay===1,"start"in x.playerVars&&(r=x.playerVars.start),"end"in x.playerVars&&(o=x.playerVars.end));var a={videoId:$,startSeconds:r,endSeconds:o};if(n){var i;(i=B.current)==null||i.loadVideoById(a);return}(e=B.current)==null||e.cueVideoById(a)},[x,$]);return p(function(){var e=q.current;y(e,t)&&Q(),h(e,t)&&K(),f(e,t)&&X(),q.current=t},[t,K,Q,X]),o("WAWebTimeSpentLoggingNavigation").useTsNavigation({surface:"youtube-player"}),d.jsx("span",{className:F,children:d.jsx("div",{id:N,className:w,ref:O})})}b.displayName=b.name+" [from "+i.id+"]",l.default=b}),98); __d("WAWebPipYoutubeVideoTag.react",["WAWebDebounce","WAWebPttAudioChannels","WAWebUserPrefsGeneral","WAWebYoutube.react","lodash","react","useLazyRef","useWAWebInterval","useWAWebOnUnmount","useWAWebStableCallback"],(function(t,n,r,o,a,i,l){var e=["ref"],s,u,c=u||(u=o("react")),d=s||(s=r("react")),m=c.useEffect,p=c.useImperativeHandle,_=c.useRef,f=r("WAWebDebounce")(function(e){o("WAWebUserPrefsGeneral").setMediaVolumeSetting(e)},500),g=r("WAWebDebounce")(function(e){o("WAWebUserPrefsGeneral").setMediaMutedSetting(e)},500),h={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},y={width:"100%",height:"100%",playerVars:{cc_load_policy:1,iv_load_policy:3,controls:0,playsinline:1,rel:0,modestbranding:0,autoplay:0}},C="https://whatsapp.com";function b(t){var n,a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=_(null),s=_(null),u=_(0),c=_(0),b=r("useLazyRef")(function(){return Symbol("audio-channel")}),v=_(null),S=(n=r("useWAWebStableCallback"))(function(){var e;(e=l.current)==null||e.playVideo()}),R=n(function(){var e;(e=l.current)==null||e.pauseVideo()}),L=n(function(e){var t;(t=l.current)==null||t.seekTo(e,!0)}),E=n(function(){var e,t;return(e=(t=l.current)==null?void 0:t.getCurrentTime())!=null?e:0}),k=n(function(){var e,t;return((e=(t=l.current)==null?void 0:t.getVolume())!=null?e:0)*.01}),I=n(function(){var e,t;return(e=(t=l.current)==null?void 0:t.getDuration())!=null?e:0}),T=n(function(){var e,t;return(e=(t=l.current)==null?void 0:t.isMuted())!=null?e:!1}),D=function(){var e=l.current;if(e){var t=e.getCurrentTime();t!==u.current&&(u.current=t,i.onTimeUpdate(t));var n=e.getVideoLoadedFraction();if(n!==c.current){c.current=n;var r=s.current?s.current.duration*n:0;i.onProgress([[0,r]])}var o=s.current;if(o){var a=e.getVolume()*.01,d=e.isMuted();(a!==o.volume||d!==o.muted)&&(s.current=babelHelpers.extends({},o,{volume:a,muted:d}),i.onVolumeChange({volume:a,muted:d}))}}},x=r("useWAWebInterval")(D,250),$=x[0],P=function(){if(typeof i.startTime=="number"){var e;(e=l.current)==null||e.seekTo(i.startTime,!0)}},N=n(function(e){var t=l.current;t&&(e?t.mute():t.unMute(),g(e))}),M=n(function(e){l.current&&(l.current.setVolume(e*100),f(e))}),w=n(function(e){var t;(t=l.current)==null||t.setPlaybackRate==null||t.setPlaybackRate(e)}),A=function(t){l.current=t.target;var e=l.current,n=o("WAWebUserPrefsGeneral").getMediaVolumeSettings(),r=n.muted,a=n.volume,c=e.getDuration(),d=a!=null?a:e.getVolume()*.01,m=r!=null?r:e.isMuted(),p=e.getIframe().getBoundingClientRect(),_=p.height,f=p.width;s.current={duration:c,volume:d,muted:m,videoWidth:f,videoHeight:_},i.onLoadedMetadata(s.current),u.current=e.getCurrentTime(),$(),i.startTime!=null&&P(),a!=null&&M(a),r!=null&&N(r)},F=function(t){v.current=o("WAWebPttAudioChannels").MainAudioChannel.claim(b.current,R),i.onPlaying()},O=function(t){v.current==null||v.current(),i.onPause()},B=function(t){i.onEnded()},W=function(t){t.target.getPlayerState()!==h.PLAYING&&i.onPause()};m(function(){P()},[i.startTime]),r("useWAWebOnUnmount")(function(){v.current==null||v.current()}),p(a,function(){return{play:S,pause:R,setCurrentTime:L,getCurrentTime:E,setVolume:M,setMuted:N,setPlaybackRate:w,getVolume:k,getDuration:I,getMuted:T}},[S,R,L,E,M,N,w,k,I,T]);var q=i.counterAbuseData,U=r("lodash").merge({},y,{playerVars:{autoplay:i.autoPlay?1:0,widget_referrer:C,origin:window.location.origin}},q!=null?{playerVars:{rct:q.counterAbuseToken,rctn:q.nonce}}:{});return d.jsx(r("WAWebYoutube.react"),{videoId:i.youtubeVideoId,opts:U,onReady:A,onPlay:F,onPause:O,onEnd:B,onError:i.onEnded,onStateChange:W})}b.displayName=b.name+" [from "+i.id+"]",l.default=b}),98); __d("WAWebPipYoutubeVideoPlayer.react",["cx","WAWebDomFullscreen","WAWebPipCloseButton.react","WAWebPipFullscreenToggleButton.react","WAWebPipShade.react","WAWebPipSharedVideoPlayer.react","WAWebPipVideoRefControls.react","WAWebPipYoutubeVideoTag.react","WAWebUA","WAWebVelocityTransitionGroup","lodash","react","useWAWebDebouncedCallback","useWAWebListener","useWAWebPrevious","useWAWebStableCallback"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useRef,_=c.useState;function f(e){var t=e.isFullscreenMode,n=e.isVideoPlaying,r=e.mouseDownCoorRef,a=e.mouseMoveRecently,i=e.onClose,l=e.onExposeIframeInPiP,s=e.onFullScreenToggle,u=e.ref,c=e.videoMetadata,m=e.videoRef,p=function(t){if(m.current){var e=t;c&&t>=c.duration-1&&c.duration>1&&(e=c.duration-1),m.current.setCurrentTime(e)}},_=null;if(c){var f,g="x1ey2m1c x78zum5 xvt47uu xbudbmw xexx8yu x5zjp28 x18d9i69 x162tt16 x10l6tqk xtijo5x x1hc1fzr x13dflua x19991ni xwji4o3";_=d.jsx("div",{ref:u,style:(f={},f._ah_g=!a,f),children:d.jsx(o("WAWebPipVideoRefControls.react").VideoRefControls,{refVideo:m.current,videoMetadata:c,isFullscreenMode:t,isVideoPlaying:n,handleSetCurrentTimeByControls:p,controlsClassName:t?g:void 0,onFullscreenToggle:s,onClose:i,newPiPStyle:!0})}),t||(_=d.jsx("div",{ref:u,className:"x5yr21d x10l6tqk xh8yej3",onMouseDown:function(t){r.current={x:t.clientX,y:t.clientY}},onMouseUp:function(t){var e=t.clientX,n=t.clientY,o=r.current,a=o?o.x:void 0,i=o?o.y:void 0;a!=null&&i!=null&&Math.abs(e-a)+Math.abs(n-i)<4&&l(!0)},children:_}))}return _}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t,n,a=e.onClose,i=e.onError,l=e.onRefSet,s=e.onSetFullscreenToggleCallback,u=e.onVideoEnded,c=e.onVideoMetadataChange,g=e.startTime,h=p(null),y=p(null),C=p(!1),b=p(null),v=_(void 0),S=v[0],R=v[1],L=_(!1),E=L[0],k=L[1],I=_(!1),T=I[0],D=I[1],x=_(!1),$=x[0],P=x[1],N=_(!1),M=N[0],w=N[1],A=_(!1),F=A[0],O=A[1],B=r("useWAWebPrevious")(E),W=r("useWAWebPrevious")(S);o("useWAWebListener").useListener(r("WAWebDomFullscreen"),"fullscreen_change",function(){r("WAWebDomFullscreen").isFullscreenMode()&&r("WAWebDomFullscreen").getFullscreenElement()===h.current?w(!0):r("WAWebDomFullscreen").isFullscreenMode()||w(!1)});var q=function(t){t.stopPropagation(),M?r("WAWebDomFullscreen").exitFullscreen():r("WAWebDomFullscreen").requestFullscreen(h.current)},U=r("useWAWebDebouncedCallback")(function(){P(!1)},o("WAWebPipSharedVideoPlayer.react").FULLSCREEN_CONTROLS_DISPLAY_TIMEOUT);m(function(){s==null||s(q)},[]);var V=r("useWAWebStableCallback")(function(e){y.current=e,e!=null&&(l==null||l(e))}),H=function(){u&&u(),k(!1)},G=function(){i&&i()},z=function(){var e,t,n=(e=(t=y.current)==null?void 0:t.getCurrentTime())!=null?e:null;R(function(e){return e&&n!=null?babelHelpers.extends({},e,{currentTime:n}):e}),k(!1),C.current=!0},j=function(){var e,t,n=(e=(t=y.current)==null?void 0:t.getCurrentTime())!=null?e:null;R(function(e){return e&&n!=null?babelHelpers.extends({},e,{currentTime:n}):e}),k(!0),C.current=!0},K=function(t){var e=g!=null?g:0;R({duration:t.duration,currentTime:e,volume:t.volume,muted:t.muted,bufferedTime:0})},Q=function(t){R(function(e){return e&&babelHelpers.extends({},e,{volume:t.volume,muted:t.muted})})},X=function(t){if(C.current){C.current=!1;return}R(function(e){return e&&babelHelpers.extends({},e,{currentTime:t})})},Y=function(t){var e=t[0],n=e[1];R(function(e){return e&&babelHelpers.extends({},e,{bufferedTime:n})})};m(function(){(B!==E||!r("lodash").isEqual(W,S))&&(c==null||c(S,E))},[E,B,c,S,W]);var J=e.exposeIframeInPiP||F||M?null:d.jsx("div",{className:"x1ktv7sr x142x0oa xv7zg05 x12dgle5 x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x166i9x0 x1gex1yb x1n7ce0x xqz8djb x5yr21d x1o0tod x10l6tqk x13vifvy xh8yej3"}),Z=d.jsxs("div",{className:"x10l6tqk x13vifvy xtijo5x x1ey2m1c x1o0tod",style:(t={},t._ah_a=M,t),children:[J,d.jsx(r("WAWebPipYoutubeVideoTag.react"),{ref:V,youtubeVideoId:e.youtubeVideoId,startTime:e.startTime,onEnded:H,onError:G,onLoadedMetadata:K,onPause:z,onPlaying:j,onProgress:Y,onTimeUpdate:X,onVolumeChange:Q,autoPlay:e.autoPlay,counterAbuseData:e.counterAbuseData})]}),ee=e.disablePiPControls!==!0||M?d.jsx(f,{videoMetadata:S,videoRef:y,mouseDownCoorRef:b,mouseMoveRecently:$,isVideoPlaying:E,isFullscreenMode:M,onFullScreenToggle:q,onClose:a,onExposeIframeInPiP:O}):null,te;o("WAWebUA").UA.isSafari||(te=d.jsx(r("WAWebPipFullscreenToggleButton.react"),{isFullscreenMode:M,onClick:q}));var ne=d.jsx(r("WAWebPipShade.react"),{theme:"full-rounded"}),re=M?d.jsxs(d.Fragment,{children:[Z,ee]}):d.jsxs(d.Fragment,{children:[Z,d.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"fade-fast",children:T&&$&&!F&&e.disablePiPControls!==!0?[ne,ee,te,d.jsx(r("WAWebPipCloseButton.react"),{isFullscreenMode:M,onClick:function(n){n.stopPropagation(),e.onClose()}},"close")]:null})]});return d.jsx("div",{ref:h,className:"xums3t4 x5yr21d xh8yej3",style:(n={},n._ah_a=M,n._ah_d=!0,n),onMouseEnter:function(t){if(F){if(o("WAWebUA").UA.isGecko&&T)return;O(!1)}D(!0)},onMouseLeave:function(t){D(!1)},onMouseDown:function(t){M&&t.stopPropagation()},onMouseMove:function(t){T||D(!0),$||P(!0),U()},children:re},"elementsWrapped")}g.displayName=g.name+" [from "+i.id+"]",l.default=g}),98); __d("WAWebYoutubeVideoPlayerRenderer.react",["WAWebPipConst","WAWebPipFloatingVideoPlayer.react","WAWebPipYoutubeVideoPlayer.react","react"],(function(t,n,r,o,a,i,l){var e=["ref","videoSrc"],s,u=s||(s=r("react"));function c(t){var n=t.ref,a=t.videoSrc,i=babelHelpers.objectWithoutPropertiesLoose(t,e);return a==null?null:u.jsx(o("WAWebPipFloatingVideoPlayer.react").FloatingVideoPlayer,{ref:n,aspectRatio:o("WAWebPipConst").YOUTUBE_VIDEO_DEFAULT_ASPECT_RATIO,animationStartStyle:i.animationStartStyle,enableDragBar:i.enableDragBar,topContent:i.topContent,bottomContent:i.bottomContent,children:u.jsx(r("WAWebPipYoutubeVideoPlayer.react"),{youtubeVideoId:a,startTime:i.startTime,onClose:i.onClose,disablePiPControls:i.enableDragBar,onRefSet:i.onRefSet,onVideoMetadataChange:i.onVideoMetadataChange,autoPlay:i.autoPlay,onSetFullscreenToggleCallback:i.onSetFullscreenToggleCallback,exposeIframeInPiP:i.enableDragBar,counterAbuseData:i.counterAbuseData},a)},a)}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebPipManager.react",["fbt","WAWebCallCollection","WAWebCmd","WAWebConfirmPopup.react","WAWebFloatingMsgVideoPlayerRenderer.react","WAWebFloatingOgVideoPlayerRenderer.react","WAWebFloatingVoipRenderer.react","WAWebFrontendMsgGetters","WAWebInlineVideoPlaybackClosedWamEvent","WAWebKeyboardRotateFocus.react","WAWebKeyboardTabUtils","WAWebMediaGatingUtils","WAWebModalManager","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgType","WAWebPipCloseButton.react","WAWebPipConst","WAWebPipController","WAWebPipVideoRefControls.react","WAWebToast.react","WAWebToastManager","WAWebVelocityTransitionGroup","WAWebWamEnumInlineVideoType","WAWebWamEnumWebcRmrReasonCode","WAWebWamMsgUtils","WAWebWid","WAWebYoutubeVideoPlayerRenderer.react","react","useWAWebListener","useWAWebVideoPlaybackRate"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useImperativeHandle,_=c.useRef,f=c.useState,g={msg:null,startTime:null,zoomRect:null,videoMetadata:null,videoRef:null,isVideoPlaying:!1,videoType:o("WAWebPipConst").PiPVideoType.MSG,previewUrl:null,videoSrc:null,counterAbuseData:null},h={playerWrapper:{position:"xixxii4",zIndex:"x16p50fe",width:"xnalus7",height:"xqtp20y",overflowX:"x1plvlek",overflowY:"xryxfnj",$$css:!0}},y=new Map;y.set(o("WAWebPipConst").PiPVideoType.MSG,r("WAWebFloatingMsgVideoPlayerRenderer.react")),y.set(o("WAWebPipConst").PiPVideoType.YOUTUBE,r("WAWebYoutubeVideoPlayerRenderer.react")),y.set(o("WAWebPipConst").PiPVideoType.OG,r("WAWebFloatingOgVideoPlayerRenderer.react")),y.set(o("WAWebPipConst").PiPVideoType.VOIP,r("WAWebFloatingVoipRenderer.react"));function C(e){var t=b(e);return t==null?null:new(o("WAWebInlineVideoPlaybackClosedWamEvent")).InlineVideoPlaybackClosedWamEvent({inlineVideoPlayed:!1,inlineVideoType:t})}function b(e){return e===o("WAWebPipConst").PiPVideoType.YOUTUBE?o("WAWebWamEnumInlineVideoType").INLINE_VIDEO_TYPE.YOUTUBE:null}function v(e,t){return r("WAWebWid").isNewsletter(e.id.remote)?t!=null&&t.counterAbuseToken!=null:t!=null&&t.counterAbuseToken!=null&&t.nonce!=null}function S(e){var t,n,a,i=e.ref,l=_(null),u=f(g.msg),c=u[0],b=u[1],S=f(g.startTime),R=S[0],L=S[1],E=f(g.zoomRect),k=E[0],I=E[1],T=_(null),D=f(g.videoMetadata),x=D[0],$=D[1],P=f(g.videoRef),N=P[0],M=P[1],w=f(g.isVideoPlaying),A=w[0],F=w[1],O=f(g.videoType),B=O[0],W=O[1],q=f(g.previewUrl),U=q[0],V=q[1],H=f(g.videoSrc),G=H[0],z=H[1],j=f(null),K=j[0],Q=j[1],X=f(g.counterAbuseData),Y=X[0],J=X[1],Z=o("WAWebMediaGatingUtils").isVideoPlaybackSpeedEnabled(),ee=(t=c==null||(n=c.id)==null?void 0:n.toString())!=null?t:null,te=r("useWAWebVideoPlaybackRate")(ee),ne=te.advancePlaybackRate,re=te.playbackRate,oe=te.resetAllPlaybackRates;m(function(){Z&&(N==null||N.setPlaybackRate(re))},[Z,re,N]),m(function(){var e=function(){var t;(t=l.current)==null||t.commit(),window.removeEventListener("unload",e)};return window.addEventListener("unload",e),e},[]);var ae=function(t){Q(function(){return t})},ie=function(t,n){var e=l.current;e!=null&&((t==null?void 0:t.duration)!=null&&(e.inlineVideoDurationT=Math.floor(t==null?void 0:t.duration)),!e.inlineVideoPlayed&&n&&(e.markInlineVideoPlayStartT(),e.inlineVideoPlayed=n)),$(t),F(n)},le=function(){var e;c&&r("WAWebPipController").didClose(c),(e=l.current)==null||e.commit(),oe(),b(g.msg),L(g.startTime),I(g.zoomRect),$(g.videoMetadata),M(g.videoRef),F(g.isVideoPlaying),W(g.videoType),V(g.previewUrl),z(g.videoSrc),J(g.counterAbuseData)},se=function(t){t.id.equals(c==null?void 0:c.id)&&le()};m(function(){return function(){c&&r("WAWebPipController").didClose(c)}},[c]);var ue=function(t,n){if(t!==o("WAWebPipConst").PiPVideoType.VOIP&&r("WAWebCallCollection").activeCall!=null){o("WAWebModalManager").ModalManager.open(d.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return o("WAWebModalManager").ModalManager.close()},title:s._(/*BTDS*/"No se puede abrir el video durante la llamada"),children:s._(/*BTDS*/"No puedes ver un video mientras est\u00e1 en curso una llamada. Finaliza la llamada primero.")}));return}var e=n.msg;if(e!=null){var a;r("WAWebPipController").didOpen(e),(a=l.current)==null||a.commit();var i=C(t);l.current=i,i!=null&&(i.messageType=o("WAWebWamMsgUtils").getWamMessageType(e),i.inlineVideoHasRcat=v(e,n.counterAbuseData),i.startInlineVideoPlayStartT()),t===o("WAWebPipConst").PiPVideoType.MSG&&e.downloadMedia({downloadEvenIfExpensive:!0,rmrReason:o("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.PIP,isUserInitiated:!0})}b(e),L(n.startTime),I(n.zoomRect),$(g.videoMetadata),M(g.videoRef),F(g.isVideoPlaying),W(t),V(n.preview!=null?"data:image/jpeg;base64,"+n.preview:null),z(n.videoSrc),J(n.counterAbuseData)},ce=function(){N==null||N.pause()},de=function(t){ce()},me=function(t){var e;return(e=c==null?void 0:c.id.equals(t.id))!=null?e:!1},pe=function(){c&&r("WAWebPipController").didError(c)},_e=function(){return{enableDragBar:!0,bottomContent:x!=null&&N!=null?d.jsx(o("WAWebPipVideoRefControls.react").VideoRefControls,{refVideo:N,videoMetadata:x,isFullscreenMode:!1,isVideoPlaying:A,newPiPStyle:!0,onFullscreenToggle:K!=null?K:void 0,playbackRate:Z?re:void 0,onPlaybackRateChange:Z?ne:void 0}):null,topContent:d.jsx(r("WAWebPipCloseButton.react"),{isFullscreenMode:!1,onClick:le})}},fe=function(){return k?{height:k.bottom-k.top,width:k.right-k.left,left:k.left,bottom:window.innerHeight-k.bottom}:null},ge=function(){return babelHelpers.extends({msg:c,startTime:R,zoomRect:k,videoMetadata:x,videoRef:N,isVideoPlaying:A,videoType:B,previewUrl:U,videoSrc:G,counterAbuseData:Y},_e(),{animationStartStyle:fe(),onClose:le,onError:pe,autoPlay:!0,onRefSet:M,onVideoMetadataChange:ie,onSetFullscreenToggleCallback:ae})};o("useWAWebListener").useListener(o("WAWebCmd").Cmd,["media_viewer_modal"],de),o("useWAWebListener").useListener(o("WAWebMsgCollection").MsgCollection,["remove"],function(e){se(e)});var he=c!=null?o("WAWebFrontendMsgGetters").getChat(c):null;o("useWAWebListener").useListener((a=he==null?void 0:he.msgs)!=null?a:o("WAWebMsgCollection").MsgCollection,"remove_msgs",function(e){e.forEach(se)}),o("useWAWebListener").useListener(o("WAWebMsgCollection").MsgCollection,["change:type"],function(e){e.type===o("WAWebMsgType").MSG_TYPE.REVOKED&&(!o("WAWebMsgGetters").getIsSentByMe(e)&&c!=null&&c.id.equals(e.id)&&o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Actualmente se anul\u00f3 la reproducci\u00f3n del video.")})),se(e))});var ye={isOpened:me,pausePiP:ce,openPiP:ue,closePiP:le};p(i,function(){return ye}),m(function(){return r("WAWebPipController").register(ye),function(){r("WAWebPipController").unregister()}},[]);var Ce=y.get(B);return d.jsx(o("WAWebKeyboardRotateFocus.react").RotateFocus,{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,children:d.jsx(r("WAWebVelocityTransitionGroup"),{ref:T,transitionName:"pip",xstyle:h.playerWrapper,component:"div",children:Ce!=null?d.jsx(Ce,babelHelpers.extends({},ge())):null})})}S.displayName=S.name+" [from "+i.id+"]";var R=S;l.PiPManager=R}),226); __d("WAWebSettingsSyncListener.react",["WALogger","WAWebChatPreferenceCollection","WAWebChatPreferenceModel","WAWebSettingsSyncEventEmitter","WAWebSystemTheme","WAWebThemeContext","WAWebThemeType","WAWebWallpaper","react","useWAWebListener"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c,d,m,p,_,f=(_||(_=o("react"))).useContext;function g(){var t=f(o("WAWebThemeContext").ThemeContext);o("useWAWebListener").useListener(r("WAWebSettingsSyncEventEmitter"),"applyTheme",function(n){o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[settings-sync] Applying theme value: ",""])),n);var a=o("WAWebThemeType").ThemesSettingValue.cast(n);if(a==null){o("WALogger").WARN(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[settings-sync] Invalid theme value: ",""])),n).tags("settings-sync");return}e:{if(a===o("WAWebThemeType").ThemesSettingValue.SystemDefault){t.setSystemThemeMode(!0),t.setTheme(r("WAWebSystemTheme").getCurrentTheme());break e}if(a===o("WAWebThemeType").ThemesSettingValue.Light){t.setSystemThemeMode(!1),t.setTheme("light");break e}if(a===o("WAWebThemeType").ThemesSettingValue.Dark){t.setSystemThemeMode(!1),t.setTheme("dark");break e}throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+a)}o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[settings-sync] Successfully applied theme: ",""])),a)}),o("useWAWebListener").useListener(r("WAWebSettingsSyncEventEmitter"),"applyWallpaper",function(e){try{o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[settings-sync] Applying wallpaper ID: ",""])),e);var n=r("WAWebChatPreferenceCollection").get(o("WAWebChatPreferenceModel").DEFAULT_PREFERENCE);n?(n.set("wallpaper",o("WAWebWallpaper").getWallpaperColor(e,t.theme)),o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["[settings-sync] Successfully applied wallpaper: ",""])),e)):o("WALogger").ERROR(m||(m=babelHelpers.taggedTemplateLiteralLoose(["[settings-sync] Could not find default chat preference for wallpaper"]))).tags("settings-sync")}catch(t){o("WALogger").ERROR(p||(p=babelHelpers.taggedTemplateLiteralLoose(["[settings-sync] Error applying wallpaper ",": ",""])),e,String(t)).tags("settings-sync")}})}l.useSettingsSyncListener=g}),98); __d("WAWebTosModal.react",["fbt","WAWebConfirmPopup.react","WAWebConnModel","WAWebModalManager","WAWebSocketModel","react","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){o("WAWebConnModel").Conn.tos===0&&o("WAWebModalManager").ModalManager.close()}function d(){o("WAWebModalManager").ModalManager.close(),o("WAWebSocketModel").Socket.logout()}function m(){var e,t,n;switch(o("useWAWebListener").useListener(o("WAWebConnModel").Conn,"change:tos",c),o("WAWebConnModel").Conn.tos){default:case 1:e=s._(/*BTDS*/"WhatsApp est\u00e1 actualizando las Condiciones del servicio y la Pol\u00edtica de privacidad de modo que reflejen las nuevas funciones y cumplan con la nueva legislaci\u00f3n de protecci\u00f3n de datos de la Uni\u00f3n Europea. Abre WhatsApp en tu tel\u00e9fono para leer nuestras Condiciones y Pol\u00edtica de privacidad y aprender m\u00e1s acerca de las opciones que tienes."),t=s._(/*BTDS*/"Entendido"),n=function(){return o("WAWebModalManager").ModalManager.close()};break;case 2:e=s._(/*BTDS*/"WhatsApp est\u00e1 actualizando las Condiciones del servicio y la Pol\u00edtica de privacidad de modo que reflejen las nuevas funciones y cumplan con la nueva legislaci\u00f3n de protecci\u00f3n de datos de la Uni\u00f3n Europea. Abre WhatsApp en tu tel\u00e9fono para leer nuestras Condiciones y Pol\u00edtica de privacidad y aprender m\u00e1s acerca de las opciones que tienes."),t=s._(/*BTDS*/"Cerrar sesi\u00f3n"),n=d;break}return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:n,okText:t,children:e})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebUserNoticeModal.react",["cx","WALogger","WAWebAlertNoticeIcon.react","WAWebButton.react","WAWebConnModel","WAWebDomSanitize","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebModal.react","WAWebModalManager","WAWebNoticeModel","WAWebPDFNLogging","WAWebSocketModel","WAWebText.react","WAWebThemeContext","WAWebWamEnumUserNoticeEvent","react","useWAWebListener","useWAWebModelValues","vulture"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useContext,_=d.useEffect,f=d.useState,g=function(){};function h(e){var t=e.btn,n=e.onClick,a=e.primary,i=a===void 0?!1:a;if(r("vulture")("uWZEmAvc4naYpmaXHBE6X1DSDtI="),t==null)return null;var l="UserNoticeModalPopup-"+t.action+"Btn",s="popup-controls-"+t.action;return m.jsx(o("WAWebButton.react").Button,{testid:void 0,type:i?"primary":"secondary",onClick:n,children:t.label},l)}h.displayName=h.name+" [from "+i.id+"]";function y(t){var n=t.notice;r("vulture")("t5LxBqm1BDH3qEDaR9-gEEnERk0=");var a=o("useWAWebModelValues").useModelValues(n,["noticeId","blocking","blockingModal"]),i=p(o("WAWebThemeContext").ThemeContext),l=a.blockingModal,s=f(!1),u=s[0],c=s[1],d=function(){r("WAWebNoticeModel").blocking||o("WAWebModalManager").ModalManager.close()};o("useWAWebListener").useListener(r("WAWebNoticeModel"),"change:blocking",d);var y=function(){return r("WAWebNoticeModel").noticeId!=null&&r("WAWebNoticeModel").blockingModal!=null&&r("WAWebNoticeModel").blocking===!0},C=function(){y()&&(u||(o("WAWebPDFNLogging").logUserNoticeEvent({noticeId:r("WAWebNoticeModel").noticeId,noticeContentVersion:r("WAWebNoticeModel").policyVersion,noticeEvent:o("WAWebWamEnumUserNoticeEvent").USER_NOTICE_EVENT.BLOCKING_MODAL_APPEAR}),c(!0)))},b=function(){c(!1)};o("useWAWebListener").useListener(r("WAWebNoticeModel"),"change:noticeId",b),o("useWAWebListener").useListener(r("WAWebNoticeModel"),"change:blockingModal change:blocking",C),_(function(){C()},[]);var v=function(){o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["user notice modal, user clicked logout"]))),o("WAWebModalManager").ModalManager.close(),o("WAWebSocketModel").Socket.logout()},S=function(){location.reload()},R=function(t){if(t){if(t.action==="logout")return v;if(t.action==="refresh")return S}return g};if(!l||!y())return null;var L=l.body,E=l.iconDescription,k=E===void 0?"":E,I=l.iconSvg,T=l.primaryButton,D=l.secondaryButton,x=l.title,$;I&&($=i.theme==="light"?I.light:I.dark);var P=m.jsx(o("WAWebAlertNoticeIcon.react").AlertNoticeIcon,{"aria-label":k}),N=$&&o("WAWebDomSanitize").sanitizeNoticeSVG($),M=N?m.jsx("span",{"aria-label":k,dangerouslySetInnerHTML:{__html:N}}):P,w=m.jsx(h,{btn:D,onClick:R(D)}),A=m.jsx(h,{btn:T,primary:!0,onClick:R(T)}),F=[w,A],O={enter:R(T)},B=x?o("WAWebDomSanitize").sanitizeNoticeText(x):null,W=L?o("WAWebDomSanitize").sanitizeNoticeText(L):null;return m.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:O,children:m.jsx("div",{className:o("WAWebConnModel").Conn.isSMB?"_alz9":"_alza",children:m.jsx(o("WAWebModal.react").Modal,{actions:F,type:o("WAWebModal.react").ModalTheme.Flex,children:m.jsxs("div",{className:"x1htk8sl xrlsmeg",children:[m.jsx(o("WAWebFlex.react").FlexRow,{className:"_alz7",align:"center",justify:"center",children:M}),m.jsx(o("WAWebText.react").WAWebTextLarge,{margin:[32,32,0,32],textAlign:"center",children:m.jsx("div",{dangerouslySetInnerHTML:{__html:B}})}),m.jsx(o("WAWebText.react").WAWebTextMuted,{color:"white",margin:32,children:m.jsx("div",{dangerouslySetInnerHTML:{__html:W}})})]})})})})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),98); __d("WAWebUseUnifiedSession",["WAWebUnifiedSession","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useEffect;function u(){s(function(){o("WAWebUnifiedSession").UnifiedSessionManager.generateSessionId(o("WAWebUnifiedSession").UnifiedSessionGenReason.InitialRender)},[]);var e=function(){o("WAWebUnifiedSession").UnifiedSessionManager.generateSessionId(o("WAWebUnifiedSession").UnifiedSessionGenReason.Foreground)};o("useWAWebListener").useListener(window,"focus",e)}l.useUnifiedSession=u}),98); __d("WAWebUserActivityWamEvent",["WAWebWamCodegenUtils"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({UserActivity:[1384,{userActivityBitmapHigh:[4,e.TYPES.INTEGER],userActivityBitmapLen:[5,e.TYPES.INTEGER],userActivityBitmapLow:[3,e.TYPES.INTEGER],userActivitySessionCum:[7,e.TYPES.INTEGER],userActivitySessionId:[1,e.TYPES.STRING],userActivitySessionSeq:[6,e.TYPES.INTEGER],userActivityStartTime:[2,e.TYPES.INTEGER]},[1,1,1],"regular"]},{UserActivity:[]});l.UserActivityWamEvent=s}),98); __d("WAWebWamTimeSpentLogger",["WAWebCmd","WAWebTimeSpentLoggingBitArray","WAWebTimeSpentLoggingNavigation","WAWebTimeSpentLoggingSession","WAWebUseUnifiedSession","WAWebUserActivityWamEvent","WAWebUserPrefsKeys","WAWebWamTimeSpentArray","react","useLazyRef","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useEffect,c=s.useRef,d=-5,m=[{source:window,name:"focus"},{source:document,name:"wheel"},{source:document,name:"keydown"},{source:document,name:"mouseover"},{source:document,name:"mousemove"},{source:document,name:"click"},{source:document,name:"scroll"}],p=function(t){var e=new(o("WAWebUserActivityWamEvent")).UserActivityWamEvent({userActivitySessionId:t.sessionId,userActivityStartTime:t.startTime,userActivityBitmapLen:t.bitmapLen,userActivityBitmapLow:t.bitmap[0],userActivitySessionSeq:t.sessionSeq,userActivitySessionCum:t.sessionCum});t.bitmapLen>32&&(e.userActivityBitmapHigh=t.bitmap[1]),e.commit()};function _(){var e,t=r("useLazyRef")(function(){return Date.now()}),n=c(-1),a=c(-1),i=r("useLazyRef")(function(){return new(r("WAWebWamTimeSpentArray"))({loggingCallback:p})}),l=r("useLazyRef")(o("WAWebTimeSpentLoggingSession").createTimeSpentArray),s=function(r){var e=i.current,o=l.current;if(!(!e&&!o)){if(r instanceof MouseEvent){if(r.pageX===n.current&&r.pageY===a.current&&r.type!=="click")return;n.current=r.pageX,a.current=r.pageY}var s=Date.now(),u=s-t.current;u>0?(t.current=s,e==null||e.update(t.current),o==null||o.update(t.current)):u0?s._(/*BTDS*/"Busca en tu tel\u00e9fono un {=m1} del n\u00famero de WhatsApp {provider_number}.",[s._param("provider_number",r),s._implicitParam("=m1",u.jsx(h,{children:s._(/*BTDS*/"SMS")}))]):s._(/*BTDS*/"Busca en tu tel\u00e9fono un {=m1} de WhatsApp.",[s._implicitParam("=m1",u.jsx(h,{children:s._(/*BTDS*/"SMS")}))])," ",s._(/*BTDS*/"\u00bfNo recibiste el SMS? {resend_sms}",[s._param("resend_sms",u.jsx(o("WAWebLinkDeviceCommonInstructions.react").ExternalHelpLink,{text:s._(/*BTDS*/"Reenviar SMS"),isBold:a==="wds",showArrow:!1,showUnderline:a!=="wds",onClick:n("asyncToGeneratorRuntime").asyncToGenerator(function*(){o("WAWebLinkDeviceQplHelpLinkEvent").WAWebLinkDeviceQplHelpLinkEvent(o("WAWebLinkDeviceQplHelpLinkEvent").WebcPairingScreenLinkType.REG_CONFIRMATION_RESEND_SMS_CLICKED),yield t()})}))])]})}p.displayName=p.name+" [from "+i.id+"]";function _(){return s._(/*BTDS*/"{=m0} el enlace del mensaje para abrir o descargar WhatsApp.",[s._implicitParam("=m0",u.jsx(h,{children:s._(/*BTDS*/"Toca")}))])}_.displayName=_.name+" [from "+i.id+"]";function f(){return s._(/*BTDS*/"Sigue los pasos para {=m1} tu cuenta.",[s._implicitParam("=m1",u.jsx(h,{children:s._(/*BTDS*/"registrar")}))])}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.theme;return u.jsxs(u.Fragment,{children:[s._(/*BTDS*/"Para usar WhatsApp en este dispositivo, {=m1} tu cuenta desde tu tel\u00e9fono.",[s._implicitParam("=m1",u.jsx(h,{children:s._(/*BTDS*/"vincula")}))]),"\xA0",u.jsx(o("WAWebLinkDeviceCommonInstructions.react").ExternalHelpLink,{text:s._(/*BTDS*/"M\u00e1s informaci\u00f3n"),url:"https://faq.whatsapp.com/497209988909970",isBold:t==="wds",showArrow:!1,showUnderline:t!=="wds"})]})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.children;return u.jsx("strong",{className:"x1rg5ohu xk50ysn x1o2sk6j",children:t})}h.displayName=h.name+" [from "+i.id+"]",l.default=d}),226); __d("WAXWhatsAppWebRegistrationControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/webreg/sms/",Object.freeze({region_hint:[],expand_folders:[]}),void 0),s=e;l.default=s}),98); __d("WAWebSmsRegistrationPhoneNumberInput.react",["fbt","$InternalEnum","CometHeroHoldTrigger.react","WAIsoToCc","WALogger","WAWebAppRootInteractionContext.react","WAWebCountriesUtils","WAWebCountryPhoneNumberInput.react","WAWebFbtCommon","WAWebFlex.react","WAWebHybridRegGating","WAWebInteractionTracePolicy","WAWebL10N","WAWebLinkDeviceCommonComponents.react","WAWebLinkDeviceCommonInstructions.react","WAWebLinkDevicePhoneNumberEntryInputFormatUtils","WAWebLinkDeviceQplHelpLinkEvent","WAWebLinkDeviceScreenPrimaryButton.react","WAWebSmsRegistrationConfirmation.react","WAWebSpinner.react","WAWebWaBrandArrowRightIconWrapper.react","WAXWhatsAppWebRegistrationControllerRouteBuilder","WDSBanner.react","WDSIconIcWarning.react","WDSText.react","asyncToGeneratorRuntime","cr:12478","gkx","react","useVisibility","useWAWebAsync","useWAWebCountries"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c,p=m.useCallback,_=m.useImperativeHandle,f=m.useMemo,g=m.useState,h={subtitle:{lineHeight:"x1qfxs89",letterSpacing:"xfq947u",textAlign:"x2b8uid",$$css:!0},error:{backgroundColor:"x19lcxje",color:"xap1gg5",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",marginBottom:"x1e56ztr",paddingTop:"x1xrf6ya",paddingInlineEnd:"xvtqlqk",paddingBottom:"xscbp6u",paddingInlineStart:"xdx6fka",$$css:!0}},y="for (;;);",C=n("$InternalEnum")({SENT:1,ERROR:2});function b(e){var t=e.imperativeRef,a=e.onBack,i=e.onContinue,l=e.setApiCmd,u=g(""),c=u[0],m=u[1],h=g("US"),y=h[0],b=h[1],E=g(!1),k=E[0],I=E[1],T=g(!1),D=T[0],x=T[1],$=g(),P=$[0],N=$[1],M=p(function(){return(P==null?void 0:P.status)===C.SENT?(m(""),N(null),!0):a!=null?a():!1},[a,P==null?void 0:P.status]);_(t,function(){return{handleBack:M}},[M]);var w=r("useWAWebAsync")(n("cr:12478"),[]),A=p(function(e,t){m(t.substr(0,10))},[]),F=o("WAWebAppRootInteractionContext.react").useInteractionWithAppRootContext(r("WAWebInteractionTracePolicy").NAVIGATION_LOGIN,!1,!0),O=F.startInteraction,B=o("useWAWebCountries").useCountries({filterType:o("WAWebCountriesUtils").COUNTRY_FILTER_TYPE.WHATSAPP_REGISTRATION}),W=B.error,q=B.value,U=f(function(){return k||D||!o("WAWebLinkDevicePhoneNumberEntryInputFormatUtils").isPhoneNumberValid(r("WAIsoToCc")[y],c)},[D,k,c,y]),V=r("useVisibility")({onVisible:function(){o("WAWebLinkDeviceQplHelpLinkEvent").WAWebLinkDeviceQplHelpLinkEvent(o("WAWebLinkDeviceQplHelpLinkEvent").WebcPairingScreenLinkType.REG_PN_SCREEN_LOADED)}}),H=V[0];if(q==null||W!=null||w.loading||w.error)return d.jsxs(o("WAWebFlex.react").FlexRow,{justify:"center",children:[d.jsx(r("CometHeroHoldTrigger.react"),{description:"WAWebSmsRegistrationPhoneNumberInput",hold:!0}),d.jsx(o("WAWebSpinner.react").Spinner,{})]});var G;r("gkx")("26259")?G=q:G=q.filter(function(e){var t=e[0],n=e[1];return t==="US"});var z=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e;if(!U){o("WAWebLinkDeviceQplHelpLinkEvent").WAWebLinkDeviceQplHelpLinkEvent(o("WAWebLinkDeviceQplHelpLinkEvent").WebcPairingScreenLinkType.REG_PN_SCREEN_CONTINUE_CLICKED),I(!0);var t=((e=r("WAIsoToCc")[y])!=null?e:"")+c,n=yield L(t),a=n==null?void 0:n.retry_after;(n==null?void 0:n.status)===C.ERROR&&a!=null&&a>0&&(x(!0),window.setTimeout(function(){x(!1)},a*1e3)),N(n),I(!1)}});return function(){return e.apply(this,arguments)}})();return(P==null?void 0:P.status)===C.SENT?d.jsx(r("WAWebSmsRegistrationConfirmation.react"),{selectedCountryId:y,phoneNumberWithoutCountryCode:c,onBack:function(){m(""),N(null)},onContinue:i,onRetry:z,providerNumber:P==null?void 0:P.provider_number,theme:o("WAWebHybridRegGating").isHybridRegEnabled()?"wds":void 0}):d.jsxs(o("WAWebFlex.react").FlexColumn,{rowGap:24,className:"light",ref:H,children:[d.jsx(o("WAWebFlex.react").FlexRow,{alignSelf:"center",children:d.jsxs(o("WAWebFlex.react").FlexColumn,{rowGap:o("WAWebHybridRegGating").isHybridRegEnabled()?0:16,children:[d.jsx(o("WAWebFlex.react").FlexRow,{alignSelf:"center",children:d.jsx(o("WAWebLinkDeviceCommonComponents.react").Title,{value:s._(/*BTDS*/"Ingresa tu n\u00famero de tel\u00e9fono"),theme:o("WAWebHybridRegGating").isHybridRegEnabled()?"wds":void 0})}),d.jsx(o("WAWebFlex.react").FlexRow,{children:d.jsx(S,{})})]})}),d.jsx(o("WAWebFlex.react").FlexRow,{alignSelf:"center",children:d.jsxs(o("WAWebFlex.react").FlexColumn,{rowGap:4,align:"center",children:[d.jsx(r("WAWebCountryPhoneNumberInput.react"),{countries:G,shouldDisplayError:!1,phoneNumberWithoutCountryCode:c,selectedCountryId:y,onChangePhoneNumber:A,onChangeSelectedCountry:b,surface:"link-device-phone-number",onSubmit:function(){z()},error:P==null?void 0:P.error_reason}),(P==null?void 0:P.error_reason)!=null&&(function(e,t){if(e===!0){var n;return d.jsx(r("WDSBanner.react"),{type:"warning",icon:r("WDSIconIcWarning.react"),body:(n=P==null?void 0:P.error_reason)!=null?n:r("WAWebFbtCommon")("Try Again")})}return d.jsx(R,{errorReason:(t=P==null?void 0:P.error_reason)!=null?t:r("WAWebFbtCommon")("Try Again")})})(o("WAWebHybridRegGating").isHybridRegEnabled()),d.jsx(r("WAWebLinkDeviceScreenPrimaryButton.react"),{text:r("WAWebFbtCommon")("Continue"),onClick:z,animate:!1,disabled:U,testId:"link-device-sms-pn-entry-continue-button",icon:d.jsx(r("WAWebWaBrandArrowRightIconWrapper.react"),{}),theme:o("WAWebHybridRegGating").isHybridRegEnabled()?"wds":void 0})]})}),d.jsxs(o("WAWebFlex.react").FlexRow,{columnGap:8,alignSelf:"center",children:[d.jsx(o("WAWebFlex.react").FlexColumn,{children:d.jsx(v,{children:s._(/*BTDS*/"\u00bfYa tienes una cuenta?")})}),d.jsx(o("WAWebFlex.react").FlexColumn,{children:d.jsx(v,{children:d.jsx(o("WAWebLinkDeviceCommonInstructions.react").ExternalHelpLink,{isBold:o("WAWebHybridRegGating").isHybridRegEnabled(),text:s._(/*BTDS*/"Iniciar sesi\u00f3n"),onClick:n("asyncToGeneratorRuntime").asyncToGenerator(function*(){O(),l(null)}),showArrow:o("WAWebHybridRegGating").isHybridRegEnabled()?!1:void 0,showUnderline:o("WAWebHybridRegGating").isHybridRegEnabled()?!1:void 0})})})]})]})}b.displayName=b.name+" [from "+i.id+"]";function v(e){var t=e.children;return o("WAWebHybridRegGating").isHybridRegEnabled()?d.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDeemphasized",children:t}):t}v.displayName=v.name+" [from "+i.id+"]";function S(){return d.jsxs(o("WAWebFlex.react").FlexColumn,{rowGap:2,xstyle:h.subtitle,children:[d.jsx(o("WAWebFlex.react").FlexRow,{alignSelf:"center",align:"center",wrap:"wrap",justify:"center",children:d.jsx(v,{children:s._(/*BTDS*/"Enviaremos un SMS a tu tel\u00e9fono, desde donde podr\u00e1s descargar WhatsApp y registrar tu cuenta.")})}),d.jsx(o("WAWebFlex.react").FlexRow,{alignSelf:"center",align:"center",wrap:"wrap",justify:"center",children:d.jsx(v,{children:s._(/*BTDS*/"Se pueden aplicar cargos por mensajes y datos. Lee nuestra\u00a0{privacy_policy_link}. Haz clic en Continuar para aceptar las {terms_of_service_link}.",[s._param("privacy_policy_link",d.jsx(o("WAWebLinkDeviceCommonInstructions.react").ExternalHelpLink,{isBold:o("WAWebHybridRegGating").isHybridRegEnabled(),text:s._(/*BTDS*/"Pol\u00edtica de privacidad"),url:"https://www.whatsapp.com/legal/privacy-policy",showArrow:!1,showUnderline:o("WAWebHybridRegGating").isHybridRegEnabled()?!1:void 0})),s._param("terms_of_service_link",d.jsx(o("WAWebLinkDeviceCommonInstructions.react").ExternalHelpLink,{isBold:o("WAWebHybridRegGating").isHybridRegEnabled(),text:s._(/*BTDS*/"Condiciones del servicio"),url:"https://www.whatsapp.com/legal/terms-of-service",showArrow:!1,showUnderline:o("WAWebHybridRegGating").isHybridRegEnabled()?!1:void 0}))])})})]})}S.displayName=S.name+" [from "+i.id+"]";function R(e){var t=e.errorReason;return d.jsx(o("WAWebFlex.react").FlexRow,{alignSelf:"center",xstyle:h.error,children:t})}R.displayName=R.name+" [from "+i.id+"]";function L(e){return E.apply(this,arguments)}function E(){return E=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){try{var n=r("WAXWhatsAppWebRegistrationControllerRouteBuilder").buildUri({phone:t,step:"otp",locale:r("WAWebL10N").getLocale()}).toString().concat("&__a=1"),a=yield window.fetch(n,{headers:{"Content-Type":"application/json"}}),i=yield a.text();i.startsWith(y)&&(i=i.substring(y.length));var l=JSON.parse(i).payload;return o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[WAWebSmsRegistrationPhoneNumberInput][sendSmsCall] Response received successfully"]))),l}catch(e){o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[WAWebSmsRegistrationPhoneNumberInput][sendSmsCall] Call failed ",""])),e).sendLogs("wa-web-reg")}return{status:C.ERROR,error_reason:r("WAWebFbtCommon")("Try Again"),retry_after:5}}),E.apply(this,arguments)}l.default=b}),226); __d("WAWebTPDummy.react",["fbt","WAWebCmd","WAWebModalManager","WAWebSelectModal.react","WAWebSendFilesToChats","react","useWAWebListener"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(){return o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"open_file_forward_modal",function(e){o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebSelectModal.react").SelectModal,{title:s._(/*BTDS*/"Seleccionar chats"),listType:o("WAWebSelectModal.react").ListType.ChatSelectModal,onConfirm:function(n){return r("WAWebSendFilesToChats")(n,[e])}}))}),u.jsx("div",{})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WDSToastProvider.react",["WDSToast.react"],(function(t,n,r,o,a,i,l){"use strict";l.default=o("WDSToast.react").WDSToastProvider}),98);