[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Download
/
Senam Line Dance Sidoarjo_files
/
[
Home
]
File: KrvnCZIsivZ.js.download
;/*FB_PKG_DELIM*/ /** * License: https://www.facebook.com/legal/license/MDzNl_j9yvg/ */ __d("ms-2.1.1",[],(function(a,b,c,d,e,f){"use strict";b={};var g={exports:b};function h(){var a=1e3,b=a*60,c=b*60,d=c*24,e=d*7,f=d*365.25;g.exports=function(a,b){b=b||{};var c=typeof a;if(c==="string"&&a.length>0)return h(a);else if(c==="number"&&isNaN(a)===!1)return b["long"]?j(a):i(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function h(g){g=String(g);if(g.length>100)return;g=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(!g)return;var h=parseFloat(g[1]);g=(g[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*f;case"weeks":case"week":case"w":return h*e;case"days":case"day":case"d":return h*d;case"hours":case"hour":case"hrs":case"hr":case"h":return h*c;case"minutes":case"minute":case"mins":case"min":case"m":return h*b;case"seconds":case"second":case"secs":case"sec":case"s":return h*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return void 0}}function i(e){var f=Math.abs(e);if(f>=d)return Math.round(e/d)+"d";if(f>=c)return Math.round(e/c)+"h";if(f>=b)return Math.round(e/b)+"m";return f>=a?Math.round(e/a)+"s":e+"ms"}function j(e){var f=Math.abs(e);if(f>=d)return k(e,f,d,"day");if(f>=c)return k(e,f,c,"hour");if(f>=b)return k(e,f,b,"minute");return f>=a?k(e,f,a,"second"):e+" ms"}function k(a,b,c,d){b=b>=c*1.5;return Math.round(a/c)+" "+d+(b?"s":"")}}var i=!1;function j(){i||(i=!0,h());return g.exports}function a(a){switch(a){case void 0:return j()}}e.exports=a}),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(a,b,c,d,e,f){"use strict";function a(a){return a&&typeof a==="object"&&"default"in a?a["default"]:a}var g=a(b("ms-2.1.1")),h=a(b("supports-color-5.5.0"));d={};var i={exports:d};function j(){function a(a){c.debug=c;c["default"]=c;c.coerce=j;c.disable=h;c.enable=f;c.enabled=i;c.humanize=g();Object.keys(a).forEach(function(b){c[b]=a[b]});c.instances=[];c.names=[];c.skips=[];c.formatters={};function b(a){var b=0;for(var d=0;d<a.length;d++)b=(b<<5)-b+a.charCodeAt(d),b|=0;return c.colors[Math.abs(b)%c.colors.length]}c.selectColor=b;function c(a){var f;function g(){var a=arguments;if(!g.enabled)return;var b=g,d=Number(new Date()),e=d-(f||d);b.diff=e;b.prev=f;b.curr=d;f=d;a[0]=c.coerce(a[0]);typeof a[0]!=="string"&&a.unshift("%O");var h=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(d,e){if(d==="%%")return d;h++;e=c.formatters[e];if(typeof e==="function"){var f=a[h];d=e.call(b,f);a.splice(h,1);h--}return d});c.formatArgs.call(b,a);var i=b.log||c.log;i.apply(b,a)}g.namespace=a;g.enabled=c.enabled(a);g.useColors=c.useColors();g.color=b(a);g.destroy=d;g.extend=e;typeof c.init==="function"&&c.init(g);c.instances.push(g);return g}function d(){var a=c.instances.indexOf(this);if(a!==-1){c.instances.splice(a,1);return!0}return!1}function e(a,b){b=c(this.namespace+(typeof b==="undefined"?":":b)+a);b.log=this.log;return b}function f(a){c.save(a);c.names=[];c.skips=[];var b,d=(typeof a==="string"?a:"").split(/[\s,]+/),e=d.length;for(b=0;b<e;b++){if(!d[b])continue;a=d[b].replace(/\*/g,".*?");a[0]==="-"?c.skips.push(new RegExp("^"+a.substr(1)+"$")):c.names.push(new RegExp("^"+a+"$"))}for(b=0;b<c.instances.length;b++){a=c.instances[b];a.enabled=c.enabled(a.namespace)}}function h(){var a=[].join(",");c.enable("");return a}function i(a){if(a[a.length-1]==="*")return!0;var b,d;for(b=0,d=c.skips.length;b<d;b++)if(c.skips[b].test(a))return!1;for(b=0,d=c.names.length;b<d;b++)if(c.names[b].test(a))return!0;return!1}function j(a){return a instanceof Error?a.stack||a.message:a}c.enable(c.load());return c}i.exports=a}var k=!1;function l(){k||(k=!0,j());return i.exports}var m={},n={exports:m};function o(){m.log=c;m.formatArgs=b;m.save=d;m.load=e;m.useColors=a;m.storage=f();m.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;return typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function b(a){a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff);if(!this.useColors)return;var b="color: "+this.color;a.splice(1,0,b,"color: inherit");var c=0,d=0;a[0].replace(/%[a-zA-Z%]/g,function(a){if(a==="%%")return;c++;a==="%c"&&(d=c)});a.splice(d,0,b)}function c(){return typeof console==="object"&&emptyFunction&&emptyFunction.apply(console,arguments)}function d(a){try{a?m.storage.setItem("debug",a):m.storage.removeItem("debug")}catch(a){}}function e(){var a;try{a=m.storage.getItem("debug")}catch(a){}!a&&typeof process!=="undefined"&&"env"in process&&(a=process.env.DEBUG);return a}function f(){try{return localStorage}catch(a){}}n.exports=l()(m);c=n.exports.formatters;c.j=function(a){try{return JSON.stringify(a)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}var p=!1;function q(){p||(p=!0,o());return n.exports}var r={},s={exports:r};function t(){var a={};r.init=i;r.log=e;r.formatArgs=c;r.save=f;r.load=g;r.useColors=b;r.colors=[6,2,3,4,5,1];try{i=h();i&&(i.stderr||i).level>=2&&(r.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(a){}r.inspectOpts=Object.keys(process.env).filter(function(a){return/^debug_/i.test(a)}).reduce(function(a,b){var c=b.substring(6).toLowerCase().replace(/_([a-z])/g,function(a,b){return b.toUpperCase()});b=process.env[b];/^(yes|on|true|enabled)$/i.test(b)?b=!0:/^(no|off|false|disabled)$/i.test(b)?b=!1:b==="null"?b=null:b=Number(b);a[c]=b;return a},{});function b(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):!1}function c(b){var c=this.namespace,a=this.useColors;if(a){a=this.color;a="\x1b[3"+(a<8?a:"8;5;"+a);var e=a+";1m$"+c+"\x1b[0m";b[0]=e+b[0].split("\n").join("\n"+e);b.push(a+"m+"+s.exports.humanize(this.diff)+"\x1b[0m")}else b[0]=d()+c+" "+b[0]}function d(){return r.inspectOpts.hideDate?"":new Date().toISOString()+" "}function e(){return process.stderr.write(a.format.apply(a,arguments)+"\n")}function f(a){a?process.env.DEBUG=a:delete process.env.DEBUG}function g(){return process.env.DEBUG}function i(a){a.inspectOpts={};var b=Object.keys(r.inspectOpts);for(var c=0;c<b.length;c++)a.inspectOpts[b[c]]=r.inspectOpts[b[c]]}s.exports=l()(r);e=s.exports.formatters;e.o=function(b){this.inspectOpts.colors=this.useColors;return a.inspect(b,this.inspectOpts).replace(/\s*\n\s*/g," ")};e.O=function(b){this.inspectOpts.colors=this.useColors;return a.inspect(b,this.inspectOpts)}}var u=!1;function v(){u||(u=!0,t());return s.exports}f={};var w={exports:f};function x(){typeof process==="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?w.exports=q():w.exports=v()}var y=!1;function z(){y||(y=!0,x());return w.exports}function c(a){switch(a){case void 0:return z()}}e.exports=c}),null); __d("DebugStub",["debug-4.1.1"],(function(a,b,c,d,e,f){e.exports=b("debug-4.1.1")()}),null); __d("WAConcurrentIterate",["Promise","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f){"use strict";var g;function a(a,c,d){var e=[],f=[],h=0,i=function(){var d=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){while(h<a){var b=h;h++;f[b]=(yield c(b))}});return function(){return d.apply(this,arguments)}}();d=Math.min(a,d);for(var j=0;j<d;j++)e.push(i());return(g||(g=b("Promise"))).all(e).then(function(){return f})}f.concurrentIterate=a}),66); __d("WADirectPath",["WAResultOrError"],(function(a,b,c,d,e,f,g){"use strict";var h="0_0_0_.enc";function a(a){return a}function b(a){if(a==null)return d("WAResultOrError").makeError("direct-path-undefined");if(a==="")return d("WAResultOrError").makeError("direct-path-empty");return a.includes(h)?d("WAResultOrError").makeError("direct-path-corrupted"):d("WAResultOrError").makeResult(a)}g.unsafeCastToDirectPath=a;g.validateDirectPath=b}),98); __d("WAGlobals",["WAJids","WALogger","err"],(function(a,b,c,d,e,f,g){"use strict";function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["",""]);h=function(){return a};return a}var i=null;function a(a){i=a}function j(){if(i==null)throw c("err")("WaMsgr api called before set");return i}function k(){var a;return(a=j().myJids)==null?void 0:a.deviceJid}function b(){var a;return(a=j().myJids)==null?void 0:a.userJid}function e(a){return d("WAJids").extractUserJid(a)===d("WAJids").extractUserJid(k())}function f(){return j().config}function l(){return j().dependencies}var m="WAOneQueue is not defined";function n(){var a=j().waOneQueue;if(a==null){d("WALogger").ERROR(h(),m);throw c("err")(m)}return a}function o(){return j().hmacKey}g.setGlobals=a;g.getMyDeviceJid=k;g.getMyUserJid=b;g.isPeerDevice=e;g.getConfig=f;g.getDependencies=l;g.getWaOneQueue=n;g.getHMACKey=o}),98); __d("WAHashUtils",["WABase64"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return d("WABase64").encodeB64UrlSafe(a,b)}function b(a,b){return d("WABase64").encodeB64UrlSafe(a,b)}function c(a){return a}function e(a){return a}function f(a){return""+a.slice(0,3)}g.toPlaintextHash=a;g.toCiphertextHash=b;g.stringToPlaintextHash=c;g.toHashedPlaintextHash=e;g.sanitisePlaintextHash=f}),98); __d("WAMediaEntryData.pb",["WAProtoConst"],(function(a,b,c,d,e,f,g){a={};b={};c={};a.internalSpec={fileSha256:[1,(e=d("WAProtoConst")).TYPES.BYTES],mediaKey:[2,e.TYPES.BYTES],fileEncSha256:[3,e.TYPES.BYTES],directPath:[4,e.TYPES.STRING],mediaKeyTimestamp:[5,e.TYPES.INT64],serverMediaType:[6,e.TYPES.STRING],uploadToken:[7,e.TYPES.BYTES],validatedTimestamp:[8,e.TYPES.BYTES],sidecar:[9,e.TYPES.BYTES],objectId:[10,e.TYPES.STRING],fbid:[11,e.TYPES.STRING],downloadableThumbnail:[12,e.TYPES.MESSAGE,c],handle:[13,e.TYPES.STRING],filename:[14,e.TYPES.STRING],progressiveJpegDetails:[15,e.TYPES.MESSAGE,b],size:[16,e.TYPES.INT64],lastDownloadAttemptTimestamp:[17,e.TYPES.INT64]};b.internalSpec={scanLengths:[1,e.FLAGS.REPEATED|e.TYPES.UINT32],sidecar:[2,e.TYPES.BYTES]};c.internalSpec={fileSha256:[1,e.TYPES.BYTES],fileEncSha256:[2,e.TYPES.BYTES],directPath:[3,e.TYPES.STRING],mediaKey:[4,e.TYPES.BYTES],mediaKeyTimestamp:[5,e.TYPES.INT64],objectId:[6,e.TYPES.STRING]};g.MediaEntrySpec=a;g.MediaEntry$ProgressiveJpegDetailsSpec=b;g.MediaEntry$DownloadableThumbnailSpec=c}),98); __d("WAProgressiveJpegGetScanOffsets",["WAProgressiveJpegMarkers","WATagsLogger"],(function(a,b,c,d,e,f,g){"use strict";function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["Non-progressive JPEG marker found"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["Ending marker found before end of image"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["Scan found at offset ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["Not a JPEG image"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["starting"]);l=function(){return a};return a}var m=d("WATagsLogger").TAGS(["media","progressiveJpegUtils"]);function a(a){m.DEV(l());if(!n(a)){m.DEV(k());return[]}var b=[],c=2,e="READ_MARKER_FIRST_BYTE_OR_ENTROPY_DATA",f=null,g=0,r=!1,s=!1,t=!1;function u(){t=!1,m.DEV(j(),c-1),b.push(c-1)}while(c<a.byteLength){f=a[c];if(r){m.ERROR(i());return[]}switch(e){case"READ_MARKER_FIRST_BYTE_OR_ENTROPY_DATA":f===d("WAProgressiveJpegMarkers").MARKER_PREFIX&&(e="READ_MARKER_SECOND_BYTE");break;case"READ_MARKER_SECOND_BYTE":if(f===d("WAProgressiveJpegMarkers").MARKER_PREFIX)e="READ_MARKER_SECOND_BYTE";else if(f===d("WAProgressiveJpegMarkers").MARKER_ESCAPE_BYTE)e="READ_MARKER_FIRST_BYTE_OR_ENTROPY_DATA";else if(f===d("WAProgressiveJpegMarkers").MARKERS.EOI)r=!0,t&&u();else if(!s&&p(f)){m.LOG(h());return[]}else o(f)?(s=!0,e="READ_MARKER_FIRST_BYTE_OR_ENTROPY_DATA"):(t&&u(),f===d("WAProgressiveJpegMarkers").MARKERS.SOS&&(t=!0),q(f)?e="READ_SIZE_FIRST_BYTE":e="READ_MARKER_FIRST_BYTE_OR_ENTROPY_DATA");break;case"READ_SIZE_FIRST_BYTE":e="READ_SIZE_SECOND_BYTE";break;case"READ_SIZE_SECOND_BYTE":c+=g*256;c+=f;c-=2;e="READ_MARKER_FIRST_BYTE_OR_ENTROPY_DATA";break}c+=1;g=f}return b}function n(a){if(a.byteLength<=2)return!1;if(a[0]!==d("WAProgressiveJpegMarkers").MARKER_PREFIX)return!1;return a[1]!==d("WAProgressiveJpegMarkers").MARKERS.SOF2&&a[1]!==d("WAProgressiveJpegMarkers").MARKERS.SOI?!1:!0}function o(a){return a===d("WAProgressiveJpegMarkers").MARKERS.SOF2||a===d("WAProgressiveJpegMarkers").MARKERS.SOF6||a===d("WAProgressiveJpegMarkers").MARKERS.SOF10||a===d("WAProgressiveJpegMarkers").MARKERS.SOF14}function p(a){return a===d("WAProgressiveJpegMarkers").MARKERS.SOF0||a===d("WAProgressiveJpegMarkers").MARKERS.SOF1||a===d("WAProgressiveJpegMarkers").MARKERS.SOF3||a===d("WAProgressiveJpegMarkers").MARKERS.SOF5||a===d("WAProgressiveJpegMarkers").MARKERS.SOF7||a===d("WAProgressiveJpegMarkers").MARKERS.JPG||a===d("WAProgressiveJpegMarkers").MARKERS.SOF9||a===d("WAProgressiveJpegMarkers").MARKERS.SOF11||a===d("WAProgressiveJpegMarkers").MARKERS.SOF13||a===d("WAProgressiveJpegMarkers").MARKERS.SOF15}function q(a){if(a===d("WAProgressiveJpegMarkers").MARKERS.TEM)return!1;return a>=d("WAProgressiveJpegMarkers").MARKERS.RST0&&a<=d("WAProgressiveJpegMarkers").MARKERS.RST7?!1:a!==d("WAProgressiveJpegMarkers").MARKERS.EOI&&a!==d("WAProgressiveJpegMarkers").MARKERS.SOI}g.getProgressiveJpegScanOffsets=a}),98); __d("WAProgressiveJpegGetScanLengths",["WAProgressiveJpegGetScanOffsets"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=d("WAProgressiveJpegGetScanOffsets").getProgressiveJpegScanOffsets(a);return h(a)}function b(a){return a}function h(a){var b=[],c=0;for(a of a)b.push(a-c),c=a;return b}g.getProgressiveJpegScanLengths=a;g.asProgressiveJpegScanLength=b}),98); __d("WAMediaUtils",["WACryptoDependencies","WADirectPath","WAGlobals","WALongInt","WAMediaEntryData.pb","WAProgressiveJpegGetScanLengths","WAResultOrError","WAServerMediaType","WATimeUtils","decodeProtobuf","encodeProtobuf","err"],(function(a,b,c,d,e,f,g){"use strict";function h(){var a=new Uint8Array(32);d("WACryptoDependencies").getCrypto().getRandomValues(a);return a.buffer}function i(a){return a}function a(){return h()}function j(a){return a}function k(a){return a}function b(a){return a}function e(a){return a}function f(a,b){a=d("decodeProtobuf").decodeProtobuf(d("WAMediaEntryData.pb").MediaEntrySpec,b);b=a.fileSha256;var c=a.mediaKey,e=a.fileEncSha256,f=a.directPath,g=a.mediaKeyTimestamp,h=a.sidecar,i=a.objectId,j=a.fbid,l=a.serverMediaType,m=a.downloadableThumbnail,n=a.filename,o=a.progressiveJpegDetails;a=a.size;f=d("WADirectPath").validateDirectPath(f);return{fileSha256:b,mediaKey:c,fileEncSha256:e,directPath:f.success?f.value:null,mediaKeyTimestamp:d("WALongInt").maybeNumberOrThrowIfTooLarge(g),sidecar:h&&k(h),objectId:i,fbid:j,downloadableThumbnail:m==null?void 0:{directPath:m.directPath,fileEncSha256:m.fileEncSha256,fileSha256:m.fileSha256,mediaKey:m.mediaKey,mediaKeyTimestamp:d("WALongInt").maybeNumberOrThrowIfTooLarge(m.mediaKeyTimestamp),objectId:m.objectId},serverMediaType:l,filename:n,progressiveJpegDetails:o&&s(o),size:a==null?void 0:d("WALongInt").numberOrThrowIfTooLarge(a)}}function l(a){var b=a.fileSha256,c=a.fileEncSha256,e=a.mediaKey,f=a.directPath,g=a.mediaKeyTimestamp,h=a.serverMediaType,i=a.objectId,j=a.fbid,k=a.downloadableThumbnail,l=a.filename,m=a.progressiveJpegDetails;a=a.size;b=d("encodeProtobuf").encodeProtobuf(d("WAMediaEntryData.pb").MediaEntrySpec,{fileSha256:b,fileEncSha256:c,mediaKey:e,directPath:f,mediaKeyTimestamp:g,serverMediaType:h,objectId:i,fbid:j,downloadableThumbnail:k,filename:l,progressiveJpegDetails:m,size:a});return b.readByteArray()}function m(a){return d("encodeProtobuf").encodeProtobuf(d("WAMediaEntryData.pb").MediaEntrySpec,a).readByteArray()}function n(a,b){return d("encodeProtobuf").encodeProtobuf(d("WAMediaEntryData.pb").MediaEntrySpec,babelHelpers["extends"]({},a,{directPath:b})).readByteArray()}function o(a,b){return d("encodeProtobuf").encodeProtobuf(d("WAMediaEntryData.pb").MediaEntrySpec,babelHelpers["extends"]({},a,{downloadableThumbnail:babelHelpers["extends"]({},a.downloadableThumbnail,{directPath:b})})).readByteArray()}function p(a,b){a=babelHelpers["extends"]({},a,{fbid:b});return d("encodeProtobuf").encodeProtobuf(d("WAMediaEntryData.pb").MediaEntrySpec,a).readByteArray()}function q(a,b){a=babelHelpers["extends"]({},a,{objectId:b});return d("encodeProtobuf").encodeProtobuf(d("WAMediaEntryData.pb").MediaEntrySpec,a).readByteArray()}function r(a){if(a==null)return null;a.$$unknownFieldCount;var b=a.directPath,c=a.objectId,e=babelHelpers.objectWithoutPropertiesLoose(a,["$$unknownFieldCount","directPath","objectId"]);b=d("WADirectPath").validateDirectPath(b);return babelHelpers["extends"]({},e,{directPath:b.success?b.value:null,objectId:c,mediaKey:a.mediaKey&&i(a.mediaKey),mediaKeyTimestamp:a.mediaKeyTimestamp==null?null:d("WATimeUtils").castToUnixTime(d("WALongInt").numberOrThrowIfTooLarge(a.mediaKeyTimestamp))})}function s(a){if(a==null)return null;return a.scanLengths==null||a.sidecar==null?null:{sidecar:a.sidecar,scanLengths:a.scanLengths.map(function(a){return d("WAProgressiveJpegGetScanLengths").asProgressiveJpegScanLength(d("WALongInt").numberOrThrowIfTooLarge(a))})}}function t(a){a=d("decodeProtobuf").decodeProtobuf(d("WAMediaEntryData.pb").MediaEntrySpec,a);var b=a.serverMediaType,c=a.mediaKey,e=a.mediaKeyTimestamp,f=a.uploadToken,g=a.downloadableThumbnail,h=a.progressiveJpegDetails,k=a.size,l=a.lastDownloadAttemptTimestamp,m=a.sidecar,n=a.directPath,o=a.objectId;a=babelHelpers.objectWithoutPropertiesLoose(a,["serverMediaType","mediaKey","mediaKeyTimestamp","uploadToken","downloadableThumbnail","progressiveJpegDetails","size","lastDownloadAttemptTimestamp","sidecar","directPath","objectId"]);var p=null;h!=null&&h.scanLengths!=null&&h.sidecar!=null&&(p={sidecar:h.sidecar,scanLengths:h.scanLengths.map(function(a){return d("WAProgressiveJpegGetScanLengths").asProgressiveJpegScanLength(d("WALongInt").numberOrThrowIfTooLarge(a))})});h=d("WADirectPath").validateDirectPath(n);return babelHelpers["extends"]({},a,{objectId:o,directPath:h.success?h.value:void 0,sidecar:m,serverMediaType:b==null?null:d("WAServerMediaType").castToServerMediaType(b),mediaKey:c&&i(c),mediaKeyTimestamp:e==null?null:d("WATimeUtils").castToUnixTime(d("WALongInt").numberOrThrowIfTooLarge(e)),uploadToken:f&&j(f),progressiveJpegDetails:p,downloadableThumbnail:g&&r(g),size:d("WALongInt").maybeNumberOrThrowIfTooLarge(k),lastDownloadAttemptTimestamp:l==null?null:d("WATimeUtils").castToUnixTime(d("WALongInt").numberOrThrowIfTooLarge(l))})}function u(a){var b=a.directPath,c=a.fileEncSha256,e=a.fileSha256,f=a.mediaKey,g=a.serverMediaType;if(f==null)return d("WAResultOrError").makeError("media-entry-invalid-media-key");else if(b==null)return d("WAResultOrError").makeError("media-entry-invalid-direct-path");else if(c==null)return d("WAResultOrError").makeError("media-entry-invalid-file-enc-sha256");else if(e==null)return d("WAResultOrError").makeError("media-entry-invalid-file-sha256");else if(g==null)return d("WAResultOrError").makeError("media-entry-invalid-server-media-type");return d("WAResultOrError").makeResult(babelHelpers["extends"]({},a,{directPath:b,fileEncSha256:c,fileSha256:e,mediaKey:f,serverMediaType:g}))}function v(a){var b=a.directPath,c=a.fileEncSha256,e=a.fileSha256,f=a.mediaKey,g=[];f==null?g.push("media-entry-invalid-media-key"):b==null?g.push("media-entry-invalid-direct-path"):c==null?g.push("media-entry-invalid-file-enc-sha256"):e==null&&g.push("media-entry-invalid-file-sha256");return f!=null&&b!=null&&c!=null&&e!=null?d("WAResultOrError").makeResult(babelHelpers["extends"]({},a,{directPath:b,fileEncSha256:c,fileSha256:e,mediaKey:f})):d("WAResultOrError").makeError(g)}function w(a){var b="image/jpeg";switch(a){case"image":b="image/jpeg";break;case"ptt":b="audio/wav";break;case"video":b="video/mp4";break;case"gif":b="image/gif";break;case"sticker":b="image/webp";break;case"preview":b="image/jpeg";break;case"document":b=d("WAGlobals").getConfig().isOctetStreamAttachmentMimeTypeEnabled()===!0?"application/octet-stream":"application/pdf";break;case"xma-image":b="image/jpeg";break;default:throw c("err")("Unsupported server media type: "+a)}return b}var x=function(){return"TransformStream"in self};g.createMediaKey=h;g.castToMediaKey=i;g.createUploadToken=a;g.castToUploadToken=j;g.castToStreamingSidecar=k;g.stringToDeliveryObjectId=b;g.stringToBackupEntFbid=e;g.mediaEntryDataToRawData=f;g.rawDataToMediaEntry=l;g.encodeMediaEntryForUpload=m;g.encodeMediaEntryWithUpdatedPath=n;g.encodeMediaEntryDownloadableThumbnailWithUpdatedPath=o;g.encodeMediaEntryWithUpdatedFbid=p;g.encodeMediaEntryWithUpdatedObjectId=q;g.convertMediaDownloadableThumbnailToDownloadableThumbnail=r;g.decodeMediaEntryData=t;g.validateDecodedMediaEntryForDownload=u;g.validateDownloadableThumbnailForDownload=v;g.getMimeTypeFromServerMediaType=w;g.isTransformStreamSupported=x}),98); __d("WAMediaCryptoSidecar",["WAConcurrentIterate","WACryptoHmac","WAMediaUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return a==="video"}var h=16,i=10,j=64*1024;function b(a,b,c){c===void 0&&(c=1);var e=b.buffer.byteLength;e=Math.ceil((e-h)/j);var f=new Uint8Array(i*e);return d("WAConcurrentIterate").concurrentIterate(e,function(c){var e=c*j,g=e+h+j;e=b.subarray(e,g);return d("WACryptoHmac").sign(a,e).then(function(a){a=new Uint8Array(a,0,i);f.set(a,c*i)})},c).then(function(){return d("WAMediaUtils").castToStreamingSidecar(f.buffer)})}g.shouldHaveStreamingSidecar=a;g.calculateStreamingSidecar=b}),98); __d("WAMediaHkdfInfo",["err"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a){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 c("err")("getMediaHkdfInfo: unexpected media type "+a)}}function b(){return"Messenger Preview Keys"}g.getMediaHkdfInfo=a;g.getPreviewMediaHkdfInfo=b}),98); __d("WAMediaCrypto",["Promise","WABinary","WACryptoAesCbc","WACryptoDependencies","WACryptoHkdf","WACryptoHmac","WACryptoSha256","WACryptoUtils","WACustomError","WAHashUtils","WALogger","WAMediaCryptoSidecar","WAMediaHkdfInfo","WATagsLogger","WATypedArraysConcat","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["Processing scan ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["Unable to decrypt partial due to invalid target scan"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["decryptPartialChunks targetScan greater length of scanLength array"]);k=function(){return a};return a}var l=d("WATagsLogger").TAGS(["WAMediaCrypto"]),m=d("WACustomError").customError("HmacValidationError",!1),n=new Uint8Array([2,2]);function o(a,b){return d("WACryptoHkdf").extractAndExpand(new Uint8Array(a),b,112).then(function(a){return{iv:new Uint8Array(a,0,16),cipherKey:new Uint8Array(a,16,32),hmacKey:new Uint8Array(a,48,32),refKey:new Uint8Array(a,80,32)}})}function p(a,b){b=d("WAMediaHkdfInfo").getMediaHkdfInfo(b);return o(a,b)}function q(a){var b=d("WAMediaHkdfInfo").getPreviewMediaHkdfInfo();return o(a,b)}function a(a){return r.apply(this,arguments)}function r(){r=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=new Map(),d=(yield q(a));c.set("preview",d);d=["document","image","video","audio","md-app-state","md-msg-hist"];yield (h||(h=b("Promise"))).all(d.map(function(b){return p(a,b).then(function(a){c.set(b,a)})}));return c});return r.apply(this,arguments)}function e(a){switch(a){case"image":case"video":return a;default:return null}}var s=16,t=16,u=10,v=64*1024;function f(a,b,c,d,e){return w.apply(this,arguments)}function w(){w=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e,f,g){var i=new(d("WABinary").Binary)();i.ensureCapacity(t+f.byteLength+s+u);i.writeByteArray(c);a=new(d("WACryptoAesCbc").AesCbcStream)(i,"encrypt",a,c);c=0;var j=c+v;while(j<f.byteLength){var k=f.slice(c,j);yield a.append(new Uint8Array(k));c=j;j+=v}k=(yield f.slice(c));yield a.finalize(new Uint8Array(k));j=i.peek(function(a){return a.readByteArray()});f=(yield d("WACryptoHmac").encodeKeySha256(e));c=(yield d("WACryptoHmac").sign(f,j));i.writeByteArray(new Uint8Array(c,0,u));a=i.readByteArray();k=a.subarray(t);e=(yield (h||(h=b("Promise"))).all([d("WACryptoDependencies").getCrypto().subtle.digest("SHA-256",k),d("WAMediaCryptoSidecar").shouldHaveStreamingSidecar(g)?d("WAMediaCryptoSidecar").calculateStreamingSidecar(f,a):void 0]));c=e[0];i=e[1];return{ciphertext:k,ciphertextHash:c,sidecar:i,ivCiphertext:j,ivCiphertextHmac:a}});return w.apply(this,arguments)}function x(a,b,c){return y.apply(this,arguments)}function y(){y=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){a=(yield d("WACryptoHmac").encodeKeySha256(a));b=d("WABinary").Binary.build(b,c).readByteArray();return d("WACryptoHmac").sign(a,b)});return y.apply(this,arguments)}function z(a,b,c,d,e){return A.apply(this,arguments)}function A(){A=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,e,f){if(!(10<=f.length&&f.length<=32))throw new m("Bad hmac size "+f.length);var g=d("WABinary").Binary.build(b,c).readByteArray();e=(yield d("WACryptoHmac").hmacSha256(e,g).then(function(a){return new Uint8Array(a)}));g=e.slice(0,f.length);if(!F(g,f))throw new m("hmacAndDecrypt hmac mismatch");e=(yield d("WACryptoAesCbc").aesCbcDecrypt(a,b,c));g=(yield d("WACryptoDependencies").getCrypto().subtle.digest("SHA-256",e));return{plaintextHash:d("WAHashUtils").toPlaintextHash(g),plaintext:e}});return A.apply(this,arguments)}function B(a,b,c,e,f){if(!(10<=f.length&&f.length<=32))throw new m("Bad hmac size "+f.length);var g=d("WATypedArraysConcat").concatTypedArrays(Uint8Array,[b,c]);return d("WACryptoHmac").hmacSha256(e,g,f.length).then(function(a){return new Uint8Array(a)}).then(function(a){if(!d("WACryptoUtils").uint8ArraysEqual(a,f))throw new m("hmacAndDecrypt hmac mismatch")}).then(function(){var a=c.byteLength%s===u;if(a===!0)return c.subarray(0,-10);else return c}).then(function(c){return C(a,b,c)})}function C(a,b,c){var e=c.subarray(-s);return d("WACryptoAesCbc").aesCbcEncrypt(a,n,e).then(function(a){return a.slice(t)}).then(function(a){return d("WABinary").Binary.build(c,a).readByteArray()}).then(function(c){return d("WACryptoAesCbc").aesCbcDecrypt(a,b,c)}).then(function(a){return new Uint8Array(a,0,a.byteLength-n.byteLength)}).then(function(a){return{plaintext:a,nextIv:e}})}function D(a,b,c,d,e,f){return E.apply(this,arguments)}function E(){E=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f,g,h){g>h.scanLengths.length&&l.ERROR(k());g=Math.min(g,h.scanLengths.length);if(g<1){l.ERROR(j());throw c("err")("Unable to decrypt partial due to invalid target scan")}var m=new(d("WABinary").Binary)(),n=[];for(var o=0;o<g;o++)n.push(new Uint8Array(h.sidecar,o*10,10));o=0;b=b;var p=0;for(var q=0;q<g;q++){d("WALogger").DEV(i(),q);var r=h.alignedScanLengths[q],s=o+r;s=e.subarray(o,s);s=(yield B(a,b,s,f,n[q]));var t=s.plaintext;s=s.nextIv;m.write(t);o+=r;b=s;p+=h.scanLengths[q]}t=m.readBuffer(p);r=(yield d("WACryptoSha256").sha256(t));return{plaintextHash:d("WAHashUtils").toPlaintextHash(r),plaintext:t}});return E.apply(this,arguments)}function F(a,b){if(a.length!==b.length)return!1;var c=1,d=a.length;for(var e=0;e<d;e++)c&=a[e]===b[e]?1:0;return c!==0}g.HmacValidationError=m;g.DEFAULT_PADDING=n;g.computeMediaKeys=p;g.computeMediaKeysForPreview=q;g.deprecated_getAllCommonComputedMediaKeys=a;g.convertServerMediaTypeToPreviewMediaType=e;g.CBC_BLOCK_SIZE=s;g.IV_LENGTH=t;g.HMAC_LENGTH=u;g.encryptAndHmac=f;g.hmacCiphertext=x;g.hmacAndDecrypt=z;g.hmacAndDecryptPartial=B;g.decryptPartialChunks=D}),98); __d("WAPttComposerOpusRecorder",["$InternalEnum","Promise","WAGetUserMedia","WANullthrows","WAOpusRecorderWorkerClient","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){var h,i={bitRate:16e3,bufferLength:4096,numberOfChannels:1,encoderSampleRate:16e3,maxBuffersPerPage:40,encoderApplication:2048,encoderFrameSize:20,streamOptions:{optional:[],mandatory:{googEchoCancellation:!1,googAutoGainControl:!1,googNoiseSuppression:!1,googHighpassFilter:!1}}},j=b("$InternalEnum").Mirrored(["INACTIVE","RECORDING","PAUSED","STOPPED"]);a=function(){function a(a){var d=this;this._duration=0;this._recordedPages=[];this._state=j.INACTIVE;this._isFirstBuffer=!1;this._requestCount=0;this._pendingFlushResolvers=new Map();this._handleEncoderMessage=function(a){a=a.data;switch(a.message){case"page":d._storePage(a.page);break;case"flushed":d._handleFlushed(a.requestId);break;default:throw c("err")("Invalid message event type: "+a.message)}};if(!l())throw c("err")("Recording is not supported in this browser");this._createStream=a.createStream;this._onDuration=a.onDuration;this._onPause=a.onPause;this._onResume=a.onResume;this._onStart=a.onStart;this._onStop=a.onStop;this._handlePage=a.onPage;this._completeRecordingPromise=new(h||(h=b("Promise")))(function(a){d._resolveCompleteRecordingPromise=a});this._audioContext=new AudioContext();this._encoderNode=this._audioContext.createScriptProcessor(i.bufferLength,i.numberOfChannels,i.numberOfChannels);this._encoderNode.onaudioprocess=function(a){d._encodeBuffers(a.inputBuffer)};this._monitorNode=this._audioContext.createGain()}var e=a.prototype;e.getState=function(){return this._state};e.start=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){switch(this._state){case j.RECORDING:return!0;case j.STOPPED:return!1;case j.PAUSED:return this.resume();case j.INACTIVE:break}this._recordedPages=[];this._isFirstBuffer=!0;this._duration=0;var a=d("WAOpusRecorderWorkerClient").getOpusEncoderWorker();this._encoder=a;a.addEventListener("message",this._handleEncoderMessage);var b=(yield this._startRecording());if(!b)return!1;this._onStart==null?void 0:this._onStart();this._onDuration==null?void 0:this._onDuration(this._duration);a.postMessage({command:"encode-init",config:babelHelpers["extends"]({},i,{originalSampleRate:this._audioContext.sampleRate})});this._encoderNode.connect(this._audioContext.destination);return!0});function c(){return a.apply(this,arguments)}return c}();e.stop=function(){var a;if(this._state===j.STOPPED)return;this._state=j.STOPPED;(a=this._recordingAbortController)==null?void 0:a.abort();this._audioContext.close&&this._audioContext.close();this._monitorNode.disconnect();this._encoderNode.disconnect();(a=this._encoder)==null?void 0:a.postMessage({command:"encode-done"})};e.pause=function(){var a;if(this._state!==j.RECORDING)return;this._state=j.PAUSED;(a=this._recordingAbortController)==null?void 0:a.abort();this._onPause==null?void 0:this._onPause()};e.resume=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){switch(this._state){case j.RECORDING:return!0;case j.STOPPED:return!1;case j.INACTIVE:throw c("err")("Attempting to resume recording that hasn't started");case j.PAUSED:break}var a=(yield this._startRecording());if(!a)return!1;this._onResume==null?void 0:this._onResume();return!0});function d(){return a.apply(this,arguments)}return d}();e.getDuration=function(){return this._duration};e.getMonitorNode=function(){return this._monitorNode};e._encodeBuffers=function(a){if(this._isFirstBuffer){this._isFirstBuffer=!1;return}if(this._state!==j.RECORDING)return;var b=[];for(var d=0;d<a.numberOfChannels;d++)b[d]=a.getChannelData(d);d=c("WANullthrows")(this._encoder);d.postMessage({command:"encode",buffers:b});this._duration+=a.duration;this._onDuration==null?void 0:this._onDuration(this._duration)};e._getNextRequestId=function(){this._requestCount++;return this._requestCount};e._startRecording=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){this._state=j.RECORDING;this._recordingAbortController=new AbortController();var a=(yield m(this._createStream,this._audioContext,[this._encoderNode,this._monitorNode],this._recordingAbortController.signal));if(!a){this.stop();return!1}return!0});function a(){return a.apply(this,arguments)}return a}();e._storePage=function(a){this._recordedPages.push(a);if(a[5]&4){this._handlePage==null?void 0:this._handlePage(a,!0);var b=c("WANullthrows")(this._encoder);b.removeEventListener("message",this._handleEncoderMessage);this._resolveCompleteRecordingPromise(k(this._recordedPages));this._recordedPages=[];this._onStop==null?void 0:this._onStop();return}this._handlePage==null?void 0:this._handlePage(a,!1)};e._handleFlushed=function(a){var b=c("WANullthrows")(this._pendingFlushResolvers.get(a));this._pendingFlushResolvers["delete"](a);b(k(this._recordedPages))};e.getPartialRecording=function(){var a=this,d=this._getNextRequestId(),e=new(h||(h=b("Promise")))(function(b){a._pendingFlushResolvers.set(d,b)}),f=c("WANullthrows")(this._encoder);f.postMessage({command:"flush",requestId:d});return e};e.getCompleteRecording=function(){return this._completeRecordingPromise};return a}();function k(a){var b=a.reduce(function(a,b){return a+b.length},0);b=new Uint8Array(b);var c=0;for(a of a)b.set(a,c),c+=a.length;return new Blob([b],{type:"audio/ogg; codecs=opus"})}function l(){return Boolean(window.AudioContext&&d("WAGetUserMedia").getUserMedia)}function m(a,b,c,d){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,d){var e=(yield a(d));if(d.aborted||e==null)return!1;var f=b.createMediaStreamSource(e);c.forEach(function(a){f.connect(a)});d.addEventListener("abort",function(){e.getTracks().forEach(function(a){a.stop()}),f.disconnect()},{once:!0});return!0});return n.apply(this,arguments)}g.OpusRecorderState=j;g.OpusRecorder=a}),98); __d("WAPttComposerRecorderPollableTimer",[],(function(a,b,c,d,e,f){a=function(){function a(){}var b=a.prototype;b.start=function(){this.$1=Date.now()};b.stop=function(){this.$2=Date.now()};b.pause=function(){this.stop()};b.resume=function(){this.$1=Date.now()-this.getTime(),this.$2=null};b.getTime=function(){var a,b=this.$1;if(b==null)return 0;a=(a=this.$2)!=null?a:Date.now();return a-b};return a}();f["default"]=a}),66); __d("WAPttComposerWaveformRecorder",["WANullthrows","WAPttComposerRecorderPollableTimer","WAPttComposerScaleWaveform","WAStartAnimationLoop"],(function(a,b,c,d,e,f,g){a=function(){function a(a,b){var d=this;this.$2=new(c("WAPttComposerRecorderPollableTimer"))();this.$3=[];this.$4=[];this.$5=0;this.$10=function(){d.$5=Math.max(d.$5,d.$11());var a=d.$3.length/d.$1;a=Math.floor((d.getDuration()-a)*d.$1);if(a===0)return;for(var b=0;b<a;b++)d.$3.push(d.$5);d.$5=0};this.$12=0;this.$7=h(a);a.connect(this.$7);this.$1=b}var b=a.prototype;b.start=function(){this.$2.start(),this.$9()};b.stop=function(){this.$2.stop(),this.$6==null?void 0:this.$6()};b.pause=function(){this.$2.pause(),this.$6==null?void 0:this.$6()};b.resume=function(){this.$2.resume(),this.$9()};b.$9=function(){this.$6=d("WAStartAnimationLoop").startAnimationLoop(this.$10)};b.$11=function(){var a,b=c("WANullthrows")(this.$7);this.$8=(a=this.$8)!=null?a:new Uint8Array(b.frequencyBinCount);a=this.$8;b.getByteFrequencyData(a);return Math.max.apply(Math,Array.from(a))/255};b.commitSamples=function(a){a=Math.floor(a*this.$1);a=a-this.$4.length;var b=this.$3.length-this.$12;if(a===0||b===0)return;b=this.$3.slice(this.$12,this.$3.length);b=c("WAPttComposerScaleWaveform")(b,a);for(a of b)this.$4.push(a);this.$12=this.$3.length};b.getSamples=function(){return this.$3};b.getDuration=function(){var a;a=(a=this.$2.getTime())!=null?a:0;return a/1e3};b.getCorrectedSamples=function(){return this.$4};return a}();function h(a){a=a.context.createAnalyser();a.fftSize=32;a.smoothingTimeConstant=0;a.minDecibels=-60;a.maxDecibels=-10;return a}g["default"]=a}),98); __d("WAPttComposerRecorder",["WAPttComposerOpusRecorder","WAPttComposerWaveformRecorder","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){a=function(){function a(a){var b=this;this._handleOpusRecorderDuration=function(){b._waveformRecorder.commitSamples(b.getDuration()),b._onDuration==null?void 0:b._onDuration(b.getDuration())};this._onDuration=a.onDuration;this._opusRecorder=new(d("WAPttComposerOpusRecorder").OpusRecorder)({createStream:a.createStream,onDuration:this._handleOpusRecorderDuration,onPage:function(b,c){a.onPage==null?void 0:a.onPage(b,c)}});this._waveformRecorder=new(c("WAPttComposerWaveformRecorder"))(this._opusRecorder.getMonitorNode(),a.waveformSampleRate)}var e=a.prototype;e.start=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield this._opusRecorder.start());if(!a)return!1;this._waveformRecorder.start();return!0});function c(){return a.apply(this,arguments)}return c}();e.stop=function(){this._opusRecorder.stop(),this._waveformRecorder.stop()};e.pause=function(){this._opusRecorder.pause(),this._waveformRecorder.pause()};e.resume=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield this._opusRecorder.resume());if(!a)return!1;this._waveformRecorder.resume();return!0});function c(){return a.apply(this,arguments)}return c}();e.getDuration=function(){return this._opusRecorder.getDuration()};e.getPreciseDuration=function(){var a;return(a=this._waveformRecorder.getDuration())!=null?a:0};e.getLiveWaveformSamples=function(){return this._waveformRecorder.getSamples()};e.getCorrectedWaveformSamples=function(){return this._waveformRecorder.getCorrectedSamples()};e.getPartialRecording=function(){return this._opusRecorder.getPartialRecording()};e.getCompleteRecording=function(){return this._opusRecorder.getCompleteRecording()};return a}();g["default"]=a}),98); __d("WASmaxInBizLinkingGetLinkedAccountsResponseError",["WAResultOrError","WASmaxInBizLinkingHackBaseIQErrorResponseMixin","WASmaxInBizLinkingIQErrorInternalServerErrorMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"error");if(!c.success)return c;c=d("WASmaxInBizLinkingIQErrorInternalServerErrorMixin").parseIQErrorInternalServerErrorMixin(c.value);if(!c.success)return c;a=d("WASmaxInBizLinkingHackBaseIQErrorResponseMixin").parseHackBaseIQErrorResponseMixin(a,b);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({errorIQErrorInternalServerErrorMixin:c.value},a.value))}g.parseGetLinkedAccountsResponseError=a}),98); __d("WASmaxInBizLinkingIQErrorForbiddenMixin",["WAResultOrError","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxParseUtils").assertTag(a,"error");if(!b.success)return b;b=d("WASmaxParseUtils").literal(d("WASmaxParseUtils").attrString,a,"text","forbidden");if(!b.success)return b;a=d("WASmaxParseUtils").literal(d("WASmaxParseUtils").attrInt,a,"code",403);return!a.success?a:d("WAResultOrError").makeResult({text:b.value,code:a.value})}g.parseIQErrorForbiddenMixin=a}),98); __d("WASmaxInBizLinkingGetLinkedAccountsResponseForbidden",["WAResultOrError","WASmaxInBizLinkingHackBaseIQErrorResponseMixin","WASmaxInBizLinkingIQErrorForbiddenMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"error");if(!c.success)return c;c=d("WASmaxInBizLinkingIQErrorForbiddenMixin").parseIQErrorForbiddenMixin(c.value);if(!c.success)return c;a=d("WASmaxInBizLinkingHackBaseIQErrorResponseMixin").parseHackBaseIQErrorResponseMixin(a,b);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({errorIQErrorForbiddenMixin:c.value},a.value))}g.parseGetLinkedAccountsResponseForbidden=a}),98); __d("WASmaxInBizLinkingEnums",[],(function(a,b,c,d,e,f){a={disable:"disable","import":"import"};b={"false":"false","true":"true"};c={off:"off",on:"on"};f.ENUM_DISABLE_IMPORT=a;f.ENUM_FALSE_TRUE=b;f.ENUM_OFF_ON=c}),66); __d("WASmaxInBizLinkingHasDisplayNameMixin",["WAResultOrError","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxParseUtils").flattenedChildWithTag(a,"display_name");if(!a.success)return a;a=d("WASmaxParseUtils").contentString(a.value);return!a.success?a:d("WAResultOrError").makeResult({displayNameElementValue:a.value})}g.parseHasDisplayNameMixin=a}),98); __d("WASmaxInBizLinkingFBBizResponseMixin",["WAResultOrError","WASmaxInBizLinkingEnums","WASmaxInBizLinkingHasDisplayNameMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"catalog");if(!b.success)return b;b=d("WASmaxParseUtils").attrStringEnum(a,"state",d("WASmaxInBizLinkingEnums").ENUM_DISABLE_IMPORT);if(!b.success)return b;a=d("WASmaxParseUtils").attrString(a,"id");return!a.success?a:d("WAResultOrError").makeResult({state:b.value,id:a.value})}function a(a){var b=d("WASmaxParseUtils").assertTag(a,"fb_biz");if(!b.success)return b;b=d("WASmaxParseUtils").optionalChildWithTag(a,"catalog",h);if(!b.success)return b;var c=d("WASmaxParseUtils").attrString(a,"id");if(!c.success)return c;a=d("WASmaxInBizLinkingHasDisplayNameMixin").parseHasDisplayNameMixin(a);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({id:c.value},a.value,{catalog:b.value}))}g.parseFBBizResponseCatalog=h;g.parseFBBizResponseMixin=a}),98); __d("WASmaxInBizLinkingAdStatusMixin",["WAResultOrError","WASmaxInBizLinkingEnums","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxParseUtils").flattenedChildWithTag(a,"ad_status");if(!a.success)return a;var b=d("WASmaxParseUtils").attrStringEnum(a.value,"has_created_ad",d("WASmaxInBizLinkingEnums").ENUM_FALSE_TRUE);if(!b.success)return b;a=d("WASmaxParseUtils").attrStringEnum(a.value,"has_active_ctwa_ad",d("WASmaxInBizLinkingEnums").ENUM_FALSE_TRUE);return!a.success?a:d("WAResultOrError").makeResult({adStatusHasCreatedAd:b.value,adStatusHasActiveCtwaAd:a.value})}g.parseAdStatusMixin=a}),98); __d("WASmaxInBizLinkingFBPageResponseBaseMixin",["WAResultOrError","WASmaxInBizLinkingAdStatusMixin","WASmaxInBizLinkingEnums","WASmaxInBizLinkingHasDisplayNameMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"profile_sync");if(!b.success)return b;b=d("WASmaxParseUtils").attrStringEnum(a,"state",d("WASmaxInBizLinkingEnums").ENUM_DISABLE_IMPORT);return!b.success?b:d("WAResultOrError").makeResult({state:b.value})}function a(a){var b=d("WASmaxParseUtils").assertTag(a,"fb_page");if(!b.success)return b;b=d("WASmaxParseUtils").optionalChildWithTag(a,"profile_sync",h);if(!b.success)return b;var c=d("WASmaxParseUtils").attrString(a,"id");if(!c.success)return c;var e=d("WASmaxInBizLinkingHasDisplayNameMixin").parseHasDisplayNameMixin(a);if(!e.success)return e;a=d("WASmaxInBizLinkingAdStatusMixin").parseAdStatusMixin(a);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({id:c.value},e.value,a.value,{profileSync:b.value}))}g.parseFBPageResponseBaseProfileSync=h;g.parseFBPageResponseBaseMixin=a}),98); __d("WASmaxInBizLinkingHasProfilePictureMixin",["WAResultOrError","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"bytes");if(!b.success)return b;b=d("WASmaxParseUtils").contentBytesRange(a,0,void 0);return!b.success?b:d("WAResultOrError").makeResult({elementValue:b.value})}function a(a){a=d("WASmaxParseUtils").flattenedChildWithTag(a,"profile_picture");if(!a.success)return a;var b=d("WASmaxParseUtils").flattenedChildWithTag(a.value,"url");if(!b.success)return b;a=d("WASmaxParseUtils").optionalChildWithTag(a.value,"bytes",h);if(!a.success)return a;b=d("WASmaxParseUtils").contentString(b.value);return!b.success?b:d("WAResultOrError").makeResult({profilePictureUrlElementValue:b.value,profilePictureBytes:a.value})}g.parseHasProfilePictureProfilePictureBytes=h;g.parseHasProfilePictureMixin=a}),98); __d("WASmaxInBizLinkingHasShowOnProfileMixin",["WAResultOrError","WASmaxInBizLinkingEnums","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxParseUtils").flattenedChildWithTag(a,"show_on_profile");if(!a.success)return a;a=d("WASmaxParseUtils").contentStringEnum(a.value,d("WASmaxInBizLinkingEnums").ENUM_FALSE_TRUE);return!a.success?a:d("WAResultOrError").makeResult({showOnProfileElementValue:a.value})}g.parseHasShowOnProfileMixin=a}),98); __d("WASmaxInBizLinkingIGProfessionalResponseBaseMixin",["WAResultOrError","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxParseUtils").assertTag(a,"ig_professional");if(!b.success)return b;b=d("WASmaxParseUtils").flattenedChildWithTag(a,"ig_handle");if(!b.success)return b;a=d("WASmaxParseUtils").contentString(b.value);return!a.success?a:d("WAResultOrError").makeResult({igHandleElementValue:a.value})}g.parseIGProfessionalResponseBaseMixin=a}),98); __d("WASmaxInBizLinkingWhatsAppAdIdentityResponseMixin",["WAResultOrError","WASmaxInBizLinkingAdStatusMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxParseUtils").assertTag(a,"whatsapp_ad_identity");if(!b.success)return b;b=d("WASmaxParseUtils").attrString(a,"id");if(!b.success)return b;a=d("WASmaxInBizLinkingAdStatusMixin").parseAdStatusMixin(a);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({id:b.value},a.value))}g.parseWhatsAppAdIdentityResponseMixin=a}),98); __d("WASmaxInBizLinkingGetLinkedAccountsResponseSuccess",["WAResultOrError","WASmaxInBizLinkingEnums","WASmaxInBizLinkingFBBizResponseMixin","WASmaxInBizLinkingFBPageResponseBaseMixin","WASmaxInBizLinkingHackBaseIQResultResponseMixin","WASmaxInBizLinkingHasDisplayNameMixin","WASmaxInBizLinkingHasProfilePictureMixin","WASmaxInBizLinkingHasShowOnProfileMixin","WASmaxInBizLinkingIGProfessionalResponseBaseMixin","WASmaxInBizLinkingWhatsAppAdIdentityResponseMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"fb_page");if(!b.success)return b;b=d("WASmaxParseUtils").flattenedChildWithTag(a,"whatsapp_as_page_button");if(!b.success)return b;b=d("WASmaxParseUtils").attrStringEnum(b.value,"state",d("WASmaxInBizLinkingEnums").ENUM_OFF_ON);if(!b.success)return b;var c=d("WASmaxInBizLinkingFBPageResponseBaseMixin").parseFBPageResponseBaseMixin(a);if(!c.success)return c;var e=d("WASmaxInBizLinkingHasProfilePictureMixin").parseHasProfilePictureMixin(a);a=d("WASmaxInBizLinkingHasShowOnProfileMixin").parseHasShowOnProfileMixin(a);return d("WAResultOrError").makeResult(babelHelpers["extends"]({whatsappAsPageButtonState:b.value},c.value,{hasProfilePictureMixin:e.success?e.value:null,hasShowOnProfileMixin:a.success?a.value:null}))}function i(a){var b=d("WASmaxParseUtils").assertTag(a,"fb_biz");if(!b.success)return b;b=d("WASmaxInBizLinkingFBBizResponseMixin").parseFBBizResponseMixin(a);return!b.success?b:b}function j(a){var b=d("WASmaxParseUtils").assertTag(a,"ig_professional");if(!b.success)return b;b=d("WASmaxInBizLinkingIGProfessionalResponseBaseMixin").parseIGProfessionalResponseBaseMixin(a);if(!b.success)return b;var c=d("WASmaxInBizLinkingHasProfilePictureMixin").parseHasProfilePictureMixin(a),e=d("WASmaxInBizLinkingHasDisplayNameMixin").parseHasDisplayNameMixin(a);a=d("WASmaxInBizLinkingHasShowOnProfileMixin").parseHasShowOnProfileMixin(a);return d("WAResultOrError").makeResult(babelHelpers["extends"]({},b.value,{hasProfilePictureMixin:c.success?c.value:null,hasDisplayNameMixin:e.success?e.value:null,hasShowOnProfileMixin:a.success?a.value:null}))}function k(a){var b=d("WASmaxParseUtils").assertTag(a,"whatsapp_ad_identity");if(!b.success)return b;b=d("WASmaxInBizLinkingWhatsAppAdIdentityResponseMixin").parseWhatsAppAdIdentityResponseMixin(a);return!b.success?b:b}function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"linked_accounts");if(!c.success)return c;var e=d("WASmaxParseUtils").optionalChildWithTag(c.value,"fb_page",h);if(!e.success)return e;var f=d("WASmaxParseUtils").optionalChildWithTag(c.value,"fb_biz",i);if(!f.success)return f;var g=d("WASmaxParseUtils").optionalChildWithTag(c.value,"ig_professional",j);if(!g.success)return g;c=d("WASmaxParseUtils").optionalChildWithTag(c.value,"whatsapp_ad_identity",k);if(!c.success)return c;a=d("WASmaxInBizLinkingHackBaseIQResultResponseMixin").parseHackBaseIQResultResponseMixin(a,b);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({},a.value,{linkedAccountsFbPage:e.value,linkedAccountsFbBiz:f.value,linkedAccountsIgProfessional:g.value,linkedAccountsWhatsappAdIdentity:c.value}))}g.parseGetLinkedAccountsResponseSuccessLinkedAccountsFbPage=h;g.parseGetLinkedAccountsResponseSuccessLinkedAccountsFbBiz=i;g.parseGetLinkedAccountsResponseSuccessLinkedAccountsIgProfessional=j;g.parseGetLinkedAccountsResponseSuccessLinkedAccountsWhatsappAdIdentity=k;g.parseGetLinkedAccountsResponseSuccess=a}),98); __d("WASmaxOutBizLinkingGetLinkedAccountsRequest",["WASmaxJsx","WASmaxOutBizLinkingHackBaseIQGetRequestMixin","WAWap"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxOutBizLinkingHackBaseIQGetRequestMixin").mergeHackBaseIQGetRequestMixin(d("WASmaxJsx").smax("iq",{xmlns:"fb:thrift_iq",smax_id:d("WAWap").INT(42)},d("WASmaxJsx").smax("linked_accounts",null)),a);return a}g.makeGetLinkedAccountsRequest=a}),98); __d("WASmaxBizLinkingGetLinkedAccountsRPC",["WAComms","WASmaxInBizLinkingGetLinkedAccountsResponseError","WASmaxInBizLinkingGetLinkedAccountsResponseForbidden","WASmaxInBizLinkingGetLinkedAccountsResponseSuccess","WASmaxOutBizLinkingGetLinkedAccountsRequest","WASmaxParsingFailure","WASmaxRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,b){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=d("WASmaxOutBizLinkingGetLinkedAccountsRequest").makeGetLinkedAccountsRequest(a);b=(yield d("WAComms").sendSmaxStanza(a,b));var c=d("WASmaxInBizLinkingGetLinkedAccountsResponseSuccess").parseGetLinkedAccountsResponseSuccess(b,a);if(c.success)return{name:"GetLinkedAccountsResponseSuccess",value:c.value};var e=d("WASmaxInBizLinkingGetLinkedAccountsResponseForbidden").parseGetLinkedAccountsResponseForbidden(b,a);if(e.success)return{name:"GetLinkedAccountsResponseForbidden",value:e.value};b=d("WASmaxInBizLinkingGetLinkedAccountsResponseError").parseGetLinkedAccountsResponseError(b,a);if(b.success)return{name:"GetLinkedAccountsResponseError",value:b.value};throw new(d("WASmaxParsingFailure").SmaxParsingFailure)(d("WASmaxRpcUtils").errorMessageRpcParsing("GetLinkedAccounts",{Success:c,Forbidden:e,Error:b}))});return h.apply(this,arguments)}g.sendGetLinkedAccountsRPC=a}),98); __d("WASmaxInNewslettersSubscribeToLiveUpdatesClientErrors",["WAResultOrError","WASmaxInNewslettersBadRequestIQErrorResponseMixin","WASmaxInNewslettersItemNotFoundIQErrorResponseMixin","WASmaxInNewslettersRateLimitedIQErrorResponseMixin","WASmaxInNewslettersSuspendedIQErrorResponseMixin","WASmaxInNewslettersUnavailableForLegalReasonsResponseMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxInNewslettersBadRequestIQErrorResponseMixin").parseBadRequestIQErrorResponseMixin(a,b);if(c.success)return d("WAResultOrError").makeResult({name:"BadRequestIQErrorResponse",value:c.value});var e=d("WASmaxInNewslettersUnavailableForLegalReasonsResponseMixin").parseUnavailableForLegalReasonsResponseMixin(a,b);if(e.success)return d("WAResultOrError").makeResult({name:"UnavailableForLegalReasonsResponse",value:e.value});var f=d("WASmaxInNewslettersItemNotFoundIQErrorResponseMixin").parseItemNotFoundIQErrorResponseMixin(a,b);if(f.success)return d("WAResultOrError").makeResult({name:"ItemNotFoundIQErrorResponse",value:f.value});var g=d("WASmaxInNewslettersSuspendedIQErrorResponseMixin").parseSuspendedIQErrorResponseMixin(a,b);if(g.success)return d("WAResultOrError").makeResult({name:"SuspendedIQErrorResponse",value:g.value});b=d("WASmaxInNewslettersRateLimitedIQErrorResponseMixin").parseRateLimitedIQErrorResponseMixin(a,b);return b.success?d("WAResultOrError").makeResult({name:"RateLimitedIQErrorResponse",value:b.value}):d("WASmaxParseUtils").errorMixinDisjunction(a,["BadRequestIQErrorResponse","UnavailableForLegalReasonsResponse","ItemNotFoundIQErrorResponse","SuspendedIQErrorResponse","RateLimitedIQErrorResponse"],[c,e,f,g,b])}g.parseSubscribeToLiveUpdatesClientErrors=a}),98); __d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseClientError",["WAResultOrError","WASmaxInNewslettersSubscribeToLiveUpdatesClientErrors","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxInNewslettersSubscribeToLiveUpdatesClientErrors").parseSubscribeToLiveUpdatesClientErrors(a,b);return!c.success?c:d("WAResultOrError").makeResult({subscribeToLiveUpdatesClientErrors:c.value})}g.parseSubscribeToLiveUpdatesResponseClientError=a}),98); __d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseServerError",["WASmaxInNewslettersInternalServerErrorIQErrorResponseMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxInNewslettersInternalServerErrorIQErrorResponseMixin").parseInternalServerErrorIQErrorResponseMixin(a,b);return!c.success?c:c}g.parseSubscribeToLiveUpdatesResponseServerError=a}),98); __d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseSuccess",["WAResultOrError","WASmaxInNewslettersIQResultResponseMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"live_updates");if(!c.success)return c;c=d("WASmaxParseUtils").attrIntRange(c.value,"duration",30,600);if(!c.success)return c;a=d("WASmaxInNewslettersIQResultResponseMixin").parseIQResultResponseMixin(a,b);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({liveUpdatesDuration:c.value},a.value))}g.parseSubscribeToLiveUpdatesResponseSuccess=a}),98); __d("WASmaxOutNewslettersNewsletterIQSetRequestMixin",["WASmaxJsx","WASmaxMixins","WASmaxOutNewslettersBaseIQSetRequestMixin","WAWap"],(function(a,b,c,d,e,f,g){function h(a){a=a.iqTo;a=d("WASmaxOutNewslettersBaseIQSetRequestMixin").mergeBaseIQSetRequestMixin(d("WASmaxJsx").smax("iq",{to:d("WAWap").JID(a),xmlns:"newsletter"}));return a}function a(a,b){b=h(b);return d("WASmaxMixins").mergeStanzas(a,b)}g.mergeNewsletterIQSetRequestMixin=a}),98); __d("WASmaxOutNewslettersSubscribeToLiveUpdatesRequest",["WASmaxJsx","WASmaxOutNewslettersNewsletterIQSetRequestMixin"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxOutNewslettersNewsletterIQSetRequestMixin").mergeNewsletterIQSetRequestMixin(d("WASmaxJsx").smax("iq",null,d("WASmaxJsx").smax("live_updates",null)),a);return a}g.makeSubscribeToLiveUpdatesRequest=a}),98); __d("WASmaxNewslettersSubscribeToLiveUpdatesRPC",["WAComms","WASmaxInNewslettersSubscribeToLiveUpdatesResponseClientError","WASmaxInNewslettersSubscribeToLiveUpdatesResponseServerError","WASmaxInNewslettersSubscribeToLiveUpdatesResponseSuccess","WASmaxOutNewslettersSubscribeToLiveUpdatesRequest","WASmaxParsingFailure","WASmaxRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,b){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=d("WASmaxOutNewslettersSubscribeToLiveUpdatesRequest").makeSubscribeToLiveUpdatesRequest(a);b=(yield d("WAComms").sendSmaxStanza(a,b));var c=d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseSuccess").parseSubscribeToLiveUpdatesResponseSuccess(b,a);if(c.success)return{name:"SubscribeToLiveUpdatesResponseSuccess",value:c.value};var e=d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseClientError").parseSubscribeToLiveUpdatesResponseClientError(b,a);if(e.success)return{name:"SubscribeToLiveUpdatesResponseClientError",value:e.value};b=d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseServerError").parseSubscribeToLiveUpdatesResponseServerError(b,a);if(b.success)return{name:"SubscribeToLiveUpdatesResponseServerError",value:b.value};throw new(d("WASmaxParsingFailure").SmaxParsingFailure)(d("WASmaxRpcUtils").errorMessageRpcParsing("SubscribeToLiveUpdates",{Success:c,ClientError:e,ServerError:b}))});return h.apply(this,arguments)}g.sendSubscribeToLiveUpdatesRPC=a}),98); __d("WAWebAbPropsBridgeApi",["WAWebCmd"],(function(a,b,c,d,e,f,g){a={addAbPropsUpdateListener:function(a){d("WAWebCmd").Cmd.on("on_ab_props_update",a)}};g.AbPropsBridgeApi=a}),98); __d("WAWebMsgAckBridge",["Promise","WALogger","WAWebAck","WAWebMsgInfoCollection","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["getHighestAcks: orphan ack "," for ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["getHighestAcks: orphan ack has 0 receipt for ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["getHighestAcks: no orphan ack found for ",""]);k=function(){return a};return a}function a(a){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=new Map();if(a.length===1){var e=(yield d("WAWebMsgInfoCollection").MsgInfoCollection.find(a[0].id));c.set(a[0].id.toString(),e)}else c=(yield d("WAWebMsgInfoCollection").MsgInfoCollection.findManyAndUpdate(a.map(function(a){return a.id})));var f=new Map();yield (h||(h=b("Promise"))).all(a.map(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var a=c.get(b.id.toString());if(!a){d("WALogger").LOG(k(),b.id);return null}var e=null,g=null;a.playedRemaining===0&&a.played.length!==0?(g=d("WAWebAck").ACK.PLAYED,e=a.played):a.readRemaining===0&&a.read.length!==0?(g=d("WAWebAck").ACK.READ,e=a.read):a.deliveryRemaining===0&&a.delivery.length!==0&&(g=d("WAWebAck").ACK.RECEIVED,e=a.delivery);if(g==null||e==null){d("WALogger").LOG(j(),b.id);return null}d("WALogger").LOG(i(),g,b.id);f.set(b.id.toString(),{ack:g,t:Math.max.apply(Math,e.map(function(a){return a.t})),to:b.to,from:b.from})});return function(b){return a.apply(this,arguments)}}()));return f});return l.apply(this,arguments)}g.getHighestAcks=a}),98); __d("WAWebAckMsgAction",["WALogger","WAWebBackendApi","WAWebMessageReceiptBatcher","WAWebMsgAckBridge","WAWebMsgCollection","WAWebWid","asyncToGeneratorRuntime","gkx"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["Assertion failed!"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["Assertion failed: processOrphanReadReceipts failed!"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["processOrphanReadReceipts: skip for msgId: ",""]);j=function(){return a};return a}function k(a,b,c){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){if(b.latestEditMsgKey&&!b.latestEditMsgKey.equals(a))return;var f=e.ack;e=e.t;a=a.remote;b.updateAck(f);c("WAWebWid").isUser(a)&&(yield d("WAWebBackendApi").frontendSendAndReceive("updateMsgInfo",{updates:[{msgKey:b.id,ack:f,participant:a,ts:e}]}))});return l.apply(this,arguments)}function a(a){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield d("WAWebMessageReceiptBatcher").receiptBatcher.runActiveBatches();a=a.map(function(a){var b;b=(b=d("WAWebMsgCollection").MsgCollection.get(a))!=null?b:d("WAWebMsgCollection").MsgCollection.getByEditMsgKey(a);if(!b){d("WALogger").LOG(j(),String(a));return null}return b}).filter(Boolean);var e=(yield d("WAWebMsgAckBridge").getHighestAcks(a));a.forEach(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{var b=e.get(a.id.toString());if(!b||b.ack===a.ack)return;return k(a.id,a,b)}catch(a){c("gkx")("26258")?d("WALogger").ERROR(i()):d("WALogger").ERROR(h()).devConsole(a).sendLogs("processOrphanReadReceipts failed")}});return function(b){return a.apply(this,arguments)}}())});return m.apply(this,arguments)}g.updateMsgAck=k;g.processOrphanReadReceipts=a}),98); __d("WAWebBizAiRepliesControlPopup.react",["fbt","WAWebAiAgentAutoReplyControlMutation","WAWebBizAiAgentStatusUtils","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebModalManager","WAWebProtobufsE2E.pb","WAWebToast.react","WAWebToastManager","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState;function a(a){var b=a.chat,e=b.id.isLid()?b.id.toJid():null,f=e==null?b.id.user:null,g=!d("WAWebBizAiAgentStatusUtils").isChatAiEnabled(b);a=l(!1);var i=a[0],j=a[1];a=g?h._(/*BTDS*/"__JHASH__JizNeZ84rpi__JHASH__"):h._(/*BTDS*/"__JHASH__ZKVhH-2MBxG__JHASH__");var m=g?h._(/*BTDS*/"__JHASH__yckPvTpX8O0__JHASH__"):h._(/*BTDS*/"__JHASH__z7LhmafYkHI__JHASH__"),n=g?h._(/*BTDS*/"__JHASH___I-W3jzFrz5__JHASH__"):h._(/*BTDS*/"__JHASH__kYpuET4mcUY__JHASH__"),o=function(a){d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{action:{dismiss:!0,actionText:c("WAWebFbtCommon")("OK")},msg:a?h._(/*BTDS*/"__JHASH__ZL3Z8EsZ2BU__JHASH__"):h._(/*BTDS*/"__JHASH__d388txc6TMg__JHASH__")}))},p=function(a){o(a),a||b.setForceDismissAiAgentBlockingBar(!0)},q=function(){j(!0);var a=g?"ENABLED":"MUTED";d("WAWebAiAgentAutoReplyControlMutation").changeAiReplyStatus(f,e,a).then(function(a){if(a.isSuccess){a=g?d("WAWebProtobufsE2E.pb").Message$CloudAPIThreadControlNotification$CloudAPIThreadControl.CONTROL_TAKEN:d("WAWebProtobufsE2E.pb").Message$CloudAPIThreadControlNotification$CloudAPIThreadControl.CONTROL_PASSED;void b.setCapiThreadControl(a)}else p(g)})["catch"](function(){p(g)});d("WAWebModalManager").ModalManager.close()},r=function(){d("WAWebModalManager").ModalManager.close()};return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,title:a,okText:n,onOK:q,okSpinner:i===!0,okButtonType:"primary",cancelText:h._(/*BTDS*/"__JHASH__BFwG2sK9h1J__JHASH__"),cancelButtonType:"secondary",onCancel:r,children:m})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizMerchantDetailsEntityTypePopup.react",["fbt","WAWebBizComplianceUtil","WAWebBusinessProfileTypes","WAWebButton.react","WAWebComplianceConstants","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFlex.react","WAWebFlexItem.react","WAWebModal.react","WAWebModalManager","WAWebRichTextField.react","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k;b=k||d("react");var l=i||(i=c("react")),m=b.useCallback,n=b.useEffect,o=b.useState,p={inputWrapper:{display:"x78zum5",alignSelf:"xamitd3",paddingEnd:"xc73u3c",$$css:!0},footer:{paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",backgroundColor:"x13x2ugz",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xyj1x25",$$css:!0},indentedOption:{marginStart:"x8vdgqj",$$css:!0},cursorPointer:{cursor:"x1ypdohk",$$css:!0}};function a(a){var b=a.legalEntityDetails,e=a.onSave;a=o(b==null?void 0:b.entityType);var f=a[0],g=a[1];a=o(b==null?void 0:b.entityTypeCustom);var i=a[0],j=a[1];a=o(b==null?void 0:b.isRegistered);var k=a[0],r=a[1];n(function(){f!==(b==null?void 0:b.entityType)&&(j(""),r(!1))},[f,b==null?void 0:b.entityType]);a=m(function(){d("WAWebModalManager").ModalManager.close(),e(f,i,k)},[f,i,k,e]);var s=m(function(a){g(a.target.value)},[]),t=m(function(a){return r(a.target.checked)},[]);t=l.jsx(q,{value:k,label:h._(/*BTDS*/"__JHASH___JjsVTYFMs___JHASH__"),inputType:"checkbox",xstyle:p.indentedOption,onChange:t,"data-testid":void 0});return l.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Box,children:l.jsxs(c("WAWebDrawer.react"),{theme:"settings",children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH___acXWFAsgOq__JHASH__"),type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:function(){return d("WAWebModalManager").ModalManager.close()}}),l.jsx(c("WAWebDrawerBody.react"),{children:l.jsx("form",babelHelpers["extends"]({className:"xqy66fx x6x52a7 xr1496l xxpdul3"},{children:l.jsxs("ol",{children:[l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.limitedLiabilityPartnership,value:f,label:h._(/*BTDS*/"__JHASH__Hf08AO7WEpL__JHASH__"),onChange:s,"data-testid":void 0}),l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.soleProprietorship,value:f,label:h._(/*BTDS*/"__JHASH__Gbc84UBJYyb__JHASH__"),onChange:s,"data-testid":void 0}),l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.partnership,value:f,label:h._(/*BTDS*/"__JHASH__NMb47BimJVH__JHASH__"),onChange:s,"data-testid":void 0}),f===d("WAWebBusinessProfileTypes").businessTypeOptions.partnership&&t,l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.publicCompany,value:f,label:h._(/*BTDS*/"__JHASH__9gptthYJ3PB__JHASH__"),onChange:s,"data-testid":void 0}),l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.privateCompany,value:f,label:h._(/*BTDS*/"__JHASH__0aunDM0dvxM__JHASH__"),onChange:s,"data-testid":void 0}),l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.other,value:f,label:h._(/*BTDS*/"__JHASH__RzUHjpiLHpP__JHASH__"),onChange:s,"data-testid":void 0}),f===d("WAWebBusinessProfileTypes").businessTypeOptions.other&&l.jsxs(l.Fragment,{children:[l.jsx("div",babelHelpers["extends"]({className:"x8vdgqj"},{"data-testid":void 0,children:l.jsx(d("WAWebRichTextField.react").RichTextField,{value:i,editable:!0,maxLength:d("WAWebComplianceConstants").COMPLIANCE_INFO_LENGTH.ENTITY_TYPE_CUSTOM,inputPlaceholder:h._(/*BTDS*/"__JHASH__zqCZvtBP0D5__JHASH__"),showRemaining:!0,onChange:function(a){a=a.text;return j(a)},theme:"text-input",lowProfile:!0})})),t]})]})}))}),l.jsx(d("WAWebFlex.react").FlexRow,{justify:"end",xstyle:p.footer,children:l.jsx(c("WAWebFlexItem.react"),{children:l.jsx(d("WAWebButton.react").WAWebButtonPrimary,{onClick:a,disabled:f===d("WAWebBusinessProfileTypes").businessTypeOptions.other&&!d("WAWebBizComplianceUtil").existsFieldIgnoreHardEnforcement(i),children:h._(/*BTDS*/"__JHASH__K-FdwULPt2J__JHASH__")})})})]})})}a.displayName=a.name+" [from "+f.id+"]";function q(a){var b=a["data-testid"];b=b===void 0?"merchant-details-entity-type-option-popup":b;b=a.id;var e=a.inputType;e=e===void 0?"radio":e;var f=a.label,g=a.onChange,h=a.value;a=a.xstyle;b=b||f;return l.jsx("li",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(p.cursorPointer,a),{children:l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[l.jsx(c("WAWebFlexItem.react"),{xstyle:p.inputWrapper,children:l.jsx("input",babelHelpers["extends"]({id:b,value:b,type:e,name:"entityType",checked:e==="radio"?h===b:h},{className:"x1ypdohk"},{onChange:g}))}),l.jsx(c("WAWebFlexItem.react"),{grow:1,children:l.jsx("label",babelHelpers["extends"]({htmlFor:b},{className:"x1lliihq x889kno x4uap5 x1a8lsjc xkhd6sd x1lkfr7t x1ypdohk"},{"data-testid":void 0,children:f}))})]})}))}q.displayName=q.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBusinessMuteWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({BusinessMute:[1376,{muteT:[2,d("WAWebWamCodegenUtils").TYPES.TIMER],muteeId:[1,d("WAWebWamCodegenUtils").TYPES.STRING]},[1,1,1],"regular"]},{BusinessMute:[]});g.BusinessMuteWamEvent=a}),98); __d("WAWebBusinessUnmuteWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({BusinessUnmute:[1378,{muteeId:[1,d("WAWebWamCodegenUtils").TYPES.STRING]},[1,1,1],"regular"]},{BusinessUnmute:[]});g.BusinessUnmuteWamEvent=a}),98); __d("WAWebClearChatPopup.react",["fbt","WAWebChatFlowTypes","WAWebChatGetters","WAWebCheckBox.react","WAWebConfirmPopup.react","WAWebFrontendChatGetters","WAWebModalManager","WAWebSendClearChatAction","WAWebText.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebWamChatPSALogger","react","stylex","useWAWebChatValues"],(function(a,b,c,d,e,f,g,h){var i,j,k;b=k||d("react");var l=i||(i=c("react")),m=b.useMemo,n=b.useState,o={section:{display:"x78zum5",fontSize:"x1f6kntn",lineHeight:"x16h55sf",$$css:!0},control:{display:"x1rg5ohu",flex:"x1okw0bk",verticalAlign:"x1uuroth",transition:"xqz5vs7",$$css:!0}};function a(a){var b=a.chat;a=d("useWAWebChatValues").useChatValues(b.id,[d("WAWebFrontendChatGetters").getKind,d("WAWebChatGetters").getIsPSA]);var e=a[0],f=a[1];a=n(function(){return!1});var g=a[0],i=a[1];a=function(){i(!g)};var k=function(){d("WAWebModalManager").ModalManager.close()},p=function(){b.pendingAction++;if(f){var a=b.msgs.last();d("WAWebWamChatPSALogger").logChatPSARemove(a,5,14)}d("WAWebSendClearChatAction").sendClear(b,g)["finally"](function(){b.pendingAction--});b.createdLocally=!1;d("WAWebModalManager").ModalManager.close()},q=m(function(){if(e!=null)switch(e){case d("WAWebChatFlowTypes").ChatKindType.Group:return h._(/*BTDS*/"__JHASH__dIxxYcw1a4Y__JHASH__");case d("WAWebChatFlowTypes").ChatKindType.Chat:return h._(/*BTDS*/"__JHASH__Yu2ZIWj2zkD__JHASH__");case d("WAWebChatFlowTypes").ChatKindType.Broadcast:return h._(/*BTDS*/"__JHASH___BK5mMiBXY7__JHASH__");case d("WAWebChatFlowTypes").ChatKindType.Newsletter:case d("WAWebChatFlowTypes").ChatKindType.Community:return""}return""},[e]);a=l.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(o.section,d("WAWebUISpacing").uiMargin.top18),{children:[l.jsx("div",babelHelpers["extends"]({"data-testid":void 0},j.props(o.control,d("WAWebUISpacing").uiMargin.end10),{children:l.jsx(d("WAWebCheckBox.react").CheckBox,{onChange:a,checked:g,id:"menu-icon-clear-chat"})})),l.jsx("label",babelHelpers["extends"]({htmlFor:"menu-icon-clear-chat"},{className:"x98rzlu x1ypdohk xqz5vs7"},{children:h._(/*BTDS*/"__JHASH__zRe4njGKpc2__JHASH__")}))]}));a=l.jsxs("div",{children:[l.jsx(d("WAWebText.react").WAWebTextMuted,{as:"p",children:h._(/*BTDS*/"__JHASH__K_dsWSPgA3l__JHASH__")}),a]});return l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:q,onOK:p,okText:h._(/*BTDS*/"__JHASH__SBWNZPNFYA2__JHASH__"),okButtonType:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?"solid-warning":void 0,onCancel:k,children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("useWAWebLexicalOnContentChange",["LexicalComposerContext","react","useWAWebStableCallback"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useEffect;function a(a){var b=d("LexicalComposerContext").useLexicalComposerContext(),e=b[0],f=c("useWAWebStableCallback")(a);i(function(){var a=e.registerTextContentListener(function(a){f(a)});return a},[e,f])}g.useLexicalOnContentChange=a}),98); __d("WAWebCommandPaletteController",["Lexical","LexicalComposer","LexicalComposerContext","WAWebCommandPaletteInput.react","WAWebFlex.react","WAWebLexicalUtils","WAWebModalManager","WAWebNoop","WAWebToArray","err","react","useWAWebLexicalEvent","useWAWebLexicalOnContentChange"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react"));e=b.createContext;var k=b.useContext,l=b.useEffect,m=b.useMemo,n=b.useState,o={container:{borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",backgroundColor:"x1x0w6k2",color:"x6s6g2w",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},pluginContainer:{maxHeight:"x12f24lm",$$css:!0}},p=e(null);function q(){var a=k(p);if(a==null)throw c("err")("useCommandPalette must be used inside of a CommandPaletteContext");return a}function r(a){var b=a.children,c=a.defaultPlugin,e=a.triggeredPlugins;a=n([]);var f=a[0],g=a[1];a=n("");var h=a[0],i=a[1];a=d("LexicalComposerContext").useLexicalComposerContext();var k=a[0],m=f[f.length-1],o=function(a){d("WAWebLexicalUtils").setTextContent(k,a),i(a)},q=function(a,b){b=(b=b==null?void 0:b.input)!=null?b:"";o(b);g([].concat(f,[{plugin:a,input:b}]))},r=function(a){var b=f.slice(0,f.length-1),c=b[b.length-1],d="";c!=null&&((a==null?void 0:a.input)!=null?d=a.input:c.plugin.restoreInputOnBack===!0&&(d=c.input));o(d);g(b)};a=function(){return g([])};var s=function(a,b){b=(b=b==null?void 0:b.input)!=null?b:"";o(b);g([{plugin:a,input:b}])},t=function(){d("WAWebModalManager").ModalManager.close()};l(function(){if(f.length===0){var a=e==null?void 0:e.find(function(a){var b=d("WAWebToArray").toArray(a.trigger);if(b.includes(h))return a});a!=null&&q(a.plugin)}},[h]);d("useWAWebLexicalEvent").useLexicalCommandListener(k,d("Lexical").KEY_BACKSPACE_COMMAND,function(a){h===""&&(a.preventDefault(),r());return!1});d("useWAWebLexicalOnContentChange").useLexicalOnContentChange(function(a){m!=null&&(m.input=a),i(a)});s={input:h,pushPlugin:q,popPlugin:r,clearStack:a,replaceStack:s,closeModal:t,activePlugin:(a=m==null?void 0:m.plugin)!=null?a:c,pluginStack:f,pluginList:e};return j.jsx(p.Provider,{value:s,children:b})}r.displayName=r.name+" [from "+f.id+"]";function s(){var a=q();a=a.activePlugin;return a!=null?j.jsx(d("WAWebFlex.react").FlexColumn,{align:"stretch",xstyle:o.pluginContainer,children:j.jsx(a.Component,{})}):null}s.displayName=s.name+" [from "+f.id+"]";function a(a){var b=a.defaultPlugin;a=a.triggeredPlugins;var e=m(function(){return{namespace:"CommandPaletteInput",onError:c("WAWebNoop")}},[]);return j.jsx(d("WAWebFlex.react").FlexColumn,{align:"stretch",xstyle:o.container,children:j.jsx(d("LexicalComposer").LexicalComposer,{initialConfig:e,children:j.jsxs(r,{defaultPlugin:b,triggeredPlugins:a,children:[j.jsx(d("WAWebCommandPaletteInput.react").CommandPaletteInput,{}),j.jsx(s,{})]})})})}a.displayName=a.name+" [from "+f.id+"]";g.useCommandPalette=q;g.CommandPalette=a}),98); __d("WAWebCommandPaletteInput.react",["LexicalErrorBoundary","LexicalPlainTextPlugin","WAWebCommandPaletteController","WAWebFlex.react","WAWebMultilinePlugin","WAWebRichTextInputContentEditable.react","WAWebSearchIcon.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={container:{height:"xsdox4t",boxSizing:"x9f619",$$css:!0},relative:{position:"x1n2onr6",$$css:!0},contentEditable:{width:"xh8yej3",$$css:!0},prefix:{display:"x78zum5",alignItems:"x6s0dn4",color:"x1r12vwb",$$css:!0},prefixSeparator:{display:"x78zum5",fontWeight:"x1xlr1w8",$$css:!0}};function a(){var a=d("WAWebCommandPaletteController").useCommandPalette(),b=a.activePlugin;b=(b=b==null?void 0:b.placeholder)!=null?b:"Search chats, messages, settings, and more";a=a.pluginStack.length?j.jsx("div",babelHelpers["extends"]({className:"x78zum5 x1q0g3np x6s0dn4"},{children:a.pluginStack.filter(function(a){return a.plugin.shortName}).map(function(a){return j.createElement("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props([k.prefix,d("WAWebUISpacing").uiMargin.start8]),{key:a.plugin.id}),j.jsx("div",babelHelpers["extends"]({className:"x2aouup xlyipyv x6ikm8r x10wlt62 xuxw1ft"},{children:a.plugin.shortName})),j.jsx("div",babelHelpers["extends"]({},i.props([k.prefixSeparator,d("WAWebUISpacing").uiPadding.start8]),{children:"/"})))})})):null;return j.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",padding:[8,16],xstyle:k.container,children:[a==null?j.jsx(d("WAWebSearchIcon.react").SearchIcon,{}):a,j.jsx(d("WAWebFlex.react").FlexRow,{grow:1,xstyle:k.relative,marginStart:8,children:j.jsx(d("LexicalPlainTextPlugin").PlainTextPlugin,{contentEditable:j.jsx(d("WAWebRichTextInputContentEditable.react").InputContentEditable,{xstyle:[k.contentEditable,d("WAWebUISpacing").uiMargin.start4],focusOnMount:!0,placeholder:b}),ErrorBoundary:d("LexicalErrorBoundary").LexicalErrorBoundary})}),j.jsx(d("WAWebMultilinePlugin").MultilinePlugin,{multiline:!1})]})}a.displayName=a.name+" [from "+f.id+"]";g.CommandPaletteInput=a}),98); __d("WAWebThemeCommandPalettePlugin",["WAWebCommandPaletteController","WAWebLexicalWDSMenu.react","WAWebMenuItems.react","WAWebSettingsThemeIcon.react","WAWebSystemTheme","WAWebThemeContext","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useContext;function a(){var a=d("WAWebCommandPaletteController").useCommandPalette(),b=k(d("WAWebThemeContext").ThemeContext),e=b.systemThemeMode?"system":b.theme,f=function(d){d==="system"?(b.setSystemThemeMode(!0),b.setTheme(c("WAWebSystemTheme").getCurrentTheme())):(b.setSystemThemeMode(!1),b.setTheme(d)),a.closeModal()},g=j.jsx(d("WAWebMenuItems.react").SelectMenuItem,{optionId:"dark",primary:"Dark",onSelect:function(){return f("dark")}},"dark"),h=j.jsx(d("WAWebMenuItems.react").SelectMenuItem,{optionId:"light",primary:"Light",onSelect:function(){return f("light")}},"light"),i=j.jsx(d("WAWebMenuItems.react").SelectMenuItem,{optionId:"system",primary:"System",onSelect:function(){return f("system")}},"system"),l=[];b.theme==="light"?l=[g,h,i]:l=[h,g,i];return j.jsx(d("WAWebLexicalWDSMenu.react").LexicalWDSMenu,{forceSelection:!0,children:j.jsx(d("WAWebMenuItems.react").SelectMenuItemGroup,{initialSelection:e,children:l.map(function(a){return a})})})}a.displayName=a.name+" [from "+f.id+"]";b={plugin:{id:"ThemeCommandPalettePlugin",placeholder:"Choose a theme",shortName:j.jsx(d("WAWebSettingsThemeIcon.react").SettingsThemeIcon,{width:16,height:16}),Component:a},trigger:"/theme",doc:{name:"App Theme",description:"Switch between the light and dark themes"}};g.ThemeCommandPalettePlugin=b}),98); __d("WAWebCommandPalettePlugins",["WAWebThemeCommandPalettePlugin","cr:8750","gkx"],(function(a,b,c,d,e,f,g){function a(){var a=[d("WAWebThemeCommandPalettePlugin").ThemeCommandPalettePlugin];if(!c("gkx")("26258")){var e;e=(e=b("cr:8750")==null?void 0:b("cr:8750").filter(Boolean))!=null?e:[];a.unshift.apply(a,e)}return a}g.getAvailablePlugins=a}),98); __d("WAWebContactCell",["WAWebBizGatingUtils","WAWebChatStatus","WAWebChatTextStatusWrapper","WAWebContactGetters","WAWebContactImage.react","WAWebName.react","WAWebTextStatusGatingUtils","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=i.jsx(d("WAWebName.react").Name,{contact:a,showBusinessCheckmark:d("WAWebContactGetters").getShowBusinessCheckmarkAsPrimary(a),showLabelIcon:d("WAWebBizGatingUtils").canDisplayLabel(),titlify:!0,ellipsify:!0,you:!0}),e;d("WAWebTextStatusGatingUtils").receiveTextStatusEnabled()?e=i.jsx(c("WAWebChatTextStatusWrapper"),{contactId:a.id}):e=i.jsx(c("WAWebChatStatus"),{id:a.id});a=i.jsx(d("WAWebContactImage.react").ContactImage,{contact:a,size:40});return{primary:b,secondary:e,detailLeft:a}}g.getContactCellContent=a}),98); __d("WAWebContact.MenuItem",["WAWebContactCell","WAWebMenuItems.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.contact;a=a.onSelect;return i.jsx(d("WAWebMenuItems.react").ActionMenuItem,babelHelpers["extends"]({optionId:"contact-"+b.id.toString(),onSelect:a},d("WAWebContactCell").getContactCellContent(b)))}a.displayName=a.name+" [from "+f.id+"]";g.ContactMenuItem=a}),98); __d("WAWebContactSearchModel",["WAWebContactCollection","WAWebContactGetters","WAWebPhoneNumberSearch","WAWebSearchModel","WAWebSearchUtils"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.id="ContactSearch",b)||babelHelpers.assertThisInitialized(c)}var c=b.prototype;c.queryFn=function(a,b){var c=d("WAWebSearchUtils").normalizeString(a),e=d("WAWebPhoneNumberSearch").numberSearch(c);b=d("WAWebSearchUtils").filterPaginate(d("WAWebContactCollection").ContactCollection.getModelsArray(),function(b){var f=d("WAWebContactGetters").getIsUser(b);return a===""&&f?!0:f&&b.searchMatch(c,e)},b==null?void 0:b.pagination);var f=b.results;b=b.pagination;f=f.map(function(a){return{id:a.id.toString(),type:"contact",data:a}});return{type:"contact",results:f,pagination:b}};return b}(d("WAWebSearchModel").Search);g.ContactSearch=a}),98); __d("WAWebSearchCollection",[],(function(a,b,c,d,e,f){a=function(){function a(a){this.models=[],this.models=a}var b=a.prototype;b.query=function(a,b){var c;b!=null&&(b.pageLengthPerModel!=null&&(c={pagination:{pageLength:b.pageLengthPerModel,page:0}}));return this.models.map(function(b){b=b.query(a,c);return b}).filter(Boolean)};return a}();f.SearchCollection=a}),66); __d("WAWebSparklesIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="sparkles";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=25;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 25",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M6.96618 14.136C6.90537 13.8719 6.74322 13.75 6.49997 13.75C6.25672 13.75 6.07429 13.8922 6.03376 14.136C5.46619 17.1834 5.48646 17.1631 2.42568 17.7726C2.14189 17.8335 2 18.0164 2 18.2398C2 18.4836 2.14189 18.6665 2.42568 18.7274C5.48646 19.3369 5.38511 19.3572 6.03376 22.3437C6.07429 22.5875 6.25672 22.75 6.49997 22.75C6.76347 22.75 6.90537 22.6078 6.96618 22.3437C7.61483 19.3572 7.51347 19.3369 10.5743 18.7274C10.8377 18.6665 11 18.5039 11 18.2398C11 17.996 10.8377 17.8335 10.5743 17.7726C7.51724 17.2044 7.51348 17.1835 6.9682 14.1472L6.96618 14.136Z",fill:"currentColor",style:{fillOpacity:1}}),j.jsx("path",{d:"M15.1417 3.39253C15.1195 2.99372 14.854 2.75 14.4779 2.75C14.146 2.75 13.8805 2.99372 13.8585 3.34822C13.1506 8.57718 12.9956 8.55501 7.57521 9.61853C7.24331 9.66284 7 9.90658 7 10.2611C7 10.6156 7.24331 10.8593 7.57521 10.9036C12.9956 11.6791 13.1725 11.8342 13.8585 17.1296C13.8805 17.5063 14.146 17.75 14.4779 17.75C14.854 17.75 15.1195 17.5063 15.1417 17.1075C15.7833 11.9007 16.0708 11.9228 21.4248 10.9036C21.7567 10.8371 22 10.6156 22 10.2611C22 9.88441 21.7567 9.66284 21.3362 9.61853C16.0266 8.73228 15.7833 8.59932 15.1417 3.39253Z",fill:"currentColor",style:{fillOpacity:1}})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SparklesIcon=a}),98); __d("WAWebDefaultCommandPalettePlugin",["Promise","WAWebChatCollection","WAWebChatListMenuItem.react","WAWebChatMsgIcon.react","WAWebChatSearchModel","WAWebChatlistUtils","WAWebCommandPaletteController","WAWebContact.MenuItem","WAWebContactSearchModel","WAWebContactsIcon.react","WAWebFlex.react","WAWebFrontendChatGetters","WAWebKeyboardShortcut.react","WAWebLexicalWDSMenu.react","WAWebNoop","WAWebPanelRecentIcon.react","WAWebSearchCollection","WAWebSettingSearchModel","WAWebSettings.MenuItem","WAWebSettingsIcon.react","WAWebSparklesIcon.react","WAWebStaticMenuItem.react","WAWebSvgComponentBase","WAWebText.react","react"],(function(a,b,c,d,e,f,g){var h,i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useEffect,m=e.useMemo,n=e.useState;function o(a){var b=a.icon;a=a.title;return k.jsx(d("WAWebStaticMenuItem.react").MenuHeading,{children:k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[k.jsx(d("WAWebFlex.react").FlexItem,{paddingEnd:8,children:b}),a]})})}o.displayName=o.name+" [from "+f.id+"]";function p(){var a=d("WAWebCommandPaletteController").useCommandPalette(),b=3,e=0,f=[],g=d("WAWebChatCollection").ChatCollection.getModelsArray();for(var h=0;h<g.length;h++){var i=g[h];!i.active&&d("WAWebFrontendChatGetters").getShouldAppearInList(i)&&(f.push(i),i.pin==null&&e++);if(e===b)break}i=f.sort(function(a,b){return((b=b.t)!=null?b:0)-((b=a.t)!=null?b:0)}).slice(0,b);return k.jsxs(d("WAWebLexicalWDSMenu.react").LexicalWDSMenu,{forceSelection:!0,children:[k.jsx(o,{title:"Recent Chats",icon:k.jsx(d("WAWebPanelRecentIcon.react").PanelRecentIcon,{})}),i.map(function(b){return k.jsx(d("WAWebChatListMenuItem.react").ChatMenuItem,{optionId:"recent-chat-"+b.id.toString(),chat:b,onSelect:function(){d("WAWebChatlistUtils").openExistingChat(b.id)["catch"](c("WAWebNoop")),a.closeModal()}},b.id.toString())})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.section,e=d("WAWebCommandPaletteController").useCommandPalette();switch(b.type){case"setting":return k.jsxs(k.Fragment,{children:[k.jsx(o,{title:"Settings",icon:k.jsx(d("WAWebSettingsIcon.react").SettingsIcon,{width:16,height:16,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL})}),k.jsx(d("WAWebSettings.MenuItem").SettingsMenu,{settings:b.results.map(function(a){return a.data}),onSelect:function(a){d("WAWebSettings.MenuItem").openSettingDrawer(a.step),e.closeModal()}})]});case"chat":return k.jsxs(k.Fragment,{children:[k.jsx(o,{title:"Chats",icon:k.jsx(d("WAWebChatMsgIcon.react").ChatMsgIcon,{width:24,height:24,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL})}),b.results.map(function(a){return k.jsx(d("WAWebChatListMenuItem.react").ChatMenuItem,{optionId:"context-menu-chat-"+a.id,chat:a.data,onSelect:function(){d("WAWebChatlistUtils").openExistingChat(a.data.id)["catch"](c("WAWebNoop")),e.closeModal()}},b.type+"-"+a.id)})]});case"contact":return k.jsxs(k.Fragment,{children:[k.jsx(o,{title:"Contacts",icon:k.jsx(d("WAWebContactsIcon.react").ContactsIcon,{width:24,height:24,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL})}),b.results.map(function(a){return k.jsx(d("WAWebContact.MenuItem").ContactMenuItem,{contact:a.data,onSelect:function(){d("WAWebChatlistUtils").openOrCreateLatestChat(a.data.id)["catch"](c("WAWebNoop")),e.closeModal()}},b.type+"-"+a.id)})]});default:return}}q.displayName=q.name+" [from "+f.id+"]";function r(){var a=d("WAWebCommandPaletteController").useCommandPalette(),b;if(a.pluginList!=null){a=a.pluginList.find(function(a){return a.plugin.id==="HelpCommandPalettePlugin"});a!=null&&(b=function(){return k.jsxs(k.Fragment,{children:[k.jsx(d("WAWebStaticMenuItem.react").MenuSeparator,{}),k.jsxs(d("WAWebFlex.react").FlexRow,{padding:[8,24,16,24],align:"center",gap:16,children:[k.jsx(d("WAWebSparklesIcon.react").SparklesIcon,{width:32,height:32,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL}),k.jsxs(d("WAWebText.react").WAWebTextMuted,{children:["Type ",k.jsx(d("WAWebKeyboardShortcut.react").KeyboardKey,{value:"/?"})," to see available plugins"]})]})]})})}return k.jsxs(k.Fragment,{children:[k.jsx(p,{}),b!=null&&k.jsx(b,{})]})}r.displayName=r.name+" [from "+f.id+"]";function a(){var a=d("WAWebCommandPaletteController").useCommandPalette(),e=n([]),f=e[0],g=e[1],i=m(function(){return new(d("WAWebSearchCollection").SearchCollection)([new(d("WAWebSettingSearchModel").SettingSearch)({maxPageLength:3}),new(d("WAWebChatSearchModel").ChatSearch)({maxPageLength:4}),new(d("WAWebContactSearchModel").ContactSearch)({maxPageLength:4})])},[]);l(function(){(h||(h=b("Promise"))).all(i.query(a.input)).then(function(a){return g(a)})["catch"](c("WAWebNoop"))},[i,a.input]);return a.input===""?k.jsx(r,{}):k.jsx(d("WAWebLexicalWDSMenu.react").LexicalWDSMenu,{forceSelection:!0,children:f.map(function(a){return a.results.length>0&&k.jsx(q,{section:a},a.type)})})}a.displayName=a.name+" [from "+f.id+"]";e={id:"DefaultCommand",placeholder:"Search anything",shortName:null,Component:a};g.DefaultCommandPalettePlugin=e}),98); __d("WAWebHelpCommandPalettePlugin",["WAWebCommandPaletteController","WAWebDevOnlyBadge.react","WAWebFlex.react","WAWebLexicalWDSMenu.react","WAWebMenuItems.react","WAWebToArray","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={trigger:{backgroundColor:"x18ba5f9",color:"xzwifym",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0}};function k(a){a=a.trigger;a=d("WAWebToArray").toArray(a);return i.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",align:"center",padding:8,xstyle:j.trigger,children:a[0]})}k.displayName=k.name+" [from "+f.id+"]";function a(a){return{plugin:{id:"HelpCommandPalettePlugin",placeholder:"Search extra command palette functionality",shortName:"?",Component:function(){var b=d("WAWebCommandPaletteController").useCommandPalette();return i.jsx(d("WAWebLexicalWDSMenu.react").LexicalWDSMenu,{children:a.map(function(a){return a.doc!=null?i.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:a.plugin.id,detailRight:i.jsx(k,{trigger:a.trigger}),primary:a.doc.isDevOnly===!0?i.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:a.doc.name}):a.doc.name,secondary:a.doc.description,onSelect:function(){return b.replaceStack(a.plugin)}},a.plugin.id):null}).filter(Boolean)})}},trigger:["/?","/help"],doc:{name:"Help",description:"Discover all of the things the Command Palette can do"}}}g.buildHelpCommand=a}),98); __d("WAWebCommandPalette.react",["WAWebABProps","WAWebChatlistPanel.react","WAWebChatlistPanelMode","WAWebCmd","WAWebCommandPaletteController","WAWebCommandPalettePlugins","WAWebCommandPaletteUtils","WAWebDefaultCommandPalettePlugin","WAWebHelpCommandPalettePlugin","WAWebModal.react","WAWebModalManager","WAWebSettingsGetters","react","useWAWebListener","useWAWebSettingsValues"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useEffect;function l(){var a=d("WAWebCommandPalettePlugins").getAvailablePlugins(),b=d("WAWebHelpCommandPalettePlugin").buildHelpCommand(a);return{defaultPlugin:d("WAWebDefaultCommandPalettePlugin").DefaultCommandPalettePlugin,triggeredPlugins:[].concat(a,[b])}}function m(a){a=a.plugins;a=a==null?l():a;var b=a.defaultPlugin;a=a.triggeredPlugins;return j.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.CommandPaletteV2,children:j.jsx(d("WAWebCommandPaletteController").CommandPalette,{defaultPlugin:b,triggeredPlugins:a})})}m.displayName=m.name+" [from "+f.id+"]";function a(a){d("WAWebModalManager").ModalManager.open(j.jsx(m,{plugins:a}))}function n(){var a=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2]);a=a[0];return j.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.CommandPalette,children:j.jsx(d("WAWebChatlistPanel.react").ChatlistPanel,{showArchiveV2:a,mode:c("WAWebChatlistPanelMode").CommandPalette})})}n.displayName=n.name+" [from "+f.id+"]";function b(){k(function(){d("WAWebCommandPaletteUtils").setIsCommandPaletteOpen(!0);return function(){d("WAWebCommandPaletteUtils").setIsCommandPaletteOpen(!1)}},[]);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"close_command_palette",function(){return d("WAWebModalManager").ModalManager.close()});return d("WAWebABProps").getABPropConfigValue("web_command_palette_plugins")?j.jsx(m,{}):j.jsx(n,{})}b.displayName=b.name+" [from "+f.id+"]";g.openCommandPaletteV2Modal=a;g.CommandPaletteModal=b}),98); __d("WAWebCatalogLogEvents",["$InternalEnum","WAWebBizGatingUtils","WAWebSmbUserJourneyWamEvent","WAWebWamEnumEntryPoint","WAWebWamEnumSmbFeatureNameEnum","WAWebWamEnumSmbUserActionTypeEnum","WAWebWamEnumSurfaceType"],(function(a,b,c,d,e,f,g){var h=b("$InternalEnum")({Country:"country",Continue:"continue",Back:"back",Save:"save"});function a(a){new(d("WAWebSmbUserJourneyWamEvent").SmbUserJourneyWamEvent)({smbUserActionType:d("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.VIEW,surface:a?d("WAWebWamEnumSurfaceType").SURFACE_TYPE.ADD_ITEM:d("WAWebWamEnumSurfaceType").SURFACE_TYPE.EDIT_ITEM,smbFeatureName:d("WAWebWamEnumSmbFeatureNameEnum").SMB_FEATURE_NAME_ENUM.CATALOG}).commit()}function c(){if(!d("WAWebBizGatingUtils").isCountryOfOriginEnabled())return;new(d("WAWebSmbUserJourneyWamEvent").SmbUserJourneyWamEvent)({smbUserActionType:d("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.CLICK,surface:d("WAWebWamEnumSurfaceType").SURFACE_TYPE.PRODUCT_DETAILS,entryPoint:d("WAWebWamEnumEntryPoint").ENTRY_POINT.ADD_EDIT_PRODUCT,smbFeatureName:d("WAWebWamEnumSmbFeatureNameEnum").SMB_FEATURE_NAME_ENUM.CATALOG,userActionTarget:h.Save}).commit()}function e(){new(d("WAWebSmbUserJourneyWamEvent").SmbUserJourneyWamEvent)({smbUserActionType:d("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.VIEW,surface:d("WAWebWamEnumSurfaceType").SURFACE_TYPE.ORIGIN_COUNTRY,entryPoint:d("WAWebWamEnumEntryPoint").ENTRY_POINT.ADD_EDIT_PRODUCT,smbFeatureName:d("WAWebWamEnumSmbFeatureNameEnum").SMB_FEATURE_NAME_ENUM.CATALOG}).commit()}function f(){new(d("WAWebSmbUserJourneyWamEvent").SmbUserJourneyWamEvent)({smbUserActionType:d("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.VIEW,surface:d("WAWebWamEnumSurfaceType").SURFACE_TYPE.IMPORTER_COUNTRY,entryPoint:d("WAWebWamEnumEntryPoint").ENTRY_POINT.ADD_EDIT_PRODUCT,smbFeatureName:d("WAWebWamEnumSmbFeatureNameEnum").SMB_FEATURE_NAME_ENUM.CATALOG}).commit()}function i(a,b,c){if(!d("WAWebBizGatingUtils").isCountryOfOriginEnabled())return;c=c!=null&&a===d("WAWebWamEnumSurfaceType").SURFACE_TYPE.ORIGIN_COUNTRY?JSON.stringify(c):void 0;new(d("WAWebSmbUserJourneyWamEvent").SmbUserJourneyWamEvent)({smbUserActionType:d("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.CLICK,surface:a,entryPoint:d("WAWebWamEnumEntryPoint").ENTRY_POINT.ADD_EDIT_PRODUCT,smbFeatureName:d("WAWebWamEnumSmbFeatureNameEnum").SMB_FEATURE_NAME_ENUM.CATALOG,userActionTarget:b,extraAttributes:c}).commit()}g.SmbUserActionTargetEnum=h;g.logAddEditProductDetailsViewed=a;g.logSMBAddEditProductDetailsSaveClicked=c;g.logAddEditCountryOfOriginViewed=e;g.logAddEditImporterCountryListViewed=f;g.logSMBCountryListClicked=i}),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(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useCallback,m=b.useState,n={inputWrapper:{display:"x78zum5",alignSelf:"xamitd3",paddingEnd:"xc73u3c",$$css:!0},formWrapper:{overflowY:"x1odjw0f",$$css:!0},search:{backgroundColor:"x1y4abq1",paddingTop:"x889kno",paddingEnd:"x6x52a7",paddingBottom:"x1a8lsjc",paddingStart:"xxpdul3",$$css:!0},description:{color:"x40yjcy",fontSize:"x1jchvi3",lineHeight:"xa7kkou",$$css:!0},footer:{paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",backgroundColor:"x13x2ugz",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xyj1x25",$$css:!0}};function a(a){var b=a.countries,e=a.countryCode,f=a.description,g=a.lastUsedCountryCode,i=a.onSave,j=a.surface;a=a.title;var p=m(""),q=p[0],r=p[1];p=m(e||"");var s=p[0],t=p[1];e=l(function(){d("WAWebCatalogLogEvents").logSMBCountryListClicked(j,d("WAWebCatalogLogEvents").SmbUserActionTargetEnum.Continue,{country:s}),d("WAWebModalManager").ModalManager.close(),i(s)},[s,i]);var u=l(function(a){d("WAWebCatalogLogEvents").logSMBCountryListClicked(j,d("WAWebCatalogLogEvents").SmbUserActionTargetEnum.Country),t(a.target.value)},[]);return k.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Box,children:k.jsxs(c("WAWebDrawer.react"),{theme:"settings",children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:a,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:function(){j===d("WAWebWamEnumSurfaceType").SURFACE_TYPE.ORIGIN_COUNTRY&&d("WAWebCatalogLogEvents").logSMBCountryListClicked(j,d("WAWebCatalogLogEvents").SmbUserActionTargetEnum.Back),d("WAWebModalManager").ModalManager.close()}}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(d("WAWebFlex.react").FlexColumn,{align:"stretch",children:[k.jsx(c("WAWebFlexItem.react"),{shrink:0,xstyle:n.search,children:k.jsx(d("WAWebBusinessProfileIconSection.react").IconSection,{Icon:d("WAWebSearchIcon.react").SearchIcon,theme:d("WAWebBusinessProfileIconSection.react").IconSectionTheme.NoMarginSmallGutter,content:k.jsx(d("WAWebRichTextField.react").RichTextField,{value:q,editable:!0,inputPlaceholder:h._(/*BTDS*/"__JHASH__mTVgM6PYlov__JHASH__"),onChange:function(a){return r(a.text)},focusOnMount:!0,theme:"text-input",lowProfile:!0})})}),k.jsx(c("WAWebFlexItem.react"),{shrink:0,xstyle:[n.description,d("WAWebUISpacing").uiPadding.vert10,d("WAWebUISpacing").uiPadding.horiz30],children:f}),k.jsx(c("WAWebFlexItem.react"),{xstyle:n.formWrapper,grow:1,children:k.jsx("form",babelHelpers["extends"]({className:"x123j3cw x4uap5 xs9asl8 xkhd6sd"},{children:k.jsx("ol",{children:b.filter(function(a){var b=a[0];a=a[1];return b.toLowerCase().includes(q.toLowerCase())||a.toString().toLowerCase().includes(q.toLowerCase())}).map(function(a){var b=a[0];a=a[1];return k.jsx(o,{selectedCountryCode:s,lastUsedCountryCode:g,countryCode:b,label:a,onChange:u},b)})})}))})]})}),k.jsx(d("WAWebFlex.react").FlexRow,{justify:"end",xstyle:n.footer,children:k.jsx(c("WAWebFlexItem.react"),{children:k.jsx(d("WAWebButton.react").WAWebButtonPrimary,{onClick:e,children:h._(/*BTDS*/"__JHASH__K-FdwULPt2J__JHASH__")})})})]})})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.countryCode,e=a["data-testid"];e=e===void 0?"country-selector-popup-option":e;e=a.label;var f=a.lastUsedCountryCode,g=a.onChange;a=a.selectedCountryCode;return k.jsx("li",babelHelpers["extends"]({className:"x889kno x6x52a7 x1a8lsjc xxpdul3 x1ypdohk"},{children:k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[k.jsx(c("WAWebFlexItem.react"),{xstyle:n.inputWrapper,children:k.jsx("input",babelHelpers["extends"]({id:b,value:b,type:"radio",name:"countryCode",checked:b===a},{className:"x1ypdohk"},{onChange:g}))}),k.jsxs(c("WAWebFlexItem.react"),{grow:1,children:[k.jsx("label",babelHelpers["extends"]({htmlFor:b},{className:"x1lliihq x1lkfr7t x1ypdohk"},{"data-testid":void 0,children:e})),f===b&&k.jsx("span",babelHelpers["extends"]({className:"x1lliihq x40yjcy x1jchvi3 xa7kkou"},{children:c("fbs")._(/*BTDS*/"__JHASH__zMOSQodpjj-__JHASH__")}))]})]})}))}o.displayName=o.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebGroupsV4InviteFlowLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingConfirmPopup.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebGroupsV4InviteFlow.react").__setRef("WAWebGroupsV4InviteFlowLoadable").load());return a}),"GroupsV4InviteFlow");d=c("react-loadable")({loader:a,loading:function(a){return j.jsx(c("WAWebLoadingConfirmPopup.react"),{okText:h._(/*BTDS*/"__JHASH__9lHmApGpjly__JHASH__"),error:Boolean(a.error)})}});g.requireBundle=a;g.GroupsV4InviteFlowLoadable=d}),226); __d("WAWebCheckRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="check-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M10.2464 15.8464C10.4417 16.0417 10.7583 16.0417 10.9536 15.8464L16.95 9.85C17.3366 9.4634 17.3366 8.8366 16.95 8.45C16.5634 8.0634 15.9366 8.0634 15.55 8.45L10.6 13.4L8.45 11.25C8.0634 10.8634 7.4366 10.8634 7.05 11.25C6.6634 11.6366 6.6634 12.2634 7.05 12.65L10.2464 15.8464ZM5 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 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V5H5V19Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CheckRefreshedIcon=a}),98); __d("WAWebDebugParticipantsListModal.react",["WAWebApiContact","WAWebConfirmPopup.react","WAWebDevOnlyBadge.react","WAWebDropdownItem.react","WAWebModalManager","WAWebWidFactory","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.participants;return i.jsx(d("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){return d("WAWebModalManager").ModalManager.open(i.jsx(j,{participants:b}))},children:i.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Show participants"})})}a.displayName=a.name+" [from "+f.id+"]";function j(a){a=a.participants;a=a.map(function(a){return d("WAWebWidFactory").toUserWid(a.id)});var b=a.filter(function(a){return!a.isLid()});a=a.filter(function(a){return a.isLid()});return i.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:"Debug Participants List",okText:"Close",onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:i.jsxs("div",babelHelpers["extends"]({className:"x1jn0hjm x14aock7 x1rife3k"},{children:[i.jsxs("h2",{children:["Phone JIDs (",b.length,")"]}),b.map(function(a,b){return i.jsx("div",{children:a.toString()},b)}),i.jsx("br",{}),i.jsxs("h2",{children:["LID JIDs (",a.length,")"]}),a.map(function(a,b){return i.jsx("div",{children:k(a)},b)})]}))})}j.displayName=j.name+" [from "+f.id+"]";function k(a){var b;b=(b=(b=d("WAWebApiContact").getPhoneNumber(a))==null?void 0:b.toString())!=null?b:"N/A";return i.jsxs(i.Fragment,{children:[i.jsx("span",babelHelpers["extends"]({className:"x1rg5ohu x1oysuqx"},{children:a.toString()})),i.jsxs("span",{children:["phone: ",b]})]})}g.DebugParticipantsListMenu=a}),98); __d("WAWebConversationMenus",["fbt","WAWebChatAssignmentLogEvents.flow","WAWebChatAssignmentUtils","WAWebChatAssignmentWithContainerIcon.react","WAWebChatContextMenuItemEditList.react","WAWebChatContextMenuItemLock.react","WAWebChatEphemerality","WAWebChatGetters","WAWebChatGroupUtils","WAWebCheckRefreshedIcon.react","WAWebClearRefreshedIcon.react","WAWebCloseCircleRefreshedIcon.react","WAWebCmd","WAWebCopyRefreshedIcon.react","WAWebCopyToClipboard","WAWebCopyUtils","WAWebDebugParticipantsListModal.react","WAWebDeleteMenuItem.react","WAWebDevOnlyBadge.react","WAWebDisappearingMessagesRefreshedIcon.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebFavoriteRefreshedIcon.react","WAWebFrontendChatGetters","WAWebGroupType","WAWebInboxFiltersGatingUtils","WAWebInfoRefreshedIcon.react","WAWebL10NHelpers","WAWebLeaveCommunityModal.react","WAWebListsGatingUtils","WAWebModalManager","WAWebMuteMenuItem.react","WAWebProtobufsE2E.pb","WAWebSendNonMessageDataRequest","WAWebSpamConstants","WAWebStateUtils","WAWebSuspendedGroupUtils","WAWebSyncGatingUtils","WAWebUIRefreshGatingUtils","WAWebUnfavoriteRefreshedIcon.react","WAWebWamEnumEphemeralSettingEntryPointType","WAWebWamEnumFavoritesUpdateEntryPoint","gkx","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function k(a){if(d("WAWebChatGroupUtils").isGroupExitExperienceEnabledForChat(a))d("WAWebSuspendedGroupUtils").openLeaveAndReportGroupModal(a,d("WAWebSpamConstants").SpamFlow.GroupOverflowMenuLeaveReportUpsell);else{var b;b=(b=a.groupMetadata)==null?void 0:b.getParentGroupChat();b!=null&&d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(a)?d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebLeaveCommunityModal.react").LeaveCommunityModal,{chat:b})):d("WAWebCmd").Cmd.deleteOrExitChat(a)}}function a(a,b,e){var f,g=[],i=function(){d("WAWebCmd").Cmd.ephemeralDrawer(d("WAWebStateUtils").unproxy(a),!1,d("WAWebWamEnumEphemeralSettingEntryPointType").EPHEMERAL_SETTING_ENTRY_POINT_TYPE.CHAT_OVERFLOW)},l=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();d("WAWebChatAssignmentUtils").canAssignChats()&&(g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){d("WAWebCmd").Cmd.assignChat(a,d("WAWebChatAssignmentLogEvents.flow").ChatAssignmentEntryPointType.CONVERSATION_MENU)},icon:l?j.jsx(d("WAWebChatAssignmentWithContainerIcon.react").ChatAssignmentWithContainerIcon,{}):null,children:h._(/*BTDS*/"__JHASH__AwRjMee6qj7__JHASH__")},"assignChat")),l&&g.push(j.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{})));g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.chatInfoDrawer(a)},icon:l?j.jsx(d("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{}):null,children:((f=a.groupMetadata)==null?void 0:f.groupType)===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP?h._(/*BTDS*/"__JHASH__lj5PxT_IjQN__JHASH__"):h._(/*BTDS*/"__JHASH__aBmR51CpRtQ__JHASH__")},"info"));g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:b,icon:l?j.jsx(d("WAWebCheckRefreshedIcon.react").CheckRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__bSItAEtwYkW__JHASH__")},"select"));a.mute.canMute()&&g.push(j.jsx(c("WAWebMuteMenuItem.react"),{onMute:function(b){return d("WAWebCmd").Cmd.muteChat(a,b)},mute:a.mute,chat:a},"mute"));d("WAWebChatEphemerality").shouldShowEphemeralSetting(a)&&((f=a.groupMetadata)==null?void 0:f.canSetEphemeralSetting())&&g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:i,icon:l?j.jsx(d("WAWebDisappearingMessagesRefreshedIcon.react").DisappearingMessagesRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__DBbHtG2VesT__JHASH__")},"disappearingMessages"));l&&g.push(j.jsx(d("WAWebChatContextMenuItemLock.react").ChatContextMenuItemLock,{chat:a},"Lock"));if(a.canToggleFavorite()&&d("WAWebInboxFiltersGatingUtils").inboxFavoritesEnabled()){a.isFavorite?(b=d("WAWebL10NHelpers").isUsingSupportedBritishEnglishLocale()?h._(/*BTDS*/"__JHASH__DFo75fEWgYZ__JHASH__"):h._(/*BTDS*/"__JHASH__JwzX1VIdfl0__JHASH__"),f=j.jsx(d("WAWebUnfavoriteRefreshedIcon.react").UnfavoriteRefreshedIcon,{})):(b=d("WAWebL10NHelpers").isUsingSupportedBritishEnglishLocale()?h._(/*BTDS*/"__JHASH__T4TCB5zMNOD__JHASH__"):h._(/*BTDS*/"__JHASH__TSuLGp-v849__JHASH__"),f=j.jsx(d("WAWebFavoriteRefreshedIcon.react").FavoriteRefreshedIcon,{}));g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.favoriteChat(a,!a.isFavorite,d("WAWebWamEnumFavoritesUpdateEntryPoint").FAVORITES_UPDATE_ENTRY_POINT.CHAT_HEADER_CONTEXT_MENU)},icon:l?f:null,children:b},"favorite"))}d("WAWebListsGatingUtils").isListsEnabled()&&g.push(j.jsx(d("WAWebChatContextMenuItemEditList.react").ChatContextMenuItemEditList,{chat:a,displayContext:"chat-header"}));d("WAWebCopyUtils").canCopySelection()&&e!=null&&g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:function(){d("WAWebCopyUtils").copySelection(e)},icon:l?j.jsx(d("WAWebCopyRefreshedIcon.react").CopyRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__7Un-8iAatQ___JHASH__")}));g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.closeChat(a)},icon:l?j.jsx(d("WAWebCloseCircleRefreshedIcon.react").CloseCircleRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__2X2ZhctfAUh__JHASH__")},"close"));l&&g.push(j.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}));g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.clearChat(a)},icon:l?j.jsx(d("WAWebClearRefreshedIcon.react").ClearRefreshedIcon,{}):null,theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:h._(/*BTDS*/"__JHASH__zCXeZd-ao8X__JHASH__")},"clear"));i=function(){k(a)};g.push(j.jsx(c("WAWebDeleteMenuItem.react"),{onDeleteOrExit:i,chat:a},"delete"));if(!c("gkx")("26258")){b=(f=d("WAWebFrontendChatGetters").getKind(a))!=null?f:"chat";l="copy-"+b+"-id";i=a.id.isGroup()?"Copy Group ID":"Copy Chat ID";g.push(j.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}));g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){void d("WAWebCopyToClipboard").copyTextToClipboard(a.id.toString())},children:j.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:i})},l));if(a.isCAG()){var m=(i=(f=a.groupMetadata)==null?void 0:(b=f.parentGroup)==null?void 0:b.toString())!=null?i:"";l="copy-parent-group-id";g.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){void d("WAWebCopyToClipboard").copyTextToClipboard(m)},children:j.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Parent Group ID"})},l))}}if(!c("gkx")("26258")&&d("WAWebChatGetters").getIsGroup(a)){b=(f=a.groupMetadata)==null?void 0:f.participants;b!=null&&g.push(j.jsx(d("WAWebDebugParticipantsListModal.react").DebugParticipantsListMenu,{participants:b},"showParticipants"))}return g}function b(a,b){var e=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),f=[];f.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.chatInfoDrawer(a)},icon:e?j.jsx(d("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__n10V6InzDtc__JHASH__")},"info"));f.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:b,icon:e?j.jsx(d("WAWebCheckRefreshedIcon.react").CheckRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__bSItAEtwYkW__JHASH__")},"select"));c("gkx")("26258")||f.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.closeChat(a)},icon:e?j.jsx(d("WAWebCloseCircleRefreshedIcon.react").CloseCircleRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__2X2ZhctfAUh__JHASH__")},"close"));e&&f.push(j.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}));f.push(j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.clearChat(a)},icon:e?j.jsx(d("WAWebClearRefreshedIcon.react").ClearRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__zCXeZd-ao8X__JHASH__")},"clear"));f.push(j.jsx(c("WAWebDeleteMenuItem.react"),{onDeleteOrExit:function(){return d("WAWebCmd").Cmd.deleteOrExitChat(a)},chat:a},"delete"));return f}g.handleDeleteOrExitChat=k;g.groupMenu=a;g.broadcastMenu=b}),226); __d("WAWebBroadcastMenuDropdown.react",["WAWebConversationMenus","WAWebDropdown.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var c=a.chat,e=a.onSelectMessages;a=a.toContextMenuManager;a=a===void 0?!1:a;c=d("WAWebConversationMenus").broadcastMenu(c,e);return a?i.jsx("div",{ref:b,children:c}):i.jsx(d("WAWebDropdown.react").Dropdown,{ref:b,type:d("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:d("WAWebDropdown.react").DirX.LEFT,children:c},"BroadcastMenuDropdown")}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebChatAssignmentNux.react",["fbt","WAWebChatAssignmentLogEvents","WAWebNux","WAWebTooltip.react","WAWebUseIsFeatureEnabled","WAWebUserPrefsStore","react","useWAWebNux"],(function(a,b,c,d,e,f,g,h){var i;b=i||d("react");var j=b.useCallback,k=b.useEffect,l=b.useMemo,m=b.useState;function a(a){var b=a.chat,e=a.targetRef;a=c("useWAWebNux")(d("WAWebNux").NUX.CHAT_ASSIGNMENT);var f=a[0],g=a[1];a=m(!0);var i=a[0],n=a[1];a=c("WAWebUseIsFeatureEnabled")("MD_EXTENSION");var o=d("WAWebTooltip.react").useTooltip({target:e,element:h._(/*BTDS*/"__JHASH__9Bpy5PG-n_p__JHASH__"),position:d("WAWebTooltip.react").PopoverPosition.Bottom,alignment:d("WAWebTooltip.react").PopoverAlignment.End,onClick:function(){r(),n(!1)}}),p=o.tooltip,q=o.showTooltip,r=o.hideTooltip;o=l(function(){return c("WAWebUserPrefsStore").getUser("chat_assignment_agent_has_assigned_chats")},[]);var s=j(function(){r(),n(!1)},[r]),t=f&&i&&a&&b.assignedAgent==null&&o==null;k(function(){t&&p==null&&e.current!=null&&(q(),g(),d("WAWebChatAssignmentLogEvents").logNuxShown(b))},[t,p,e,q,s,g,b]);return p}g["default"]=a}),226); __d("WAWebShopIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="shop";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),version:"1.1",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M11.9071327,2 C14.0034625,2 15.2227003,3.16428094 15.43674,5.27247106 L15.9324472,5.27272727 C17.9567472,5.27272727 19.6573296,6.79482129 19.8808762,8.80674021 L20.7899671,16.9885584 C21.0322623,19.1692155 19.4609095,21.1334065 17.2802524,21.3757017 C17.1345745,21.3918882 16.9881125,21.4 16.8415381,21.4 L6.97272727,21.4 C4.77865058,21.4 3,19.6213494 3,17.4272727 C3,17.2806983 3.00811182,17.1342363 3.02429825,16.9885584 L3.93338916,8.80674021 C4.14948416,6.86188526 5.7457871,5.37474446 7.68050995,5.27776269 L7.88181818,5.27272727 L8.37752533,5.27247106 C8.59156505,3.16428094 9.81080288,2 11.9071327,2 Z M15.9324472,6.67272727 L7.88181818,6.67272727 L7.71207742,6.67826233 C6.47693062,6.7590403 5.46330025,7.71507958 5.32482639,8.96134435 L4.41573548,17.1431625 C4.40525319,17.2375031 4.4,17.3323516 4.4,17.4272727 C4.4,18.8481508 5.55184923,20 6.97272727,20 L16.8415381,20 C16.9364592,20 17.0313077,19.9947468 17.1256483,19.9842645 C18.5378359,19.8273548 19.5554396,18.5553501 19.3985299,17.1431625 L18.489439,8.96134435 C18.3446708,7.65843118 17.2433783,6.67272727 15.9324472,6.67272727 Z M14.7555208,8.54553713 L14.8506156,8.55002336 C15.2346916,8.59412138 15.5102982,8.94122503 15.4662002,9.32530107 C15.2082527,11.571921 13.9710827,12.8090909 11.9071327,12.8090909 C9.84318262,12.8090909 8.6060127,11.571921 8.34806513,9.32530107 C8.30396711,8.94122503 8.57957375,8.59412138 8.96364979,8.55002336 C9.34772583,8.50592534 9.69482948,8.78153199 9.7389275,9.16560802 C9.91936771,10.7371699 10.5912887,11.4090909 11.9071327,11.4090909 C13.2229767,11.4090909 13.8948976,10.7371699 14.0753379,9.16560802 C14.1120862,8.84554466 14.3592551,8.60080726 14.6628902,8.55363847 L14.7555208,8.54553713 Z M11.9071327,3.4 C10.6172322,3.4 9.94591364,3.96060645 9.78307298,5.27122352 L14.0311924,5.27122352 C13.8683517,3.96060645 13.1970332,3.4 11.9071327,3.4 Z",fill:"currentColor",fillRule:"nonzero"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ShopIcon=a}),98); __d("WAWebCommerceButton.react",["fbt","WAWebBizGatingUtils","WAWebBusinessProfileCollection","WAWebBusinessProfileTypes","WAWebBusinessProfileUtils","WAWebCatalogEntrypointIcon.react","WAWebDrawerManager","WAWebMenuBar.react","WAWebProductCatalogContext","WAWebProductCatalogSession","WAWebProductDetailsFlowLoadable","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebShopIcon.react","WAWebStorefrontIcon.react","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebWamEnumBizPlatform","WAWebWamEnumCatalogEntryPoint","react","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.chat,e=c("useWAWebUIM")();a=b.contact.businessProfile;if(d("WAWebBusinessProfileUtils").hasShop(a)){if(d("WAWebBizGatingUtils").bannedShopsEnabled()&&d("WAWebBusinessProfileUtils").isShopBanned(a))return null;var f=function(a){a.preventDefault(),d("WAWebBusinessProfileUtils").goToShop(b.contact.businessProfile)};return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:j.jsx(d("WAWebShopIcon.react").ShopIcon,{}),title:h._(/*BTDS*/"__JHASH__rwhgXpZEUAM__JHASH__"),onClick:f})}if(a==null?void 0:a.isCatalogDisabledDueToMetaLinking)return null;if((a==null?void 0:(f=a.profileOptions)==null?void 0:f.commerceExperience)===d("WAWebBusinessProfileTypes").CommerceExperienceTypes.CATALOG||(a==null?void 0:(f=a.profileOptions)==null?void 0:f.commerceExperience)===d("WAWebBusinessProfileTypes").CommerceExperienceTypes.META_CATALOG&&d("WAWebBizGatingUtils").isCatalogVariantsViewingEnabled()||(a==null?void 0:a.catalogStatus)===d("WAWebBusinessProfileCollection").CATALOG_EXISTS){f=function(a){a.preventDefault();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_CATALOG_COLLECTIONS_VIEW,{annotations:{string:{EntryPoint:"ChatHeader"}}});a=d("WAWebProductCatalogContext").buildProductCatalogContext(new(d("WAWebProductCatalogSession").ProductCatalogSession)(),d("WAWebWamEnumBizPlatform").BIZ_PLATFORM.SMB,d("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_CHAT);var c=b.contact.id;d("WAWebDrawerManager").DrawerManager.openDrawerRight(j.jsx(d("WAWebProductDetailsFlowLoadable").ProductDetailsFlowLoadable,{chat:b,catalogOwnerJid:c.toJid()}),{transition:"slide-left",uim:e,newDrawerContext:a})};return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebStorefrontIcon.react").StorefrontIcon,{}):j.jsx(d("WAWebCatalogEntrypointIcon.react").CatalogEntrypointIcon,{}),title:h._(/*BTDS*/"__JHASH__OxikoWSe1O9__JHASH__"),onClick:f})}return null}a.displayName=a.name+" [from "+f.id+"]";g.CommerceButton=a}),226); __d("WAWebDebugConvertToLidChatModal.react",["WAWebApiContact","WAWebCmd","WAWebComposeBoxActions","WAWebConfirmPopup.react","WAWebDeleteChatAction","WAWebDevOnlyBadge.react","WAWebDropdownItem.react","WAWebFindChatAction","WAWebModalManager","WAWebToast.react","WAWebToastManager","WAWebWidFactory","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.chat;return i.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,addSpacing:!0,action:function(){j(b)},children:i.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Convert to LID chat"})},"convertToLid")}a.displayName=a.name+" [from "+f.id+"]";function j(a){d("WAWebModalManager").ModalManager.open(i.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{okText:"Yes",cancelText:"No",onCancel:function(){d("WAWebModalManager").ModalManager.close()},onOK:function(){d("WAWebModalManager").ModalManager.close(),void k(a)},children:"'Warning! This will DELETE your existing chat along with all message history and convert it to a new LID-based chat. Do you want to proceed?'"}))}function k(a){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=d("WAWebApiContact").getCurrentLid(d("WAWebWidFactory").toUserWid(a.id));if(b==null){d("WAWebToastManager").ToastManager.open(i.jsx(d("WAWebToast.react").Toast,{msg:"Unable to convert to lid chat: no lid found for "+a.id.toString()}));return}yield d("WAWebDeleteChatAction").sendDelete(a);a=(yield d("WAWebFindChatAction").findOrCreateLatestChat(b,"debugConvertToLidChat"));b=a.chat;yield d("WAWebCmd").Cmd.openChatBottom(b);d("WAWebComposeBoxActions").ComposeBoxActions.focus(b)});return l.apply(this,arguments)}g.DebugConvertToLid=a}),98); __d("WAWebContactMenuDropdown.react",["fbt","WATimeUtils","WAWebAiSignalOutlineIcon.react","WAWebBizAiAgentStatusUtils","WAWebBizGatingUtils","WAWebBlockContactUtils","WAWebBlockContants","WAWebBlockRefreshedIcon.react","WAWebBlocklistUtils","WAWebChatAssignmentLogEvents.flow","WAWebChatAssignmentWithContainerIcon.react","WAWebChatContextMenuItemEditList.react","WAWebChatContextMenuItemLock.react","WAWebChatEphemerality","WAWebChatGetters","WAWebChatThreadLogging","WAWebCheckRefreshedIcon.react","WAWebClearRefreshedIcon.react","WAWebCloseCircleRefreshedIcon.react","WAWebCmd","WAWebContactGetters","WAWebCopyRefreshedIcon.react","WAWebCopyToClipboard","WAWebCopyUtils","WAWebDebugConvertToLidChatModal.react","WAWebDeleteMenuItem.react","WAWebDevOnlyBadge.react","WAWebDisappearingMessagesRefreshedIcon.react","WAWebDropdown.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebFavoriteRefreshedIcon.react","WAWebFrontendChatGetters","WAWebFrontendContactGetters","WAWebHeartIconCustom","WAWebHeartSlashIcon.react","WAWebInboxFiltersGatingUtils","WAWebInfoRefreshedIcon.react","WAWebL10NHelpers","WAWebListsGatingUtils","WAWebMessageLogQplEvents","WAWebModalManager","WAWebMuteMenuItem.react","WAWebProtobufsE2E.pb","WAWebReportContactPopup.react","WAWebReportSpamPopup.react","WAWebSendNonMessageDataRequest","WAWebSendSpamChatAction","WAWebSpamConstants","WAWebStateUtils","WAWebStreamModel","WAWebSyncGatingUtils","WAWebThumbsDownRefreshedIcon.react","WAWebUIRefreshGatingUtils","WAWebUnfavoriteRefreshedIcon.react","WAWebUseIsFeatureEnabled","WAWebWamEnumEphemeralSettingEntryPointType","WAWebWamEnumFavoritesUpdateEntryPoint","WAWebWamEnumPsaMessageRemoveEntryPoint","gkx","react","useWAWebChatValues","useWAWebContactValues","useWAWebForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useEffect,m=b.useRef;function a(a){var b,e,f=a.chat,g=a.contact,i=a.onSelectMessages,j=a.enableChatThreadLogging,n=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();b=d("useWAWebChatValues").useChatValues(a.chat.id,[(b=d("WAWebChatGetters")).getIsPSA,(e=d("WAWebFrontendChatGetters")).getMute,b.getId,e.getContact,b.getIsGroup,e.getPromises,b.getIsNewsletter,e.getIsParentGroup,b.getIsUser,b.getTcToken,b.getTcTokenTimestamp,e.getMsgs,e.getIsFavorite]);var o=b[0],p=b[1],q=b[2];b[3];var r=b[4];b[5];b[6];b[7];b[8];b[9];b[10];b[11];var s=b[12];b=d("useWAWebContactValues").useContactValues(a.contact.id,[(e=d("WAWebContactGetters")).getId,e.getIsBusiness,e.getName,d("WAWebFrontendContactGetters").getIsContactBlocked,e.getIsMe,e.getIsMyContact,d("WAWebFrontendContactGetters").getBusinessProfile]);var t=b[0],u=b[1];b[2];var v=b[3],w=b[4];b[5];var x=b[6],y=m(null);d("useWAWebListener").useListener(d("WAWebStreamModel").Stream,"change:displayInfo",n);l(function(){j===!0&&d("WAWebChatThreadLogging").handleActivitiesForChatThreadLogging([{activityType:"chatOverflowClicks",ts:d("WATimeUtils").unixTime(),chatId:q}])},[j,q]);var z=c("WAWebUseIsFeatureEnabled")("MD_EXTENSION"),A=function(){void d("WAWebSendSpamChatAction").sendReport({chat:f,spamFlow:d("WAWebSpamConstants").SpamFlow.OverflowMenuReport}),d("WAWebModalManager").ModalManager.close()},B=function(){void d("WAWebSendSpamChatAction").sendSpamBlockClear(f,d("WAWebSpamConstants").SpamFlow.OverflowMenuReport),d("WAWebModalManager").ModalManager.close()},C=function(){if(d("WAWebBlocklistUtils").isRBIRevampedBlockReportDesignEnabled()){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebReportContactPopup.react").ReportContactPopupV2,{chat:f,spamFlow:d("WAWebSpamConstants").SpamFlow.OverflowMenuReport}));return}d("WAWebModalManager").ModalManager.open((x==null?void 0:x.isBizBot3p)===!0?k.jsx(c("WAWebReportSpamPopup.react"),{isBizBot3p:!0,isMessage:!1,onReport:A,onReportBlockClear:B,onCancel:function(){return d("WAWebModalManager").ModalManager.close()}}):k.jsx(c("WAWebReportSpamPopup.react"),{isMessage:!1,isBusiness:u,isGroupChat:!1,onReport:A,onReportBlockClear:B,onCancel:function(){return d("WAWebModalManager").ModalManager.close()}}))},D=function(){d("WAWebCmd").Cmd.ephemeralDrawer(d("WAWebStateUtils").unproxy(a.chat),!1,d("WAWebWamEnumEphemeralSettingEntryPointType").EPHEMERAL_SETTING_ENTRY_POINT_TYPE.CHAT_OVERFLOW)},E=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();e=function(){var b=[];d("WAWebBizAiAgentStatusUtils").isChatEligibleForAiAgent(f)&&b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){d("WAWebCmd").Cmd.toggleAiRepliesStatus(f)},icon:E?k.jsx(d("WAWebAiSignalOutlineIcon.react").AiSignalOutlineIcon,{}):null,children:h._(/*BTDS*/"__JHASH__qsflyXKof5S__JHASH__")},"aiReplies"));z&&b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){d("WAWebCmd").Cmd.assignChat(f,d("WAWebChatAssignmentLogEvents.flow").ChatAssignmentEntryPointType.CONVERSATION_MENU)},icon:E?k.jsx(d("WAWebChatAssignmentWithContainerIcon.react").ChatAssignmentWithContainerIcon,{}):null,children:h._(/*BTDS*/"__JHASH__AwRjMee6qj7__JHASH__")},"assignChat"));var e=d("WAWebBizAiAgentStatusUtils").isChatEligibleForAiAgent(f)||z;e&&E&&b.push(k.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}));e=k.jsx(d("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{});o||b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:function(){u&&d("WAWebMessageLogQplEvents").qplStartProfileView("ToolsMenu"),d("WAWebCmd").Cmd.chatInfoDrawer(f)},testid:void 0,icon:E?e:null,children:h._(/*BTDS*/"__JHASH__ocgQKO3F0P8__JHASH__")},"info"));u&&(d("WAWebBizGatingUtils").canSeeECommerceComplianceIndiaSoftEnforcement(t)&&b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.merchantDetailsDrawer(t)},icon:E?e:null,children:h._(/*BTDS*/"__JHASH__GEW-b_5vLT1__JHASH__")},"merchantDetails")));b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:i,icon:E?k.jsx(d("WAWebCheckRefreshedIcon.react").CheckRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__bSItAEtwYkW__JHASH__")},"select"));p.canMute()&&b.push(k.jsx(c("WAWebMuteMenuItem.react"),{onMute:function(a){o?d("WAWebCmd").Cmd.muteChatFromEntryPoint(f,a,3):d("WAWebCmd").Cmd.muteChat(f,a)},mute:p,chat:f},"mute"));d("WAWebChatEphemerality").shouldShowEphemeralSetting(a.chat)&&b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:D,icon:E?k.jsx(d("WAWebDisappearingMessagesRefreshedIcon.react").DisappearingMessagesRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__SbyuHS547u5__JHASH__")},"disappearingMessages"));E&&b.push(k.jsx(d("WAWebChatContextMenuItemLock.react").ChatContextMenuItemLock,{chat:f},"Lock"));if(f.canToggleFavorite()&&d("WAWebInboxFiltersGatingUtils").inboxFavoritesEnabled()){var j;s?(e=d("WAWebL10NHelpers").isUsingSupportedBritishEnglishLocale()?h._(/*BTDS*/"__JHASH__DFo75fEWgYZ__JHASH__"):h._(/*BTDS*/"__JHASH__JwzX1VIdfl0__JHASH__"),j=E?k.jsx(d("WAWebUnfavoriteRefreshedIcon.react").UnfavoriteRefreshedIcon,{}):k.jsx(d("WAWebHeartSlashIcon.react").HeartSlashIcon,{})):(e=d("WAWebL10NHelpers").isUsingSupportedBritishEnglishLocale()?h._(/*BTDS*/"__JHASH__T4TCB5zMNOD__JHASH__"):h._(/*BTDS*/"__JHASH__TSuLGp-v849__JHASH__"),j=E?k.jsx(d("WAWebFavoriteRefreshedIcon.react").FavoriteRefreshedIcon,{}):k.jsx(d("WAWebHeartIconCustom").HeartIconCustom,{}));b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.favoriteChat(f,!s,d("WAWebWamEnumFavoritesUpdateEntryPoint").FAVORITES_UPDATE_ENTRY_POINT.CHAT_HEADER_CONTEXT_MENU)},icon:E?j:null,children:e},"favorite"))}d("WAWebListsGatingUtils").isListsEnabled()&&b.push(k.jsx(d("WAWebChatContextMenuItemEditList.react").ChatContextMenuItemEditList,{chat:f,displayContext:"chat-header"}));var l=a.container;d("WAWebCopyUtils").canCopySelection()&&l!=null&&b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:function(){d("WAWebCopyUtils").copySelection(l)},icon:E?k.jsx(d("WAWebCopyRefreshedIcon.react").CopyRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__7Un-8iAatQ___JHASH__")}));b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.closeChat(f)},icon:E?k.jsx(d("WAWebCloseCircleRefreshedIcon.react").CloseCircleRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__2X2ZhctfAUh__JHASH__")},"close"));E&&b.push(k.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}));w||(!o&&!q.isBot()&&b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:C,icon:E?k.jsx(d("WAWebThumbsDownRefreshedIcon.react").ThumbsDownRefreshedIcon,{}):null,theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:h._(/*BTDS*/"__JHASH__0LWVgvzVjNg__JHASH__")},"report")),q.isBot()||b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:v?function(){return d("WAWebBlockContactUtils").handleUnblock(g,d("WAWebBlockContants").BlockEntryPoint.OverflowMenuBlock)}:function(){return d("WAWebBlockContactUtils").handleBlock(f,d("WAWebBlockContants").BlockEntryPoint.OverflowMenuBlock)},icon:E?k.jsx(d("WAWebBlockRefreshedIcon.react").BlockRefreshedIcon,{}):null,theme:v?void 0:d("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:v?h._(/*BTDS*/"__JHASH__ql6Ff5i9w6g__JHASH__"):h._(/*BTDS*/"__JHASH__vYOcznEwFoX__JHASH__")},"block")));b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.clearChat(f)},icon:E?k.jsx(d("WAWebClearRefreshedIcon.react").ClearRefreshedIcon,{}):null,theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:h._(/*BTDS*/"__JHASH__zCXeZd-ao8X__JHASH__")},"clear"));b.push(k.jsx(c("WAWebDeleteMenuItem.react"),{onDeleteOrExit:function(){return d("WAWebCmd").Cmd.deleteOrExitChatFromEntryPoint(f,d("WAWebWamEnumPsaMessageRemoveEntryPoint").PSA_MESSAGE_REMOVE_ENTRY_POINT.DELETE_ALL_FROM_CONVERSATION)},chat:f},"delete"));c("gkx")("26258")||(b.push(k.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{})),b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){void d("WAWebCopyToClipboard").copyTextToClipboard(q.toString())},children:k.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Chat ID"})},"chat-copy-id")),!r&&!q.isLid()&&b.push(k.jsx(d("WAWebDebugConvertToLidChatModal.react").DebugConvertToLid,{chat:f},"convertToLid")));return b};return a.toContextMenuManager?k.jsx("div",{ref:y,"data-testid":void 0,children:e()}):k.jsx(d("WAWebDropdown.react").Dropdown,{ref:function(a){y.current=a},type:d("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:d("WAWebDropdown.react").DirX.LEFT,testid:void 0,children:e()},"ContactMenuDropdown")}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebDesktopUpsellCallingUnavailable.react",["fbt","WANullthrows","WAWebChevronCustomIcons","WAWebDesktopUpsellCallingUnavailablePopover.react","WAWebDesktopUpsellUtils","WAWebDropdownV2.react","WAWebFlex.react","WAWebIcChevronDownMenuIcon.react","WAWebPopover.react","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUnstyledButton.react","WAWebUserPrefsKeys","WAWebUserPrefsStore","WAWebVideoCallIcon.react","WAWebVideoCallRefreshedIcon.react","WDSFocusStateStyles","react","stylex","useWAWebFocusState"],(function(a,b,c,d,e,f,g,h){var i,j,k;b=k||d("react");var l=i||(i=c("react")),m=b.useEffect,n=b.useRef,o={menuBarBtnContainer:{display:"x78zum5",position:"x1n2onr6",height:"x5yr21d",borderTopStartRadius:"xdxvlk3",borderTopEndRadius:"x1fglp",borderBottomEndRadius:"x1rp6h8o",borderBottomStartRadius:"xg6i1s1",transitionProperty:"x15406qy",transitionDuration:"x1d8287x",transitionTimingFunction:"xwji4o3","@media screen and (max-width: 720px)_paddingTop":"xj8bxqt","@media screen and (max-width: 720px)_paddingEnd":"x1o9mn2u","@media screen and (max-width: 720px)_paddingBottom":"xpbnuc5","@media screen and (max-width: 720px)_paddingStart":"x2btq54","@media screen and (max-width: 720px)_marginTop":"x86at4b","@media screen and (max-width: 720px)_marginEnd":"xzl7c9v","@media screen and (max-width: 720px)_marginBottom":"x1ad89wd","@media screen and (max-width: 720px)_marginStart":"x1i1grao",$$css:!0},hoverBg:{":hover_backgroundColor":"x1z0qo99",$$css:!0},videoCallIconGroup:{color:"x2jp5ct",$$css:!0},videoCallBtnShaded:{backgroundColor:"x1786zcw",$$css:!0},videoCallBtnOutlined:{borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x10vq5hr",borderEndColor:"xbi89o0",borderBottomColor:"x1goaxin",borderStartColor:"x1ux35ld",$$css:!0}};function a(){var a=d("WAWebDesktopUpsellUtils").getUserDesktopOs(),b=c("useWAWebFocusState")(),e=b[0];b=b[1];var f=n(null);a=d("WAWebDropdownV2.react").useDropdownV2({target:f,alignment:d("WAWebPopover.react").PopoverAlignment.End,position:d("WAWebPopover.react").PopoverPosition.Bottom,buffer:6,material:!0,children:l.jsx(c("WAWebDesktopUpsellCallingUnavailablePopover.react"),{userDesktopOs:c("WANullthrows")(a)})});var g=a.popover,i=a.popoverIsVisible;a=p();m(function(){i&&q()},[i]);var k=h._(/*BTDS*/"__JHASH__9FJLuFNCgJZ__JHASH__"),r=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),s=r?d("WAWebVideoCallRefreshedIcon.react").VideoCallRefreshedIcon:d("WAWebVideoCallIcon.react").VideoCallIcon,t=r?d("WAWebIcChevronDownMenuIcon.react").IcChevronDownMenuIcon:d("WAWebChevronCustomIcons").ChevronDownCustomIcon;a=!r&&!i&&!a;return l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(o.menuBarBtnContainer,d("WAWebUISpacing").uiMargin.start10,d("WAWebUISpacing").uiPadding.horiz10,d("WAWebUISpacing").uiPadding.top8,d("WAWebUISpacing").uiPadding.bottom5,b&&d("WDSFocusStateStyles").WDSFocusStateStyles.genericFocusPersistent,a&&o.videoCallBtnOutlined,i&&o.videoCallBtnShaded,r&&o.hoverBg,r&&d("WAWebUISpacing").uiPadding.end6,r&&d("WAWebUISpacing").uiPadding.bottom8),{ref:f,children:l.jsxs(c("WAWebUnstyledButton.react"),{title:k,"aria-label":k,ref:e,dataTab:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,children:[l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:o.videoCallIconGroup,children:[l.jsx(s,{xstyle:!r&&d("WAWebUISpacing").uiMargin.end6}),l.jsx(t,{height:r?20:10,xstyle:d("WAWebUISpacing").uiMargin.start4})]}),g]})}))}a.displayName=a.name+" [from "+f.id+"]";function p(){var a=c("WAWebUserPrefsStore").get(d("WAWebUserPrefsKeys").KEYS.DESKTOP_UPSELL_USER_HAS_CLICKED_CALL_MODAL);return!!a}function q(){c("WAWebUserPrefsStore").set(d("WAWebUserPrefsKeys").KEYS.DESKTOP_UPSELL_USER_HAS_CLICKED_CALL_MODAL,!0)}g.WAWebDesktopCallingMenuButton=a}),226); __d("WAWebGroupMenuDropdown.react",["WATimeUtils","WAWebChatThreadLogging","WAWebConversationMenus","WAWebDropdown.react","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useEffect;function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var c=a.chat,e=a.onSelectMessages;k(function(){d("WAWebChatThreadLogging").handleActivitiesForChatThreadLogging([{activityType:"chatOverflowClicks",ts:d("WATimeUtils").unixTime(),chatId:c.id}])},[c.id]);e=d("WAWebConversationMenus").groupMenu(c,e);return a.toContextMenuManager?j.jsx("div",{ref:b,children:e}):j.jsx(d("WAWebDropdown.react").Dropdown,{ref:b,type:d("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:d("WAWebDropdown.react").DirX.LEFT,testid:void 0,children:e},"GroupMenuDropdown")}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebGroupSubtitle.react",["fbt","WALogger","WAWebChatAssignmentLogEvents","WAWebChatCollection","WAWebChatSubtitleText","WAWebElevatedPushNamesFlag","WAWebFrontendContactGetters","WAWebGroupQueryJob","WAWebGroupType","WAWebHostedGroupUtils","WAWebParticipantsList.react","WAWebPresenceEnum","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[CAG][Group Subtitle] Failed to query group metadata for CAG"]);k=function(){return a};return a}var l=j||c("react"),m=(i||(i=d("react"))).useEffect;function a(a){var b=a.assignmentSubtitle,e=a.chatId,f=a.chatstate,g=a.groupMetadata,i=a.location,j=a.placeholder;a=a.presence;d("useWAWebModelValues").useModelValues(f,["id","type","deny","t"]);var n=d("useWAWebModelValues").useModelValues(g,["announce","participants","groupType","size","id","hasCapi"]),o=d("useWAWebModelValues").useModelValues(a,["forceDisplay","withholdDisplayStage"]),p=function(){return n.groupType===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP&&n.participants.iAmMember()&&!n.participants.iAmAdmin()};m(function(){p()&&!n.size&&d("WAWebGroupQueryJob").queryAndUpdateGroupMetadataById({id:n.id})["catch"](function(){d("WALogger").ERROR(k()).sendLogs("failed-to-query-group-metadata-for-cag")})},[]);m(function(){b!=null&&o.withholdDisplayStage===d("WAWebPresenceEnum").WithholdDisplayStage.ChatAssignment&&d("WAWebChatAssignmentLogEvents").logChatStatusTickerShown(e)},[e,o.withholdDisplayStage,b]);var q=d("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(d("WAWebChatCollection").ChatCollection.get(e));f=function(){return n.groupType===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP?{text:h._(/*BTDS*/"__JHASH__dhHo5hWiU_Z__JHASH__")}:o.getGroupSubtitleText({elevatedPushNamesEnabled:q})};var r,s;g=!1;if(o.withholdDisplayStage===d("WAWebPresenceEnum").WithholdDisplayStage.CommunityName){a=d("WAWebChatCollection").ChatCollection.get(e);a=a==null?void 0:(a=a.groupMetadata)==null?void 0:a.getParentGroupChat();a=a==null?void 0:a.contact;a=a!=null?d("WAWebFrontendContactGetters").getFormattedName(a):null;r=h._(/*BTDS*/"__JHASH__jeucOx6ke8r__JHASH__",[h._param("community",a)])}else if(o.withholdDisplayStage===d("WAWebPresenceEnum").WithholdDisplayStage.OnlyAdminsCanSend)r=h._(/*BTDS*/"__JHASH__8QEb6bbwR8F__JHASH__");else if(d("WAWebHostedGroupUtils").isWAHostedGroupEnabled()&&n.hasCapi===!0)r=b;else if(o.withholdDisplayStage===d("WAWebPresenceEnum").WithholdDisplayStage.E2EE)r=d("WAWebChatSubtitleText").e2eChatSubtitleText(),g=!0;else if(o.withholdDisplayStage===d("WAWebPresenceEnum").WithholdDisplayStage.Info)r=j;else if(b!=null&&o.withholdDisplayStage===d("WAWebPresenceEnum").WithholdDisplayStage.ChatAssignment)r=b;else{a=f();a!=null&&(r=a.text,s=a.ariaLabel)}return l.jsx(c("WAWebParticipantsList.react"),{groupMetadata:n,overridingText:r,placeholder:j,ariaLabel:s,location:i,showLockIcon:g})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __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","WAWebUIRefreshGatingUtils","WAWebUnfollowNewsletterConfirmationModal.react","WAWebWamEnumChannelEventSurface","react"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useCallback,m=b.useRef;function a(a){var b,e=a.chat,f=a.onSelectMessages;a=a.toContextMenuManager;var g=m(null),i=e.newsletterMetadata,j=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),n=l(function(){d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebReportNewsletterPopup.react"),{chat:e,spamFlow:d("WAWebSpamConstants").SpamFlow.OverflowMenuReport}))},[e]),o=l(function(){d("WAWebCmd").Cmd.chatInfoDrawer(e)},[e]),p=l(function(){d("WAWebCmd").Cmd.closeChat(e)},[e]),q=l(function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebUnfollowNewsletterConfirmationModal.react").UnfollowNewsletterConfirmationModal,{chat:d("WAWebStateUtils").unproxy(e),loggingOptions:{eventSurface:d("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD}}))},[e]),r=l(function(){d("WAWebDrawerManager").DrawerManager.openDrawerRight(k.jsx(d("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:e,initialStep:d("WAWebInfoFlowStep").InfoFlowStep.NewsletterSettings}))},[e]);b=d("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(e==null?void 0:e.newsletterMetadata)&&!((b=e.newsletterMetadata)==null?void 0:b.isSuspendedOrTerminated)?k.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:r,testid:void 0,icon:j?k.jsx(d("WAWebSettingsRefreshedIcon.react").SettingsRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__O51Yt7QP6vN__JHASH__")},"newsletter-overflow-menu-newsletter-settings"):null;r=((r=e.newsletterMetadata)==null?void 0:r.isSuspendedOrTerminated)?null:k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:f,icon:j?k.jsx(d("WAWebCheckRefreshedIcon.react").CheckRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__JI9hJ6sBMW7__JHASH__")},"newsletter-overflow-menu-select-messages");f=((f=e.newsletterMetadata)==null?void 0:f.isSuspendedOrTerminated)?null:k.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:n,testid:void 0,icon:j?k.jsx(d("WAWebThumbsDownRefreshedIcon.react").ThumbsDownRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__PzRrGSXWySw__JHASH__")},"newsletter-overflow-menu-report");n=[k.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:o,testid:void 0,icon:j?k.jsx(d("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__eHd-O5fErG4__JHASH__")},"newsletter-overflow-menu-newsletter-info"),b,r,k.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:p,testid:void 0,icon:j?k.jsx(d("WAWebCloseCircleRefreshedIcon.react").CloseCircleRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__lraDtbLxULJ__JHASH__")},"newsletter-overflow-menu-close-channel"),j?k.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}):null,f];d("WAWebNewsletterMembershipUtil").iAmSubscriber(i)&&n.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:q,testid:void 0,icon:j?k.jsx(d("WAWebExitRefreshedIcon.react").ExitRefreshedIcon,{}):null,theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:h._(/*BTDS*/"__JHASH__w8sgsp-yDuW__JHASH__")},"newsletter-overflow-menu-unfollow"));return a!=null?k.jsx("div",{ref:g,"data-testid":void 0,children:n}):k.jsx(d("WAWebDropdown.react").Dropdown,{ref:function(a){g.current=a},type:d("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:d("WAWebDropdown.react").DirX.LEFT,testid:void 0,children:n},"NewsletterMenuDropdown")}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterChatMenuDropdown=a}),226); __d("WAWebNewsletterSubscribeButton.react",["fbt","WAWebButton.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.isLoading;a=a.onClick;return j.jsx(d("WAWebButton.react").WAWebButtonPrimary,{testid:void 0,onClick:a,spinner:b,disabled:b,children:h._(/*BTDS*/"__JHASH__fwxpTAEyfpc__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNotificationsOffIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="notifications-off";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:h,height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"currentColor",d:"M5 18.875q-.325 0-.537-.225-.213-.225-.213-.525 0-.325.213-.538.212-.212.537-.212h1.25v-7.25q0-.775.188-1.5.187-.725.562-1.4L8.125 8.35q-.175.425-.275.862-.1.438-.1.913v7.25l7.275-.025L2.55 4.9q-.2-.2-.2-.513 0-.312.2-.537.225-.225.538-.225.312 0 .537.225L20.4 20.625q.2.225.213.525.012.3-.213.55-.225.2-.525.2-.3 0-.525-.2l-2.85-2.825Zm12.75-3.725-1.5-1.5v-3.525q0-1.775-1.25-3.013-1.25-1.237-3-1.237-.7 0-1.387.237-.688.238-1.213.688L8.325 5.725q.525-.45 1.15-.763.625-.312 1.275-.462v-.7q0-.525.363-.888.362-.362.887-.362t.887.362q.363.363.363.888v.7q1.875.425 3.188 1.963Q17.75 8 17.75 10.125Zm-6.35-1.375ZM12 21.8q-.75 0-1.275-.525Q10.2 20.75 10.2 20h3.6q0 .75-.525 1.275-.525.525-1.275.525Zm.825-11.525Z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.NotificationsOffIcon=a}),98); __d("WAWebNotificationsOnIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="notifications-on";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:h,height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"currentColor",d:"M3.25 10q-.325 0-.537-.225-.213-.225-.188-.525.15-1.675.85-3.213Q4.075 4.5 5.25 3.3q.2-.2.525-.2t.55.225q.2.2.213.5.012.3-.213.55-1 1-1.587 2.237Q4.15 7.85 4.025 9.25q-.025.325-.237.537Q3.575 10 3.25 10Zm17.5 0q-.3 0-.525-.213-.225-.212-.25-.537-.125-1.4-.712-2.638-.588-1.237-1.588-2.237-.2-.25-.2-.55 0-.3.225-.5.225-.225.538-.225.312 0 .512.2 1.175 1.2 1.875 2.737.7 1.538.85 3.213.025.3-.187.525-.213.225-.538.225ZM5 18.875q-.325 0-.537-.225-.213-.225-.213-.525 0-.325.213-.538.212-.212.537-.212h1.25v-7.25q0-2 1.25-3.588Q8.75 4.95 10.75 4.5v-.7q0-.525.363-.888.362-.362.887-.362t.887.362q.363.363.363.888v.7q2 .45 3.25 2.037 1.25 1.588 1.25 3.588v7.25H19q.325 0 .538.212.212.213.212.538 0 .3-.212.525-.213.225-.538.225Zm7-7.25ZM12 21.8q-.75 0-1.275-.525Q10.2 20.75 10.2 20h3.6q0 .75-.525 1.275-.525.525-1.275.525Zm-4.25-4.425h8.5v-7.25q0-1.775-1.25-3.013-1.25-1.237-3-1.237T9 7.112Q7.75 8.35 7.75 10.125Z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.NotificationsOnIcon=a}),98); __d("WAWebNewsletterConversationPanelHeader.react",["fbt","Promise","WAWebButton.react","WAWebChatGetters","WAWebCommonNewsletterEnums","WAWebCommonNewsletterStrings","WAWebDrawerManager","WAWebFollowNewsletter","WAWebFrontendChatGetters","WAWebInfoFlowLoadable","WAWebInfoFlowStep","WAWebKeyboardTabUtils","WAWebLinkIcon.react","WAWebMenuBar.react","WAWebModalManager","WAWebNewsletterDirectorySearchAction","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNewsletterModelUtils","WAWebNewsletterSubscribeButton.react","WAWebNewsletterToggleMuteStateAction","WAWebNotificationsOffIcon.react","WAWebNotificationsOnIcon.react","WAWebSpinner.react","WAWebStateUtils","WAWebTabOrder","WAWebUnfollowNewsletterConfirmationModal.react","WAWebWamEnumChannelEventSurface","WAWebWamEnumChannelLinkShareEntryPoint","asyncToGeneratorRuntime","react","useWAWebChatValues","useWAWebModelValues","useWAWebOnUnmount","useWAWebPrevious"],(function(a,b,c,d,e,f,g,h){var i,j,k;e=k||d("react");var l=j||(j=c("react")),m=e.useCallback,n=e.useState;function a(a){var e=a.chat;a=d("useWAWebChatValues").useChatValues(e.id,[d("WAWebChatGetters").getIsNewsletter,d("WAWebFrontendChatGetters").getNewsletterMetadata,d("WAWebChatGetters").getMuteExpiration]);var f=a[0];a[1];a=a[2];c("useWAWebOnUnmount")(function(){g==null?void 0:g.resetRecentlyFollowedFrom()});var g=d("useWAWebModelValues").useOptionalModelValues(e.newsletterMetadata,["membershipType","suspended","terminated","isSuspendedOrTerminated","canBeMuted"]),j=n(!1),k=j[0],p=j[1];j=n(!1);var q=j[0],r=j[1];j=c("useWAWebPrevious")(a);j!==a&&q&&r(!1);j=m(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){p(!0),yield (i||(i=b("Promise"))).allSettled([d("WAWebFollowNewsletter").followNewsletter(d("WAWebStateUtils").unproxy(e),{eventSurface:d("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD}),d("WAWebNewsletterGatingUtils").isSimilarNewsletterInThreadEnabled()&&d("WAWebNewsletterDirectorySearchAction").getSimilarNewslettersAction(d("WAWebStateUtils").unproxy(e))]),p(!1)}),[e]);var s=m(function(){d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebUnfollowNewsletterConfirmationModal.react").UnfollowNewsletterConfirmationModal,{chat:d("WAWebStateUtils").unproxy(e),loggingOptions:{eventSurface:d("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD}}))},[e]),t=m(function(){d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(d("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:e,initialStep:d("WAWebInfoFlowStep").InfoFlowStep.NewsletterLink,newsletterLinkShareScreenEntryPoint:d("WAWebWamEnumChannelLinkShareEntryPoint").CHANNEL_LINK_SHARE_ENTRY_POINT.CHANNEL_THREAD}),{transition:"slide-left",focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,noFocus:!0})},[e]),u=m(function(){r(!0),d("WAWebNewsletterToggleMuteStateAction").muteNewsletterAction(e.id,{eventSurface:d("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD})["catch"](function(){return r(!1)})},[e]),v=m(function(){r(!0),d("WAWebNewsletterToggleMuteStateAction").unmuteNewsletterAction(e.id,{eventSurface:d("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD})["catch"](function(){return r(!1)})},[e]);if(!f||g==null)return null;if(g.isSuspendedOrTerminated)return g.membershipType===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Subscriber?l.jsx(d("WAWebButton.react").WAWebButtonPrimary,{onClick:s,testid:void 0,children:h._(/*BTDS*/"__JHASH__ipSVtCOZYk0__JHASH__")}):null;f=null;g.canBeMuted&&(f=d("WAWebNewsletterModelUtils").isMuted(a)?l.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:q?l.jsx(o,{}):l.jsx(d("WAWebNotificationsOffIcon.react").NotificationsOffIcon,{}),onClick:v,disabled:q,title:h._(/*BTDS*/"__JHASH__WP0hnGFe6Jr__JHASH__")}):l.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:q?l.jsx(o,{}):l.jsx(d("WAWebNotificationsOnIcon.react").NotificationsOnIcon,{}),onClick:u,disabled:q,title:h._(/*BTDS*/"__JHASH__Trvawc6j0QE__JHASH__")}));s=d("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(g)?l.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:l.jsx(d("WAWebLinkIcon.react").LinkIcon,{}),onClick:t,title:d("WAWebCommonNewsletterStrings").getShareText()}):null;a=d("WAWebNewsletterMembershipUtil").iAmGuest(g)?l.jsx(c("WAWebNewsletterSubscribeButton.react"),{onClick:j,isLoading:k}):null;return l.jsxs(l.Fragment,{children:[s,f,a]})}a.displayName=a.name+" [from "+f.id+"]";function o(){return l.jsx(d("WAWebSpinner.react").Spinner,{color:"wdsSecondaryLighter",size:20})}o.displayName=o.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebSearchAltIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="search-alt";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 24 24",children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"currentColor",d:"M15.9,14.3H15L14.7,14c1-1.1,1.6-2.7,1.6-4.3c0-3.7-3-6.7-6.7-6.7S3,6,3,9.7 s3,6.7,6.7,6.7c1.6,0,3.2-0.6,4.3-1.6l0.3,0.3v0.8l5.1,5.1l1.5-1.5L15.9,14.3z M9.7,14.3c-2.6,0-4.6-2.1-4.6-4.6s2.1-4.6,4.6-4.6 s4.6,2.1,4.6,4.6S12.3,14.3,9.7,14.3z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SearchAltIcon=a}),98); __d("WAWebSubgroupSwitcherIcon.react",["fbt","WAWebChevronCustomIcons","WAWebCommunityFeatureUsageWamEvent","WAWebCommunityGroupJourneyEventImpl","WAWebCommunitySubgroupSwitcher.react","WAWebDetailImage.react","WAWebFlex.react","WAWebIcChevronDownMenuIcon.react","WAWebMenuBar.react","WAWebModalManager","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUnstyledButton.react","WAWebWamEnumChatFilterActionTypes","WAWebWamEnumCommunityFeatureUiActionTakenType","WAWebWamEnumCommunityUiFeatureType","WAWebWamEnumSurfaceType","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={container:{height:"x1fgtraw",width:"xgd8bvy",position:"x1n2onr6",$$css:!0},parentGroupImage:{height:"x1fgtraw",width:"xgd8bvy",$$css:!0},chevron:{height:"x5yr21d",width:"xh8yej3",color:"x10gus5o",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",backgroundColor:"xkgd8lh",$$css:!0},menuBarBtnContainer:{display:"x78zum5",position:"x1n2onr6",height:"x5yr21d",borderTopStartRadius:"xdxvlk3",borderTopEndRadius:"x1fglp",borderBottomEndRadius:"x1rp6h8o",borderBottomStartRadius:"xg6i1s1",transitionProperty:"x15406qy",transitionDuration:"x1d8287x",transitionTimingFunction:"xwji4o3","@media screen and (max-width: 720px)_paddingTop":"xj8bxqt","@media screen and (max-width: 720px)_paddingEnd":"x1o9mn2u","@media screen and (max-width: 720px)_paddingBottom":"xpbnuc5","@media screen and (max-width: 720px)_paddingStart":"x2btq54","@media screen and (max-width: 720px)_marginTop":"x86at4b","@media screen and (max-width: 720px)_marginEnd":"xzl7c9v","@media screen and (max-width: 720px)_marginBottom":"x1ad89wd","@media screen and (max-width: 720px)_marginStart":"x1i1grao",$$css:!0},hoverBg:{":hover_backgroundColor":"x1z0qo99",$$css:!0},iconGroup:{color:"x2jp5ct",$$css:!0}};function m(a){var b=a.parentGroupId;a=a.size;return k.jsx(d("WAWebDetailImage.react").DetailImage,{id:b,size:a,shape:d("WAWebDetailImage.react").DetailImageShape.Squircle,xstyle:l.parentGroupImage})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.chat,e=(a=b.groupMetadata)==null?void 0:a.parentGroup;if(e==null)return null;a=function(a){a.stopPropagation(),new(d("WAWebCommunityFeatureUsageWamEvent").CommunityFeatureUsageWamEvent)({communityId:e.toString(),communityUiAction:d("WAWebWamEnumCommunityFeatureUiActionTakenType").COMMUNITY_FEATURE_UI_ACTION_TAKEN_TYPE.ENTRY,communityUiFeature:d("WAWebWamEnumCommunityUiFeatureType").COMMUNITY_UI_FEATURE_TYPE.SUBGROUP_SWITCH}).commit(),new(d("WAWebCommunityGroupJourneyEventImpl").CommunityGroupJourneyEvent)({action:d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.SUBGROUP_SWITCHER_CLICK,surface:d("WAWebWamEnumSurfaceType").SURFACE_TYPE.CHAT,chat:b}).commit(),d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebCommunitySubgroupSwitcher.react"),{chat:b}))};var f=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),g=k.jsx(m,{parentGroupId:e,size:28}),i=h._(/*BTDS*/"__JHASH__mpIGPHqNNXG__JHASH__");return f?k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(l.menuBarBtnContainer,d("WAWebUISpacing").uiMargin.start10,d("WAWebUISpacing").uiPadding.horiz10,d("WAWebUISpacing").uiPadding.top8,d("WAWebUISpacing").uiPadding.bottom5,d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&l.hoverBg,f&&d("WAWebUISpacing").uiPadding.start12,f&&d("WAWebUISpacing").uiPadding.end6,f&&d("WAWebUISpacing").uiPadding.top6,f&&d("WAWebUISpacing").uiPadding.bottom6),{children:k.jsx(c("WAWebUnstyledButton.react"),{testid:void 0,title:i,"aria-label":i,dataTab:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,onClick:a,children:k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:l.iconGroup,children:[g,k.jsx(d("WAWebIcChevronDownMenuIcon.react").IcChevronDownMenuIcon,{xstyle:d("WAWebUISpacing").uiMargin.start4,height:20})]})})})):k.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,xstyle:[l.container,d("WAWebUISpacing").uiPadding.all0],buttonStyle:[l.container,d("WAWebUISpacing").uiPadding.all0],onClick:a,title:i,testid:void 0,icon:k.jsxs(k.Fragment,{children:[g,k.jsx("div",babelHelpers["extends"]({className:"x10l6tqk xyzs4uy x1tk7jg1 xlup9mm x1kky2od xamhcws xol2nv xlxy82 x19p7ews x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xls5kiu x1vektf3 x1uy4w22 x1cte7vi x14yjl9h xudhj91 x18nykt9 xww2gxu"},{children:k.jsx(d("WAWebChevronCustomIcons").ChevronDownCustomIcon,{xstyle:l.chevron,height:16,width:16})}))]})})}a.displayName=a.name+" [from "+f.id+"]";g.SubgroupSwitcherIcon=a}),226); __d("WAWebHeader.react",["fbt","invariant","WAWebBlockContactUtils","WAWebBlockContants","WAWebBotGating","WAWebBroadcastMenuDropdown.react","WAWebBusinessProfileCollection","WAWebChatAssignmentNux.react","WAWebChatAssignmentUtils","WAWebChatGetters","WAWebChatGroupUtils","WAWebChatSearchDrawer.react","WAWebCmd","WAWebCommerceButton.react","WAWebConnModel","WAWebContactGetters","WAWebContactMenuDropdown.react","WAWebConversationMenus","WAWebDesktopUpsellCallingUnavailable.react","WAWebDesktopUpsellPlatformAwareHooks","WAWebDetailImage.react","WAWebDrawerManager","WAWebDropdown.react","WAWebEnvironment","WAWebFrontendChatGetters","WAWebFrontendContactGetters","WAWebGroupChatImage.react","WAWebGroupMenuDropdown.react","WAWebGroupSubtitle.react","WAWebGroupType","WAWebHostedGroupUtils","WAWebInfoFlowLoadable","WAWebKeyboardTabUtils","WAWebL10N","WAWebMenuBar.react","WAWebMenuIcon.react","WAWebMessageLogQplEvents","WAWebMoreRefreshedIcon.react","WAWebName.react","WAWebNewsletterChatHeaderSubtitle.react","WAWebNewsletterChatMenuDropdown.react","WAWebNewsletterConversationPanelHeader.react","WAWebNewsletterGatingUtils","WAWebSearchAltIcon.react","WAWebSearchRefreshedIcon.react","WAWebStackedCirclesImage.react","WAWebStateUtils","WAWebStylesEnv","WAWebSubgroupSwitcherIcon.react","WAWebTabOrder","WAWebThemeContext","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUseBusinessProfile.react","WAWebUseIsKeyboardUser","WAWebUserSubtitle.react","WAWebWamEnumProfileEntryPoint","asyncToGeneratorRuntime","cr:20251","react","stylex","useWAWebABPropConfigValue","useWAWebChatValues","useWAWebContactValues","useWAWebForceUpdate","useWAWebListener","useWAWebModelValues","useWAWebUIM","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g,h,i){var j,k,l;e=l||d("react");var m=j||(j=c("react")),n=e.useEffect,o=e.useRef,p=e.useState,q={chatControls:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",$$css:!0},chatHeader:{position:"x1n2onr6",zIndex:"xfo81ep",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",width:"xh8yej3",height:"x7j6532",backgroundColor:"x1pl83jw","::after_position":"x1j6awrg","::after_bottom":"x1te75w5","::after_start":"x162n7g1","::after_width":"x4eaejv","::after_height":"xcock1l","::after_content":"x1s928wv","::after_backgroundColor":"xl9llhp","::after_borderBottomWidth":"x1qj619r","::after_borderBottomStyle":"x1r9ni5o","::after_borderBottomColor":"xvkby78",$$css:!0},chatHeaderDarkOverride:{boxShadow:"xu306ak","::after_display":"x1h1zc6f",$$css:!0},chatHeaderStylesOverride:{backgroundColor:"x150wa6m",borderStartStyle:"x17r0tee",boxShadow:"x11iowje",$$css:!0},chatHeaderMaterial:{"::after_content":"x1s928wv","::after_display":"x1h1zc6f",$$css:!0},menuItemContainer:{position:"x1n2onr6",$$css:!0}};function r(a){var b,c;b=(a==null?void 0:(b=a.groupMetadata)==null?void 0:b.participants.iAmAdmin())&&((b=a.groupMetadata)==null?void 0:b.announce)?h._(/*BTDS*/"__JHASH__8QEb6bbwR8F__JHASH__"):h._(/*BTDS*/"__JHASH__jv1LMoRSLOC__JHASH__");var e;if(((c=a.groupMetadata)==null?void 0:c.groupType)===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP){(a==null?void 0:(c=a.groupMetadata)==null?void 0:c.participants.iAmAdmin())?e=h._(/*BTDS*/"__JHASH__TD6qdA9zn5C__JHASH__"):e=h._(/*BTDS*/"__JHASH__dhHo5hWiU_Z__JHASH__")}else if(((c=a.groupMetadata)==null?void 0:c.groupType)===d("WAWebGroupType").GroupType.LINKED_SUBGROUP&&((c=a.groupMetadata)==null?void 0:c.participants.iAmMember())){a=(c=a.groupMetadata)==null?void 0:c.getParentGroupChat();c=a==null?void 0:a.contact;a=c!=null?d("WAWebFrontendContactGetters").getFormattedName(c):null;a!=null&&(e=h._(/*BTDS*/"__JHASH__jeucOx6ke8r__JHASH__",[h._param("community",a)]))}return(c=e)!=null?c:b}function s(a,b,c){d("WAWebDrawerManager").DrawerManager.existsDrawerMid(function(e){if(e)return;a.contact.isBusiness&&d("WAWebMessageLogQplEvents").qplStartProfileView("Header");(d("WAWebChatGetters").getIsUser(a)||d("WAWebChatGetters").getIsBroadcast(a)||d("WAWebChatGetters").getIsGroup(a)||d("WAWebChatGetters").getIsNewsletter(a))&&d("WAWebDrawerManager").DrawerManager.openDrawerRight(m.jsx(d("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:d("WAWebStateUtils").unproxy(a),profileEntryPoint:c,sourceGroupChatOrNewsletter:d("WAWebChatGetters").getIsGroup(a)?a:void 0},"info-"+a.id.toString()),{transition:"slide-left",uim:b,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})})}function t(){d("WAWebDrawerManager").DrawerManager.existsDrawerRight(function(a){a&&d("WAWebDrawerManager").DrawerManager.closeDrawerRight()})}function a(a){var e,f,g,j,l=a.chat,u=a.contact;a=a.onSelectMessages;var v=c("useWAWebUIM")(),w=d("useWAWebForceUpdate").useForceUpdateDONOTUSE(),x=o(null),y=o(null);g=d("useWAWebChatValues").useChatValues(l.id,[(f=d("WAWebChatGetters")).getId,(g=d("WAWebFrontendChatGetters")).getFormattedTitle,g.getPresence,f.getIsUser,f.getIsNewsletter,f.getIsGroup,f.getIsBroadcast,g.getGroupMetadata,f.getIsPSA,g.getContact,f.getName,g.getAssignedAgent,g.getIsAssignedToMe,g.getNewsletterMetadata,f.getCapiThreadControl]);var z=g[0];g[1];f=g[2];var A=g[3],B=g[4],C=g[5],D=g[6],E=g[7],F=g[8];g[9];g[10];var G=g[11],H=g[12],I=g[13];g[14];g=c("WAWebUseIsKeyboardUser")();g=g.isKeyboardUser;var J=d("WAWebThemeContext").useIsDarkTheme(),K=d("useWAWebModelValues").useModelValues(f.chatstate,["type"]);j=d("useWAWebContactValues").useContactValues(u.id,[(j=d("WAWebContactGetters")).getIsMe,j.getShowBusinessCheckmarkAsPrimary,j.getShowBusinessCheckmarkAsSecondary,j.getShouldForceBusinessUpdate,j.getShowBiz3pBotVerifiedNameAsSecondary]);var L=j[0],M=j[1],N=j[2],O=j[3];j=j[4];e=(e=d("WAWebUseBusinessProfile.react").useBusinessProfile(d("WAWebBotGating").isBizBot3pAvailable()?u.id:null,["isBizBot3p"]))!=null?e:{};e=e.isBizBot3p;j=j&&e===!0;e=d("useWAWebModelValues").useOptionalModelValues(I,["membershipType","suspended","terminated","isSuspendedOrTerminated"]);I=c("useWAWebUnmountSignal")();var P=p(null),Q=P[0];P=P[1];n(function(){function a(){return c.apply(this,arguments)}function c(){c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebBusinessProfileCollection").BusinessProfileCollection.find(u.id),w()});return c.apply(this,arguments)}O&&a()},[]);var R=p(!0),S=R[0],aa=R[1],ba=function(a){d("WAWebDrawerManager").DrawerManager.existsDrawerMid(function(b){b&&a.preventDefault()})};R=function(a){a.preventDefault(),d("WAWebDrawerManager").DrawerManager.existsDrawerMid(function(a){a||d("WAWebDrawerManager").DrawerManager.openDrawerRight(m.jsx(c("WAWebChatSearchDrawer.react"),{chat:d("WAWebStateUtils").unproxy(l)},"chat-search-"+z.toString()),{transition:"slide-left",uim:v,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})})};var ca=function(){return d("WAWebHostedGroupUtils").isWAHostedGroupEnabled()&&(E==null?void 0:E.hasCapi)===!0?!0:!1},T=function(a){a((a=x.current)==null?void 0:a.getBoundingClientRect())};d("useWAWebListener").useListener(u.businessProfile,["change:profileOptions","change:catalogStatus"],w);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"get_conversation_header_offset",T);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"update_chatlist_selection",function(){return t()});d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"open_current_chat_info",function(){s(l,v,d("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.CHAT_HEADER)});d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"block_current_chat",function(){d("WAWebBlockContactUtils").handleBlock(l,d("WAWebBlockContants").BlockEntryPoint.OverflowMenuBlock)});d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"clear_current_chat_conversation_history",function(){d("WAWebCmd").Cmd.clearChat(l)});d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"exit_current_group",function(){C&&d("WAWebConversationMenus").handleDeleteOrExitChat(l)});T=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellAbPropCheck("call_btn");var U=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck();T=T&&U;U=d("useWAWebModelValues").useModelValues(d("WAWebConnModel").Conn,["pushname"]);U=U.pushname;var V=p(null),W=V[0],da=V[1];n(function(){if(d("WAWebChatAssignmentUtils").canAssignChat(l)&&G!=null){var a=H?h._(/*BTDS*/"__JHASH__9n8jUt1pVOX__JHASH__"):h._(/*BTDS*/"__JHASH__mAyf2Xfxd_w__JHASH__",[h._param("agentName",G.name)]);da(a)}},[U,l,G,H]);var X,Y;A?(X=m.jsx(c("WAWebContactMenuDropdown.react"),{chat:l,contact:u,onSelectMessages:a,toContextMenuManager:!0,enableChatThreadLogging:!0}),Y=m.jsx(c("WAWebUserSubtitle.react"),{contact:u,presence:f,chatstate:f.chatstate,location:"title",showBusinessCheckmark:N,showVerifiedName:j,assignmentSubtitle:W,chatId:z})):D?(X=m.jsx(c("WAWebBroadcastMenuDropdown.react"),{chat:d("WAWebStateUtils").unproxy(l),onSelectMessages:a,toContextMenuManager:!0}),Y=null):C?(X=m.jsx(c("WAWebGroupMenuDropdown.react"),{chat:d("WAWebStateUtils").unproxy(l),onSelectMessages:a,toContextMenuManager:!0}),(E==null?void 0:E.isSuspendedOrTerminated())?Y=null:(E==null?void 0:E.isUnnamed)?K.type==="typing"?Y=m.jsx(c("WAWebGroupSubtitle.react"),{chatstate:f.chatstate,groupMetadata:E,presence:f,placeholder:r(l),location:"title",assignmentSubtitle:W,chatId:z}):Y=null:Y=m.jsx(c("WAWebGroupSubtitle.react"),{chatstate:f.chatstate,groupMetadata:E,presence:f,placeholder:r(l),location:"title",assignmentSubtitle:W,chatId:z})):B&&(X=m.jsx(d("WAWebNewsletterChatMenuDropdown.react").NewsletterChatMenuDropdown,{chat:l,toContextMenuManager:!0,onSelectMessages:a}),Y=(e==null?void 0:e.suspended)===!0?null:m.jsx(c("WAWebNewsletterChatHeaderSubtitle.react"),{newsletterMetadata:e}));var Z;Q&&X&&(Z={menu:X,anchor:Q,autoFocus:g,dirX:c("WAWebL10N").isRTL()?d("WAWebDropdown.react").DirX.RIGHT:d("WAWebDropdown.react").DirX.LEFT,dirY:d("WAWebDropdown.react").DirY.BOTTOM,offsetY:5,type:d("WAWebDropdown.react").MenuType.DropdownMenu});V=null;U=d("useWAWebABPropConfigValue").useABPropConfigValue("enable_web_calling");(E==null?void 0:E.groupType)!==d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP&&!ca()&&!L&&!B&&!z.isBot()&&!u.isEnterprise&&!F&&(c("WAWebEnvironment").isWindows?(b("cr:20251")||i(0,95035),V=m.jsx(b("cr:20251"),{chat:l})):b("cr:20251")!=null&&U?V=m.jsx(b("cr:20251"),{chat:l}):T===!0&&(V=m.jsx(d("WAWebDesktopUpsellCallingUnavailable.react").WAWebDesktopCallingMenuButton,{})));A=(E==null?void 0:E.parentGroup)!=null&&E.participants.iAmMember();j=A?m.jsx(d("WAWebSubgroupSwitcherIcon.react").SubgroupSwitcherIcon,{chat:l}):null;D=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();K=B||d("WAWebChatGroupUtils").isSuspendedGroup(l)?null:m.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,testid:void 0,icon:D?m.jsx(d("WAWebSearchRefreshedIcon.react").SearchRefreshedIcon,{}):m.jsx(d("WAWebSearchAltIcon.react").SearchAltIcon,{}),title:h._(/*BTDS*/"__JHASH__mTVgM6PYlov__JHASH__"),onClick:R});F&&(Y=m.jsx(c("WAWebUserSubtitle.react"),{contact:u,presence:f,chatstate:f.chatstate,location:"title",showBusinessCheckmark:N,chatId:z}));var $;S&&($=m.jsx(c("WAWebChatAssignmentNux.react"),{targetRef:y,chat:l}));return I.aborted?null:m.jsxs("header",babelHelpers["extends"]({ref:x},(k||(k=c("stylex"))).props([q.chatHeader,d("WAWebUISpacing").uiPadding.vert10,d("WAWebUISpacing").uiPadding.horiz16,J&&q.chatHeaderDarkOverride,d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&q.chatHeaderMaterial,D&&q.chatHeaderStylesOverride]),{"data-testid":void 0,children:[m.jsx("div",babelHelpers["extends"]({className:"x1c4vz4f x2lah0s xdl72j9 x1i4ejaq x1y332i5"},{onClick:function(){return s(l,v,d("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.CHAT_HEADER)},title:h._(/*BTDS*/"__JHASH__M94AwrcVrNV__JHASH__"),role:F?null:"button",children:m.jsx(c("WAWebGroupChatImage.react"),{chat:l,theme:d("WAWebStackedCirclesImage.react").SubgroupImageTheme.CHAT_HEADER,regularChatImage:m.jsx(d("WAWebDetailImage.react").DetailImage,{id:z,size:40,ephemeralIcon:"conversation-header",hiddenSubgroupIcon:"conversation-header",enableAdsDataSharingIcon:!0,enableBizAiDataSharingIcon:!0}),showCommunityInfo:!0})})),m.jsxs("div",babelHelpers["extends"]({className:"x78zum5 xdt5ytf x1iyjqo2 xl56j7k xeuugli"},{onClick:function(){return s(l,v,d("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.CHAT_HEADER)},role:F?null:"button","data-testid":void 0,children:[m.jsx("div",babelHelpers["extends"]({className:"x78zum5 x1cy8zhl x1y332i5 xggjnk3 x1yc453h"},{children:m.jsx("div",babelHelpers["extends"]({},{0:{className:"x78zum5 x1q0g3np x1iyjqo2 x6ikm8r x10wlt62 x1jchvi3 x1fcty0u xdod15v x1wm35g x1yc453h xlyipyv xuxw1ft xh8yej3"},2:{className:"x78zum5 x1q0g3np x1iyjqo2 x6ikm8r x10wlt62 x1jchvi3 xdod15v x1wm35g x1yc453h xlyipyv xuxw1ft xh8yej3 x1s688f"},1:{className:"x78zum5 x1q0g3np x6ikm8r x10wlt62 x1jchvi3 x1fcty0u xdod15v x1wm35g x1yc453h xlyipyv xuxw1ft xh8yej3 x1c4vz4f x2lah0s xdl72j9"},3:{className:"x78zum5 x1q0g3np x6ikm8r x10wlt62 x1jchvi3 xdod15v x1wm35g x1yc453h xlyipyv xuxw1ft xh8yej3 x1s688f x1c4vz4f x2lah0s xdl72j9"}}[!!J<<1|!!d("WAWebStylesEnv").hasEmoji<<0],{children:m.jsx(d("WAWebName.react").Name,{chat:l,ellipsify:!0,showBusinessCheckmark:M,testid:void 0,showMessageYourselfName:L})}))})),Y]})),m.jsx("div",babelHelpers["extends"]({},k.props([q.chatControls,d("WAWebUISpacing").uiMargin.start20]),{children:m.jsxs(d("WAWebMenuBar.react").MenuBar,{children:[j,V,m.jsx(d("WAWebCommerceButton.react").CommerceButton,{chat:l}),d("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&m.jsx(c("WAWebNewsletterConversationPanelHeader.react"),{chat:l}),K,X!=null&&m.jsx("div",babelHelpers["extends"]({},(k||(k=c("stylex"))).props([q.menuItemContainer,d("WAWebUISpacing").uiMargin.start10]),{ref:P,children:m.jsx(d("WAWebMenuBar.react").MenuBarItem,{ref:y,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_HEADER_BUTTON,icon:D?m.jsx(d("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,{}):m.jsx(d("WAWebMenuIcon.react").MenuIcon,{xstyle:d("WAWebUISpacing").uiMargin.top2}),title:h._(/*BTDS*/"__JHASH__hskmX_lsgx4__JHASH__"),onClick:function(a){aa(!1),ba(a)},testid:void 0,dropdownMenu:Z})}))]},"conversation-header")})),$]}))}a.displayName=a.name+" [from "+f.id+"]";g.openInfoPanel=s;g.ConversationHeader=a}),226); __d("WAWebWamEnumDeleteActionType",[],(function(a,b,c,d,e,f){a=Object.freeze({DELETE_FOR_ME:0,DELETE_FOR_EVERYONE:1});f.DELETE_ACTION_TYPE=a}),66); __d("WAWebMessageDeleteActionsWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDeleteActionType","WAWebWamEnumMediaType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({MessageDeleteActions:[3626,{deleteActionType:[1,d("WAWebWamEnumDeleteActionType").DELETE_ACTION_TYPE],isAGroup:[2,a.TYPES.BOOLEAN],mediaType:[6,d("WAWebWamEnumMediaType").MEDIA_TYPE],messagesDeleted:[3,a.TYPES.INTEGER],threadId:[4,a.TYPES.STRING]},[1,1,1],"regular"]},{MessageDeleteActions:[]});g.MessageDeleteActionsWamEvent=b}),98); __d("WAWebMutePopup.react",["fbt","WAWebConfirmPopup.react","WAWebEmojiText.react","WAWebModalManager","WAWebMuteExpirations","WAWebRadio.react","WAWebText.react","WAWebUserPrefsGeneral","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useEffect,m=b.useState;function n(){d("WAWebModalManager").ModalManager.close()}function a(a){var b=a.onMute,c=a.children,e=d("useWAWebModelValues").useModelValues(a.mute,["id","expiration","callExpiration"]),f=m(null),g=f[0],i=f[1],j=function(a){i(a)},o=function(){return g!=null&&g!==0?g:d("WAWebUserPrefsGeneral").getLastChatMuteDuration()||d("WAWebMuteExpirations").getDefaultMuteDuration()};f=function(){d("WAWebModalManager").ModalManager.close();var c=o();d("WAWebUserPrefsGeneral").setLastChatMuteDuration(c);b(d("WAWebMuteExpirations").calculateMuteExpiration(c),c,a.entryPoint==null?0:a.entryPoint)};l(function(){e.expiration!=null&&e.expiration!==0&&e.callExpiration!=null&&e.callExpiration!==0&&n()},[e.callExpiration,e.expiration,a]);var p=a.onCancel||n,q=o();q=k.jsx(d("WAWebRadio.react").RadioGroup,{name:"ractionMuteDuration",theme:d("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:q,options:d("WAWebMuteExpirations").ALL_MUTE_DURATIONS.map(function(a){var b=a.getLabel,c=a.duration;a=a.radioId;return{value:c,label:b(),testid:a,onChange:function(){return j(c)}}})});return k.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{title:k.jsx(d("WAWebEmojiText.react").EmojiText,{text:a.title}),okText:h._(/*BTDS*/"__JHASH__AySi36Pq4Yv__JHASH__"),onOK:f,onCancel:p,testid:void 0,children:[c!=null&&k.jsx(d("WAWebText.react").WAWebTextMuted,{paddingBottom:12,children:c}),q]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNewsletterRevokeMsgAction",["Promise","WAAckLevel","WALogger","WATimeUtils","WAWebAssociatedMessagesRevokeUtils","WAWebChatSendMessages","WAWebDBStoreRevokeMsgs","WAWebMsgActionCapability","WAWebMsgKey","WAWebMsgModel","WAWebMsgType","WAWebNewsletterSendMessageJob","WAWebNewsletterValidationUtils","WAWebSendMsgResultAction","WAWebUpdateNewsletterMsgUIAction","WAWebUserPrefsMeUser","WAWebViewMode.flow","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter] Failed to send message"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter] Failed to send message, "," from server"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter] Sent revoke message "," -> ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["[sendNewsletterRevokeMsg] missing serverId"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["sendNewsletterRevokeMsg: msg cannot be revoked"]);m=function(){return a};return a}function a(a,c,d){return(h||(h=b("Promise"))).all(c.map(function(b){return n(a,b,d)}))}function n(a,b,c){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e){var f=(yield p(a,c,e));if(f.messageSendResult!==d("WAWebSendMsgResultAction").SendMsgResult.OK)return f;void (h||(h=b("Promise"))).all(yield d("WAWebAssociatedMessagesRevokeUtils").getAssociatedChildMessageRevokePromises(c,function(b){return p(a,b,e)}));return f});return o.apply(this,arguments)}function p(a,b,c){return q.apply(this,arguments)}function q(){q=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){if(!d("WAWebMsgActionCapability").canRevokeNewsletterMsg(b)){d("WALogger").LOG(m()).devConsole(b);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.ERROR_CANCELLED}}var e=b.serverId;if(e==null){d("WALogger").ERROR(l()).devConsole(b).tags("newsletter").sendLogs("newsletter-revoke-missing-id");return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.ERROR_CANCELLED}}var f=d("WAWebUserPrefsMeUser").getMeUser(),g=r(b,c,f);try{var h=d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.id.toJid());h=(yield d("WAWebNewsletterSendMessageJob").sendNewsletterMessageJob({newsletterJid:h,messageId:b.id.id,isContentMedia:b.mediaObject!=null,type:"revoke",isWamoSub:b.isWamoSub}));if(h.success){d("WALogger").DEV(k(),e,a.id.toJid());return yield s({chat:a,msgToBeRevoked:b,revokeMsg:g,me:f})}else if(h.ack.error==="404")return u({chat:a,msgToBeRevoked:b,clearMedia:c});d("WALogger").ERROR(j(),h.ack.error).tags("newsletter").devConsole(h.ack.error).sendLogs("newsletter-send-revoke-message-fail-server");g.updateAck(d("WAAckLevel").ACK.FAILED,!0);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.ERROR_NETWORK}}catch(a){d("WALogger").ERROR(i()).tags("newsletter").devConsole(a).sendLogs("newsletter-send-revoke-message-fail-client");g.updateAck(d("WAAckLevel").ACK.FAILED,!0);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.ERROR_UNKNOWN}}});return q.apply(this,arguments)}function r(a,b,e){var f=new(c("WAWebMsgKey"))({id:c("WAWebMsgKey").newId_DEPRECATED(),remote:a.id.remote,fromMe:!0}),g="admin_revoke",h=d("WATimeUtils").unixTime();f={id:f,from:e,to:a.id.remote,t:h,type:d("WAWebMsgType").MSG_TYPE.PROTOCOL,subtype:g,protocolMessageKey:a.id,clearMedia:b,local:!0,revokeDuration:h-a.t,revokeTimestamp:h,serverId:a.serverId,viewMode:d("WAWebViewMode.flow").ViewModeType.NEWSLETTER_TOMBSTONE};return new(d("WAWebMsgModel").Msg)(f)}function s(a){return t.apply(this,arguments)}function t(){t=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.chat,c=a.msgToBeRevoked,e=a.revokeMsg;a=a.me;yield d("WAWebDBStoreRevokeMsgs").processRevokeMsgs([{revokeMsgKey:c.id,newMsgKey:e.id,timestamp:c.t,revokeTimestamp:e.t,subtype:e.subtype,sender:a,disappearingModeInitiator:c.disappearingModeInitiator,ephemeralDuration:c.ephemeralDuration,ephemeralSettingTimestamp:c.ephemeralSettingTimestamp,viewMode:e.viewMode}]);void d("WAWebUpdateNewsletterMsgUIAction").updateNewsletterMessageUI(e,b.id);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.OK}});return t.apply(this,arguments)}function u(a){return v.apply(this,arguments)}function v(){v=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.chat,c=a.msgToBeRevoked;a=a.clearMedia;yield d("WAWebChatSendMessages").sendDeleteMsgs(b,{type:"message",list:[c]},a);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.OK}});return v.apply(this,arguments)}g.sendNewsletterRevokeMsgs=a;g.sendNewsletterRevokeMsg=n}),98); __d("WAWebPipOgVideoPlayer.react",["WAWebPipConst","WAWebPipSharedVideoPlayer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){return i.jsx(d("WAWebPipSharedVideoPlayer.react").WrappedSharedVideoPlayer,{type:d("WAWebPipConst").PlayerType.OG_FLOATER,ogVideoInfo:a.ogVideoInfo,startTime:a.startTime,onClose:a.onClose,onVideoEnded:a.onVideoEnded,onError:a.onError,onAspectRatio:a.onAspectRatio,onVideoDimensions:a.onVideoDimensions,autoPlay:a.autoPlay,disablePiPControls:a.disablePiPControls,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebProductCatalogProductImageViewerHeader.react",["WAWebBusinessDescriptionIcon.react","WAWebCellFrame.react","WAWebContactCollection","WAWebDescriptionRefreshedIcon.react","WAWebDetailImage.react","WAWebEmojiText.react","WAWebFbtCommon","WAWebMenuBar.react","WAWebName.react","WAWebText.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebXViewerIcon.react","react","stylex","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={productNameIcon:{color:"xt16idv",$$css:!0},info:{flexGrow:"x1iyjqo2",order:"x14yy4lh",marginEnd:"x194xeti",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},mediaPanelTools:{order:"x9ek82g",$$css:!0}};function a(a){var b=a.isImgZoomedIn,e=a.onClose;a=a.product;a=d("useWAWebModelValues").useModelValues(a,["name","catalogWid"]);var f=j.jsx(d("WAWebXViewerIcon.react").XViewerIcon,{}),g=d("WAWebContactCollection").ContactCollection.get(a.catalogWid);if(g){var h=j.jsx(d("WAWebName.react").Name,{contact:g,selectable:!0,useVerifiedName:!0});g=j.jsx(d("WAWebDetailImage.react").DetailImage,{id:g.id,size:40});var l=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebDescriptionRefreshedIcon.react").DescriptionRefreshedIcon:d("WAWebBusinessDescriptionIcon.react").BusinessDescriptionIcon;l=j.jsxs("div",{children:[j.jsx(l,{xstyle:[k.productNameIcon,d("WAWebUISpacing").uiMargin.end2],displayInline:!0,width:17,height:20}),j.jsx(d("WAWebEmojiText.react").EmojiText,{text:a.name,titlify:!0,ellipsify:!0})]});g=j.jsx(c("WAWebCellFrame.react"),{idle:!0,image:g,primary:h,secondary:l,theme:"media"})}else g=j.jsx(d("WAWebText.react").WAWebTextLarge,{as:"span",paddingStart:12,children:j.jsx(d("WAWebEmojiText.react").EmojiText,{text:a.name,titlify:!0,ellipsify:!0})});return j.jsxs("div",babelHelpers["extends"]({},{0:{className:"x78zum5 x1c4vz4f x15zctf7 x6s0dn4 xng8ra x114d0zl xeg851g x1d8287x xeerw82"},1:{className:"x78zum5 x1c4vz4f x15zctf7 x6s0dn4 xng8ra x114d0zl xeg851g x1d8287x xeerw82 xlshs6z xg01cxk"}}[!!b<<0],{children:[j.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(k.info,d("WAWebUISpacing").uiMargin.start5),{children:g})),j.jsx("div",babelHelpers["extends"]({},i.props(k.mediaPanelTools,d("WAWebUISpacing").uiMargin.end18),{children:j.jsx(d("WAWebMenuBar.react").MenuBar,{theme:"strong",children:j.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,icon:f,title:c("WAWebFbtCommon")("Close"),onClick:e})},"media-panel-header")}))]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),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(a,b,c,d,e,f,g){var h,i,j;b=j||d("react");var k=h||(h=c("react")),l=b.useRef,m=b.useState,n={mediaCaption:{flexShrink:"xs83m0k",width:"x14atkfc",maxWidth:"x14r61f",minHeight:"xisnujt",maxHeight:"x569fbc",overflowY:"x10wlt62",color:"x16cd2qt",wordWrap:"x1vvkbs",whiteSpace:"x126k92a",transitionProperty:"xeg851g",transitionDuration:"x1d8287x",transitionTimingFunction:"xeerw82",$$css:!0},imgZoomedInMediaCaption:{visibility:"xlshs6z",opacity:"xg01cxk",$$css:!0},btnMediaNext:{position:"x1n2onr6",marginStart:"xczobcr",$$css:!0},btnMediaPrev:{position:"x1n2onr6",marginEnd:"xf6nle2",$$css:!0},mediaContent:{boxSizing:"x9f619",display:"x78zum5",flexGrow:"x1iyjqo2",flexShrink:"x2lah0s",flexDirection:"x1q0g3np",alignItems:"x6s0dn4",justifyContent:"x1qughib",height:"x4t50tc",$$css:!0}},o=800;function a(a){var b=a.getZoomNode,e=a.zoomIn,f=a.onImgZoomIn,g=a.onExitAnimation,h=a.onBack,j=l(null),p=l(!1),q=l(!1),r=l(!1),s=l(null),t=d("useWAWebModelValues").useModelValues(a.mediaData,["mediaStage","renderableUrl","isGif","type"]),u=d("useWAWebModelValues").useModelValues(a.product,["description"]),v=d("useWAWebModelValues").useModelValues(a.productImage,["videoUrl","mediaUrl"]),w=m(!1),x=w[0],y=w[1];w=m(function(){return t.mediaStage===d("WAWebMediaTypes").MediaDataStage.RESOLVED&&e&&b?b():null});var z=w[0];w=m({width:o,height:o});var A=w[0];w=w[1];var B=d("WAWebTextSizeUtils").getWAWebTextSizeStyles(),C=function(a,b){var e=b.getBoundingClientRect(),f=a.getBoundingClientRect(),g=f.top-e.top;f=f.left-e.left;e=a.clientWidth/b.clientWidth;var h=(b.clientHeight-a.clientHeight)/2;a=(b.clientWidth-a.clientWidth)/2;g-=h;f-=a;void c("WAWebVelocityAnimate")(b,{opacity:[1,0],translateX:[0,f],translateY:[0,g],scale:[1,e]},{duration:d("WAWebMediaViewerConstants").ANIMATION_DURATION,easing:[.1,.82,.25,1]});j.current&&void c("WAWebVelocityAnimate")(j.current,{opacity:[1,0]},{duration:d("WAWebMediaViewerConstants").ANIMATION_DURATION})},D=function(a){if(p.current)return;p.current=!0;var b=z;a=a.currentTarget;if(!b||!a||!e)return;if(!(a instanceof HTMLElement))return;C(b,a)},E=function(a){var b=s.current;a&&b&&(r.current=b.getHeightOverflow()>0||b.getWidthOverflow()>0);y(a);f(a)},F=function(a){var b=s.current;b&&x&&b.onClick(a)},G=function(a,b){var e=s.current;if(!e)return;var f=e.getInsideContainer();if(!f||!(f instanceof HTMLElement))return;var g=e.getOutsideContainer();if(!g||!(g instanceof HTMLElement))return;e=e.getTranslatePosition(g,a,b);g=e.translateX;a=e.translateY;void c("WAWebVelocityAnimate")(f,"stop");void c("WAWebVelocityAnimate")(f,{translateX:g,translateY:a,scale:d("WAWebMediaViewerConstants").ZOOM_IN_FACTOR},{duration:0})},H=function(a){G(a.pageX,a.pageY)},I=function(){if(q.current)return;q.current=!0;d("WATypeUtils").isFunction(g)&&g();if(!b)return h();var a=b();if(!a)return h();if(!(s==null?void 0:s.current))return h();var e=c("WANullthrows")(s.current.getInsideContainer()),f=e.getBoundingClientRect(),i=a.getBoundingClientRect(),j=i.top-f.top;i=i.left-f.left;f=a.clientWidth/e.clientWidth;var k=(e.clientHeight-a.clientHeight)/2;a=(e.clientWidth-a.clientWidth)/2;j-=k;i-=a;void c("WAWebVelocityAnimate")(e,{translateX:[i,0],translateY:[j,0],scale:[f,1]},{duration:200,easing:[.1,.82,.25,1]}).then(function(){h()})},J=function(a){Math.abs(a.deltaY)>7&&I()};v.videoUrl!=null?A=k.jsx(c("WAWebObjectFit.react"),{type:"scaleDown",position:"relative",objectPosition:"relative",size:A,children:k.jsx(c("WAWebPipOgVideoPlayer.react"),{autoPlay:!0,ogVideoInfo:{videoUrl:v.videoUrl,previewUrl:""},onVideoDimensions:w,onClose:I,startTime:0})}):A=k.jsx(c("WAWebMediaImage.react"),{mediaData:t,onLoad:D,onImgZoomIn:E,ref:s,preventDownload:!1},t.renderableUrl);var K;if(u.description!=null&&u.description!==""){v=a.zoomIn&&(t.isGif||t.type===c("WAWebMediaData").TYPE.IMAGE);K=k.jsx("span",babelHelpers["extends"]({},{0:{},1:{className:"xg01cxk"}}[!!v<<0],{ref:j,children:k.jsx(d("WAWebEmojiText.react").EmojiText,{text:u.description,className:(i||(i=c("stylex")))(n.mediaCaption,d("WAWebUISpacing").uiMargin.top12,a.isImgZoomedIn&&n.imgZoomedInMediaCaption,B.mediaCaptionTextSize)})}))}w=function(b){a.onPrev==null?void 0:a.onPrev(b)};D=function(b){a.onNext==null?void 0:a.onNext(b)};E=k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(n.btnMediaNext,d("WAWebUISpacing").uiMargin.end18),{children:k.jsx(d("WAWebChevronButton.react").ChevronButton,{type:d("WAWebChevronButton.react").ButtonType.Next,onClick:D,onKeyDown:D,disabled:!a.onNext||x})}));v=k.jsx("div",babelHelpers["extends"]({},i.props(n.btnMediaPrev,d("WAWebUISpacing").uiMargin.start18),{children:k.jsx(d("WAWebChevronButton.react").ChevronButton,{type:d("WAWebChevronButton.react").ButtonType.Prev,onClick:w,onKeyDown:w,disabled:!a.onPrev||x})}));B=x?null:J;D=x?null:I;w=x&&r.current?H:null;J=x?F:null;return k.jsx(d("WAWebUimUie.react").UIE,{displayName:"ProductViewer",escapable:!0,requestDismiss:I,children:k.jsxs("div",babelHelpers["extends"]({},{0:{className:"x1oyvh86 x78zum5 xdt5ytf xn4wywj x1ecsr37 xixxii4 x13vifvy x17qophe x9f619 xh8yej3 x5yr21d"},2:{className:"x127lhb5 xfbpl4g x1alahoq x1oyvh86 x78zum5 xdt5ytf xn4wywj x1ecsr37 xixxii4 x13vifvy x17qophe x9f619 xh8yej3 x5yr21d"},1:{className:"xzuqxi3 x1oyvh86 x78zum5 xdt5ytf xn4wywj x1ecsr37 xixxii4 x13vifvy x17qophe x9f619 xh8yej3 x5yr21d"},3:{className:"x127lhb5 xfbpl4g x1alahoq xzuqxi3 x1oyvh86 x78zum5 xdt5ytf xn4wywj x1ecsr37 xixxii4 x13vifvy x17qophe x9f619 xh8yej3 x5yr21d"}}[!!a.zoomIn<<1|!!x<<0],{"data-animate-media-viewer":!0,onClick:J,onMouseMove:w,children:[k.jsx(c("WAWebProductCatalogProductImageViewerHeader.react"),{onClose:I,product:u,isImgZoomedIn:a.isImgZoomedIn}),k.jsxs("div",babelHelpers["extends"]({},i.props(n.mediaContent,d("WAWebUISpacing").uiPadding.top10,d("WAWebUISpacing").uiPadding.bottom15),{dir:"ltr",onWheel:B,onClick:D,children:[v,k.jsxs("div",babelHelpers["extends"]({},{0:{className:"x1n2onr6 x78zum5 x6s0dn4 xl56j7k xh8yej3 xeuugli x5yr21d"},1:{className:"xdt5ytf x1n2onr6 x78zum5 x6s0dn4 xl56j7k xh8yej3 xeuugli x5yr21d"}}[!!!!K<<0],{children:[k.jsx("div",babelHelpers["extends"]({className:"x1n2onr6 x78zum5 x6s0dn4 xl56j7k xh8yej3 xeuugli x5yr21d"},{children:A})),K]})),E]}))]}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebProductCatalogProductImageViewFlow.react",["Keys","WAWebModalManager","WAWebProductCatalogLogEvents","WAWebProductCatalogProductImageViewerModal.react","WAWebProductCatalogProductThumb.react","WAWebStateUtils","WAWebUISpacing","WAWebVelocityAnimate","WAWebVelocityTransitionGroup","react","stylex","useWAWebListener","useWAWebPrevious","useWAWebRenderCallbacks"],(function(a,b,c,d,e,f,g){var h,i,j;b=j||d("react");var k=h||(h=c("react")),l=b.useCallback,m=b.useEffect,n=b.useRef,o=b.useState,p={viewerThumbs:{display:"x78zum5",width:"xh8yej3",overflowX:"x14aock7",$$css:!0}};function a(a){var b=a.product,e=a.productImageCollection,f=a.activeProductImage,g=a.sessionId,h=n(!1),j=n(null),q=n(null),r=n(null),s=o(function(){return e.toArray().indexOf(f)}),t=s[0],u=s[1];s=o(!1);var v=s[0],w=s[1];s=c("useWAWebPrevious")(b);var x=c("useWAWebPrevious")(g),y=c("useWAWebPrevious")(t),z=l(function(a){a!==t&&(d("WAWebProductCatalogLogEvents").logImageNavigate({product:d("WAWebStateUtils").unproxy(b),catalogSessionId:g}),d("WAWebProductCatalogLogEvents").logImageListClick({product:d("WAWebStateUtils").unproxy(b),catalogSessionId:g})),u(a)},[t,b,g]),A=l(function(a,b){a&&a.stopPropagation();if(v)return;a=e.length;b=t+b;b=b<0?a-1:b%a;z(b)},[t,z,v,e.length]),B=function(a){a&&a.preventDefault(),a.keyCode===c("Keys").LEFT?A(a,-1):a.keyCode===c("Keys").RIGHT&&A(a,1)};d("useWAWebListener").useListener(window,"keydown",B);var C=function(a){var b;a===void 0&&(a=!1);var d=q.current;b=(b=r.current)==null?void 0:b.firstChild;var e=j.current;if(!d||!b||!e)return;var f=0;e instanceof HTMLElement&&(f=e.clientWidth/2-d.clientWidth/2);void c("WAWebVelocityAnimate")(e,"stop");d=0;a&&(d=300);void c("WAWebVelocityAnimate")(e,"scroll",{duration:d,container:b,offset:f,axis:"x",easing:[.1,.82,.25,1]})};c("useWAWebRenderCallbacks")({onMount:function(){C(),q.current&&void c("WAWebVelocityAnimate")(q.current,{opacity:[1,0],translateY:["0%","100%"]},{duration:300,delay:100,easing:[.1,.82,.25,1]}),d("WAWebProductCatalogLogEvents").logImageCarouselModalView({product:d("WAWebStateUtils").unproxy(b),catalogSessionId:g})}});B=function(a){w(a)};var D=function(){d("WAWebModalManager").ModalManager.closeMedia()},E=function(){if(!q.current)return;void c("WAWebVelocityAnimate")(q.current,{opacity:[0,1],translateY:["100%","0%"]},{duration:300,easing:[.1,.82,.25,1]})};m(function(){y!==t&&(C(!0),d("WAWebProductCatalogLogEvents").logFullImageView({product:d("WAWebStateUtils").unproxy(b),catalogSessionId:g}))},[t,y,s,x,b,g]);s=e.length;x=t>0?function(a){return A(a,-1)}:null;s=t+1<s?function(a){return A(a,1)}:null;return k.jsxs("div",{className:v?"img-zoomed-in":null,children:[k.jsx("div",babelHelpers["extends"]({},{0:{className:"x10l6tqk x1ey2m1c xaivifb x9f619 x78zum5 xdt5ytf x6s0dn4 x1nhvcw1 xh8yej3 xpyat2d x6ikm8r x10wlt62 x178xt8z x13fuv20 x1sdoubt xg01cxk xqu7myx"},1:{className:"x10l6tqk x1ey2m1c xaivifb x9f619 x78zum5 xdt5ytf x6s0dn4 x1nhvcw1 xh8yej3 xpyat2d x6ikm8r x10wlt62 x178xt8z x13fuv20 x1sdoubt xqu7myx x1yn0zye xvdu4fi"}}[!!v<<0],{ref:q,children:k.jsx("div",babelHelpers["extends"]({ref:r},{className:"xh8yej3"},{dir:"ltr",children:k.jsxs(c("WAWebVelocityTransitionGroup"),{className_DONOTUSE:(i||(i=c("stylex")))([p.viewerThumbs,d("WAWebUISpacing").uiPadding.vert8]),transitionName:"thumb-scale",children:[k.createElement("div",babelHelpers["extends"]({className:"x1mkiy5m"},{key:"padding-left"})),e.toArray().map(function(a,b){var c=b===t;return k.jsx(d("WAWebProductCatalogProductThumb.react").ProductThumb,{theme:"viewerFlow",active:c,ref:c?j:null,mediaData:a.mediaData,onClick:function(){return z(b)}},"product-image-"+b)}),k.createElement("div",babelHelpers["extends"]({className:"x1mkiy5m"},{key:"padding-right"}))]})}))})),k.jsx(c("WAWebProductCatalogProductImageViewerModal.react"),{mediaData:e.toArray()[t].mediaData,productImage:e.toArray()[t],onBack:D,onExitAnimation:E,onNext:s,onPrev:x,onImgZoomIn:B,getZoomNode:a.getZoomNode,zoomIn:h.current,isImgZoomedIn:v,product:b,sessionId:a.sessionId})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebSendProductModalLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingModal.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizSendProductModal.react").__setRef("WAWebSendProductModalLoadable").load());return a}),"SendProductModal");d=c("react-loadable")({loader:a,loading:function(a){return j.jsx(c("WAWebLoadingModal.react"),{title:h._(/*BTDS*/"__JHASH__Pz11_y6jv6u__JHASH__"),error:Boolean(a.error)})}});g.requireBundle=a;g.SendProductModalLoadable=d}),226); __d("WAWebChatArchiveBridge",["WALogger","WASyncdConst","WATimeUtils","WAWebApiActiveMessageRanges","WAWebArchiveChatSync","WAWebMessageRangeUtils","WAWebMiscErrors","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["update chat table failed"]);h=function(){return a};return a}function a(a,e,f){f=d("WATimeUtils").unixTimeMs();return c("WAWebArchiveChatSync").getMutationsForArchive(f,e,a).then(function(){var f=b("asyncToGeneratorRuntime").asyncToGenerator(function*(f){try{yield d("WAWebMessageRangeUtils").lockForMessageRangeSync(["chat"],f,function(){var g=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){b=b[0];if(f[0].action!==d("WASyncdConst").Actions.Archive)throw c("err")("syncd: expected archive action from getMutationsForArchive");yield d("WAWebApiActiveMessageRanges").addActiveMessageRange(a.toString(),"archive",f[0].binarySyncAction);return b.merge(a.toString(),i(e))});return function(a){return g.apply(this,arguments)}}());return{status:200}}catch(a){if(a instanceof d("WAWebMiscErrors").DbOnLogoutAbort)throw a;d("WALogger").ERROR(h()).verbose().devConsole(a).sendLogs("update chat table failed when send conversation to archive");throw c("err")("update chat table failed")}});return function(a){return f.apply(this,arguments)}}())}function i(a){var b={archive:a};a&&(b.pin=void 0);return b}g.sendConversationArchive=a}),98); __d("WAWebSetArchiveChatAction",["fbt","Promise","WAAbortError","WALogger","WAWebActionToast.react","WAWebChatArchiveBridge","WAWebMiscErrors","WAWebNoop","WAWebStateUtils","WAWebToastManager","react"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["models:chat:setArchive dropped"]);k=function(){return a};return a}var l=j||c("react");function a(a,b,c){return m(d("WAWebStateUtils").unproxy(a),b,c)}function m(a,e,f,g){g===void 0&&(g=d("WAWebActionToast.react").genId());if(a.archive===e)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());var j=a.promises;if(j.setArchive)return j.setArchive.promise;var n=a.getLastMsgKeyForAction(),o=new AbortController(),p=o.signal;n=d("WAWebChatArchiveBridge").sendConversationArchive(a.id,e,n);var q=e?new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__TbdFR9SFyko__JHASH__")):new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__aafThUMTB5r__JHASH__")),r=n.then(function(b){if(p.aborted)throw new(d("WAAbortError").AbortError)();var c;if(b.status===200){c=e?h._(/*BTDS*/"__JHASH__Dk9cAZTATJ5__JHASH__"):h._(/*BTDS*/"__JHASH__71z-T1_c3m6__JHASH__");return new(d("WAWebActionToast.react").ActionType)(c,{actionText:h._(/*BTDS*/"__JHASH__mpD8GydGn1Q__JHASH__"),actionHandler:function(){return m(a,!e,f,g)}})}else if(b.status>=400)return e?new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__uHolzO1t-s4__JHASH__")):new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__Gi641J940rP__JHASH__"))})["catch"](d("WAAbortError").catchAbort(c("WAWebNoop")))["catch"](function(b){d("WALogger").WARN(k()).devConsole(b);b=e?h._(/*BTDS*/"__JHASH__uHolzO1t-s4__JHASH__"):h._(/*BTDS*/"__JHASH__Gi641J940rP__JHASH__");return new(d("WAWebActionToast.react").ActionType)(b,{actionText:h._(/*BTDS*/"__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return m(a,e,f,g)}})});f&&d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebActionToast.react").ActionToast,{id:g,initialAction:q,pendingAction:r}));q=n.then(function(b){b.status===200&&(a.archive=e,e&&(a.pin=void 0))})["finally"](function(){delete j.setArchive});r={promise:q,abortController:o,archive:e};j.setArchive=r;return q}g.setArchive=a}),226); __d("WAWebSetPinChatAction",["fbt","WAAbortError","WALogger","WATimeUtils","WAWebActionToast.react","WAWebChatGetters","WAWebChatPinBridge","WAWebNoop","WAWebStateUtils","WAWebToastManager","react"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["models:chat:setPin dropped"]);j=function(){return a};return a}var k=i||c("react");function a(a,b){return l(d("WAWebStateUtils").unproxy(a),b)}function l(a,b,e){e===void 0&&(e=d("WAWebActionToast.react").genId());var f=a.promises;f.setPin&&f.setPin.abortController.abort();var g=0,i,n=d("WATimeUtils").unixTimeMs();b?g=n:i=a.pin;var o=new AbortController(),p=o.signal;n=d("WAWebChatPinBridge").setPin(a.id,g,i,n);var q=b?new(d("WAWebActionToast.react").ActionType)(m.getPinningText(a)):new(d("WAWebActionToast.react").ActionType)(m.getUnpinningText(a)),r=n.then(function(){if(p.aborted)throw new(d("WAAbortError").AbortError)();var c=b?m.getPinnedText(a):m.getUnpinnedText(a);return new(d("WAWebActionToast.react").ActionType)(c,{actionText:h._(/*BTDS*/"__JHASH__mpD8GydGn1Q__JHASH__"),actionHandler:function(){return l(a,!b,e)}})})["catch"](d("WAAbortError").catchAbort(c("WAWebNoop")))["catch"](function(c){if(c.status===405)return new(d("WAWebActionToast.react").ActionType)(m.getPinLimitExceededText(a));else if(c.status>=400)return b?new(d("WAWebActionToast.react").ActionType)(m.getFailedToPinText(a)):new(d("WAWebActionToast.react").ActionType)(m.getFailedToUnpinText(a));d("WALogger").WARN(j()).devConsole(c);c=b?m.getFailedToPinText(a):m.getFailedToUnpinText(a);return new(d("WAWebActionToast.react").ActionType)(c,{actionText:h._(/*BTDS*/"__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return l(a,b,e)}})});d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebActionToast.react").ActionToast,{id:e,initialAction:q,pendingAction:r}));q=n.then(function(){a.pin=g})["finally"](function(){f.setPin=null});f.setPin={promise:q,abortController:o};return q}var m={getPinnedText:function(a){return d("WAWebChatGetters").getIsNewsletter(a)?h._(/*BTDS*/"__JHASH__oExNR-vYIRW__JHASH__"):h._(/*BTDS*/"__JHASH__-r9TRFJ5S0y__JHASH__")},getUnpinnedText:function(a){return d("WAWebChatGetters").getIsNewsletter(a)?h._(/*BTDS*/"__JHASH__U_A9KUVuL68__JHASH__"):h._(/*BTDS*/"__JHASH__3fp6z6wLXhg__JHASH__")},getPinningText:function(a){return d("WAWebChatGetters").getIsNewsletter(a)?h._(/*BTDS*/"__JHASH__6kf7hJTMpcl__JHASH__"):h._(/*BTDS*/"__JHASH__2SOVYSlhH0t__JHASH__")},getUnpinningText:function(a){return d("WAWebChatGetters").getIsNewsletter(a)?h._(/*BTDS*/"__JHASH__Y5SM9N52ved__JHASH__"):h._(/*BTDS*/"__JHASH__70gJ-_86QzW__JHASH__")},getFailedToPinText:function(a){return d("WAWebChatGetters").getIsNewsletter(a)?h._(/*BTDS*/"__JHASH__7WWnmgbi4JR__JHASH__"):h._(/*BTDS*/"__JHASH__1ywGip8Prrx__JHASH__")},getFailedToUnpinText:function(a){return d("WAWebChatGetters").getIsNewsletter(a)?h._(/*BTDS*/"__JHASH__WOhDs6smwXn__JHASH__"):h._(/*BTDS*/"__JHASH__QVJOwwes6r5__JHASH__")},getPinLimitExceededText:function(a){if(d("WAWebChatGetters").getIsNewsletter(a)){a=d("WAWebChatPinBridge").getPinLimit(a.id);return h._(/*BTDS*/"__JHASH__wxMBmGOC57S__JHASH__",[h._plural(a,"number")])}return h._(/*BTDS*/"__JHASH__UzeP8hBnHlZ__JHASH__")}};g.setPin=a}),226); __d("WAWebWamEnumSnackbarActionType",[],(function(a,b,c,d,e,f){a=Object.freeze({SNACKBAR_SHOWN:0,MESSAGE_UNDELETE:1});f.SNACKBAR_ACTION_TYPE=a}),66); __d("WAWebSnackbarDeleteUndoWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumMediaType","WAWebWamEnumSnackbarActionType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({SnackbarDeleteUndo:[3628,{isAGroup:[1,a.TYPES.BOOLEAN],mediaType:[6,d("WAWebWamEnumMediaType").MEDIA_TYPE],messagesUndeleted:[2,a.TYPES.INTEGER],snackbarActionType:[3,d("WAWebWamEnumSnackbarActionType").SNACKBAR_ACTION_TYPE],threadId:[4,a.TYPES.STRING]},[1,1,1],"regular"]},{SnackbarDeleteUndo:[]});g.SnackbarDeleteUndoWamEvent=b}),98); __d("WAWebUseNewsletterActionListeners",["WAWebChatEntryPoint","WAWebCmd","WAWebDrawerManager","WAWebInfoFlowLoadable","WAWebKeyboardTabUtils","WAWebNewsletterCollection","WAWebNewsletterTabFlowLoadable","react","useWAWebListener","useWAWebUIM"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){var a=c("useWAWebUIM")(),b=function(b){b=c("WAWebNewsletterCollection").get(b);if(b==null)return;d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebNewsletterTabFlowLoadable").NewsletterTabFlowLoadable,{}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"slide-left",uim:a});void d("WAWebCmd").Cmd.openChatBottom(b,d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterCreationFlow)},e=function(a,b){d("WAWebDrawerManager").DrawerManager.openDrawerRight(i.jsx(d("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:a,initialStep:b}),{transition:"slide-left",focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,noFocus:!0})};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"open_created_newsletter",b);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"open_newsletter_profile",e)}g["default"]=a}),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(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){var a,b,e=c("useWAWebUIM")(),f=function(a,b){d("WAWebCommunityDailyUtils").incrementCommunityHomeEvent(a,d("WAWebCommunityDailyUtils").CommunityDailyHomeMetricsType.HOME_VIEWS),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{jid:a,hasFetchedSubgroups:b,initialStep:d("WAWebCommunityFlow.react").CommunityFlowStep.CommunityHome},"community-nav-"+a.toString()),{transition:"slide-left",uim:e,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},g=function(a,b,c,f){b===void 0&&(b=d("WAWebCommunityTabbedInfoDrawer.react").CommunityInfoTabs.Community),d("WAWebCommunityDailyUtils").incrementCommunityHomeEvent(a,d("WAWebCommunityDailyUtils").CommunityDailyHomeMetricsType.HOME_VIEWS),d("WAWebDrawerManager").DrawerManager.openDrawerRight(i.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{jid:a,initialStep:d("WAWebCommunityFlow.react").CommunityFlowStep.CommunityHome,initialTab:b,homeTheme:d("WAWebCommunityHomeWrapper.react").CommunityHomeTheme.TabbedInfo,scrollToMemberList:f,showFullDescription:c,onBack:function(){d("WAWebDrawerManager").DrawerManager.closeDrawerRight()}},"community-info-"+a.toString()),{transition:"slide-left",uim:e,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},h=function(a){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{jid:a,initialStep:d("WAWebCommunityFlow.react").CommunityFlowStep.PendingGroups,onBack:function(){d("WAWebCmd").Cmd.openCommunityHome(a)}}),{transition:"slide-left",uim:e,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},j=function(a){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebManageCommunityGroupsFlowLoadable").ManageCommunityGroupsFlowLoadable,{parentGroupMetadata:c("WAWebGroupMetadataCollection").assertGet(a),onBack:function(){return f(a,!1)}}))},k=function(a){var b,e=d("WAWebChatCollection").ChatCollection.get(a);if(!e||!((b=e.groupMetadata)==null?void 0:b.hasJoined()))return;d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(c("WAWebCommunitySettingsDrawer.react"),{chat:e,onBack:function(){return f(a,!1)}}),{transition:"flow-transition-drawer-push",focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},l=function(a,b,c){var e;d("WAWebChatCommunityUtils").isSubgroupSuggestionCreation(a)?e=i.jsx(d("WAWebNewSubgroupSuggestionFlowLoadable").NewSubgroupSuggestionFlowLoadable,{parentGroup:a,onBack:function(){return f(a,!1)}}):e=i.jsx(d("WAWebNewGroupFlowLoadable").NewGroupFlowLoadable,{onCreateGroup:b,parentGroupWid:a,onEnd:function(){return f(a,!1)},initialSelectedSubgroup:c,initialStep:d("WAWebNewGroupFlow.react").NewGroupFlowStep.SET_GROUP_INFO_DRAWER,shortenedCreationFlow:!0});d("WAWebDrawerManager").DrawerManager.openDrawerLeft(e,{transition:"flow-transition-drawer-push",focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},m=function(a,b){d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebSubgroupJoinModal.react"),{subgroupMetadata:a,onSuccess:c("WAWebNoop"),source:b}))};(a=d("useWAWebListener")).useListener((b=d("WAWebCmd")).Cmd,"open_subgroup_join_modal",m);a.useListener(b.Cmd,"open_community_home",f);a.useListener(b.Cmd,"open_community_tabbed_info",g);a.useListener(b.Cmd,"open_community_pending_groups_drawer",h);a.useListener(b.Cmd,"open_community_home_manage_groups",j);a.useListener(b.Cmd,"open_community_add_new_group",l);a.useListener(b.Cmd,"open_community_settings_drawer",k)}g["default"]=a}),98); __d("WAWebActionListener",["fbt","JSResourceForInteraction","Promise","WAAbortError","WAFilteredCatch","WALogger","WAPromiseDelays","WAWebActionToast.react","WAWebAddToFavoritesAction","WAWebBackendErrors","WAWebBizAiAgentStatusUtils","WAWebBizAiRepliesControlPopup.react","WAWebBizChatAssignmentAiRepliesModal.react","WAWebBizChatAssignmentModal.react","WAWebBizMerchantDetailsEntityTypePopup.react","WAWebBotGating","WAWebBusinessMuteWamEvent","WAWebBusinessUnmuteWamEvent","WAWebChatAssignmentLogEvents.flow","WAWebChatAssignmentUtils","WAWebChatEphemerality","WAWebChatGetters","WAWebChatSendMessages","WAWebChatThreadLogging","WAWebClearChatPopup.react","WAWebCmd","WAWebCommandPalette.react","WAWebConfirmPopup.react","WAWebCountrySelectorPopup.react","WAWebCurrentUser","WAWebDeleteChatPopup.react","WAWebDrawerManager","WAWebEventInfoFlowLoadable","WAWebGroupsV4InviteFlowLoadable","WAWebHeader.react","WAWebKeyboardTabUtils","WAWebLazyLoadedRetriable","WAWebMessageDeleteActionsWamEvent","WAWebMiscErrors","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgCollection","WAWebMsgDataFromModel","WAWebMsgGetters","WAWebMsgType","WAWebMuteExpirations","WAWebMutePopup.react","WAWebNewsletterRevokeMsgAction","WAWebNoop","WAWebOTPLoggingHelper","WAWebProductCatalogProductImageViewFlow.react","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebRemoveFromFavoritesAction","WAWebSendMsgResultAction","WAWebSendProductModalLoadable","WAWebSetArchiveChatAction","WAWebSetPinChatAction","WAWebSnackbarDeleteUndoWamEvent","WAWebToast.react","WAWebToastManager","WAWebUpdateUnreadChatAction","WAWebUseNewsletterActionListeners","WAWebWamChatPSALogger","WAWebWamEnumDeleteActionType","WAWebWamEnumMuteEntryPoint","WAWebWamEnumProfileEntryPoint","WAWebWamEnumSnackbarActionType","WAWebWamMsgUtils","asyncToGeneratorRuntime","err","react","useWAWebCommunityActionListeners","useWAWebListener","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendRevokeMsgs fail"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendDeleteMsgs dropped"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendUnstarMsgs dropped"]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendStarMsgs dropped"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["DoNotDisturbSettings:globalMuteDurationLabel non standard global mute duration:",""]);o=function(){return a};return a}var p=j||c("react"),q=4e3;function r(a){switch(a){case 1:return h._(/*BTDS*/"__JHASH__UY0l4BaAyyK__JHASH__");case 8:return h._(/*BTDS*/"__JHASH__CDQe2IY-7Cw__JHASH__");case 24:return h._(/*BTDS*/"__JHASH__bxqz5u2On3d__JHASH__");case 168:return h._(/*BTDS*/"__JHASH__o3r8Vlv5p_r__JHASH__");default:d("WALogger").LOG(o(),a);return h._(/*BTDS*/"__JHASH__WxwVAH6fVo9__JHASH__")}}function s(a,c,e,f){f===void 0&&(f="LEFT");if(!c)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());if(c.some(function(a){return!a.id}))return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());var g=e||d("WAWebActionToast.react").genId(),j=c.length;if(d("WAWebChatGetters").getIsPSA(a)){e=0;for(e;e<j;e++)d("WAWebWamChatPSALogger").logChatPSAStar(c[e])}e=new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__XY3GWBIFXUC__JHASH__",[h._plural(j)]));var k=d("WAWebChatSendMessages").sendStarMsgs(a,c,!0).then(function(){return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__rabZUFZ2g_M__JHASH__",[h._plural(j,"count")]),{actionText:h._(/*BTDS*/"__JHASH__mpD8GydGn1Q__JHASH__"),actionHandler:function(){return t(a,c,g,f)}})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(b){if(b.status>=400)return d("WAWebChatEphemerality").isEphemeralSettingOn(a)?new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__aDLrcUUZzSU__JHASH__",[h._plural(j)])):new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__zefk-okWtXu__JHASH__",[h._plural(j)]));return}))["catch"](function(b){d("WALogger").WARN(n()).devConsole(b);return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__zefk-okWtXu__JHASH__",[h._plural(j)]),{actionText:h._(/*BTDS*/"__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return s(a,c,g,f)}})});d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebActionToast.react").ActionToast,{id:g,toastPosition:f,initialAction:e,pendingAction:k}));return k}function t(a,c,e,f){f===void 0&&(f="LEFT");if(!c)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());if(c.some(function(a){return!a.id}))return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());var g=e||d("WAWebActionToast.react").genId(),j=c.length;e=new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__U4gYH7U8aRS__JHASH__",[h._plural(j)]));var k=d("WAWebChatSendMessages").sendStarMsgs(a,c,!1).then(function(){return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH___4XQ1PiDG26__JHASH__",[h._plural(j,"count")]),{actionText:h._(/*BTDS*/"__JHASH__mpD8GydGn1Q__JHASH__"),actionHandler:function(){return s(a,c,g,f)}})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(b){if(b.status>=400)return d("WAWebChatEphemerality").isEphemeralSettingOn(a)?new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__zc68NSpuvJb__JHASH__",[h._plural(j)])):new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__Ky9mWG_8L-j__JHASH__",[h._plural(j)]));return}))["catch"](function(b){d("WALogger").WARN(m()).devConsole(b);return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__Ky9mWG_8L-j__JHASH__",[h._plural(j)]),{actionText:h._(/*BTDS*/"__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return t(a,c,g,f)}})});d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebActionToast.react").ActionToast,{id:g,toastPosition:f,initialAction:e,pendingAction:k}));return k}function u(a){a=Array.from(new Set(a.map(function(a){return d("WAWebWamMsgUtils").getWamMediaType(a)})));return a.length===1?a[0]:void 0}function v(a,b,c){return w.apply(this,arguments)}function w(){w=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){if(b.type==="message"){if(d("WAWebChatGetters").getIsPSA(a)){var e=0;for(e;e<b.list.length;e++)d("WAWebWamChatPSALogger").logChatPSADelete(b.list[e])}b.list.filter(d("WAWebMsgGetters").getIsAuthenticationMessage).forEach(function(a){void d("WAWebOTPLoggingHelper").logOTPMessageDeleted(d("WAWebMsgDataFromModel").msgDataFromMsgModel(a))})}return new(d("WAWebMessageDeleteActionsWamEvent").MessageDeleteActionsWamEvent)({deleteActionType:c?d("WAWebWamEnumDeleteActionType").DELETE_ACTION_TYPE.DELETE_FOR_EVERYONE:d("WAWebWamEnumDeleteActionType").DELETE_ACTION_TYPE.DELETE_FOR_ME,isAGroup:d("WAWebChatGetters").getIsGroup(a),messagesDeleted:b.list.length,threadId:yield d("WAWebChatThreadLogging").getChatThreadID(a.id.toJid()),mediaType:u(b.list)}).commitAndWaitForFlush()});return w.apply(this,arguments)}function x(a,b,c){return y.apply(this,arguments)}function y(){y=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){return new(d("WAWebSnackbarDeleteUndoWamEvent").SnackbarDeleteUndoWamEvent)({snackbarActionType:c==="shown"?d("WAWebWamEnumSnackbarActionType").SNACKBAR_ACTION_TYPE.SNACKBAR_SHOWN:d("WAWebWamEnumSnackbarActionType").SNACKBAR_ACTION_TYPE.MESSAGE_UNDELETE,isAGroup:d("WAWebChatGetters").getIsGroup(a),messagesUndeleted:b.list.length,threadId:yield d("WAWebChatThreadLogging").getChatThreadID(a.id.toJid()),mediaType:u(b.list)}).commitAndWaitForFlush()});return y.apply(this,arguments)}function a(){var a,e,f=c("useWAWebUIM")(),g=function(a){var b=a.product;a=a.onSend;d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebSendProductModalLoadable").SendProductModalLoadable,{product:b,onSend:a}),{transition:"modal-flow",uim:f})},j=function(a,b){d("WAWebModalManager").ModalManager.openMedia(p.jsx(c("WAWebProductCatalogProductImageViewFlow.react"),{activeProductImage:a.activeProductImage,productImageCollection:a.productImageCollection,getZoomNode:a.getZoomNode,product:a.product,sessionId:b}),{transition:"media-viewer",uim:f})},m=function(a,b,c,e){d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebGroupsV4InviteFlowLoadable").GroupsV4InviteFlowLoadable,{participantNeedInvite:a,groupGid:b,subject:c,groupDesc:e}))},n=function(a){d("WAWebHeader.react").openInfoPanel(a,f,d("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.NOTIFICATION_BLOCK_ACTION)},o=function(a,b,e,g,i){g===void 0&&(g=!0);i===void 0&&(i=!0);if(b){b=function(c,f,g){if(d("WAWebChatGetters").getIsPSA(a)&&e!==0){var b;switch(g){case 1:b=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CHAT_LIST_SCREEN;break;case 2:b=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONTACT_INFO;break;default:b=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONVERSATION_SCREEN;break}d("WAWebWamChatPSALogger").logChatPSAMute(b,f===Infinity?-1:f)}a.pendingAction++;a.mute.mute({expiration:c,sendDevice:!0,showToast:i})["finally"](function(){a.pendingAction--});(a.isBusinessGroup()||a.contact.isBusiness)&&new(d("WAWebBusinessMuteWamEvent").BusinessMuteWamEvent)().commit()};if(g){g=h._(/*BTDS*/"__JHASH__ZMe4kYxcowI__JHASH__");d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebMutePopup.react"),{title:g,mute:a.mute,onMute:b,entryPoint:e,children:h._(/*BTDS*/"__JHASH__Q4B6e6ALmHY__JHASH__")}),{transition:"modal",uim:f})}else{g=Number.POSITIVE_INFINITY;var j=d("WAWebMuteExpirations").calculateMuteExpiration(g);b(j,g,(b=e)!=null?b:0)}}else{a.pendingAction++;a.mute.unmute({sendDevice:!0,showToast:i})["finally"](function(){a.pendingAction--});if(d("WAWebChatGetters").getIsPSA(a)&&e!==0){var k;switch(e){case 1:k=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CHAT_LIST_SCREEN;break;case 2:k=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONTACT_INFO;break;default:k=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONVERSATION_SCREEN;break}d("WAWebWamChatPSALogger").logChatPSAUnmute(k)}(a.isBusinessGroup()||a.contact.isBusiness)&&new(d("WAWebBusinessUnmuteWamEvent").BusinessUnmuteWamEvent)().commit()}},u=function(a,b,e){if(!a)return;var g=h._(/*BTDS*/"__JHASH__CWnkDmWMasg__JHASH__",[h._plural(a.length)]);if(b){b=function(b,c,d){a.forEach(function(a){a.pendingAction++,a.mute.mute({expiration:b,sendDevice:!0,fromMultiselect:!0})["finally"](function(){a.pendingAction--})}),e()};d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebMutePopup.react"),{title:g,mute:a[0].mute,onMute:b}),{transition:"modal",uim:f})}else a.forEach(function(a){a.pendingAction++,a.mute.unmute({sendDevice:!0,fromMultiselect:!0})["finally"](function(){a.pendingAction--})}),e()},w=function(a,b,c,d){return o(a,b,0,c,d)},y=function(a,b,e){e===void 0&&(e=!1);var g=h._(/*BTDS*/"__JHASH__RgFcG4N2pN___JHASH__"),i=h._(/*BTDS*/"__JHASH__kmBQJ7MWPri__JHASH__"),j=h._(/*BTDS*/"__JHASH__TXi8hHFBxyl__JHASH__");if(b){b=function(b,c){void a.mute({expiration:b}),d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebToast.react").Toast,{msg:r(c),id:d("WAWebToast.react").genId()}))};d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebMutePopup.react"),{mute:a,title:g,onMute:b,muteAll:!0}),{transition:"modal",uim:f})}else{if(e){void a.unmute();return}g=function(){void a.unmute(),d("WAWebModalManager").ModalManager.close(),d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebToast.react").Toast,{msg:i,id:d("WAWebToast.react").genId()}))};b=function(){return d("WAWebModalManager").ModalManager.close()};d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:g,okText:h._(/*BTDS*/"__JHASH__zQjxkyzbkik__JHASH__"),onCancel:b,cancelText:h._(/*BTDS*/"__JHASH__JomY4EcHzcJ__JHASH__"),children:j}))}},z=function(a,b){var c=function(c){a.pendingAction++;if(d("WAWebChatGetters").getIsPSA(a)&&b!==0){var e=a.msgs.last();d("WAWebWamChatPSALogger").logChatPSARemove(e,6,b)}c["finally"](function(){a.pendingAction--})};d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebDeleteChatPopup.react").DeleteChatPopup,{chat:a,onDeleteOrExit:c}),{transition:"modal",uim:f})},A=function(a){z(a,0)},B=function(a,b){a.pendingAction++,d("WAWebSetPinChatAction").setPin(a,b)["catch"](c("WAWebNoop"))["finally"](function(){a.pendingAction--})},C=function(a,b,e){a.pendingAction++,b?d("WAWebAddToFavoritesAction").addToFavoritesAction([a.id],{entryPoint:e})["catch"](c("WAWebNoop"))["finally"](function(){a.pendingAction--}):d("WAWebRemoveFromFavoritesAction").removeFromFavoritesAction(a.id,{entryPoint:e})["catch"](c("WAWebNoop"))["finally"](function(){a.pendingAction--})},D=function(a){d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebClearChatPopup.react"),{chat:a}),{transition:"modal",uim:f})},E=function(a,b,e,f){if(d("WAWebChatGetters").getIsPSA(a)&&e!==0&&a.msgs.length>0){var g=a.msgs.last();d("WAWebWamChatPSALogger").logChatPSARemove(g,b?3:4,e)}a.pendingAction++;d("WAWebSetArchiveChatAction").setArchive(a,b,f)["catch"](c("WAWebNoop"))["finally"](function(){a.pendingAction--})},F=function(a,b,c){E(a,b,0,c)},G=function(a,b){a.pendingAction++,d("WAWebUpdateUnreadChatAction").markUnread(a,b)["finally"](function(){a.pendingAction--})},H=function(a,b){if(!a)throw new(d("WAWebMiscErrors").ActionError)();if(a.some(function(a){return!a.id}))throw new(d("WAWebMiscErrors").ActionError)();b=b||d("WAWebActionToast.react").genId();d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebToast.react").Toast,{id:b,msg:h._(/*BTDS*/"__JHASH__rIfJvPWPiQi__JHASH__",[h._plural(a.length)])}))},I=function(a,b){if(d("WAWebChatAssignmentUtils").canAssignChat(a)===!1){d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebBizChatAssignmentAiRepliesModal.react"),{chat:a}));return}var e=d("WAWebChatAssignmentLogEvents.flow").ChatAssignmentEntryPointType.getName(b);d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_FETCH_ASSIGN_CHAT_AGENT_LIST,{annotations:{string:{CHAT_ASSIGNMENT_ENTRY_POINT:e}}});d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebBizChatAssignmentModal.react"),{chats:[a],entryPoint:b}))},J=function(a){d("WAWebBizAiAgentStatusUtils").isChatEligibleForAiAgent(a)&&d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebBizAiRepliesControlPopup.react"),{chat:a}))},K=function a(e,f,g,j,k){k===void 0&&(k="LEFT");var m=f.list;if(!m)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());if(m.some(function(a){return!a.id}))return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());var n=m.length,o=j||d("WAWebActionToast.react").genId(),r=new AbortController(),s=r.signal;if(f.type!=="addon"){x(e,f,"shown");f.list.forEach(function(a){a.pendingDeleteForMe=!0;a.hideParentMessageInChat({duringDetach:!1});if(d("WAWebBotGating").isBotReceiveEnabled()){var b=d("WAWebMsgGetters").getBotPluginSearchProvider(a),c=Boolean(b==null&&d("WAWebMsgGetters").getBotPluginMaybeParent(a));a=d("WAWebMsgGetters").getBotResponseTargetId(a);(c||b!=null&&a!=null)&&d("WAWebCmd").Cmd.botTogglePluginSearchDetailsToggle(a,!1)}});e.pendingDeleteForMeCount+=f.list.length;m=n===1?h._(/*BTDS*/"__JHASH__ow_nIJa9x2s__JHASH__"):h._(/*BTDS*/"__JHASH__ToEZVdqxlNW__JHASH__",[h._plural(n,"number_of_messages")]);j=new(d("WAWebActionToast.react").ActionType)(m,{actionText:h._(/*BTDS*/"__JHASH___gWecnZvd3i__JHASH__"),actionHandler:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){r.abort(),f.list.forEach(function(a){a.pendingDeleteForMe=!1}),d("WAWebMsgCollection").MsgCollection.makeParentMessagesVisibleInChat(f.list),e.pendingDeleteForMeCount-=f.list.length,void x(e,f,"undo"),yield H(f.list,o)});function c(){return a.apply(this,arguments)}return c}()})}else j=new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__puyjZ8S5KX7__JHASH__",[h._plural(n)]));m=(i||(i=b("Promise"))).resolve();f.type!=="addon"&&(m=m.then(function(){return d("WAPromiseDelays").delayMs(q)}));m=m.then(function(){if(s.aborted)throw new(d("WAAbortError").AbortError)();return d("WAWebChatSendMessages").sendDeleteMsgs(e,f,g)}).then(function(a){e.pendingDeleteForMeCount-=a;if(a===n){void v(e,f,!1);return f.type!=="addon"?null:new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__lpt7hEvGjFY__JHASH__",[h._plural(n,"count")]))}a=n-a;return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__ZpAmSO5CaCb__JHASH__",[h._plural(a)]))})["catch"](d("WAAbortError").catchAbort(c("WAWebNoop")))["catch"](function(b){d("WALogger").WARN(l()).devConsole(b);return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__ZpAmSO5CaCb__JHASH__",[h._plural(n)]),{actionText:h._(/*BTDS*/"__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return a(e,f,!1,o,k)}})});d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebActionToast.react").ActionToast,{id:o,toastPosition:k,initialAction:j,pendingAction:m}));return m},L=function(a,b){throw c("err")("This call is not supported")},M=function(a,e,f){var g,j=f.clearMedia;g=(g=f.toastId)!=null?g:d("WAWebActionToast.react").genId();f=(f=f.toastPosition)!=null?f:"LEFT";var l=e.list;if(!l)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());var m=l.reduce(function(a,b){var c=d("WAWebMsgActionCapability").canSenderRevokeMsg(b)||d("WAWebMsgActionCapability").canAdminRevokeMsg(b)||d("WAWebMsgActionCapability").canBotResponseBeRevokeByInvoker(b);b=b.type===d("WAWebMsgType").MSG_TYPE.GROUPS_V4_INVITE&&!d("WAWebMsgGetters").getIsGroupsV4InviteExpired(b)?b:null;return[a[0]||!c,a[1]||b]},[!1,null]),n=m[0];m=m[1];if(n)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());m&&L(a,m);var o=l.length;n=new(d("WAWebActionToast.react").ActionType)(d("WAWebChatGetters").getIsNewsletter(a)?h._(/*BTDS*/"__JHASH__gK2BZoKbZfU__JHASH__",[h._plural(o)]):h._(/*BTDS*/"__JHASH__puyjZ8S5KX7__JHASH__",[h._plural(o)]));e.type==="addon"?m=d("WAWebChatSendMessages").sendRevokeMsgs(a,e,j):d("WAWebChatGetters").getIsNewsletter(a)?m=d("WAWebNewsletterRevokeMsgAction").sendNewsletterRevokeMsgs(a,e.list,j):m=d("WAWebChatSendMessages").sendRevokeMsgs(a,e,j);l=m.then(function(b){var f=b.filter(function(a){return a.messageSendResult!==d("WAWebSendMsgResultAction").SendMsgResult.OK}).length;if(f>0)throw c("err")(f+" / "+b.length+" dropped");void v(a,e,!0);return new(d("WAWebActionToast.react").ActionType)(d("WAWebChatGetters").getIsNewsletter(a)?h._(/*BTDS*/"__JHASH__JTIWcHCO-t7__JHASH__",[h._plural(o,"number_of_updates")]):h._(/*BTDS*/"__JHASH__lpt7hEvGjFY__JHASH__",[h._plural(o,"count")]))})["catch"](function(b){d("WALogger").WARN(k()).devConsole(b);return d("WAWebChatEphemerality").isEphemeralSettingOn(a)?new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__om03U1-CRFa__JHASH__",[h._plural(o,"count")])):new(d("WAWebActionToast.react").ActionType)(d("WAWebChatGetters").getIsNewsletter(a)?h._(/*BTDS*/"__JHASH__gK9K8cvGxk2__JHASH__",[h._plural(o,"number_of_updates")]):h._(/*BTDS*/"__JHASH__ZpAmSO5CaCb__JHASH__",[h._plural(o)]))});d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebActionToast.react").ActionToast,{id:g,toastPosition:f,initialAction:n,pendingAction:l}));return l},N=function(a,b){d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebBizMerchantDetailsEntityTypePopup.react"),{legalEntityDetails:a,onSave:b}),{transition:"modal",uim:f})},O=function(a,b,e,g,h,i,j){d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebCountrySelectorPopup.react"),{title:a,description:b,countryCode:e,lastUsedCountryCode:g,countries:h,onSave:i,surface:j}),{transition:"modal",uim:f})},P=function(){d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebCommandPalette.react").CommandPaletteModal,{}),{transition:"modal",uim:f})},Q=function(a){d("WAWebCurrentUser").isEmployee()&&void c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBugnubV2Popup.react").__setRef("WAWebActionListener").load());return a.openBugNubV2Popup}),"bugnub_v2_popup")().then(function(b){b(a)})},R=function(a,b,c,e){d("WAWebDrawerManager").DrawerManager.openDrawerRight(p.jsx(d("WAWebEventInfoFlowLoadable").EventInfoFlowLoadable,{chat:a,msg:b,onBack:c,onEnd:e},"event-info-drawer-"+b.id.toString()),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})};(a=d("useWAWebListener")).useListener((e=d("WAWebCmd")).Cmd,["mute_all_reactions"],y);a.useListener(e.Cmd,["mute_chat"],w);a.useListener(e.Cmd,["mute_chat_multiselect"],u);a.useListener(e.Cmd,["mute_chat_from_entrypoint"],o);a.useListener(e.Cmd,["archive_chat"],F);a.useListener(e.Cmd,["archive_chat_from_entrypoint"],E);a.useListener(e.Cmd,["clear_chat"],D);a.useListener(e.Cmd,["mark_chat_unread"],G);a.useListener(e.Cmd,["pin_chat"],B);a.useListener(e.Cmd,["assign_chat"],I);a.useListener(e.Cmd,["favorite_chat"],C);a.useListener(e.Cmd,["send_star_msgs"],s);a.useListener(e.Cmd,["send_unstar_msgs"],t);a.useListener(e.Cmd,["send_delete_msgs"],K);a.useListener(e.Cmd,["send_revoke_msgs"],M);a.useListener(e.Cmd,["delete_or_exit_chat"],A);a.useListener(e.Cmd,["delete_or_exit_chat_from_entrypoint"],z);a.useListener(e.Cmd,["product_image_viewer_modal"],j);a.useListener(e.Cmd,["mute_all_reactions"],y);a.useListener(e.Cmd,["attach_product"],g);a.useListener(e.Cmd,["show_country_selector_popup"],O);a.useListener(e.Cmd,"show_merchant_details_entity_type_popup",N);a.useListener(e.Cmd,["open_groups_v4_invite_request_flow"],m);a.useListener(e.Cmd,["open_profile"],n);a.useListener(e.Cmd,["open_command_palette"],P);c("useWAWebCommunityActionListeners")();c("WAWebUseNewsletterActionListeners")();a.useListener(e.Cmd,["trigger_bugreport_v2"],Q);a.useListener(e.Cmd,["open_event_info_drawer"],R);a.useListener(e.Cmd,["toggle_ai_replies_status"],J);return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizAdCreationIconTooltip.react",["fbt","WAWebAdCreationLogger","WAWebNux","WAWebTooltip.react","WAWebWamEnumTooltipAction","react","useWAWebNux","useWAWebOnOutsideClick"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useCallback,m=b.useEffect;function a(a){var b=a.refAnchorElement;a=c("useWAWebNux")(d("WAWebNux").NUX.TOOLTIP_AD_CREATION);var e=a[0],f=a[1];a=d("WAWebTooltip.react").useTooltip({target:b,element:k.jsx("div",babelHelpers["extends"]({className:"xqyf9gi"},{children:h._(/*BTDS*/"__JHASH__k99FPbeySqt__JHASH__")})),position:d("WAWebTooltip.react").PopoverPosition.Bottom,alignment:d("WAWebTooltip.react").PopoverAlignment.Center});var g=a.tooltip,i=a.showTooltip,j=a.hideTooltip,n=a.tooltipIsVisible;d("useWAWebOnOutsideClick").useOnOutsideClick(b,l(function(a,b){n&&(d("WAWebAdCreationLogger").logAdCreationIconTooltip(d("WAWebWamEnumTooltipAction").TOOLTIP_ACTION.DISMISS),f(),j()),b()},[f,j,n]));m(function(){if(!e)return;var a=function(){d("WAWebAdCreationLogger").logAdCreationIconTooltip(d("WAWebWamEnumTooltipAction").TOOLTIP_ACTION.ENTER_AD_CREATION_FLOW),f(),j()},c=b.current;c==null?void 0:c.addEventListener("mousedown",a);return function(){c==null?void 0:c.removeEventListener("mousedown",a)}},[b,e,f,j]);m(function(){if(!e||b.current==null||g!=null)return;i()},[f,e,g,b,i,j]);m(function(){if(e&&n){var a=self.setTimeout(function(){if(!n)return;f();j();d("WAWebAdCreationLogger").logAdCreationIconTooltip(d("WAWebWamEnumTooltipAction").TOOLTIP_ACTION.IGNORE)},5e3);return function(){self.clearTimeout(a)}}},[e,n,f,j]);return g}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebWamEnumWebcNavbarItemLabel",[],(function(a,b,c,d,e,f){a=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});f.WEBC_NAVBAR_ITEM_LABEL=a}),66); __d("WAWebWebcNavbarWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumWebcNavbarItemLabel"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({WebcNavbar:[5258,{webcNavbarItemLabel:[1,d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL]},[1,1,1],"regular"]},{WebcNavbar:[]});g.WebcNavbarWamEvent=a}),98); __d("WAWebNavBarLogEvents",["WAWebWebcNavbarWamEvent"],(function(a,b,c,d,e,f,g){function a(a){a=new(d("WAWebWebcNavbarWamEvent").WebcNavbarWamEvent)({webcNavbarItemLabel:a});a.commit()}g.logNavBarEvent=a}),98); __d("WAWebAdCreationMenuBarItem.react",["fbt","WAWebAdCreationLogger","WAWebBizAdCreationIconTooltip.react","WAWebBusinessAdvertiseOutlineIcon.react","WAWebChatlistUtils","WAWebMenuBar.react","WAWebNavBarLogEvents","WAWebTabOrder","WAWebWamEnumLwiEntryPoint","WAWebWamEnumWebcNavbarItemLabel","react","useMergeRefs"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useEffect,m=b.useRef;function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.activeAccountInfo,f=a.iconStyle,g=a.vertical;a=a.ctaText;var i=m(null);b=c("useMergeRefs")(b,i);l(function(){d("WAWebAdCreationLogger").logAdCreationImpression(d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON,e!=="not-linked"&&e.hasFacebookPage)},[e]);a=(a=a)!=null?a:h._(/*BTDS*/"__JHASH__ITHmMGn1hwx__JHASH__");g=k.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,vertical:g,testid:void 0,icon:k.jsx(d("WAWebBusinessAdvertiseOutlineIcon.react").BusinessAdvertiseOutlineIcon,{directional:!0,width:26,height:26}),title:a,onClick:function(){d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.ADS_CREATION),d("WAWebChatlistUtils").handleAdCreation({adCreationUrlInput:{activeAccountInfo:e,sourceAdCreation:"whatsapp_smb_web_ad_creation_home_screen_icon"},lwiEntryPoint:d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON})},showHoverTooltip:!0});a=k.jsx(c("WAWebBizAdCreationIconTooltip.react"),{refAnchorElement:i});return k.jsxs("div",{ref:b,className:f,children:[a,g]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebAdEntryPointsConfigurationAction",["Promise","WAWebAdEntryPointsConfigurationModel"],(function(a,b,c,d,e,f,g){var h;function a(a){d("WAWebAdEntryPointsConfigurationModel").notifyAdEntryPointsConfigurationLoaded(a);a.type==="success"?d("WAWebAdEntryPointsConfigurationModel").setAdEntryPointsConfiguration({entryPoints:a.entryPoints,locale:a.locale}):a.type==="recovery-required"?d("WAWebAdEntryPointsConfigurationModel").setAdEntryPointsConfiguration("failed-to-load-recovery-required"):(a.type,a.expiredConfiguration!=null&&d("WAWebAdEntryPointsConfigurationModel").setAdEntryPointsConfiguration({entryPoints:a.expiredConfiguration,locale:a.locale}));return(h||(h=b("Promise"))).resolve()}g.loadedAdEntryPointsConfiguration=a}),98); __d("WAWebCommentAction",["WAAbortError","WALogger","WAWebChatCollection","WAWebCommentCollection","WAWebMsgType","WAWebNotificationBackend"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[Comments] Aborted notification ",""]);h=function(){return a};return a}function i(a){return!a.read&&a.parentMsgKey.fromMe&&!a.id.fromMe}function a(a,b){var c=[];b=b?[].concat(b):[];for(a of a)switch(a.type){case d("WAWebMsgType").MSG_TYPE.REVOKED:c.push(d("WAWebCommentCollection").createCommentModelFromRevoke(a));a.protocolMessageKey!=null&&b.push(a.protocolMessageKey);break;case d("WAWebMsgType").MSG_TYPE.CIPHERTEXT:c.push(d("WAWebCommentCollection").createCommentModelFromPlaceholder(a));break;case d("WAWebMsgType").MSG_TYPE.COMMENT:c.push(d("WAWebCommentCollection").createCommentModel(a))}d("WAWebCommentCollection").CommentCollection.remove(b);d("WAWebCommentCollection").CommentCollection.set(c,{remove:!1})}function b(a){for(a of a){var b=a.id,c=a.t;if(b==null)continue;b=d("WAWebChatCollection").ChatCollection.get(b);if(b!=null){b.t=c;b.unreadCount=(c=a.unreadCount)!=null?c:b.unreadCount}}}function c(a,b){for(a of a)i(a)&&d("WAWebNotificationBackend").showCommentNotification(a)["catch"](d("WAAbortError").catchAbort(function(a){d("WALogger").LOG(h(),a)}));for(a of b)d("WAWebNotificationBackend").removeCommentNotification(a)}g.upsertCommentModelCollection=a;g.updateChatToLatest=b;g.handleCommentNotification=c}),98); __d("WAWebDeleteExpiredPinsJob",["WALogger","WAWebAddonDeleteMsgs","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["Expired pins deletion failed"]);h=function(){return a};return a}function a(a){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("deleteExpiredPins",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{yield d("WAWebAddonDeleteMsgs").deleteAddonMsgsByParentKeys({parentMsgKeys:a})}catch(a){d("WALogger").ERROR(h());throw a}})).waitUntilCompleted()}g.deleteExpiredPins=a}),98); __d("WAWebPinMessageAction",["WALogger","WANullthrows","WAWebDeleteExpiredPinsJob","WAWebMsgGetters","WAWebPinInChatCollection","WAWebPinMsgConstants","WAWebPinMsgGatingUtils","WAWebProtobufsE2E.pb","WAWebUserPrefsMeUser","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["deleteExpiredPins: error deleting expired pins from DB: ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["deleteExpiredPins Success"]);i=function(){return a};return a}function j(a){if(a===d("WAWebProtobufsE2E.pb").Message$PinInChatMessage$Type.PIN_FOR_ALL)return d("WAWebPinMsgConstants").PIN_STATE.PIN;else if(a===d("WAWebProtobufsE2E.pb").Message$PinInChatMessage$Type.UNPIN_FOR_ALL)return d("WAWebPinMsgConstants").PIN_STATE.UNPIN;return d("WAWebPinMsgConstants").PIN_STATE.INVALID}function k(a){var b=c("WANullthrows")(d("WAWebMsgGetters").getSender(a));a={msgKey:a.id,parentMsgKey:c("WANullthrows")(a.pinParentKey),senderTimestampMs:c("WANullthrows")(a.pinSenderTimestampMs),sender:d("WAWebWidFactory").toUserWid(b),pinType:j(a.pinMessageType),pinExpiryDuration:a.pinExpiryDuration,t:a.t,chatId:d("WAWebWidFactory").toChatWid(a.id.remote),ack:a.ack,read:d("WAWebUserPrefsMeUser").isMeAccount(b)};return a}function a(a,b){var c=new Map(),e=[];for(a of a){var f=k(a);if(f!=null){e.push(f);f=f.msgKey.remote;c.has(f.toString())||c.set(f.toString(),d("WAWebWidFactory").toChatWid(f))}}f=e.map(function(a){return babelHelpers["extends"]({id:d("WAWebPinInChatCollection").getPinInChatId(a.parentMsgKey)},a)});d("WAWebPinInChatCollection").PinInChatCollection.add(f,{merge:!0});a=[];for(f of b){b=d("WAWebPinInChatCollection").PinInChatCollection.getByMsgKey(f);if(b!=null){a.push(b.parentMsgKey);b=b.msgKey.remote;c.has(b.toString())||c.set(b.toString(),d("WAWebWidFactory").toChatWid(b))}}a.length&&d("WAWebPinInChatCollection").PinInChatCollection.remove(a.map(d("WAWebPinInChatCollection").getPinInChatId));for(b of c.values())d("WAWebPinInChatCollection").PinInChatCollection.byChatId(b).filter(function(a){return a.pinType===d("WAWebPinMsgConstants").PIN_STATE.PIN}).sort(function(a,b){return b.senderTimestampMs-a.senderTimestampMs}).slice(d("WAWebPinMsgGatingUtils").getMaxPins()).forEach(function(a){a.pinType=d("WAWebPinMsgConstants").PIN_STATE.UNPIN});return e}function l(a){var b=[],c=[];for(a of a)d("WAWebPinInChatCollection").isPinExpired(a)?c.push(a.parentMsgKey):b.push(a);return{validPins:b,expiredPinParentKeys:c}}function e(a){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=l(a);var b=a.validPins;a=a.expiredPinParentKeys;if(a.length>0)try{yield d("WAWebDeleteExpiredPinsJob").deleteExpiredPins(a.map(function(a){return a.toString()})),d("WALogger").LOG(i()),a.forEach(function(a){return d("WAWebPinInChatCollection").PinInChatCollection.deleteByParentMessageKey(a)})}catch(a){d("WALogger").ERROR(h(),a)}return b});return m.apply(this,arguments)}g.craftPinMessage=k;g.updatePinCollection=a;g.checkPinExpiration=l;g.seekAndDestroyExpiredPins=e}),98); __d("WAWebPollsUpsertVotesModelCollectionMsgAction",["WAAbortError","WAAckLevel","WALogger","WAWebAddonGatingUtils","WAWebAddonHydrationUtils","WAWebFrontendMsgGetters","WAWebMaxPerGroup","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgType","WAWebNotificationBackend","WAWebNotificationHelpers","WAWebPollsGatingUtils","WAWebPollsGetVoteKey","WAWebPollsPollVoteCollection","WAWebUserPrefsMeUser","asyncToGeneratorRuntime","lodash"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[upsertVotesModelCollection][notifications] Msg "," is not a pollCreationMsg, votes ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["rehydrated poll create msg from the db"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[Polls] Aborted notification ",""]);j=function(){return a};return a}function a(a,e,f){f===void 0&&(f=!0);var g=d("WAWebMaxPerGroup").maxPerGroup(a,function(a){return a.senderTimestampMs},d("WAWebPollsGetVoteKey").getVoteKey);e=(e||[]).map(function(a){return d("WAWebPollsPollVoteCollection").PollVoteCollection.getByMsgKey(a)}).filter(Boolean);var k=[];for(g of g){var l=d("WAWebPollsPollVoteCollection").PollVoteCollection.getForParentAddressingModeInsensitive([g.parentMsgKey]);l=l[0];l=l.getVoteFromSenderAddressingModeInsensitive(g.sender);if(l!=null&&(l.senderTimestampMs>g.senderTimestampMs||l.msgKey.equals(g.msgKey))){d("WAWebAddonGatingUtils").isUnifiedInfraEnabledForType(d("WAWebMsgType").MSG_TYPE.POLL_UPDATE)&&l.ack!==g.ack&&(l.ack=g.ack,l.isSendFailure=g.ack===d("WAAckLevel").ACK.FAILED);continue}l!=null&&e.push(l);k.push(d("WAWebPollsPollVoteCollection").createPollVoteModel(babelHelpers["extends"]({},g,{isSendFailure:f&&g.ack===d("WAAckLevel").ACK.CLOCK&&d("WAWebUserPrefsMeUser").isMeAccount(g.sender)})))}k.length>0&&d("WAWebPollsPollVoteCollection").PollVoteCollection.add(k);e.length>0&&d("WAWebPollsPollVoteCollection").PollVoteCollection.remove(e);d("WAWebPollsGatingUtils").arePollsNotificationsEnabled()&&b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(f||d("WAWebNotificationHelpers").isOfflineResumeInProgress())return;var b=c("lodash").uniqBy(a.filter(function(a){return!d("WAWebUserPrefsMeUser").isMeAccount(a.sender)}).map(function(a){return a.parentMsgKey}),String),e=[],g=(yield d("WAWebMsgCollection").MsgCollection.hydrateOrGetMessages(Array.from(b,String))),k=function*(b){if(!d("WAWebMsgGetters").getIsSentByMe(b))return"continue";var c=d("WAWebFrontendMsgGetters").getAsPollCreation(b);if(c==null&&b.type===d("WAWebMsgType").MSG_TYPE.CIPHERTEXT){d("WALogger").LOG(i());var f=(yield d("WAWebMsgCollection").MsgCollection.getMessagesById([b.id.toString()]));f=f.messages;c=d("WAWebFrontendMsgGetters").getAsPollCreation(f[0])}if(c==null){f=a.filter(function(a){return a.parentMsgKey.equals(b.id)}).map(function(a){return a.msgKey.toString()}).join(", ");d("WALogger").ERROR(h(),b.id,f).sendLogs("msg-type-"+b.type+"-not-poll-creation-msg")}else e.push(c)};for(g of g){var l=(yield* k(g));if(l==="continue")continue}yield d("WAWebAddonHydrationUtils").hydrateAddons({ids:b,hydrationType:d("WAWebMsgType").MSG_TYPE.POLL_UPDATE});for(l of e){k=d("WAWebPollsPollVoteCollection").PollVoteCollection.getForParentAddressingModeInsensitive([l.id]);g=k[0];g.getUnreadCount()>0&&d("WAWebNotificationBackend").showPollVoteNotification(l)["catch"](d("WAAbortError").catchAbort(function(a){d("WALogger").LOG(j(),a)}))}})()}g.upsertVotesModelCollection=a}),98); __d("WAWebUpsertEventResponsesModelCollectionAction",["WAAckLevel","WANullthrows","WAWebEventResponseCollection","WAWebLidMigrationUtils","WAWebMsgGetters","WAWebPrepareEventResponsesToUpsert","WAWebUserPrefsMeUser","WAWebWid"],(function(a,b,c,d,e,f,g){function a(a,b){var e=(b||[]).map(function(a){return d("WAWebEventResponseCollection").EventResponseCollection.get(a)}).filter(Boolean),f=[];b=d("WAWebPrepareEventResponsesToUpsert").getNewestEventResponses(a);b.forEach(function(a){var b=c("WANullthrows")(d("WAWebMsgGetters").getSender(a)),g=d("WAWebEventResponseCollection").EventResponseCollection.byParent(a.parentMsgKey).findFirst(function(a){a=a.sender;return c("WAWebWid").equals.apply(c("WAWebWid"),d("WAWebLidMigrationUtils").toCommonAddressingMode(a,b))});g!=null&&!g.id.equals(a.id)&&e.push(g);f.push(d("WAWebEventResponseCollection").createEventResponseModel(babelHelpers["extends"]({},a,{isSendFailure:a.ack!=null&&a.ack<d("WAAckLevel").ACK.CLOCK&&d("WAWebUserPrefsMeUser").isMeAccount(b)})))});f.length>0&&d("WAWebEventResponseCollection").EventResponseCollection.add(f,{merge:!0});e.length>0&&d("WAWebEventResponseCollection").EventResponseCollection.remove(e)}g.upsertEventResponsesModelCollection=a}),98); __d("WAWebAddOnsBridgeApi",["WAWebAddOnsUpdateSendStatesAction","WAWebCommentAction","WAWebMarkAddOnsAsReadAction","WAWebPinMessageAction","WAWebPollsPollVoteCollection","WAWebPollsUpsertVotesModelCollectionMsgAction","WAWebReactionsMsgAction","WAWebUpsertEventResponsesModelCollectionAction"],(function(a,b,c,d,e,f,g){a={updateAddOnCollectionAcks:function(a){a=a.updatesByType;d("WAWebAddOnsUpdateSendStatesAction").updateAddOnCollectionsSendStatesAction(a)},upsertVotesModelCollection:function(a){var b=a.votes,c=a.votesToRemove;a=a.restoredFromDb;d("WAWebPollsUpsertVotesModelCollectionMsgAction").upsertVotesModelCollection(b,c,a)},markAddOnsAsReadUi:function(a){a=a.updatedMsgKeys;d("WAWebMarkAddOnsAsReadAction").markAddOnsAsReadUiAction(a)},updatePinCollection:function(a){var b=a.msgs;a=a.removeMsgs;return d("WAWebPinMessageAction").updatePinCollection(b,a)},hasPollVotesInCollection:function(a){a=a.msgKeys;return a.map(function(a){return Boolean(d("WAWebPollsPollVoteCollection").PollVoteCollection.getByMsgKey(a))})},handleCommentNotification:function(a){var b=a.comments;a=a.revokes;d("WAWebCommentAction").handleCommentNotification(b,a)},upsertEventResponsesModelCollection:function(a){var b=a.eventResponses;a=a.eventResponsesToRemove;return d("WAWebUpsertEventResponsesModelCollectionAction").upsertEventResponsesModelCollection(b,a)},upsertCommentModelCollection:function(a){var b=a.comments;a=a.commentsToRemove;return d("WAWebCommentAction").upsertCommentModelCollection(b,a)},handleReactionNotification:function(a){a=a.reactions;d("WAWebReactionsMsgAction").handleReactionNotification(a)}};g.AddOnsBridgeApi=a}),98); __d("WAWebAdsCreationChatlistHeaderDropdownItem.react",["WAWebAdCreationDropdownItem.react","WAWebBizGatingUtils","WAWebMobilePlatforms","WAWebWamEnumLwiEntryPoint","react","useWAWebServerGatedAdEntryPoint"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){a=a.activeAccountInfo;var b=d("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_ad_creation_home_menu_item",a),e=b[0];b=b[1];e=d("WAWebMobilePlatforms").isSMB()&&a!=null&&!e&&d("WAWebBizGatingUtils").shouldShowAdCreationDropdown()?i.jsx(c("WAWebAdCreationDropdownItem.react"),{adCreationUrlInput:{sourceAdCreation:"whatsapp_smb_web_ad_creation_home_menu_item",activeAccountInfo:a},ctaText:b==null?void 0:b.content,lwiEntryPoint:d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_OVERFLOW_MENU_ITEM}):null;return e}a.displayName=a.name+" [from "+f.id+"]";g.AdsCreationChatlistHeaderDropdownItem=a}),98); __d("WAWebAnimationGroup",["invariant","Promise","WAAbortError","WAPromiseDelays","WAPromiseRaceAbort","WAWebCmd","WAWebIdleTaskRunner","WAWebResizeObserver.react","WAWebSetRefCache","WAWebVelocityAnimate","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j,k;a=k||d("react");var l=j||(j=c("react"));e=a.Component;var m=a.cloneElement,n={duration:300,easing:[.1,.82,.25,1]};f=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(b=d=a.call.apply(a,[this].concat(f))||this,d.containerHeight=0,d.$1=[],d.didCancel=!1,d.$2=!1,d.state={children:d.props.children},d.$3=new Map(),d.$4=function(a,b){b?d.$3.set(a,b):d.$3["delete"](a)},d.$5=new(c("WAWebSetRefCache"))(d.$4),d.$10=new Map(),b)||babelHelpers.assertThisInitialized(d)}var f=e.prototype;f.componentWillUnmount=function(){this.$2=!0};f.$6=function(a,b){var c=this;return a.reduce(function(a,d){if(d<b)return a;d=c.$3.get(""+d);return!d?a:a+d.clientHeight},0)};f.$7=function(a,e,f,g){var h,j=this;this.$1[a]&&(this.didCancel=!0,this.$1[a].controller.abort());var k=f>0?[0,f]:[-f,0],l=new AbortController();h=(((h=this.$1[a])==null?void 0:h.promise)||(i||(i=b("Promise"))).resolve()).then(function(){return c("WAWebVelocityAnimate")(e,{translateY:k},n)}).then(function(){return d("WAPromiseDelays").delayMs(100)});h=c("WAPromiseRaceAbort")(h,l.signal).then(function(){if(l.signal.aborted)throw new(d("WAAbortError").AbortError)();f<0&&(!g.includes(a)?e.style.transform="":e.style.opacity="0");return a})["catch"](d("WAAbortError").catchAbort(function(){c("WAWebVelocityAnimate")(e,"stop",!0);e.style.transform="";return!1}))["finally"](function(b){if(j.didCancel)j.didCancel=!1;else{delete j.$1[a];d("WAWebCmd").Cmd.setUiBusy(!1);return b}});this.$1[a]={promise:h,controller:l};return h};f.$8=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c){if(!a)return(i||(i=b("Promise"))).resolve(new Set());var d=[],e=a.slice(-1);e=e[0];for(var f=0;f<=e;++f){var g=this.$3.get(""+f);if(!g)continue;d.push(this.$7(f,g,(c?1:-1)*this.$6(a,f),a))}g=(yield (i||(i=b("Promise"))).all(d));return new Set(g.reduce(function(a,b){b!==!1&&a.push(b);return a},[]))});function c(b,c){return a.apply(this,arguments)}return c}();f.$9=function(a,b){if(!a.length||!this.props.onHeightChange)return;this.props.onHeightChange((b?1:-1)*this.$6(a,0))};e.getDerivedStateFromProps=function(a,b){var c=a.children;a=b.children;b=!1;a=a.map(function(a,d){d=(d=c[d])!=null?d:a;d!==a&&(b=!0);return d});return b?{children:a}:null};f.componentDidUpdate=function(a,b){var c=this,e=this.state.children;b=b.children;e.length===b.length&&this.props.children.length===e.length||h(0,56374);b=e.map(function(a,b){return b});e=b.filter(function(b){return c.props.children[b]!=null&&a.children[b]==null});b=b.filter(function(b){return c.props.children[b]==null&&a.children[b]!=null});b.length>0&&(b.forEach(function(){c.busyId=d("WAWebIdleTaskRunner").UIBusyTasks.setBusy(c.busyId),d("WAWebCmd").Cmd.setUiBusy(!0)}),this.$9(b,!1),this.$8(b,!1).then(function(a){if(c.$2)return;if(a.size===0)return;c.setState(function(b){b=b.children.map(function(b,c){return a.has(c)?null:b});return{children:b}},function(){d("WAWebIdleTaskRunner").UIBusyTasks.decBusy(c.busyId)})}));e.length>0&&(e.forEach(function(){c.busyId=d("WAWebIdleTaskRunner").UIBusyTasks.setBusy(c.busyId),d("WAWebCmd").Cmd.setUiBusy(!0)}),this.$9(e,!0),this.$8(e,!0).then(function(){d("WAWebIdleTaskRunner").UIBusyTasks.decBusy(c.busyId)}))};f.componentDidMount=function(){var a=this,b=this.state.children.reduce(function(b,c,d){c=a.$3.get(""+d);if(!c)return b;c.style.transform="translateY(0)";return b+c.clientHeight},0);this.props.onHeightChange(b,!0)};f.$11=function(a){var b=this,c=this.$10.get(a);if(c)return c;c=this.$3.get(""+a);var d=c?c.clientHeight:0;c=function(a){a=a.height;if(!d||!a||a===d){d=a;return}b.props.onHeightChange(a-d);d=a};this.$10.set(a,c);return c};f.$12=function(a,b){if(!a)return a;var c=this.$5.getRefSetter(""+b);b=function(b){c(b);var d=a.ref;if(!d)return;typeof d==="function"?d(b):d.current=b};return m(a,{ref:b})};f.render=function(){var a=this;return this.state.children.map(function(b,d){return l.jsx(c("WAWebResizeObserver.react"),{onResize:a.$11(d),children:a.$12(b,d)},"."+d)})};return e}(e);g["default"]=f}),98); __d("WAWebAnimationGroupItem.react",["react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.children;a=a.ref;return i.jsx("div",{ref:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebArchiveFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="archive-filled-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M5 21q-.824 0-1.412-.587A1.93 1.93 0 0 1 3 19V6.525q0-.35.112-.675.113-.325.338-.6L4.7 3.725q.274-.35.688-.538Q5.8 3 6.25 3h11.5q.45 0 .863.188.412.187.687.537l1.25 1.525q.225.274.337.6t.113.675V19q0 .824-.587 1.413A1.93 1.93 0 0 1 19 21zm.4-15h13.2l-.85-1H6.25zm6.6 4a.97.97 0 0 0-.713.287A.97.97 0 0 0 11 11v3.2l-.9-.9a.95.95 0 0 0-.7-.275.95.95 0 0 0-.7.275.95.95 0 0 0-.275.7q0 .425.275.7l2.6 2.6q.3.3.7.3t.7-.3l2.6-2.6a.95.95 0 0 0 .275-.7.95.95 0 0 0-.275-.7.95.95 0 0 0-.7-.275.95.95 0 0 0-.7.275l-.9.9V11a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 10",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ArchiveFilledRefreshedIcon=a}),98); __d("WAWebWamEnumWebcMenuType",[],(function(a,b,c,d,e,f){a=Object.freeze({THREADS_SCREEN_CLICK:1,CHAT_SCREEN_CLICK:2,SETTINGS_SCREEN_CLICK:3});f.WEBC_MENU_TYPE=a}),66); __d("WAWebWamEnumWebcMenuItemLabel",[],(function(a,b,c,d,e,f){a=Object.freeze({NEW_GROUP:1,CREATE_A_ROOM:2,PROFILE:3,CATALOG:4,ARCHIVED:5,STARRED:6,LABELS:7,SETTINGS:8,LOG_OUT:9,CONTACT_INFO:10,SELECT_MESSAGES:11,CLOSE_CHAT:12,MUTE_NOTIFICATIONS:13,CLEAR_MESSAGES:14,DELETE_CHAT:15,REPORT_BUSINESS:16,BLOCK:17,SETTINGS_NOTIFICATIONS:18,SETTINGS_THEME:19,SETTINGS_CHAT_WALLPAPER:20,SETTINGS_BLOCKED:21,SETTINGS_HELP:22,OPEN:23,CLOSE:24,BUSINESS_TOOLS:25});f.WEBC_MENU_ITEM_LABEL=a}),66); __d("WAWebWebcMenuWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumWebcMenuItemLabel","WAWebWamEnumWebcMenuType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({WebcMenu:[2504,{webcMenuAction:[2,d("WAWebWamEnumWebcMenuType").WEBC_MENU_TYPE],webcMenuItemLabel:[3,d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL]},[1,1,1],"regular"]},{WebcMenu:[]});g.WebcMenuWamEvent=a}),98); __d("WAWebChatlistHeaderDropdownLogEvents",["WAWebWamEnumWebcMenuType","WAWebWebcMenuWamEvent"],(function(a,b,c,d,e,f,g){function a(a){a=new(d("WAWebWebcMenuWamEvent").WebcMenuWamEvent)({webcMenuAction:d("WAWebWamEnumWebcMenuType").WEBC_MENU_TYPE.THREADS_SCREEN_CLICK,webcMenuItemLabel:a});a.commit()}g.logMenuEvent=a}),98); __d("WAWebArchivedChatlistHeaderDropdownItem.react",["fbt","WAWebArchiveRefreshedIcon.react","WAWebArchivedFlowLoadable","WAWebChatFolderOpenWamEvent","WAWebChatlistHeaderDropdownLogEvents","WAWebDrawerManager","WAWebDropdownItem.react","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcMenuItemLabel","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=function(a){a==null?void 0:a.stopPropagation(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebArchivedFlowLoadable").ArchivedFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}})),new(d("WAWebChatFolderOpenWamEvent").ChatFolderOpenWamEvent)({folderType:"Archive"}).commit(),d("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.ARCHIVED)},b=h._(/*BTDS*/"__JHASH__8AB9jeM6fYu__JHASH__"),c="mi-archived menu-item";c=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebArchiveRefreshedIcon.react").ArchiveRefreshedIcon,{}):null,testid:void 0,action:a,children:b});return c}a.displayName=a.name+" [from "+f.id+"]";g.ArchivedChatlistHeaderDropdownItem=a}),226); __d("WAWebArchivedDrawer.react",["fbt","WAWebApiChat","WAWebChat.react","WAWebChatCollection","WAWebChatCommunityUtils","WAWebCmd","WAWebCommunityGatingUtils","WAWebComposeBoxActions","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebEmptyState.react","WAWebFlatList.react","WAWebFlatListController","WAWebFocusTracer","WAWebFrontendChatGetters","WAWebKeyboardHotKeys.react","WAWebSettingsGetters","WAWebSingleSelection","WAWebText.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","react","stylex","useLazyRef","useWAWebListener","useWAWebSettingsValues"],(function(a,b,c,d,e,f,g,h){var i,j,k;b=k||d("react");var l=i||(i=c("react")),m=b.useEffect,n=b.useRef,o=b.useState,p=d("WAWebChat.react").ChatFactory(),q=d("WAWebFlatList.react").FlatListFactory();function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.onClose,f=function(){return d("WAWebChatCollection").ChatCollection.filter(function(a){return a.archive&&d("WAWebFrontendChatGetters").getShouldAppearInList(a)})};a=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2,d("WAWebSettingsGetters").getArchive]);var g=a[0],i=a[1];a=c("useLazyRef")(function(){return new(c("WAWebFlatListController"))()});var k=c("useLazyRef")(function(){return new(c("WAWebSingleSelection"))([],function(a){return a.id.toString()})}),r=n(null),s=o(f),t=s[0],u=s[1];s=function(a){var b=k.current.getVal();a===b&&k.current.unset()};var v=function(){return g};d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,[v()?"sort":null,"change:archive","add","remove"].filter(Boolean),function(){u(f())});var w=function(a){k.current.setVal(a,!1)};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"close_chat",s);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"update_chatlist_selection",w);s=function(){var a=d("WAWebChatCollection").ChatCollection.some(function(a){return a.archive});return a};var x=function(){return d("WAWebChatCollection").ChatCollection.toArray().find(function(a){return a.active&&a.archive})};m(function(){if(v()){var a=f(),b=new Map();a.forEach(function(a){a.archiveAtMentionViewedInDrawer=!0,b.set(a.id.toString(),!0)});d("WAWebApiChat").updateChatArchiveDrawer(b)}r.current&&c("WAWebFocusTracer").focus(r.current);a=x();a&&w(a)},[]);var y=function(){e()},z=function(a,b){d("WAWebCmd").Cmd.openChatFromUnread(b).then(function(a){a&&d("WAWebComposeBoxActions").ComposeBoxActions.focus(b)}),i.enabled||y()},A=function(a){a.preventDefault(),a.stopPropagation(),k.current.setNext(!0)},B=function(a){a.preventDefault(),a.stopPropagation(),k.current.setPrev(!0)},C=function(a){a=d("WAWebCommunityGatingUtils").shouldShowNewSubgroupIdentity(a.groupMetadata)?d("WAWebChatCommunityUtils").SUBGROUP_V2_CHAT_CELL_HEIGHT:d("WAWebFlatList.react").DEFAULT_ITEM_HEIGHT;return d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?a+4:a},D=function(){return t.map(function(a){return{itemKey:a.id.toString(),chat:a,height:C(a)}})};k.current.init(t,!0);var E;if(s()){s=h._(/*BTDS*/"__JHASH__mr-G7SkLOWq__JHASH__",[h._implicitParam("=m2",l.jsx("span",babelHelpers["extends"]({className:"x117nqv4"},{children:h._(/*BTDS*/"__JHASH__RcpovFgViWh__JHASH__")})))]);var F=h._(/*BTDS*/"__JHASH__EDLaLyXUlTJ__JHASH__",[h._implicitParam("=m2",l.jsx("span",babelHelpers["extends"]({className:"x117nqv4"},{children:h._(/*BTDS*/"__JHASH__d_gqvp1JFMj__JHASH__")})))]);E=l.jsx("div",babelHelpers["extends"]({className:"x1xnncb0"},{children:l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([d("WAWebUISpacing").uiPadding.horiz20,d("WAWebUISpacing").uiPadding.bottom10]),{children:l.jsx("div",babelHelpers["extends"]({className:"x1yc453h"},{children:l.jsx(d("WAWebText.react").WAWebTextMuted,{as:"p",children:g?s:F})}))}))}))}if(t.length>0){s={down:A,up:B};F=l.jsxs(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:r,handlers:s,children:[E,l.jsx("div",babelHelpers["extends"]({className:"x889kno xc73u3c x1a8lsjc x5ib6vp"},{children:l.jsx("div",{className:"xjm9jq1 xkh2ocl x1uew315"})})),l.jsx(q,{className_DONOTUSE:"x6ikm8r x10wlt62",data:D(),testid:void 0,flatListController:a.current,direction:"vertical",renderItem:function(a){return l.jsx(p,{chat:a.chat,mode:d("WAWebChat.react").Mode.LAST,active:k.current,onClick:z,hideArchivedIcon:i.enabled,hideMuteIcon:v(),hideMuteOption:v(),ephemeralIcon:"chat-list",showCommunityInfo:!0})}})]})}else F=l.jsx(d("WAWebEmptyState.react").Archived,{});A=i.enabled?h._(/*BTDS*/"__JHASH__TQ2BuCO_4ej__JHASH__"):h._(/*BTDS*/"__JHASH__IkojJE167d4__JHASH__");B=d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL;d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled()&&(B=d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB);return l.jsxs(c("WAWebDrawer.react"),{ref:b,theme:"archived",tsNavigationData:{surface:"archived-chats-drawer"},children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:A,onBack:y,type:B,menu:null}),l.jsx(c("WAWebDrawerBody.react"),{flatListControllers:[a.current],children:F})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebArchivedFlow.react",["$InternalEnum","WAWebArchivedDrawer.react","WAWebSettingsModel","react","useWAWebFlow"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j=b("$InternalEnum").Mirrored(["Chats"]);function a(a){a=a.onEnd;a=d("useWAWebFlow").useFlow(j.Chats,{transitions:d("useWAWebFlow").FlowTransitions.DrawerRight,onEnd:a});var b=a[0],e=a[1];if(e.step==null)return null;var f;switch(e.step){case j.Chats:f=i.jsx(c("WAWebArchivedDrawer.react"),{settings:c("WAWebSettingsModel"),onClose:function(){e.pop()}});break}return i.jsx(b,{flow:e,children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebAttachMenuPopupItem.react",["WAWebDropdownItem.react","WAWebFlex.react","WAWebL10N","WAWebNoop","WAWebPopoverContext.react","WAWebTag.react","WAWebTooltip.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j,k=j||c("react"),l=(h||(h=d("react"))).useRef,m={container:{cursor:"x1ypdohk",height:"x1vqgdyp",$$css:!0},icon:{minWidth:"xt4ypqs",$$css:!0},disabled:{opacity:"xbyyjgo",cursor:"x1h6gzvc",$$css:!0}};function a(a){var b=a.action,e=a.testid;e=a.icon;var f=a.text,g=a.children,h=a.disabled,j=a.tooltipIfDisabled;a=a.showcase;a=a===void 0?!1:a;var n=d("WAWebPopoverContext.react").useWDSPopoverControllerRef(),o=l(null),p;if(h===!0&&j!=null&&o!=null){j=k.jsx(d("WAWebTooltip.react").WDSHoverTooltip,{targetRef:o,alignment:c("WAWebL10N").isRTL()?d("WAWebTooltip.react").PopoverAlignment.End:d("WAWebTooltip.react").PopoverAlignment.Start,position:d("WAWebTooltip.react").PopoverPosition.Bottom,buffer:8,children:j});p=k.jsx(d("WAWebPopoverContext.react").WDSPopoverController,{targetRef:o,popover:j,controllerRef:n})}return k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props([d("WAWebUISpacing").uiMargin.horiz8,h===!0&&m.disabled]),{ref:o,children:k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:h===!0?c("WAWebNoop"):b,disabled:h,type:"attach-menu-popup",children:k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:[m.container,d("WAWebUISpacing").uiMargin.start8,d("WAWebUISpacing").uiMargin.end32],children:[k.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",xstyle:[m.icon,d("WAWebUISpacing").uiMargin.end12],children:e}),k.jsx("span",babelHelpers["extends"]({className:"xdod15v xzwifym x6ikm8r x10wlt62 xlyipyv xuxw1ft"},{children:f})),g,a?k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(d("WAWebUISpacing").uiMargin.start8),{children:k.jsx(d("WAWebTag.react").Tag,{theme:d("WAWebTag.react").TagTheme.PrimaryPill,children:k.jsx("span",{children:"New"})})})):void 0,p]})})}))}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItem=a}),98); __d("WAWebAttachMenuStrings",["fbt","WAWebBizGatingUtils"],(function(a,b,c,d,e,f,g,h){a=function(){return h._(/*BTDS*/"__JHASH__vBBzBdxVAUq__JHASH__")};b=function(){return h._(/*BTDS*/"__JHASH__GA0RDhsuo7p__JHASH__")};c=function(){return h._(/*BTDS*/"__JHASH__W2r7MD1wI_x__JHASH__")};e=function(){return h._(/*BTDS*/"__JHASH__E9ENGkXmHBW__JHASH__")};f=function(){return d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__bdV_YEjX9wV__JHASH__"):h._(/*BTDS*/"__JHASH__i9gnkBhzxGe__JHASH__")};var i=function(){return h._(/*BTDS*/"__JHASH__vWL3pR6QPV0__JHASH__")},j=function(){return h._(/*BTDS*/"__JHASH__EQCv9IbBguC__JHASH__")},k=function(){return h._(/*BTDS*/"__JHASH__wwViWu-hrcH__JHASH__")},l=function(){return h._(/*BTDS*/"__JHASH__4vFEWcdb4Fe__JHASH__")},m=function(){return h._(/*BTDS*/"__JHASH__tVhGIzG6OEY__JHASH__")},n=function(){return h._(/*BTDS*/"__JHASH__lDY4sfdE2KU__JHASH__")};g.CameraText=a;g.CatalogText=b;g.ContactText=c;g.DocumentText=e;g.OrderText=f;g.PhotosAndVideosText=i;g.PollText=j;g.QuickRepliesText=k;g.StickerMakerText=l;g.AudioText=m;g.EventText=n}),226); __d("WAWebWamEnumActionThreadTypeType",[],(function(a,b,c,d,e,f){a=Object.freeze({GROUP_CHAT:1,P2P_THREAD:2,MESSAGE_YOURSELF:3,META_AI:4,TO_CHARACTER:5,TO_UGC:6});f.ACTION_THREAD_TYPE_TYPE=a}),66); __d("WAWebWamEnumAttachmentTrayActionTargetType",[],(function(a,b,c,d,e,f){a=Object.freeze({ATTACHMENT_TRAY:1,DOCUMENT:2,CAMERA:3,CAMERA_LIBRARY:4,GALLERY:5,PHOTO_AND_VIDEO_LIBRARY:6,AUDIO:7,LOCATION:8,CONTACT:9,POLL:10,PAYMENT:11,SHOP:12,ORDER:13,CATALOG:14,QUICK_REPLY:15,STICKER_MAKER:16,IMAGINE_EDIT:17,EVENT_CREATION:18,CALL_LINK_CREATION:19});f.ATTACHMENT_TRAY_ACTION_TARGET_TYPE=a}),66); __d("WAWebWamEnumAttachmentTrayActionType",[],(function(a,b,c,d,e,f){a=Object.freeze({CLICK:1,SEND:2,CANCEL:3});f.ATTACHMENT_TRAY_ACTION_TYPE=a}),66); __d("WAWebWamEnumSendMediaTypeType",[],(function(a,b,c,d,e,f){a=Object.freeze({PHOTO:1,VIDEO:2,MIXED:3});f.SEND_MEDIA_TYPE_TYPE=a}),66); __d("WAWebAttachmentTrayActionsWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumActionThreadTypeType","WAWebWamEnumAttachmentTrayActionTargetType","WAWebWamEnumAttachmentTrayActionType","WAWebWamEnumClientGroupSizeBucket","WAWebWamEnumSendMediaTypeType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({AttachmentTrayActions:[3980,{actionDurationMs:[1,a.TYPES.INTEGER],actionThreadType:[9,d("WAWebWamEnumActionThreadTypeType").ACTION_THREAD_TYPE_TYPE],attachmentTrayAction:[2,d("WAWebWamEnumAttachmentTrayActionType").ATTACHMENT_TRAY_ACTION_TYPE],attachmentTrayActionTarget:[3,d("WAWebWamEnumAttachmentTrayActionTargetType").ATTACHMENT_TRAY_ACTION_TARGET_TYPE],groupSizeBucket:[4,d("WAWebWamEnumClientGroupSizeBucket").CLIENT_GROUP_SIZE_BUCKET],isAGroup:[5,a.TYPES.BOOLEAN],isSuccessful:[6,a.TYPES.BOOLEAN],sendMediaType:[7,d("WAWebWamEnumSendMediaTypeType").SEND_MEDIA_TYPE_TYPE],sendTime:[8,a.TYPES.INTEGER]},[1,1,1],"regular"]},{AttachmentTrayActions:[]});g.AttachmentTrayActionsWamEvent=b}),98); __d("WAWebAttachmentMenuLogger",["$InternalEnum","WANullthrows","WAWebABProps","WAWebAttachmentTrayActionsWamEvent","WAWebChatGetters","WAWebWamEnumAttachmentTrayActionTargetType","WAWebWamEnumAttachmentTrayActionType","WAWebWamNumberToClientGroupSizeBucket"],(function(a,b,c,d,e,f,g){var h=b("$InternalEnum").Mirrored(["OPEN","CLOSE"]),i=b("$InternalEnum").Mirrored(["SEND","CANCEL"]);a=function(){function a(){this.$1=null}var b=a.prototype;b.logAttachmentMenuOpen=function(a){a=new(d("WAWebAttachmentTrayActionsWamEvent").AttachmentTrayActionsWamEvent)(babelHelpers["extends"]({},j(h.OPEN,a),{actionDurationMs:0}));this.$2();m()&&a.commit()};b.logAttachmentMenuClose=function(a){a=new(d("WAWebAttachmentTrayActionsWamEvent").AttachmentTrayActionsWamEvent)(babelHelpers["extends"]({},j(h.CLOSE,a),{actionDurationMs:this.$3()}));this.$2();m()&&a.commit()};b.logAttachMenuClick=function(a,b){b=new(d("WAWebAttachmentTrayActionsWamEvent").AttachmentTrayActionsWamEvent)(babelHelpers["extends"]({attachmentTrayActionTarget:b,attachmentTrayAction:d("WAWebWamEnumAttachmentTrayActionType").ATTACHMENT_TRAY_ACTION_TYPE.CLICK},l(a),{actionDurationMs:this.$3()}));this.$2();m()&&b.commit()};b.logAttachmentSend=function(a,b){b=new(d("WAWebAttachmentTrayActionsWamEvent").AttachmentTrayActionsWamEvent)(babelHelpers["extends"]({},k(i.SEND,b,a),{actionDurationMs:this.$3()}));this.$2();m()&&b.commit()};b.logAttachmentCancel=function(a,b){b=new(d("WAWebAttachmentTrayActionsWamEvent").AttachmentTrayActionsWamEvent)(babelHelpers["extends"]({},k(i.CANCEL,b,a),{actionDurationMs:this.$3()}));this.$2();m()&&b.commit()};b.$2=function(){this.$1=Date.now()};b.$3=function(){return Date.now()-c("WANullthrows")(this.$1)};return a}();function j(a,b){return babelHelpers["extends"]({attachmentTrayActionTarget:d("WAWebWamEnumAttachmentTrayActionTargetType").ATTACHMENT_TRAY_ACTION_TARGET_TYPE.ATTACHMENT_TRAY,attachmentTrayAction:a===h.OPEN?d("WAWebWamEnumAttachmentTrayActionType").ATTACHMENT_TRAY_ACTION_TYPE.CLICK:d("WAWebWamEnumAttachmentTrayActionType").ATTACHMENT_TRAY_ACTION_TYPE.CANCEL},l(b))}function k(a,b,c){return babelHelpers["extends"]({attachmentTrayActionTarget:b,attachmentTrayAction:a===i.SEND?d("WAWebWamEnumAttachmentTrayActionType").ATTACHMENT_TRAY_ACTION_TYPE.SEND:d("WAWebWamEnumAttachmentTrayActionType").ATTACHMENT_TRAY_ACTION_TYPE.CANCEL},l(c))}function l(a){return{isAGroup:d("WAWebChatGetters").getIsGroup(a),groupSizeBucket:d("WAWebChatGetters").getIsGroup(a)?c("WAWebWamNumberToClientGroupSizeBucket")(a.getParticipantCount()):void 0}}function m(){return d("WAWebABProps").getABPropConfigValue("attachment_tray_logging_enabled")}e=new a();g.AttachmentMenuTarget=d("WAWebWamEnumAttachmentTrayActionTargetType").ATTACHMENT_TRAY_ACTION_TARGET_TYPE;g.AttachmentMenuLogger=e}),98); __d("WAWebAttachMenuPopupItemAudio.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebFilePicker.react","WAWebMimeTypes","WAWebMsgAudioIcon.react","WAWebPrepareMessageSendingAction","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useRef,l={icon:{color:"x10wjepd",$$css:!0}};function a(a){var b=a.chat,e=a.dismissMenu,f=a.multiple,g=a.onMediaPick,h=k();a=function(a){a.preventDefault();if(h.current!=null){h.current.open();void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(b);d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.AUDIO);return!1}return!0};var i=function(a){if(!a){e();return}a.preventDefault();a=Array.from((a=a.target.files)!=null?a:[]);e();if(!a.length)return;g(a.map(function(a){return{file:a}}))};return j.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:a,icon:j.jsx(d("WAWebMsgAudioIcon.react").MsgAudioIcon,{height:20,width:20,iconXstyle:l.icon}),text:d("WAWebAttachMenuStrings").AudioText(),children:j.jsx(c("WAWebFilePicker.react"),{ref:h,mimes:d("WAWebMimeTypes").AUDIO_MIMES,onChange:i,multiple:f})})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemAudio=a}),98); __d("WAWebCameraFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="camera-filled-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M12 17.5C13.25 17.5 14.3125 17.0625 15.1875 16.1875C16.0625 15.3125 16.5 14.25 16.5 13C16.5 11.75 16.0625 10.6875 15.1875 9.8125C14.3125 8.9375 13.25 8.5 12 8.5C10.75 8.5 9.6875 8.9375 8.8125 9.8125C7.9375 10.6875 7.5 11.75 7.5 13C7.5 14.25 7.9375 15.3125 8.8125 16.1875C9.6875 17.0625 10.75 17.5 12 17.5ZM12 15.5C11.3 15.5 10.7083 15.2583 10.225 14.775C9.74167 14.2917 9.5 13.7 9.5 13C9.5 12.3 9.74167 11.7083 10.225 11.225C10.7083 10.7417 11.3 10.5 12 10.5C12.7 10.5 13.2917 10.7417 13.775 11.225C14.2583 11.7083 14.5 12.3 14.5 13C14.5 13.7 14.2583 14.2917 13.775 14.775C13.2917 15.2583 12.7 15.5 12 15.5ZM4 21C3.45 21 2.97917 20.8042 2.5875 20.4125C2.19583 20.0208 2 19.55 2 19V7C2 6.45 2.19583 5.97917 2.5875 5.5875C2.97917 5.19583 3.45 5 4 5H7.15L8.4 3.65C8.58333 3.45 8.80417 3.29167 9.0625 3.175C9.32083 3.05833 9.59167 3 9.875 3H14.125C14.4083 3 14.6792 3.05833 14.9375 3.175C15.1958 3.29167 15.4167 3.45 15.6 3.65L16.85 5H20C20.55 5 21.0208 5.19583 21.4125 5.5875C21.8042 5.97917 22 6.45 22 7V19C22 19.55 21.8042 20.0208 21.4125 20.4125C21.0208 20.8042 20.55 21 20 21H4Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CameraFilledRefreshedIcon=a}),98); __d("WAWebAttachMenuPopupItemCamera.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebCameraFilledRefreshedIcon.react","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={refreshedIcon:{color:"x1cbnkk4",$$css:!0}};function a(a){var b=a.chat,c=a.onCaptureClick;a=function(){c();d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CAMERA);return!0};var e=i.jsxs("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M9.9999 13.04C8.16657 13.04 6.67479 11.5482 6.67479 9.71486C6.67479 7.88153 8.16657 6.38976 9.9999 6.38976C11.8332 6.38976 13.325 7.88153 13.325 9.71486C13.325 11.5482 11.8332 13.04 9.9999 13.04Z",fill:"var(--attachment-type-camera-color)"}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.606 1.6763C14.9347 2.23849 15.5121 2.60821 16.1634 2.60821H16.2429C18.3177 2.60821 20 4.29014 20 6.36531V14.8157C20 16.8902 18.3177 18.5725 16.2429 18.5725H3.7571C1.68226 18.5725 0 16.8902 0 14.8157V6.36531C0 4.29014 1.68226 2.60821 3.7571 2.60821H3.83661C4.48792 2.60821 5.06535 2.23849 5.39398 1.6763C5.98035 0.673833 7.06697 0 8.3126 0H11.6874C12.933 0 14.0193 0.673833 14.606 1.6763ZM9.9999 4.73333C7.25322 4.73333 5.01837 6.96818 5.01837 9.71486C5.01837 12.4615 7.25322 14.6964 9.9999 14.6964C12.7466 14.6964 14.9814 12.4615 14.9814 9.71486C14.9814 6.96818 12.7466 4.73333 9.9999 4.73333Z",fill:"var(--attachment-type-camera-color)"})]});return i.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:a,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?i.jsx(d("WAWebCameraFilledRefreshedIcon.react").CameraFilledRefreshedIcon,{iconXstyle:j.refreshedIcon}):e,text:d("WAWebAttachMenuStrings").CameraText()})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemCamera=a}),98); __d("WAWebAttachProductModalLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingModal.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizAttachProductModal.react").__setRef("WAWebAttachProductModalLoadable").load());return a}),"AttachProductModal");d=c("react-loadable")({loader:a,loading:function(a){return j.jsx(c("WAWebLoadingModal.react"),{title:h._(/*BTDS*/"__JHASH__g_Xg1UUzHmM__JHASH__"),error:Boolean(a.error)})}});g.requireBundle=a;g.AttachProductModalLoadable=d}),226); __d("WAWebAttachMenuPopupItemCatalog.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachProductModalLoadable","WAWebAttachmentMenuLogger","WAWebModalManager","WAWebPrepareMessageSendingAction","WAWebProductCatalogLogEvents","WAWebProductCatalogMetaLinkingGatingUtils","WAWebProductCatalogSession","WAWebStorefrontFilledIcon.react","WAWebUIRefreshGatingUtils","WAWebUtilsLogQplEvents","react","useLazyRef"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={icon:{color:"x1bzzifw",$$css:!0}};function k(){return i.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.00007 2H17.0001C17.5501 2 18.0001 1.55 18.0001 1C18.0001 0.45 17.5501 0 17.0001 0H3.00007C2.45007 0 2.00007 0.45 2.00007 1C2.00007 1.55 2.45007 2 3.00007 2ZM18.1601 3.8C18.0701 3.34 17.6601 3 17.1801 3H2.82007C2.34007 3 1.93007 3.34 1.84007 3.8L0.840074 8.8C0.720074 9.42 1.19007 10 1.82007 10H2.00007V15C2.00007 15.55 2.45007 16 3.00007 16H11.0001C11.5501 16 12.0001 15.55 12.0001 15V10H16.0001V15C16.0001 15.55 16.4501 16 17.0001 16C17.5501 16 18.0001 15.55 18.0001 15V10H18.1801C18.8101 10 19.2801 9.42 19.1601 8.8L18.1601 3.8ZM4.00007 14H10.0001V10H4.00007V14Z",fill:"var(--attachment-type-catalog-color)"})})}k.displayName=k.name+" [from "+f.id+"]";function a(a){var b=a.chat;a=a.disabled;var e=c("useLazyRef")(function(){return new(d("WAWebProductCatalogSession").ProductCatalogSession)()}),f=function(a){a.preventDefault();a=e.current.toString();if(a==null)return!0;d("WAWebProductCatalogLogEvents").logCatalogAttachmentButtonClick(a);d("WAWebUtilsLogQplEvents").qplStartCatalogView("Attachment");d("WAWebModalManager").ModalManager.open(i.jsx(d("WAWebAttachProductModalLoadable").AttachProductModalLoadable,{chat:b,sessionId:a,onSend:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CATALOG)},onCancel:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CATALOG)}}));void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(b);d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CATALOG);return!0},g=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?i.jsx(d("WAWebStorefrontFilledIcon.react").StorefrontFilledIcon,{iconXstyle:j.icon}):i.jsx(k,{});return i.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:f,icon:g,text:d("WAWebAttachMenuStrings").CatalogText(),disabled:a,tooltipIfDisabled:a===!0?d("WAWebProductCatalogMetaLinkingGatingUtils").getDisabledMetaLinkedCatalogTooltipText():null})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemCatalog=a}),98); __d("WAWebAttachVcardsFlowLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingModal.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebAttachVcardsFlow.react").__setRef("WAWebAttachVcardsFlowLoadable").load());return a}),"AttachVcardsFlow");d=c("react-loadable")({loader:a,loading:function(a){return j.jsx(c("WAWebLoadingModal.react"),{title:h._(/*BTDS*/"__JHASH__0FKlgfRZkxG__JHASH__"),error:Boolean(a.error)})}});g.requireBundle=a;g.AttachVcardsFlowLoadable=d}),226); __d("WAWebPersonFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="person-filled-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M12 11C10.7625 11 9.70312 10.5594 8.82188 9.67813C7.94063 8.79688 7.5 7.7375 7.5 6.5C7.5 5.2625 7.94063 4.20312 8.82188 3.32188C9.70312 2.44063 10.7625 2 12 2C13.2375 2 14.2969 2.44063 15.1781 3.32188C16.0594 4.20312 16.5 5.2625 16.5 6.5C16.5 7.7375 16.0594 8.79688 15.1781 9.67813C14.2969 10.5594 13.2375 11 12 11ZM5.25 21C4.63125 21 4.10156 20.7797 3.66094 20.3391C3.22031 19.8984 3 19.3687 3 18.75V17.85C3 17.2125 3.16406 16.6266 3.49219 16.0922C3.82031 15.5578 4.25625 15.15 4.8 14.8688C5.9625 14.2875 7.14375 13.8516 8.34375 13.5609C9.54375 13.2703 10.7625 13.125 12 13.125C13.2375 13.125 14.4563 13.2703 15.6562 13.5609C16.8562 13.8516 18.0375 14.2875 19.2 14.8688C19.7438 15.15 20.1797 15.5578 20.5078 16.0922C20.8359 16.6266 21 17.2125 21 17.85V18.75C21 19.3687 20.7797 19.8984 20.3391 20.3391C19.8984 20.7797 19.3687 21 18.75 21H5.25Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.PersonFilledRefreshedIcon=a}),98); __d("WAWebAttachMenuPopupItemContacts.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachVcardsFlowLoadable","WAWebAttachmentMenuLogger","WAWebModalManager","WAWebPersonFilledRefreshedIcon.react","WAWebPrepareMessageSendingAction","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={refreshedIcon:{color:"x19hyexh",$$css:!0}};function a(a){var b=a.chat,c=a.onMenuComplete;a=function(a){a.preventDefault();d("WAWebModalManager").ModalManager.open(i.jsx(d("WAWebAttachVcardsFlowLoadable").AttachVcardsFlowLoadable,{chat:b,onCancel:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CONTACT)},onContactsSent:function(){c==null?void 0:c(!0),d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CONTACT)}}));void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(b);d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CONTACT);return!0};var e=i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C12 6.21 10.21 8 8 8C5.79 8 4 6.21 4 4C4 1.79 5.79 0 8 0C10.21 0 12 1.79 12 4ZM0 14C0 11.34 5.33 10 8 10C10.67 10 16 11.34 16 14V15C16 15.55 15.55 16 15 16H1C0.45 16 0 15.55 0 15V14Z",fill:"var(--attachment-type-contacts-color)"})});return i.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:a,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?i.jsx(d("WAWebPersonFilledRefreshedIcon.react").PersonFilledRefreshedIcon,{iconXstyle:j.refreshedIcon}):e,text:d("WAWebAttachMenuStrings").ContactText()})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemContacts=a}),98); __d("WAWebDocumentFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="document-filled-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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 8C13 8.28333 13.0958 8.52083 13.2875 8.7125C13.4792 8.90417 13.7167 9 14 9H18L13 4V8Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.DocumentFilledRefreshedIcon=a}),98); __d("WAWebAttachMenuPopupItemDocuments.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebDocumentFilledRefreshedIcon.react","WAWebFilePicker.react","WAWebFileUtils","WAWebMimeTypes","WAWebPrepareMessageSendingAction","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useRef,l={refreshedIcon:{color:"x19mqsdy",$$css:!0}};function a(a){var b=a.chat,e=a.dismissMenu,f=a.onDocumentPick,g=k();a=function(a){a.preventDefault();if(g.current){g.current.open();void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(b);d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.DOCUMENT);return!1}return!0};var h=function(a){a.stopPropagation();a=a.target.files==null?[]:Array.from(a.target.files);e();if(!a.length)return;a=a.map(function(a){return{file:a,type:d("WAWebFileUtils").FILETYPE.DOCUMENT}});f(a)},i=j.jsx("svg",{height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 0C0.9 0 0.01 0.9 0.01 2L0 18C0 19.1 0.89 20 1.99 20H14C15.1 20 16 19.1 16 18V6.83C16 6.3 15.79 5.79 15.41 5.42L10.58 0.59C10.21 0.21 9.7 0 9.17 0H2ZM9 6V1.5L14.5 7H10C9.45 7 9 6.55 9 6ZM4 10C3.44772 10 3 10.4477 3 11C3 11.5523 3.44772 12 4 12H12C12.5523 12 13 11.5523 13 11C13 10.4477 12.5523 10 12 10H4ZM10 15C10 14.4477 9.55228 14 9 14H4C3.44772 14 3 14.4477 3 15C3 15.5523 3.44772 16 4 16H9C9.55228 16 10 15.5523 10 15Z",fill:"var(--attachment-type-documents-color)"})});return j.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:a,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebDocumentFilledRefreshedIcon.react").DocumentFilledRefreshedIcon,{iconXstyle:l.refreshedIcon}):i,text:d("WAWebAttachMenuStrings").DocumentText(),children:j.jsx(c("WAWebFilePicker.react"),{ref:g,mimes:d("WAWebMimeTypes").DOC_MIMES,onChange:h})})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemDocuments=a}),98); __d("WAWebCalendarFilledIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="calendar-filled";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=20;m=18;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 18 20",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M11.4306 15.8334C10.75 15.8334 10.1748 15.5984 9.70486 15.1285C9.23495 14.6586 9 14.0834 9 13.4028C9 12.7223 9.23495 12.147 9.70486 11.6771C10.1748 11.2072 10.75 10.9723 11.4306 10.9723C12.1111 10.9723 12.6863 11.2072 13.1562 11.6771C13.6262 12.147 13.8611 12.7223 13.8611 13.4028C13.8611 14.0834 13.6262 14.6586 13.1562 15.1285C12.6863 15.5984 12.1111 15.8334 11.4306 15.8334ZM2.19444 19.7223C1.65972 19.7223 1.20197 19.5319 0.821181 19.1511C0.440394 18.7703 0.25 18.3126 0.25 17.7778V4.16672C0.25 3.632 0.440394 3.17424 0.821181 2.79346C1.20197 2.41267 1.65972 2.22228 2.19444 2.22228H3.16667V1.25005C3.16667 0.974591 3.25984 0.743688 3.44618 0.557346C3.63252 0.371003 3.86343 0.277832 4.13889 0.277832C4.41435 0.277832 4.64525 0.371003 4.8316 0.557346C5.01794 0.743688 5.11111 0.974591 5.11111 1.25005V2.22228H12.8889V1.25005C12.8889 0.974591 12.9821 0.743688 13.1684 0.557346C13.3547 0.371003 13.5856 0.277832 13.8611 0.277832C14.1366 0.277832 14.3675 0.371003 14.5538 0.557346C14.7402 0.743688 14.8333 0.974591 14.8333 1.25005V2.22228H15.8056C16.3403 2.22228 16.798 2.41267 17.1788 2.79346C17.5596 3.17424 17.75 3.632 17.75 4.16672V17.7778C17.75 18.3126 17.5596 18.7703 17.1788 19.1511C16.798 19.5319 16.3403 19.7223 15.8056 19.7223H2.19444ZM2.19444 17.7778H15.8056V8.05561H2.19444V17.7778Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CalendarFilledIcon=a}),98); __d("WAWebAttachMenuPopupItemEvents",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebCalendarFilledIcon.react","WAWebCalendarFilledRefreshedIcon.react","WAWebEventsCreateEventModal","WAWebModalManager","WAWebNux","WAWebPrepareMessageSendingAction","WAWebUIRefreshGatingUtils","react","useWAWebNux"],(function(a,b,c,d,e,f,g){var h,i=h||d("react"),j={icon:{color:"xkgndj",$$css:!0}};function a(a){var b=a.chat;a=c("useWAWebNux")(d("WAWebNux").NUX.EVENT_CREATE);var e=a[0],f=a[1];function g(a){a.preventDefault();f();d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebEventsCreateEventModal"),{chat:b}),{blockClose:!0});void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(b);return!0}return i.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:g,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?i.jsx(d("WAWebCalendarFilledRefreshedIcon.react").CalendarFilledRefreshedIcon,{iconXstyle:j.icon}):i.jsx(d("WAWebCalendarFilledIcon.react").CalendarFilledIcon,{iconXstyle:j.icon,height:20,"aria-hidden":!0}),text:d("WAWebAttachMenuStrings").EventText(),showcase:e})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemEvents=a}),98); __d("WAWebReceiptRefreshedFilledIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="receipt-refreshed-filled";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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.99995Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ReceiptRefreshedFilledIcon=a}),98); __d("WAWebAttachMenuPopupItemOrders.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebBizEntryPoint","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebDrawerManager","WAWebModalManager","WAWebOrderCreationFlowLoadable","WAWebOrderDetailsActionCategory","WAWebOrderDetailsActionsSmbWamEvent","WAWebOrderExpansionNotSupportedPopup.react","WAWebOrdersExpansionUtils","WAWebReceiptRefreshedFilledIcon.react","WAWebSmbDataSharingOptInModalDialog","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","WAWebWamEnumOrderDetailsCreationAction","WAWebWamEnumSmbDataSharingConsentScreenEntryPoint","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={icon:{color:"x1ydg37e",$$css:!0},opacityOverride:{opacity:"xuzhngd",$$css:!0}};function k(a){a=a.isOrderCountrySupported;return i.jsx("svg",{opacity:a?1:.3,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M20 3.29721C19.8845 3.29721 19.7689 3.34169 19.6889 3.43055L18.9867 4.13282C18.8089 4.31055 18.5333 4.31055 18.3555 4.13282L17.6533 3.43055C17.4755 3.25282 17.2 3.25282 17.0222 3.43055L16.32 4.13282C16.1422 4.31055 15.8667 4.31055 15.6889 4.13282L14.9867 3.43055C14.8089 3.25282 14.5333 3.25282 14.3555 3.43055L13.6533 4.13282C13.4755 4.31055 13.2 4.31055 13.0222 4.13282L12.32 3.43055C12.1422 3.25282 11.8667 3.25282 11.6889 3.43055L10.9867 4.13282C10.8089 4.31055 10.5333 4.31055 10.3555 4.13282L9.64447 3.42168C9.46667 3.24388 9.19114 3.24388 9.01333 3.42168L8.31114 4.13282C8.13333 4.31055 7.85781 4.31055 7.68 4.13282L6.97781 3.42168C6.8 3.24388 6.52447 3.24388 6.34667 3.42168L5.64447 4.13282C5.46667 4.31055 5.19114 4.31055 5.01333 4.13282L4.31114 3.42168C4.23114 3.34168 4.11553 3.29721 4 3.29721V20.7106C4.11553 20.7106 4.23114 20.6662 4.31114 20.5772L5.01333 19.875C5.19114 19.6972 5.46667 19.6972 5.64447 19.875L6.34667 20.5772C6.52447 20.755 6.8 20.755 6.97781 20.5772L7.68 19.875C7.85781 19.6972 8.13333 19.6972 8.31114 19.875L9.01333 20.5772C9.19114 20.755 9.46667 20.755 9.64447 20.5772L10.3467 19.875C10.5245 19.6972 10.8 19.6972 10.9778 19.875L11.68 20.5772C11.8578 20.755 12.1333 20.755 12.3111 20.5772L13.0133 19.875C13.1911 19.6972 13.4667 19.6972 13.6445 19.875L14.3467 20.5772C14.5245 20.755 14.8 20.755 14.9778 20.5772L15.68 19.875C15.8578 19.6972 16.1333 19.6972 16.3111 19.875L17.0133 20.5772C17.1911 20.755 17.4667 20.755 17.6445 20.5772L18.3467 19.875C18.5245 19.6972 18.8 19.6972 18.9778 19.875L19.68 20.5772C19.7689 20.6662 19.8845 20.7106 19.9911 20.7106V3.29721H20ZM16.4445 16.4439H7.55553C7.06667 16.4439 6.66667 16.0439 6.66667 15.555C6.66667 15.0662 7.06667 14.6662 7.55553 14.6662H16.4445C16.9333 14.6662 17.3333 15.0662 17.3333 15.555C17.3333 16.0439 16.9333 16.4439 16.4445 16.4439ZM16.4445 12.8884H7.55553C7.06667 12.8884 6.66667 12.4884 6.66667 11.9995C6.66667 11.5106 7.06667 11.1106 7.55553 11.1106H16.4445C16.9333 11.1106 17.3333 11.5106 17.3333 11.9995C17.3333 12.4884 16.9333 12.8884 16.4445 12.8884ZM16.4445 9.33283H7.55553C7.06667 9.33283 6.66667 8.93283 6.66667 8.44388C6.66667 7.95502 7.06667 7.55502 7.55553 7.55502H16.4445C16.9333 7.55502 17.3333 7.95502 17.3333 8.44388C17.3333 8.93283 16.9333 9.33283 16.4445 9.33283Z",fill:"var(--attachment-type-orders-color)"})})}k.displayName=k.name+" [from "+f.id+"]";function a(a){var b=a.chat;a=function(){new(d("WAWebOrderDetailsActionsSmbWamEvent").OrderDetailsActionsSmbWamEvent)({orderDetailsCreationAction:d("WAWebWamEnumOrderDetailsCreationAction").ORDER_DETAILS_CREATION_ACTION.CLICK_ORDER_FROM_ICON_MENU,actionCategory:String(c("WAWebOrderDetailsActionCategory").ORDER_DETAILS_CREATION),orderDetailEntryPoint:String(c("WAWebBizEntryPoint").MERCHANT_INITIATED),hasCatalog:d("WAWebBusinessProfileUtils").hasCatalog(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMeUser()))}).commit();var a=function(){d("WAWebDrawerManager").DrawerManager.openDrawerRight(i.jsx(c("WAWebOrderCreationFlowLoadable"),{entryPoint:c("WAWebBizEntryPoint").MERCHANT_INITIATED,chat:b,onSend:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.ORDER)},onCancel:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.ORDER)}}),{transition:"slide-left"}),d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.ORDER)};c("WAWebSmbDataSharingOptInModalDialog").maybeShowOrderDataSharingDialog(b,a,d("WAWebWamEnumSmbDataSharingConsentScreenEntryPoint").SMB_DATA_SHARING_CONSENT_SCREEN_ENTRY_POINT.NEW_ORDER);return!0};var e=!d("WAWebOrdersExpansionUtils").isOrderExpansionEnabled()&&d("WAWebOrdersExpansionUtils").isSellerCountrySameAsBuyer(b)||d("WAWebOrdersExpansionUtils").isContactCountrySupported(b);e||(a=function(){d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebOrderExpansionNotSupportedPopup.react"),{chat:b}));return!1});e=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?i.jsx(d("WAWebReceiptRefreshedFilledIcon.react").ReceiptRefreshedFilledIcon,{iconXstyle:[j.icon,!e&&j.opacityOverride]}):i.jsx(k,{isOrderCountrySupported:e});return i.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:a,icon:e,text:d("WAWebAttachMenuStrings").OrderText()})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemOrders=a}),98); __d("WAWebMediaFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="media-filled-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M13.25 12.5L12.1 11C12 10.8667 11.8667 10.8 11.7 10.8C11.5333 10.8 11.4 10.8667 11.3 11L9.625 13.2C9.49167 13.3667 9.47083 13.5417 9.5625 13.725C9.65417 13.9083 9.80833 14 10.025 14H17.975C18.1917 14 18.3458 13.9083 18.4375 13.725C18.5292 13.5417 18.5083 13.3667 18.375 13.2L15.95 10.025C15.85 9.89167 15.7167 9.825 15.55 9.825C15.3833 9.825 15.25 9.89167 15.15 10.025L13.25 12.5ZM8 18C7.45 18 6.97917 17.8042 6.5875 17.4125C6.19583 17.0208 6 16.55 6 16V4C6 3.45 6.19583 2.97917 6.5875 2.5875C6.97917 2.19583 7.45 2 8 2H20C20.55 2 21.0208 2.19583 21.4125 2.5875C21.8042 2.97917 22 3.45 22 4V16C22 16.55 21.8042 17.0208 21.4125 17.4125C21.0208 17.8042 20.55 18 20 18H8ZM4 22C3.45 22 2.97917 21.8042 2.5875 21.4125C2.19583 21.0208 2 20.55 2 20V7C2 6.71667 2.09583 6.47917 2.2875 6.2875C2.47917 6.09583 2.71667 6 3 6C3.28333 6 3.52083 6.09583 3.7125 6.2875C3.90417 6.47917 4 6.71667 4 7V20H17C17.2833 20 17.5208 20.0958 17.7125 20.2875C17.9042 20.4792 18 20.7167 18 21C18 21.2833 17.9042 21.5208 17.7125 21.7125C17.5208 21.9042 17.2833 22 17 22H4Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.MediaFilledRefreshedIcon=a}),98); __d("WAWebAttachMenuPopupItemPhotos.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebFilePicker.react","WAWebMediaFilledRefreshedIcon.react","WAWebMimeTypes","WAWebPrepareMessageSendingAction","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useRef,l=[d("WAWebMimeTypes").IMAGE_MIMES,d("WAWebMimeTypes").VIDEO_MIMES].join(","),m={refreshedIcon:{color:"xihbb3s",$$css:!0}};function a(a){var b=a.chat,e=a.dismissMenu,f=a.multiple,g=a.onMediaPick,h=k();a=function(a){a.preventDefault();if(h.current!=null){h.current.open();void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(b);d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.PHOTO_AND_VIDEO_LIBRARY);return!1}return!0};var i=function(a){if(!a){e();return}a.stopPropagation();a=Array.from((a=a.target.files)!=null?a:[]);e();if(!a.length)return;g(a.map(function(a){return{file:a}}))},n=j.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 14V2C20 0.9 19.1 0 18 0H6C4.9 0 4 0.9 4 2V14C4 15.1 4.9 16 6 16H18C19.1 16 20 15.1 20 14ZM9.4 10.53L11.03 12.71L13.61 9.49C13.81 9.24 14.19 9.24 14.39 9.49L17.35 13.19C17.61 13.52 17.38 14 16.96 14H7C6.59 14 6.35 13.53 6.6 13.2L8.6 10.53C8.8 10.27 9.2 10.27 9.4 10.53ZM0 18V5C0 4.45 0.45 4 1 4C1.55 4 2 4.45 2 5V17C2 17.55 2.45 18 3 18H15C15.55 18 16 18.45 16 19C16 19.55 15.55 20 15 20H2C0.9 20 0 19.1 0 18Z",fill:"var(--attachment-type-photos-color)"})});return j.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:a,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebMediaFilledRefreshedIcon.react").MediaFilledRefreshedIcon,{iconXstyle:m.refreshedIcon}):n,text:d("WAWebAttachMenuStrings").PhotosAndVideosText(),children:j.jsx(c("WAWebFilePicker.react"),{ref:h,mimes:l,onChange:i,multiple:f})})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemPhotos=a}),98); __d("WAWebPollRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="poll-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M4 18C4 17.45 4.19583 16.9792 4.5875 16.5875C4.97917 16.1958 5.45 16 6 16H10C10.55 16 11.0208 16.1958 11.4125 16.5875C11.8042 16.9792 12 17.45 12 18C12 18.55 11.8042 19.0208 11.4125 19.4125C11.0208 19.8042 10.55 20 10 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 4L14 4C14.55 4 15.0208 4.19583 15.4125 4.5875C15.8042 4.97917 16 5.45 16 6C16 6.55 15.8042 7.02083 15.4125 7.4125C15.0208 7.80417 14.55 8 14 8H6C5.45 8 4.97917 7.80417 4.5875 7.4125C4.19583 7.02083 4 6.55 4 6Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.PollRefreshedIcon=a}),98); __d("WAWebPollAttachMediaViewLoadable.react",["JSResourceForInteraction","WAWebLazyLoadLoading.react","WAWebLazyLoadedRetriable","WAWebLoadable","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebPollAttachMediaView.react").__setRef("WAWebPollAttachMediaViewLoadable.react").load());return a.PollAttachMediaView}),"PollAttachMediaView");d=c("WAWebLoadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLazyLoadLoading.react"),{error:Boolean(a.error)})}});g.PollAttachMediaViewLoadable=d}),98); __d("WAWebPollAttachMediaPicker.react",["fbt","WALogger","WAWebAttachMediaCollection","WAWebFilePicker.react","WAWebMimeTypes","WAWebModalManager","WAWebPollAttachMediaViewLoadable.react","WAWebPollsGatingUtils","WAWebToast.react","WAWebToastManager","WAWebWamEnumMediaPickerOriginType","react","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["PollAttachMediaPicker: receive empty attachments"]);j=function(){return a};return a}var k=i||c("react");function a(a){var b=a.mediaPickerRef,e=a.chat,f=a.getComposeBoxEditorRef,g=a.options,i=a.question,l=a.allowMultipleMedia,m=a.activeOptionIndex,n=function(a){var b=a.attachments,n=a.onSend;a=a.onCancel;var o=new(c("WAWebAttachMediaCollection"))({chatParticipantCount:e.getParticipantCount()}),p=d("WAWebPollsGatingUtils").getMaxPollOptionCount();b&&b.length>0?(void o.processAttachments(b,d("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.POLL_CREATION,e,p,function(){b.length>p&&d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__uWj3fbAwMlw__JHASH__",[h._param("max number of media",p)])}))}),m!=null&&!l?o.forEach(function(a){a.updateCaption((a=g[m])==null?void 0:a.name)}):o.forEach(function(a,b){a.updateCaption((a=g[b])==null?void 0:a.name)})):d("WALogger").WARN(j());n=k.jsx(d("WAWebPollAttachMediaViewLoadable.react").PollAttachMediaViewLoadable,{chat:e,onSend:n,onCancel:a,mediaCollection:o,getComposeBoxEditorRef:f,question:i,options:g,allowMultipleMedia:l,activeOptionIndex:m});d("WAWebModalManager").ModalManager.openMedia(n,{transition:"menu"})},o=c("useWAWebUIM")(),p=function(){o==null?void 0:o.requestDismiss()};a=function(a){if(!a){p();return}a.stopPropagation();a=Array.from((a=a.target.files)!=null?a:[]);p();if(!a.length)return;void n({attachments:a.map(function(a){return{file:a}})})};return k.jsx(c("WAWebFilePicker.react"),{ref:b,mimes:d("WAWebMimeTypes").IMAGE_MIMES,onChange:a,multiple:l})}a.displayName=a.name+" [from "+f.id+"]";g.PollAttachMediaPicker=a}),226); __d("WAWebPollsOptionInput",["fbt","WAWebDragIconWrapper.react","WAWebImageRefreshedIcon.react","WAWebImg.react","WAWebPollsGatingUtils","WAWebRichTextField.react","WAWebSvgComponentBase","WAWebUISpacing","WAWebUnstyledButton.react","WAWebXAltIcon.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={photoPreview:{width:"x15yg21f",height:"xnnlda6",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",justifyContent:"xl56j7k",alignItems:"x6s0dn4",display:"x78zum5",backgroundColor:"x1pl83jw",flexShrink:"x2lah0s",objectFit:"xl1xv1r",$$css:!0},deleteBtn:{position:"x10l6tqk",zIndex:"x11uqc5h",color:"x7o08j2",opacity:"xg01cxk",transition:"xid8q7e",":hover_opacity":"x1o7uuvo",$$css:!0},deleteIcon:{stroke:"x1b4pc8b",strokeWidth:"x1ns0lul",$$css:!0}};function a(a){var b=a.chat,e=a.error,f=a.image,g=a.initialText,i=a.isPhotoPoll;i=i===void 0?!1:i;var k=a.onChange,m=a.onDeletePhoto,n=a.onDragThumbMouseDown,o=a.onInputBlur,p=a.onInputFocus,q=a.onPhotoIconClick,r=a.onPhotoThumbnailClick,s=a.onTextInputRef;a=a.testid;return j.jsxs("div",babelHelpers["extends"]({className:"xh8yej3 x78zum5 x1q0g3np x6s0dn4"},{children:[j.jsx("div",babelHelpers["extends"]({className:"xh8yej3 x78zum5 x6s0dn4"},{children:j.jsx("div",babelHelpers["extends"]({className:"xh8yej3"},{children:j.jsx(d("WAWebRichTextField.react").RichTextField,{ref:function(a){s(a)},onPhotoIconClick:q,testid:void 0,hideFloatingLabel:!0,showRemaining:!0,emojiBtnPosition:"side",photoBtnPosition:d("WAWebPollsGatingUtils").isPhotoPollSenderEnabled(b)&&!i?"side":"none",textFormatEnabled:!0,value:g,error:(a=e)!=null?a:void 0,maxLength:d("WAWebPollsGatingUtils").getMaxPollOptionLength(),maxCodeUnits:d("WAWebPollsGatingUtils").getMaxPollOptionLengthForIncomingMessages(),placeholder:h._(/*BTDS*/"__JHASH__8-OxKwrJ4aw__JHASH__"),onChange:function(a){a=a.text;return k(a)},onDragThumbMouseDown:n,onFocus:p,onBlur:o,showDraggableIcon:i})}))})),i?j.jsxs(j.Fragment,{children:[j.jsx(l,{image:f,onDeletePhoto:m,onClick:r}),j.jsx("div",babelHelpers["extends"]({className:"x1d52u69"},{children:j.jsx(c("WAWebDragIconWrapper.react"),{onDragThumbMouseDown:n})}))]}):null]}))}a.displayName=a.name+" [from "+f.id+"]";function l(a){var b=a.image,e=a.onClick;a=a.onDeletePhoto;return j.jsxs("div",{children:[(b==null?void 0:b.preview)&&j.jsx(c("WAWebUnstyledButton.react"),{role:"button",xstyle:[k.deleteBtn,d("WAWebUISpacing").uiMargin.start48,d("WAWebUISpacing").uiMargin.bottom48],onClick:a,children:j.jsx(d("WAWebXAltIcon.react").XAltIcon,{xstyle:k.deleteIcon})}),j.jsx(c("WAWebUnstyledButton.react"),{xstyle:[k.photoPreview,d("WAWebUISpacing").uiMargin.start16],onClick:e,children:(b==null?void 0:b.preview)?j.jsx(c("WAWebImg.react"),{src:b==null?void 0:b.preview,alt:"",className:"x15yg21f xnnlda6 x1lq5wgf xgqcy7u x30kzoy x9jhf4c xl56j7k x6s0dn4 x78zum5 x1pl83jw x2lah0s xl1xv1r"}):j.jsx(d("WAWebImageRefreshedIcon.react").ImageRefreshedIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.GRAY,width:15,height:15})})]})}l.displayName=l.name+" [from "+f.id+"]";g.OptionInput=a}),226); __d("WAWebPollsOrderableList",["WANullthrows","react","useLazyRef","useWAWebDebouncedCallback","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useRef,m=b.useState;function a(a){var b=a.items,e=a.renderItem,f=a.onReordered,g=l(null),h=c("useLazyRef")(function(){return new Map()}),i=l(0);a=m();var k=a[0],p=a[1];a=m(null);var q=a[0],r=a[1];a=m(null);var s=a[0],t=a[1];a=m(null);var u=a[0],v=a[1],w=u!=null,x=u==null||s==null||k==null?b:n({items:u,draggedItemKey:q,getItemHeight:function(a){return(a=(a=k.get(a.key))==null?void 0:a.height)!=null?a:0},dragPosition:s}),y=function(a){var b=g.current;if(b==null)return null;var c=h.current;c=c.get(a);if(c==null)return null;a=b.getBoundingClientRect().y;b=c.getBoundingClientRect();return{clientTop:b.top,startTop:b.top-a,height:b.height}},z=function(){var c=new Map();for(var a of b)c.set(a.key,y(a.key));p(c)};a=function(a){var b=g.current;if(b==null)return;a=a.clientY-b.getBoundingClientRect().y;t(a)};d("useWAWebListener").useListener(q==null?null:document,"mousemove",a);var A=c("useWAWebDebouncedCallback")(function(){v(null),p(null)},300),B=function(a,c){var d;if(u!=null)return;d=(d=y(a))==null?void 0:d.clientTop;if(d==null)return;i.current=d-c.clientY;z();r(a);v(b)};d("useWAWebListener").useListener(q==null?null:document,"mouseup",function(a){A(),f(x),r(null),t(null)});o(q!=null);var C=null,D=0,E=0;if(k!=null){C=new Map();a=0;for(var F of x){var G=k.get(F.key);if(G==null)continue;var H=a;C.set(F.key,H);D=H;a+=G.height}}G=((H=u)!=null?H:b).map(function(a,d){var b=k==null?void 0:k.get(a.key);if(a.key===q&&s!=null){var f,g=c("WANullthrows")(b==null?void 0:b.startTop);f=(f=i.current)!=null?f:0;f=Math.min(Math.max(E,s+f),D);f=f-g}else{g=b==null?void 0:b.startTop;b=(b=C)==null?void 0:b.get(a.key);f=!w||b==null||g==null?0:b-g}return j.jsx("div",{ref:function(b){b==null?h.current["delete"](a.key):h.current.set(a.key,b)},className:{0:"xh8yej3",1:"xh8yej3 x11xpdln x13dflua xz4gly6"}[!!(q!==a.key&&w)<<0],style:{transform:"translateY("+f+"px)"},children:e({item:a,startDrag:B,index:d})},a.key)});return j.jsx("div",babelHelpers["extends"]({ref:g},{className:"x78zum5 xdt5ytf"},{children:G}))}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.items,c=a.draggedItemKey,d=a.getItemHeight;a=a.dragPosition;var e=c!=null?b.find(function(a){return a.key===c}):null;if(e==null||a==null)return b;var f=[].concat(b),g=f.findIndex(function(a){return a.key===c});f.splice(g,1);g=0;var h=0,i=0;for(b of b){a>g&&(i=h);var j=d(b);g+=j;h++}f.splice(i,0,e);return f}function o(a){k(function(){if(!a)return;var b=document;b=b.body;if(b==null)return;var c=document.createElement("div");c.className="xi9pz9s xixxii4 x13vifvy x17qophe xh8yej3 x5yr21d x1lfen1e";b.appendChild(c);return function(){c.remove()}},[a])}g.OrderableList=a}),98); __d("WAWebPollsSendPollCreationMsgAction",["Promise","WATimeUtils","WAWebAck","WAWebChatGetters","WAWebFrontendChatGetters","WAWebGetEphemeralFieldsMsgActionsUtils","WAWebLidMigrationUtils","WAWebMessageAssociation.flow","WAWebMsgKey","WAWebMsgKeyUtils","WAWebMsgType","WAWebNewsletterSendMsgAction","WAWebPollCreationUtils","WAWebPollOptionHashUtils","WAWebPollsActionsMetricUtils","WAWebSendMsgChatAction","WAWebViewMode.flow","WAWebWamEnumPollActionType","WAWebWid","WAWebWidFactory","WAXplatTrim","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(a){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=[];a.contentType===d("WAWebPollCreationUtils").PollContentType.IMAGE&&(c=(yield (h||(h=b("Promise"))).all(a.options.map(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.image;b=(yield b.mediaPrep.waitForPrep());return d("WAWebPollOptionHashUtils").generatePollOptionHash(a.name,b.filehash)});return function(b){return a.apply(this,arguments)}}()))));return a.options.map(function(a,b){a=a.name;var e=b;b=c[b];return{name:d("WAXplatTrim").trim(a),localId:e,hash:b}})});return j.apply(this,arguments)}function k(a){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){return{pollName:d("WAXplatTrim").trim(a.name),pollOptions:yield i(a),pollSelectableOptionsCount:a.selectableOptionsCount,pollContentType:a.contentType}});return l.apply(this,arguments)}function a(a){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var e=a.poll,f=a.chat,g=a.quotedMsg;a=a.isWamoSub;g=(yield n({poll:e,chat:f,quotedMsg:g,isWamoSub:a}));if(e.contentType===d("WAWebPollCreationUtils").PollContentType.IMAGE){var i={associationType:d("WAWebMessageAssociation.flow").MessageAssociationType.MEDIA_POLL,parentMsgKey:g.id,viewMode:d("WAWebViewMode.flow").ViewModeType.POLL_MEDIA,isWamoSub:a};e.options.forEach(function(a){var b=a.image;a=babelHelpers["extends"]({},i,{type:b.type,caption:a.name});void b.sendToChat(f,a)})}a=c("WAWebWid").isNewsletter(f.id);a=a?yield d("WAWebNewsletterSendMsgAction").sendNewsletterPollCreationMsg({msgData:g,chat:f}):yield (h||(h=b("Promise"))).all(d("WAWebSendMsgChatAction").addAndSendMsgToChat(f,g));g=a[0];d("WAWebPollsActionsMetricUtils").commitPollsActionsMetric({action:d("WAWebWamEnumPollActionType").POLL_ACTION_TYPE.CREATE_POLL,chat:f,creationDateInSeconds:g.t,pollOptionsCount:e.options.length})});return m.apply(this,arguments)}function n(a){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.poll,e=a.chat,f=a.quotedMsg;a=a.isWamoSub;b=(yield k(b));var g=b.pollName,h=b.pollOptions,i=b.pollSelectableOptionsCount;b=b.pollContentType;var j=c("WAWebWid").isNewsletter(e.id),l=e.id,m=d("WAWebLidMigrationUtils").getMeUserLidOrJidForChat(e,d("WAWebMsgKeyUtils").TranslateMsgKeyType.Message);f=(f=f==null?void 0:f.msgContextInfo(e.id))!=null?f:{};return babelHelpers["extends"]({id:new(c("WAWebMsgKey"))({from:m,to:l,id:c("WAWebMsgKey").newId_DEPRECATED(),participant:d("WAWebChatGetters").getIsGroup(e)?d("WAWebWidFactory").toUserWid(m):void 0,selfDir:"out"}),type:d("WAWebMsgType").MSG_TYPE.POLL_CREATION,kind:d("WAWebMsgType").MsgKind.PollCreation,viewMode:d("WAWebViewMode.flow").ViewModeType.VISIBLE,isSentCagPollCreation:d("WAWebFrontendChatGetters").getIsCAG(e)?!0:void 0,t:d("WATimeUtils").unixTime(),from:m,to:l,isNewMsg:!0,local:!0,ack:d("WAWebAck").ACK.CLOCK,pollName:g,pollOptions:h,messageSecret:j?void 0:self.crypto.getRandomValues(new Uint8Array(32)),pollSelectableOptionsCount:i,isWamoSub:a,pollContentType:b},f,d("WAWebGetEphemeralFieldsMsgActionsUtils").getEphemeralFields(e))});return o.apply(this,arguments)}g.sendPollCreation=a;g.createPollCreationMsgData=n}),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","WAWebNewsletterWamoSubUtils","WAWebPollAttachMediaPicker.react","WAWebPollAttachMediaViewLoadable.react","WAWebPollOptionsRenderUtils","WAWebPollsActionsMetricUtils","WAWebPollsGatingUtils","WAWebPollsOptionInput","WAWebPollsOrderableList","WAWebPollsSendPollCreationMsgAction","WAWebRichTextField.react","WAWebRound.react","WAWebSendIcon.react","WAWebSwitch.react","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebWdsIcSendFilledIcon.react","asyncToGeneratorRuntime","cr:8554","react","stylex","useLazyRef","useWAWebChatValues","useWAWebOnUnmount","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i,j,k;e=k||d("react");var l=i||(i=c("react")),m=e.useCallback,n=e.useEffect,o=e.useLayoutEffect,p=e.useMemo,q=e.useRef,r=e.useState,s=b("cr:8554")==null?void 0:b("cr:8554").NewsletterWamoSubMessageTypePopup,t={bodyContainer:{boxSizing:"x9f619",width:"xs8rnei",paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",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:"xtx9xyc",$$css:!0},sendButton:{transform:"x1cb1t30",marginEnd:"xktsk01",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 a(a){var e=a.chat,f=a.getComposeBoxEditorRef,g=a.initialOptions,i=a.initialQuestion,k=a.onSend;a=c("useLazyRef")(function(){var a;return d("WAWebPollsGatingUtils").isPrefillPollQuestionEnabled()?(a=(a=f())==null?void 0:(a=a.getTextContent())==null?void 0:a.substring(0,d("WAWebPollsGatingUtils").getMaxPollNameLength()))!=null?a:"":""}).current;var u=r(a),v=u[0],w=u[1];u=r(!1);var x=u[0],y=u[1],z=q();u=r(!0);var A=u[0],B=u[1];u=r(void 0);var C=u[0],D=u[1];u=r(!1);var E=u[0],F=u[1];u=r(null);var G=u[0],H=u[1];u=(u=d("useWAWebChatValues").useOptionalChatValues(e.id,[d("WAWebChatGetters").getIsNewsletter,d("WAWebFrontendChatGetters").getNewsletterMetadata]))!=null?u:[!1,null];var aa=u[0],ba=u[1],I=d("WAWebPollsGatingUtils").getMaxPollOptionCount();u=r(function(){var a;return d("WAWebPollOptionsRenderUtils").formatOptions((a=g)!=null?a:[],{maxOptionsCount:I})});var J=u[0],ca=u[1],K=q(new Map()),L=q(null),M=q(),N=c("useWAWebUIM")();u=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();var O=m(function(a,b){ca(d("WAWebPollOptionsRenderUtils").formatOptions(a,{maxOptionsCount:I,focusedKey:b}))},[I]);n(function(){d("WAWebPollsActionsMetricUtils").commitPollOpenCreationModal(e)},[]);var P=q(),Q=q(J.length);o(function(){var a=L.current,b=Q.current,c=J.findIndex(function(a){return a.key===P.current});a!=null&&b<J.length&&c===J.length-2&&J[J.length-1].name===""&&a.scroll({top:a.scrollHeight,behavior:"smooth"});Q.current=J.length},[J]);var da=function(a){a=a.text;w(a)},R=J.some(function(a){return a.image!=null}),S=p(function(){return d("WAWebPollOptionsRenderUtils").validateOptions(J)},[J]);n(function(){e.isComposingPoll=v.length>0||J.some(function(a){return a.name.length>0})},[e,v,J]);c("useWAWebOnUnmount")(function(){e.isComposingPoll=!1});var T=J[I-2],U=J[I-1];T=J.length===I&&!d("WAWebPollOptionsRenderUtils").isEmptyAfterTrimming(T)&&d("WAWebPollOptionsRenderUtils").isEmptyAfterTrimming(U);var V=q(),W=function(a){a===void 0&&(a=!1),d("WAWebModalManager").ModalManager.close(),a&&d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(e,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.POLL)},X=v!==""||J.some(function(a){return a.name!==""||a.image}),Y=function(){X&&d("WAWebPollsGatingUtils").isPollsCancellationPromptEnabled()?F(!0):W(!0)};U=function(){X&&d("WAWebPollsGatingUtils").isPollsCancellationPromptEnabled()?E||F(!0):W(!0)};var Z=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){W(!1);yield d("WAWebBizBotTosUtils").maybeShowBizBot1pTos(e);var b=J.filter(function(a){return!d("WAWebPollOptionsRenderUtils").isEmptyAfterTrimming(a)}),g={name:v,selectableOptionsCount:x?1:0};g=R?babelHelpers["extends"]({},g,{contentType:"IMAGE",options:b.map(function(a){var b=a.name;a=a.image;return{name:b,image:c("WANullthrows")(a)}})}):babelHelpers["extends"]({},g,{contentType:"TEXT",options:b.map(function(a){a=a.name;return{name:a}})});void d("WAWebPollsSendPollCreationMsgAction").sendPollCreation({poll:g,chat:e,quotedMsg:d("WAWebPollsGatingUtils").arePollsFastFollowsEnabled()?e.composeQuotedMsg:null,isWamoSub:a===d("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub});e.composeQuotedMsg=null;e.setComposeContents({});(b=f())==null?void 0:b.reset();d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(e,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.POLL)});return function(b){return a.apply(this,arguments)}}(),ea=function(){if(R&&!d("WAWebPollOptionsRenderUtils").canSendPhotoPoll(J)){d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__xIwMMxTznKH__JHASH__")}));return}if(aa&&d("WAWebNewsletterWamoSubUtils").newsletterSupportsSubscriptions(ba)&&M.current&&s!=null&&d("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()){var a=function(a){void Z(a)};H({popupAnchorEl:M.current,handleSelect:a})}else void Z();k==null?void 0:k()},$=p(function(){return{chat:e,getComposeBoxEditorRef:f,options:J}},[e,f,J]),fa=m(function(){var a;B(!0);(a=z.current)==null?void 0:a.open()},[B]),ga=m(function(a,b){var c=[].concat(J);c[a]=babelHelpers["extends"]({},J[a],{image:void 0});O(c,b)},[J,O]),ha=m(function(a){var b=J[a],f=babelHelpers["extends"]({question:v,allowMultipleMedia:!1,activeOptionIndex:a},$);if(b.image){var g=b.image,h=new(c("WAWebAttachMediaCollection"))({chatParticipantCount:e.getParticipantCount()});h.add(g);h.forEach(function(a){a.updateCaption(b.name)});h.setActive(g);N==null?void 0:N.requestDismiss();g=l.jsx(d("WAWebPollAttachMediaViewLoadable.react").PollAttachMediaViewLoadable,babelHelpers["extends"]({mediaCollection:h},f));d("WAWebModalManager").ModalManager.openMedia(g,{transition:"menu"})}else{B(!1);D(a);(h=z.current)==null?void 0:h.open()}},[e,$,J,v,N]),ia=u?l.jsx(d("WAWebWdsIcSendFilledIcon.react").WdsIcSendFilledIcon,{width:28,directional:!0}):l.jsx(d("WAWebSendIcon.react").SendIcon,{width:22,height:20,directional:!0});return l.jsxs(d("WAWebKeyboardHotKeys.react").HotKeys,{handlers:{esc:function(a){a.stopPropagation(),Y()}},children:[l.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Tower,testid:void 0,onOverlayClick:U,children:l.jsxs(c("WAWebDrawer.react"),{xstyle:t.drawer,children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__OPDhp9ykdd3__JHASH__"),type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:Y}),l.jsx(c("WAWebDrawerBody.react"),{children:l.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(t.bodyContainer,d("WAWebUISpacing").uiPadding.top32),{children:[l.jsx("span",babelHelpers["extends"]({className:"xlm9qay xk50ysn"},{children:h._(/*BTDS*/"__JHASH__xHxrGB83c4U__JHASH__")})),l.jsx(d("WAWebRichTextField.react").RichTextField,{ref:V,testid:void 0,focusOnMount:!0,hideFloatingLabel:!0,showRemaining:!0,emojiBtnPosition:"side",textFormatEnabled:!0,value:(i=i)!=null?i:a,maxLength:d("WAWebPollsGatingUtils").getMaxPollNameLength(),maxVisibleLines:5,maxCodeUnits:d("WAWebPollsGatingUtils").getMaxPollNameLengthForIncomingMessages(),onChange:da,placeholder:h._(/*BTDS*/"__JHASH__1MzPBVSvr9R__JHASH__")}),l.jsx("span",babelHelpers["extends"]({},j.props(t.sectionTitle,d("WAWebUISpacing").uiMargin.top25),{children:h._(/*BTDS*/"__JHASH__0EB0PnAtNqP__JHASH__")})),l.jsx("div",babelHelpers["extends"]({ref:L},j.props(t.optionsContainer,d("WAWebUISpacing").uiMargin.top2,d("WAWebUISpacing").uiMargin.bottom10),{children:l.jsx(d("WAWebPollsOrderableList").OrderableList,{items:J,onReordered:O,renderItem:function(a){var b=a.startDrag,c=a.item,f=a.index;return l.jsx(d("WAWebPollsOptionInput").OptionInput,{chat:e,onPhotoThumbnailClick:function(){ha(f)},onPhotoIconClick:fa,initialText:c.name,error:S.get(c.key),testid:void 0,onTextInputRef:function(a){a?K.current.set(c.key,a):K.current["delete"](c.key)},isPhotoPoll:R,onChange:function(a){var b=[].concat(J);b[f]=babelHelpers["extends"]({},c,{name:a});O(b,c.key)},onDeletePhoto:function(){ga(f,c.key)},onDragThumbMouseDown:function(a){if(a.button!==0)return;b(c.key,a)},onInputFocus:function(){P.current=c.key},onInputBlur:function(){P.current=null},image:c.image})}})})),l.jsx("h3",{"data-testid":void 0,className:{0:"x1nxh6w3",1:"x1nxh6w3 xlshs6z"}[!!!T<<0],children:h._(/*BTDS*/"__JHASH__zMd54d51ARH__JHASH__")}),d("WAWebPollsGatingUtils").isSingleOptionPollsSendingEnabled(e.id)&&l.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(t.singleOptionContainer,d("WAWebUISpacing").uiPadding.bottom20),{children:[l.jsx("label",babelHelpers["extends"]({htmlFor:"polls-single-option-switch"},(j||(j=c("stylex"))).props(t.singleOptionLabel,d("WAWebUISpacing").uiPadding.vert4),{children:h._(/*BTDS*/"__JHASH__WbrLfnEcHa7__JHASH__")})),l.jsx(d("WAWebSwitch.react").Switch,{id:"polls-single-option-switch",checked:!x,onChange:function(){y(!x)},testid:void 0})]}))]}))}),l.jsx("div",babelHelpers["extends"]({},j.props(t.createPollButtonContainer,d("WAWebUISpacing").uiMargin.top30),{children:l.jsx(d("WAWebRound.react").Round,{ref:M,xstyle:[t.sendButton,u&&t.sendButtonRefreshed],theme:d("WAWebRound.react").RoundTheme.DrawerFooter,large:!0,onClick:ea,disabled:!d("WAWebPollOptionsRenderUtils").isPollValid({question:v,options:J,optionsToErrors:S}),label:h._(/*BTDS*/"__JHASH__7ly79q6kyF___JHASH__"),testid:void 0,children:ia})})),G!=null&&s!=null&&l.jsx(s,{handleSelect:G.handleSelect,popupAnchorEl:G.popupAnchorEl,onDismiss:function(){return H(null)}})]})}),d("WAWebPollsGatingUtils").isPollsCancellationPromptEnabled()&&E&&l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{cancelButtonType:"warning-secondary",title:h._(/*BTDS*/"__JHASH__kQe72MJaOTJ__JHASH__"),okText:h._(/*BTDS*/"__JHASH__2L5ocmLHOyc__JHASH__"),onOK:function(){var a;F(!1);(a=V.current)==null?void 0:a.restoreFocus()},cancelText:h._(/*BTDS*/"__JHASH__-QKUfhJvclL__JHASH__"),onCancel:function(){W(!0)},onOverlayClick:U,children:h._(/*BTDS*/"__JHASH__gjzS5EsjL1u__JHASH__")}),l.jsx(d("WAWebPollAttachMediaPicker.react").PollAttachMediaPicker,{mediaPickerRef:z,chat:e,options:J,getComposeBoxEditorRef:f,question:v,allowMultipleMedia:A,activeOptionIndex:(i=C)!=null?i:void 0})]})}a.displayName=a.name+" [from "+f.id+"]";g.CreatePollModal=a}),226); __d("WAWebAttachMenuPopupItemPolls.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebModalManager","WAWebPollRefreshedIcon.react","WAWebPollsCreatePollModal","WAWebPollsGatingUtils","WAWebPrepareMessageSendingAction","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={refreshedIcon:{color:"xxeg2eo",$$css:!0}};function a(a){var b=a.chat,c=a.getComposeBoxEditorRef;a=i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2C0 0.895431 0.895431 0 2 0H11C12.1046 0 13 0.895431 13 2C13 3.10457 12.1046 4 11 4H2C0.89543 4 0 3.10457 0 2ZM0 8C0 6.89543 0.895431 6 2 6H14C15.1046 6 16 6.89543 16 8C16 9.10457 15.1046 10 14 10H2C0.895431 10 0 9.10457 0 8ZM2 12C0.895431 12 0 12.8954 0 14C0 15.1046 0.89543 16 2 16H8C9.10457 16 10 15.1046 10 14C10 12.8954 9.10457 12 8 12H2Z",fill:"var(--attachment-type-polls-color)"})});return i.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:function(a){a.preventDefault();d("WAWebModalManager").ModalManager.open(i.jsx(d("WAWebPollsCreatePollModal").CreatePollModal,{chat:b,getComposeBoxEditorRef:c}),{blockClose:d("WAWebPollsGatingUtils").isPollsCancellationPromptEnabled()});void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(b);d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.POLL);return!0},icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?i.jsx(d("WAWebPollRefreshedIcon.react").PollRefreshedIcon,{iconXstyle:j.refreshedIcon}):a,text:d("WAWebAttachMenuStrings").PollText()})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemPolls=a}),98); __d("WAWebBoltFilledIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="bolt-filled";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.BoltFilledIcon=a}),98); __d("WAWebAttachMenuPopupItemQuickReplies.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebBoltFilledIcon.react","WAWebComposeBoxActions","WAWebLightningIcon.react","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={icon:{color:"x1ev1nr0",$$css:!0}};function a(a){var b=a.chat;a=function(a){a.preventDefault();d("WAWebComposeBoxActions").ComposeBoxActions.toggleQuickReplies();d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.QUICK_REPLY);return!0};var c=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?i.jsx(d("WAWebBoltFilledIcon.react").BoltFilledIcon,{iconXstyle:j.icon}):i.jsx(d("WAWebLightningIcon.react").LightningIcon,{width:20,height:20,iconXstyle:j.icon});return i.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:a,icon:c,text:d("WAWebAttachMenuStrings").QuickRepliesText()})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemQuickReplies=a}),98); __d("WAWebStickerCreateFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="sticker-create-filled-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{opacity:.9,fillRule:"evenodd",clipRule:"evenodd",d:"M14 21.6814C15.0541 21.3509 16.024 20.7715 16.8221 19.9799L19.8489 16.9776C20.8807 15.9542 21.5742 14.6537 21.8569 13.25H18C15.7909 13.25 14 15.0409 14 17.25V21.6814ZM12 22H9.27273C5.25611 22 2 18.7439 2 14.7273V9.27273C2 5.25611 5.25611 2 9.27273 2H14.7273C18.7439 2 22 5.25611 22 9.27273V11.25H18C14.6863 11.25 12 13.9363 12 17.25V22ZM9 5C8.44772 5 8 5.44772 8 6V8H6C5.44772 8 5 8.44772 5 9C5 9.55229 5.44772 10 6 10H8V12C8 12.5523 8.44772 13 9 13C9.55228 13 10 12.5523 10 12V10H12C12.5523 10 13 9.55228 13 9C13 8.44772 12.5523 8 12 8H10V6C10 5.44772 9.55228 5 9 5Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.StickerCreateFilledRefreshedIcon=a}),98); __d("WAWebAttachMenuPopupItemStickers.react",["WAWebAttachMenuPopupItem.react","WAWebAttachMenuStrings","WAWebAttachmentMenuLogger","WAWebFilePicker.react","WAWebMimeTypes","WAWebPrepareMessageSendingAction","WAWebStickerCreateFilledRefreshedIcon.react","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcStickerMakerEventNameType","WAWebWebcStickerMakerEventsWamEvent","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useRef,l={refreshedIcon:{color:"x1w53qhl",$$css:!0}};function a(a){var b=a.chat,e=a.dismissMenu,f=a.onMediaPick,g=k();a=function(a){a.preventDefault();a=g.current;if(a){new(d("WAWebWebcStickerMakerEventsWamEvent").WebcStickerMakerEventsWamEvent)({stickerMakerEventName:d("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.STICKER_MAKER_BUTTON_TAP}).commit();a.open();void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(b);d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachMenuClick(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.STICKER_MAKER);return!1}return!1};var h=function(a){if(!a){e();return}a.stopPropagation();a=a.target.files==null?[]:Array.from(a.target.files);e();if(!a.length)return;new(d("WAWebWebcStickerMakerEventsWamEvent").WebcStickerMakerEventsWamEvent)({stickerMakerEventName:d("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.IMAGE_UPLOADED}).commit();f(a.map(function(a){return{file:a,stickerMaker:!0}}))},i=j.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 23C20.7614 23 23 20.7614 23 18C23 15.2386 20.7614 13 18 13C15.2386 13 13 15.2386 13 18C13 20.7614 15.2386 23 18 23ZM17.25 15.75C17.25 15.3358 17.5858 15 18 15C18.4142 15 18.75 15.3358 18.75 15.75V17.25H20.25C20.6642 17.25 21 17.5858 21 18C21 18.4142 20.6642 18.75 20.25 18.75H18.75V20.25C18.75 20.6642 18.4142 21 18 21C17.5858 21 17.25 20.6642 17.25 20.25V18.75H15.75C15.3358 18.75 15 18.4142 15 18C15 17.5858 15.3358 17.25 15.75 17.25H17.25V15.75Z",fill:"var(--attachment-type-stickers-color)"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 7C2 4.23858 4.23858 2 7 2H17C19.7614 2 22 4.23858 22 7V12.2547C20.8662 11.4638 19.4872 11 18 11C14.134 11 11 14.134 11 18C11 19.4872 11.4638 20.8662 12.2547 22H7C4.23858 22 2 19.7614 2 17V7ZM14 9.5L14.7812 7.78125L16.5 7L14.7812 6.21875L14 4.5L13.2188 6.21875L11.5 7L13.2188 7.78125L14 9.5ZM8 8.5L9.25 11.25L12 12.5L9.25 13.75L8 16.5L6.75 13.75L4 12.5L6.75 11.25L8 8.5Z",fill:"var(--attachment-type-stickers-color)"})]});return j.jsx(d("WAWebAttachMenuPopupItem.react").AttachMenuPopupItem,{testid:void 0,action:a,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebStickerCreateFilledRefreshedIcon.react").StickerCreateFilledRefreshedIcon,{iconXstyle:l.refreshedIcon}):i,text:d("WAWebAttachMenuStrings").StickerMakerText(),children:j.jsx(c("WAWebFilePicker.react"),{ref:g,mimes:d("WAWebMimeTypes").IMAGE_MIMES,onChange:h,multiple:!1})})}a.displayName=a.name+" [from "+f.id+"]";g.AttachMenuPopupItemStickers=a}),98); __d("WAWebAttachMenuUtils",["WAWebBizGatingUtils","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebChatGetters","WAWebConnModel","WAWebProductCatalogMetaLinkingGatingUtils","WAWebUserPrefsMeUser"],(function(a,b,c,d,e,f,g){function a(a){if(d("WAWebChatGetters").getIsNewsletter(a))return!1;a=d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMeUser());return!h()||d("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(a)||d("WAWebProductCatalogMetaLinkingGatingUtils").shouldDisableCatalogDueToMetaLinkingForSelf()?!1:!0}function b(){return d("WAWebProductCatalogMetaLinkingGatingUtils").shouldShowMetaLinkedDisabledCatalogTooltipForSelf()}function c(a){if(!d("WAWebConnModel").Conn.isSMB||d("WAWebChatGetters").getIsGroup(a)||d("WAWebChatGetters").getIsNewsletter(a))return!1;if(d("WAWebBizGatingUtils").orderDetailsCustomItemEnabled())return!0;a=d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMeUser());return d("WAWebBizGatingUtils").orderDetailsFromCatalogEnabled()&&d("WAWebBusinessProfileUtils").hasCatalog(a)}function h(){if(!d("WAWebConnModel").Conn.isSMB)return!1;var a=d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMeUser());return!d("WAWebBusinessProfileUtils").hasShop(a)}g.shouldShowCatalogOption=a;g.shouldShowDisabledCatalogOption=b;g.canSendOrder=c}),98); __d("WAWebAttachMenuPopup.react",["WAWebAttachMenuPopupItemAudio.react","WAWebAttachMenuPopupItemCamera.react","WAWebAttachMenuPopupItemCatalog.react","WAWebAttachMenuPopupItemContacts.react","WAWebAttachMenuPopupItemDocuments.react","WAWebAttachMenuPopupItemEvents","WAWebAttachMenuPopupItemOrders.react","WAWebAttachMenuPopupItemPhotos.react","WAWebAttachMenuPopupItemPolls.react","WAWebAttachMenuPopupItemQuickReplies.react","WAWebAttachMenuPopupItemStickers.react","WAWebAttachMenuUtils","WAWebAttachmentMenuLogger","WAWebBizGatingUtils","WAWebChatGetters","WAWebCmd","WAWebContactGetters","WAWebEventUtils","WAWebMediaGatingUtils","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebWamEnumMediaPickerOriginType","react","stylex","useWAWebChatValues","useWAWebUIM"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react");function a(a){var b=a.chat,e=a.getComposeBoxEditorRef,f=a.getComposeContents,g=a.onCaptureClick,h=a.onMenuComplete;a=d("useWAWebChatValues").useChatValues(b.id,[d("WAWebChatGetters").getIsNewsletter]);a=a[0];var k=c("useWAWebUIM")(),m=function(){k==null?void 0:k.requestDismiss()},n=function(a){var c=a.attachments,e=a.sendAsSticker;e=e===void 0?!1:e;var g=a.onSend;a=a.onCancel;d("WAWebCmd").Cmd.attachMediaDrawer({chat:b,attachments:c,fileOrigin:d("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_PHOTO_LIBRARY,initCaption:f==null?void 0:f(),onComplete:function(a,b){h(a,b)},onSend:g,onCancel:a,sendAsSticker:e})},o=d("WAWebAttachMenuUtils").shouldShowDisabledCatalogOption(),p=d("WAWebAttachMenuUtils").shouldShowCatalogOption(b),q=d("WAWebBizGatingUtils").canSendQuickReplyInChat(b),r=d("WAWebAttachMenuUtils").canSendOrder(b)&&!d("WAWebContactGetters").getIsMe(b.contact),s=p||q||r,t=d("WAWebEventUtils").canSendEvent(b),u=d("WAWebMediaGatingUtils").getSupportedMediaTypesForChat(b),v=u.has(d("WAWebMsgType").MSG_TYPE.STICKER)?j.jsx(d("WAWebAttachMenuPopupItemStickers.react").AttachMenuPopupItemStickers,{chat:b,dismissMenu:m,onMediaPick:function(a){n({attachments:a,sendAsSticker:!0,onSend:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.STICKER_MAKER)},onCancel:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.STICKER_MAKER)}})}}):null;t=t?j.jsx(d("WAWebAttachMenuPopupItemEvents").AttachMenuPopupItemEvents,{chat:b}):null;var w=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();v=w?[t,v]:[v,t];return j.jsxs("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(!w&&d("WAWebUISpacing").uiPadding.vert3),{children:[u.has(d("WAWebMsgType").MSG_TYPE.DOCUMENT)&&j.jsx(d("WAWebAttachMenuPopupItemDocuments.react").AttachMenuPopupItemDocuments,{chat:b,dismissMenu:m,onDocumentPick:function(a){n({attachments:a,onSend:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.DOCUMENT)},onCancel:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.DOCUMENT)}})}}),j.jsx(d("WAWebAttachMenuPopupItemPhotos.react").AttachMenuPopupItemPhotos,{chat:b,dismissMenu:m,multiple:d("WAWebMediaGatingUtils").supportsMultipleUploads(b.id),onMediaPick:function(a){n({attachments:a,onSend:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.PHOTO_AND_VIDEO_LIBRARY)},onCancel:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.PHOTO_AND_VIDEO_LIBRARY)}})}}),j.jsx(d("WAWebAttachMenuPopupItemCamera.react").AttachMenuPopupItemCamera,{chat:b,onCaptureClick:g}),a&&d("WAWebNewsletterGatingUtils").isNewsletterAudioFileSendingEnabled()&&j.jsx(d("WAWebAttachMenuPopupItemAudio.react").AttachMenuPopupItemAudio,{chat:b,dismissMenu:m,multiple:d("WAWebMediaGatingUtils").supportsMultipleUploads(b.id),onMediaPick:function(a){n({attachments:a,onSend:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.AUDIO)},onCancel:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(b,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.AUDIO)}})}}),!a&&j.jsx(d("WAWebAttachMenuPopupItemContacts.react").AttachMenuPopupItemContacts,{chat:b,onMenuComplete:h}),b.canSendPolls()&&j.jsx(d("WAWebAttachMenuPopupItemPolls.react").AttachMenuPopupItemPolls,{chat:b,getComposeBoxEditorRef:e}),v,s&&j.jsx(l,{}),p&&j.jsx(d("WAWebAttachMenuPopupItemCatalog.react").AttachMenuPopupItemCatalog,{chat:b,disabled:o}),q&&j.jsx(d("WAWebAttachMenuPopupItemQuickReplies.react").AttachMenuPopupItemQuickReplies,{chat:b}),r&&j.jsx(d("WAWebAttachMenuPopupItemOrders.react").AttachMenuPopupItemOrders,{chat:b})]}))}a.displayName=a.name+" [from "+f.id+"]";var k={divider:{height:"xjm9jq1",backgroundColor:"xfw0ycb",$$css:!0}};function l(){return j.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props([k.divider,d("WAWebUISpacing").uiMargin.top3,d("WAWebUISpacing").uiMargin.bottom4])))}l.displayName=l.name+" [from "+f.id+"]";g.AttachMenuPopup=a}),98); __d("WAWebCaptureMediaDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebCaptureMediaDrawer.react").__setRef("WAWebCaptureMediaDrawerLoadable").load());return a}),"CaptureMediaDrawer");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});g.requireBundle=a;g.CaptureMediaDrawerLoadable=d}),98); __d("WAWebAttachMenuBarItem.react",["fbt","WAFilteredCatch","WAPromiseRaceAbort","WAWebAttachMenuPopup.react","WAWebAttachmentMenuLogger","WAWebCaptureMediaDrawerLoadable","WAWebCmd","WAWebDrawerManager","WAWebDropdown.react","WAWebGuidePopup.react","WAWebMediaCapture","WAWebMiscErrors","WAWebModalManager","WAWebPlusIcon.react","WAWebPlusRoundedIcon.react","WAWebPrepareMessageSendingAction","WAWebSideNavButtonsActivityModel","WAWebStateUtils","WAWebSvgButton.react","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUim","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUseBusinessProfile.react","WAWebVelocityTransitionGroup","react","useWAWebListener","useWAWebUIM","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useEffect,m=b.useImperativeHandle,n=b.useRef,o=b.useState,p={button:{display:"x78zum5",width:"xh8yej3",height:"x5yr21d",alignItems:"x6s0dn4",justifyContent:"xl56j7k",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",transition:"xlkovuz",color:"xzwifym",":active_transition":"x16j0l1c",$$css:!0},hoverBg:{":hover_backgroundColor":"x1ry1tff",$$css:!0},activeButton:{backgroundColor:"x1786zcw",$$css:!0},icon:{transitionProperty:"x11xpdln",transitionDuration:"x1d8287x",transitionTimingFunction:"x1h4ghdb",$$css:!0},rotateIcon:{transform:"x11t6m9b",$$css:!0}};function a(a){var b=a.ref,e=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]),f=e.chat,g=e.onMenuComplete;a=e.iconWidth;a=a===void 0?30:a;var i=c("useWAWebUnmountSignal")(),j=n(null),q=o(null),r=q[0],s=q[1];d("WAWebUseBusinessProfile.react").useBusinessProfile(f.id,["isBizBot3p"]);var t=n(null),u=c("useWAWebUIM")(),v=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();l(function(){return function(){t.current==null?void 0:t.current(),d("WAWebSideNavButtonsActivityModel").getLastActiveButton()==null&&d("WAWebDrawerManager").DrawerManager.closeDrawerMid()}},[]);m(b,function(){return{open:function(){x()}}});var w=function(a){d("WAWebDrawerManager").DrawerManager.existsDrawerMid(function(b){b&&a.preventDefault()})},x=function(a){a&&w(a),j.current&&s({menu:k.jsx(d("WAWebAttachMenuPopup.react").AttachMenuPopup,{chat:d("WAWebStateUtils").unproxy(f),onCaptureClick:z,getComposeContents:e.getComposeContents,getComposeBoxEditorRef:e.getComposeBoxEditorRef,onMenuComplete:e.onMenuComplete}),dirY:d("WAWebDropdown.react").DirY.TOP,dirX:v?d("WAWebDropdown.react").DirX.CENTER:d("WAWebDropdown.react").DirX.RIGHT,type:d("WAWebDropdown.react").MenuType.AttachMenuPopup,flipOnRTL:!0,testid:"attach-menu-popup",anchor:j.current,offsetY:-25}),d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentMenuOpen(f)};q=function(a){a===d("WAWebUim").DismissReason.UIM_INTERACTION&&d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentMenuClose(f),s(null)};var y=function(){var a=d("WAWebMediaCapture").start("camera",void 0,3e3),b=a.asyncStream;a=a.disposeStream;t.current=a;c("WAPromiseRaceAbort")(b,i).then(function(a){a&&d("WAWebDrawerManager").DrawerManager.openDrawerMid(k.jsx(d("WAWebCaptureMediaDrawerLoadable").CaptureMediaDrawerLoadable,{chat:d("WAWebStateUtils").unproxy(f),stream:a,disposeStream:t.current,onCaptureSent:function(){g(!0),d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(f,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CAMERA)},onCancel:function(){d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(f,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.CAMERA)},onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerMid()}}),{transition:"slide-up",uim:u,noFocus:!0})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebMiscErrors").GetUserMedia.NotAllowedError,function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebGuidePopup.react").GuidePopup,{messaging:d("WAWebGuidePopup.react").Messaging.CAMERA_FAIL,type:d("WAWebGuidePopup.react").GuidePopupType.GUIDE_UNBLOCK}))}))["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebMiscErrors").GetUserMedia.GetUserMediaError,function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebGuidePopup.react").GuidePopup,{messaging:d("WAWebGuidePopup.react").Messaging.CAMERA_MISSING,type:d("WAWebGuidePopup.react").GuidePopupType.GUIDE_NONE}))}))},z=function(){y(),void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(f)};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"close_context_menu",q);b=v?d("WAWebPlusRoundedIcon.react").PlusRoundedIcon:d("WAWebPlusIcon.react").PlusIcon;var A=Boolean(r),B=[p.button,v&&d("WAWebUISpacing").uiPadding.all8,A&&p.activeButton,v&&p.hoverBg];A=[p.icon,A&&p.rotateIcon];return k.jsxs(k.Fragment,{children:[k.jsx(c("WAWebSvgButton.react"),{containerRef:j,onClick:x,Icon:b,iconXstyle:A,width:a,dataTab:d("WAWebTabOrder").TAB_ORDER.COMPOSE_BOX_ATTACH_BUTTON,xstyle:B,title:h._(/*BTDS*/"__JHASH__pDI7cP8OsEp__JHASH__"),testid:void 0}),k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"dropdown",children:r?k.jsx(d("WAWebUimUie.react").UIE,{displayName:"AttachMenuPopup",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:q,children:k.jsx(c("WAWebUimUieMenu.react"),{contextMenu:r})}):null})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBIzLabelReorderAction",["WALogger","WAWebBizGatingUtils","WAWebLabelCollection"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[Label] reorderLabelsAction: updated LabelCollection with new label positions"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[Label] reorderLabelsAction: label reordering is not enabled"]);i=function(){return a};return a}a=function(a){if(!d("WAWebBizGatingUtils").isLabelReorderingSyncFromPrimaryEnabled()){d("WALogger").LOG(i());return}var b=!1;a.forEach(function(a,c){a=d("WAWebLabelCollection").LabelCollection.get(String(a));a&&a.orderIndex!==c&&(a.orderIndex=c,b=!0)});b&&(d("WAWebLabelCollection").LabelCollection.trigger("reorder"),d("WALogger").LOG(h()).devConsole(a))};g.reorderLabelsAction=a}),98); __d("WAWebBetaNavBarItem.react",["fbt","WAWebDrawerManager","WAWebExperimentIcon.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebSettingsConst","WAWebSettingsFlowLoadable","WAWebTestRefreshedIcon.react","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebExternalBetaOptIn"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=d("useWAWebExternalBetaOptIn").useExternalBetaOptIn();a=a[0];if(!a)return null;a=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Beta)return;e(d("WAWebNavBarTypes").NavBarItems.Beta);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},initialStep:d("WAWebSettingsConst").SettingsSteps.Help}),{transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS_HELP)};var f=b===d("WAWebNavBarTypes").NavBarItems.Beta?j.jsx(d("WAWebExperimentIcon.react").ExperimentIcon,{}):j.jsx(d("WAWebTestRefreshedIcon.react").TestRefreshedIcon,{}),g=h._(/*BTDS*/"__JHASH__yB7zpfFvHyg__JHASH__");f=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:f,title:g,text:g,testid:void 0,isExpanded:c,isActive:b===d("WAWebNavBarTypes").NavBarItems.Beta,onClick:a});return f}a.displayName=a.name+" [from "+f.id+"]";g.BetaNavBarItem=a}),226); __d("WAWebMegaphoneRefreshed32Icon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="megaphone-refreshed-32";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=32;m=32;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 32 32",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M26.2874 16.2108C26.4791 16.4025 26.7166 16.4983 26.9999 16.4983H28.9999C29.2833 16.4983 29.5208 16.4025 29.7124 16.2108C29.9041 16.0192 29.9999 15.7817 29.9999 15.4983C29.9999 15.215 29.9041 14.9775 29.7124 14.7858C29.5208 14.5942 29.2833 14.4983 28.9999 14.4983H26.9999C26.7166 14.4983 26.4791 14.5942 26.2874 14.7858C26.0958 14.9775 25.9999 15.215 25.9999 15.4983C25.9999 15.7817 26.0958 16.0192 26.2874 16.2108Z",fill:"currentColor"}),j.jsx("path",{d:"M25.2499 19.8983C24.9833 19.9317 24.7666 20.065 24.5999 20.2983C24.4333 20.5317 24.3666 20.7817 24.3999 21.0483C24.4333 21.315 24.5666 21.5317 24.7999 21.6983L26.3999 22.8983C26.6333 23.065 26.8833 23.1317 27.1499 23.0983C27.4166 23.065 27.6333 22.9317 27.7999 22.6983C27.9666 22.465 28.0333 22.215 27.9999 21.9483C27.9666 21.6817 27.8333 21.465 27.5999 21.2983L25.9999 20.0983C25.7666 19.9317 25.5166 19.865 25.2499 19.8983Z",fill:"currentColor"}),j.jsx("path",{d:"M25.9999 10.8983L27.5999 9.69835C27.8333 9.53168 27.9666 9.31501 27.9999 9.04835C28.0333 8.78168 27.9666 8.53168 27.7999 8.29835C27.6333 8.06501 27.4166 7.93168 27.1499 7.89835C26.8833 7.86501 26.6333 7.93168 26.3999 8.09835L24.7999 9.29835C24.5666 9.46501 24.4333 9.68168 24.3999 9.94835C24.3666 10.215 24.4333 10.465 24.5999 10.6983C24.7666 10.9317 24.9833 11.065 25.2499 11.0983C25.5166 11.1317 25.7666 11.065 25.9999 10.8983Z",fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 19.5584V11.4415C21 9.69261 19.0921 8.61236 17.5924 9.51217L13.6835 11.8575C13.5281 11.9507 13.3503 12 13.169 12H9.5C8.11929 12 7 13.1193 7 14.5V16.5C7 17.8807 8.11929 19 9.5 19H10V23C10 23.5523 10.4477 24 11 24C11.5523 24 12 23.5523 12 23V19L13.169 19C13.3503 19 13.5281 19.0492 13.6835 19.1425L17.5924 21.4878C19.0921 22.3876 21 21.3073 21 19.5584ZM13.169 14C13.7128 14 14.2463 13.8522 14.7125 13.5725L18.6214 11.2272C18.788 11.1272 19 11.2472 19 11.4415V19.5584C19 19.7528 18.788 19.8728 18.6214 19.7728L14.7125 17.4275C14.2463 17.1478 13.7128 17 13.169 17H9.5C9.22386 17 9 16.7761 9 16.5V14.5C9 14.2238 9.22386 14 9.5 14H13.169Z",fill:"currentColor"}),j.jsx("path",{d:"M24.0671 15.5207C24.0671 16.0995 23.9362 16.6472 23.6744 17.164C23.4125 17.6808 23.068 18.1046 22.6408 18.4353C22.503 18.518 22.3617 18.5214 22.217 18.4456C22.0723 18.3698 22 18.2493 22 18.0839V12.9161C22 12.7507 22.0723 12.6302 22.217 12.5544C22.3617 12.4786 22.503 12.482 22.6408 12.5647C23.068 12.9092 23.4125 13.3433 23.6744 13.867C23.9362 14.3907 24.0671 14.9419 24.0671 15.5207Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.MegaphoneRefreshed32Icon=a}),98); __d("WAWebBizAdCreationNavBarItem.react",["fbt","WAWebAdCreationLogger","WAWebBizGatingUtils","WAWebChatlistUtils","WAWebMegaphoneRefreshed32Icon.react","WAWebMobilePlatforms","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebUISpacing","WAWebWamEnumLwiEntryPoint","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebServerGatedAdEntryPoint"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useEffect;function a(a){var b=a.activeAccountInfo;a=a.isNavBarExpanded;var c=d("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_ad_creation_home_screen_icon",b),e=c[0];c=c[1];c=(c=c==null?void 0:c.content)!=null?c:h._(/*BTDS*/"__JHASH__ITHmMGn1hwx__JHASH__");l(function(){b!=null&&d("WAWebAdCreationLogger").logAdCreationImpression(d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON,b!=="not-linked"&&b.hasFacebookPage)},[b]);var f=function(){b!=null&&d("WAWebChatlistUtils").handleAdCreation({adCreationUrlInput:{activeAccountInfo:b,sourceAdCreation:"whatsapp_smb_web_ad_creation_home_screen_icon"},lwiEntryPoint:d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON}),d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.ADS_CREATION)};c=k.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:k.jsx(d("WAWebMegaphoneRefreshed32Icon.react").MegaphoneRefreshed32Icon,{directional:!0}),text:c,title:c,testid:void 0,isExpanded:a,isActive:!1,onClick:f,spacingXstyle:d("WAWebUISpacing").uiPadding.all4});return d("WAWebMobilePlatforms").isSMB()&&b!=null&&!e&&d("WAWebBizGatingUtils").shouldShowAdCreationIcon()?c:null}a.displayName=a.name+" [from "+f.id+"]";g.BizAdCreationNavBarItem=a}),226); __d("WAWebBizAiBridgeApi",["WAWebChatCollection","WAWebWidFactory"],(function(a,b,c,d,e,f,g){a={updateChatCapiThreadControl:function(a){var b=a.consumerPhoneNumber;a=a.status;if(b==null)return;b=d("WAWebWidFactory").createUserWid(b);b=d("WAWebChatCollection").ChatCollection.get(b);b!=null&&void b.setCapiThreadControl(a)}};g.BizAiBridgeApi=a}),98); __d("WAWebBizCreateBizStateChangeNotificationMsgsAction",["Promise","WALogger","WAWebChatCollection","WAWebContactSystemMsg","WAWebHandleSingleMsg","WAWebLid1X1MigrationGating","WAWebLidMigrationUtils","WAWebPrivacyModeSystemMsg","WAWebUserPrefsNotifications","WAWebWidFactory"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[createBizStateChangeNotificationMsgs] Cannot find chat"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[createBizStateChangeNotificationMsgs] Migrated client cannot find chat using lid"]);j=function(){return a};return a}function a(a,c,e,f){f===void 0&&(f=!0);c=m(c);e=m(e);var g=d("WAWebLidMigrationUtils").toLid(a);if(f&&d("WAWebLid1X1MigrationGating").Lid1X1MigrationUtils.isLidMigrated()&&g!=null){f=d("WAWebChatCollection").ChatCollection.getChatByAccountLid(d("WAWebWidFactory").toChatWid(g));if(f==null){d("WALogger").LOG(j());return(h||(h=b("Promise"))).resolve()}}else{f=d("WAWebChatCollection").ChatCollection.get(a);if(f==null){d("WALogger").LOG(i());return(h||(h=b("Promise"))).resolve()}}var n=f.id;g=[l(n,c,e),k(n,c,e)].filter(Boolean);g.map(function(a){if(a!=null)return d("WAWebHandleSingleMsg").handleSingleMsg(n,a,"bizStateChangeNotification")});return(h||(h=b("Promise"))).resolve()}function k(a,b,c){if(d("WAWebUserPrefsNotifications").getGlobalSecurityNotifications()!==!0)return;if(b===d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.E2EE&&c!==d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.E2EE)return d("WAWebContactSystemMsg").genEncryptNotificationMsg(a,"e2e_identity_unavailable")}function l(a,b,c){if(b===c)return;switch(c){case d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.E2EE:return d("WAWebContactSystemMsg").genEncryptNotificationMsg(a,"encrypt_now");case d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.BSP:return d("WAWebContactSystemMsg").genNonE2ENotificationMsg(a,"biz_privacy_mode_to_bsp");case d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.FB:return d("WAWebContactSystemMsg").genNonE2ENotificationMsg(a,"biz_privacy_mode_to_fb");case d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.HOSTED_GROUP:return d("WAWebContactSystemMsg").genNonE2ENotificationMsg(a,"is_capi_hosted_group")}}function m(a){return d("WAWebPrivacyModeSystemMsg").getReducedPrivacyMode(a.isBusiness?a.privacyMode:null)}g.createBizStateChangeNotificationMsgs=a}),98); __d("WAWebQueryCtwaContextJob",["WABase64","WADeprecatedSendIq","WADeprecatedWapParser","WALogger","WAWap","WAWapDeprecatedSmaxID","WAWebBackendErrors","WAWebCtwaAGMUtils","WAWebProtobufsE2E.pb","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["getCtwaContext error: code "," text ",""]);h=function(){return a};return a}function i(a){var b=a&&a.maybeAttrString("code");a=a&&a.maybeAttrString("text");d("WALogger").WARN(h(),b,a)}var j=new(c("WADeprecatedWapParser"))("ctwaContext",function(a){a.assertTag("iq");a.assertFromServer();var b=a.child("context");if(a.hasChild("error")){i(a.child("error"));throw c("err")("invalid response")}a={sourceUrl:b.child("source").child("url").contentString(),sourceId:b.child("source").child("id").contentString(),sourceType:b.child("source").child("type").contentString()};b.hasChild("headline")&&(a.title=b.child("headline").contentString());b.hasChild("body")&&(a.description=b.child("body").contentString());b.hasChild("thumbnail")&&(b.child("thumbnail").hasChild("url")&&(a.thumbnailUrl=b.child("thumbnail").child("url").contentString()),b.child("thumbnail").hasChild("bytes")&&(a.thumbnail=d("WABase64").encodeB64(b.child("thumbnail").child("bytes").contentBytes())),b.hasChild("video")?(a.mediaUrl=b.child("video").child("url").contentString(),a.mediaType=d("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.VIDEO):a.mediaType=d("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.IMAGE);var e=b.maybeChild("sourceApp");e!=null&&(a.sourceApp=e.contentString());e=d("WAWebCtwaAGMUtils").isWamoAGMIntegrationEnabled(a.sourceApp);if(e){b.hasChild("greetingMessageBody")&&(a.greetingMessageBody=b.child("greetingMessageBody").contentString());b.hasChild("automatedGreetingMessageShown")&&(a.automatedGreetingMessageShown=b.child("automatedGreetingMessageShown").contentString()==="true");e=b.maybeChild("ctaPayload");e!=null&&(a.ctaPayload=e.contentString());e=b.maybeChild("originalImageUrl");e!=null&&(a.originalImageUrl=e.contentString())}return a});function a(a,b,c){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){var f;a=d("WAWebWidFactory").createWid(a).toString({legacy:!0});a=(f=d("WAWap")).wap("iq",{xmlns:"fb:thrift_iq",id:f.generateId(),type:"get",to:f.S_WHATSAPP_NET,smax_id:f.SMAX_ID(c("WAWapDeprecatedSmaxID").CtwaGetContext)},f.wap("account_number",null,a),f.wap("code",null,b),f.wap("expected_source_url",null,e));b=(yield d("WADeprecatedSendIq").deprecatedSendIq(a,j));if(b.success)return b.result;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b.errorCode)});return k.apply(this,arguments)}g["default"]=a}),98); __d("WAWebBizQueryCtwaContextBridge",["Promise","WAWebQueryCtwaContextJob","err"],(function(a,b,c,d,e,f,g){var h;function a(a){var d=a.phone,e=a.sourceUrl;a=a.context;if(d==null||d===""||e==null||e===""||a==null||a==="")return(h||(h=b("Promise"))).reject(c("err")("Invalid params passed to fetchCtwaContextData"));d=c("WAWebQueryCtwaContextJob")(d,a,e);return d}g.fetchCtwaContextData=a}),98); __d("WAWebBizSmbTosModal.react",["fbt","WALogger","WAWebConfirmPopup.react","WAWebConnModel","WAWebModalManager","WAWebSmbLearnMore.react","WAWebSocketModel","react","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["SMB: terms of service modal, user clicked logout"]);j=function(){return a};return a}var k=i||c("react");function a(){var a=h._(/*BTDS*/"__JHASH__M2VmD8xDR_v__JHASH__"),b=function(){d("WAWebConnModel").Conn.smbTos||d("WAWebModalManager").ModalManager.close()};d("useWAWebListener").useListener(d("WAWebConnModel").Conn,"change:smbTos",b);b=function(){d("WALogger").LOG(j()),d("WAWebModalManager").ModalManager.close(),d("WAWebSocketModel").Socket.logout()};var e=h._(/*BTDS*/"__JHASH__3n1bF_cZdZK__JHASH__");b=b;return k.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:b,okText:e,children:[a,"\xa0",k.jsx(c("WAWebSmbLearnMore.react"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizToolsFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizToolsFlow.react").__setRef("WAWebBizToolsFlowLoadable").load());return a}),"BizToolsFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})},render:function(a,b){return i.jsx(a,{adsAccountInfo:b.adsAccountInfo,entryPoint:b.entryPoint})}});g.BizToolsFlowLoadable=d}),98); __d("WAWebBizToolsChatlistHeaderDropdownItem.react",["fbt","WAWebBizGatingUtils","WAWebBizToolsFlowLoadable","WAWebChatlistHeaderDropdownLogEvents","WAWebDrawerManager","WAWebDropdownItem.react","WAWebKeyboardTabUtils","WAWebNavBarTypes","WAWebStorefrontIcon.react","WAWebUIRefreshGatingUtils","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumWebcMenuItemLabel","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeAccountInfo,c=a.updateActiveNavBarItem;if(!d("WAWebBizGatingUtils").isBizToolsDrawerEnabled())return null;a=function(a){a==null?void 0:a.stopPropagation(),d("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.BUSINESS_TOOLS),c!=null&&c(d("WAWebNavBarTypes").NavBarItems.BizTools),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebBizToolsFlowLoadable").BizToolsFlowLoadable,{adsAccountInfo:b,entryPoint:d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_CONVERSATIONS}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"})};var e=h._(/*BTDS*/"__JHASH__CQ-A7XcVxvl__JHASH__"),f="mi-biz-tools menu-item";f=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebStorefrontIcon.react").StorefrontIcon,{}):null,action:a,children:e});return f}a.displayName=a.name+" [from "+f.id+"]";g.BizToolsChatlistHeaderDropdownItem=a}),226); __d("WAWebBizToolsNavBarItem.react",["fbt","WAWebBizGatingUtils","WAWebBizToolsFlow.react","WAWebBusinessProfileCollection","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebMobilePlatforms","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebStorefrontFilledIcon.react","WAWebStorefrontIcon.react","WAWebUserPrefsMeUser","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useMemo,m=b.useState;function a(a){var b=a.activeAccountInfo,e=a.activeNavBarItem,f=a.isNavBarExpanded,g=a.updateActiveNavBarItem;a=d("WAWebMobilePlatforms").isSMB();var i=l(function(){return d("WAWebUserPrefsMeUser").getMeUser()},[]),j=m(!1),n=j[0],o=j[1];a&&void d("WAWebBusinessProfileCollection").BusinessProfileCollection.find(i).then(function(){o(!0)});j=l(function(){return d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(i)},[i]);var p=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();d("useWAWebListener").useListener(j,"change:profileOptions",p);p=n&&!d("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(j);n=e===d("WAWebNavBarTypes").NavBarItems.BizTools?k.jsx(d("WAWebStorefrontFilledIcon.react").StorefrontFilledIcon,{}):k.jsx(d("WAWebStorefrontIcon.react").StorefrontIcon,{});j=function(){if(e===d("WAWebNavBarTypes").NavBarItems.BizTools)return;g(d("WAWebNavBarTypes").NavBarItems.BizTools);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(c("WAWebBizToolsFlow.react"),{adsAccountInfo:b,entryPoint:d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_BUSINESS_TOOLS_TAB}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.BUSINESS_TOOLS)};var q=h._(/*BTDS*/"__JHASH__Aowuf9H3z9F__JHASH__");n=k.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:n,text:q,title:q,testid:void 0,isExpanded:f,isActive:e===d("WAWebNavBarTypes").NavBarItems.BizTools,onClick:j});return a&&p&&d("WAWebBizGatingUtils").isBizToolsDrawerEnabled()?n:null}a.displayName=a.name+" [from "+f.id+"]";g.BizToolsNavBarItem=a}),226); __d("WAWebBotCommandSuggestionResult.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={result:"_aopp",selected:"_aopq",commandHighlight:"_ap99",commandText:"_ap9a",desc:"_aopu",image:"_aot5"};b=a;g["default"]=b}),98); __d("WAWebBotCommandSuggestionResult.react",["WAWebBotCommandSuggestionResult.scss","WAWebBotCommandSuggestions.react","WAWebClassnames","WAWebDetailImage.react","WAWebEmojiText.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.command,e=a.query,f=a.selected,g=a.imageWid,h=a.onMouseDown,j=a.onMouseEnter;a=a.onMouseUp;var k=b.name;b=b.description;var l=k.slice(0,e.length);k=k.slice(e.length);return i.jsxs("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((e={},e[c("WAWebBotCommandSuggestionResult.scss").selected]=f,e[c("WAWebBotCommandSuggestionResult.scss").result]=!0,e)),onMouseDown:h,onMouseUp:a,onMouseEnter:j,children:[g!=null&&i.jsx("div",{className:c("WAWebBotCommandSuggestionResult.scss").image,children:i.jsx(d("WAWebDetailImage.react").DetailImage,{id:g,size:32})}),i.jsx(d("WAWebEmojiText.react").EmojiText,{className:c("WAWebBotCommandSuggestionResult.scss").commandText,text:d("WAWebBotCommandSuggestions.react").QUERY_TRIGGER}),i.jsx(d("WAWebEmojiText.react").EmojiText,{className:c("WAWebBotCommandSuggestionResult.scss").commandHighlight,text:l}),i.jsx(d("WAWebEmojiText.react").EmojiText,{className:c("WAWebBotCommandSuggestionResult.scss").commandText,text:k}),i.jsx(d("WAWebEmojiText.react").EmojiText,{className:c("WAWebBotCommandSuggestionResult.scss").desc,testid:void 0,ellipsify:!0,text:b})]})}a.displayName=a.name+" [from "+f.id+"]";g.BotCommandResult=a}),98); __d("WAWebBotCommandSuggestions.react",["Lexical","WAWebBotCommandSuggestionResult.react","WAWebBotProfileGetters","WAWebLexicalUtils","WAWebListSuggestionsPanel.react","WAWebUseBotProfileValues","react","useWAWebLexicalTypeAhead","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useMemo,m=b.useState,n="/",o=52,p=25;function a(a){var b,c=a.editor,e=a.kind,f=a.metaBotId;a=d("useWAWebModelValues").useOptionalModelValues(a.businessProfile,["id","commands"]);var g=d("WAWebUseBotProfileValues").useOptionalBotProfileValues(f,[d("WAWebBotProfileGetters").getCommands]);g=g[0];var h=(b=a==null?void 0:a.commands)!=null?b:g,i=(b=f)!=null?b:a==null?void 0:a.id;g=d("useWAWebLexicalTypeAhead").useTypeAhead(c,n,{boundary:!0,maxQueryLength:p});var r=g.query,s=g.replaceQuery,t=g.omitQuery;f=m(function(){return q(c)});var u=f[0],v=f[1];k(function(){return c.registerUpdateListener(function(){v(q(c))})},[c]);b=function(a,b){return j.jsx(d("WAWebBotCommandSuggestionResult.react").BotCommandResult,{command:a.command,query:a.query,selected:b,imageWid:i},a.itemKey)};a=function(a){a=a.command;s(""+n+a.name+" ")};g=function(){t()};f=l(function(){return r==null||!h||u?null:h.filter(function(a){return a.name.toLowerCase().startsWith(r.toLowerCase())}).map(function(a,b){return{height:o,itemKey:a.name,contentKey:r,index:b,command:a,query:r,selectable:!0}})},[r,h,u]);return j.jsx(d("WAWebListSuggestionsPanel.react").ListSuggestionsPanel,{kind:e,editor:c,items:f,renderItem:b,onSelect:a,onDismiss:g})}a.displayName=a.name+" [from "+f.id+"]";function q(a){return a.getEditorState().read(function(){for(var a of d("WAWebLexicalUtils").textNodesIterator(d("Lexical").$getRoot())){var b;if((b=a.getStyle())==null?void 0:b.includes("bot-command-text"))return!0}return!1})}g.QUERY_TRIGGER=n;g.BotCommandSuggestions=a}),98); __d("WAWebBotFeatureNotAvailable.react",["fbt","WAWebBotPictogramIcon.react","WAWebBox.react","WAWebConfirmPopup.react","WAWebFlex.react","WAWebModal.react","WAWebModalManager","WAWebText.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebWdsPictoAiIcon.react","react","useWAWebFocusOnMount"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={headerText:{textAlign:"x2b8uid",$$css:!0}};function a(){var a=function(){d("WAWebModalManager").ModalManager.close()},b=c("useWAWebFocusOnMount")(),e=j.jsx(d("WAWebFlex.react").FlexItem,{children:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebWdsPictoAiIcon.react").WdsPictoAiIcon,{height:88}):j.jsx(d("WAWebBotPictogramIcon.react").BotPictogramIcon,{width:112,height:112})}),f=h._(/*BTDS*/"__JHASH__TTgfgYIgQRH__JHASH__");return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:a,type:d("WAWebModal.react").ModalTheme.Promote,ref:b,children:j.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:[d("WAWebUISpacing").uiMargin.vertAuto,d("WAWebUISpacing").uiPadding.bottom16],children:[e,j.jsx(d("WAWebBox.react").Box,{xstyle:[k.headerText,d("WAWebUISpacing").uiMargin.horiz8,d("WAWebUISpacing").uiMargin.top16,d("WAWebUISpacing").uiMargin.bottom8],children:j.jsx(d("WAWebText.react").WAWebTextLarge,{weight:"bold",children:f})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebWamEnumAdditionalCategoryType",[],(function(a,b,c,d,e,f){a=Object.freeze({META_AI_MODEL_BASE:1,META_AI_MODEL_PREMIUM:2});f.ADDITIONAL_CATEGORY_TYPE=a}),66); __d("WAWebWamEnumBotDiscoveryPathType",[],(function(a,b,c,d,e,f){a=Object.freeze({CURATED_DISPLAY:1,SEARCH:2,VIEW_ALL:3,DEEPLINK_USER_SHARED:4});f.BOT_DISCOVERY_PATH_TYPE=a}),66); __d("WAWebWamEnumBotEntryPointType",[],(function(a,b,c,d,e,f){a=Object.freeze({WA_CHAT:1,STATUS:2,NEW_CHAT:3,INVOKE:4,SHARED_AI:5,NOTIFICATION:6,BANNER:7,AI_CHATS_LIST_BUTTON:8,AI_CONTACT_ON_WA:9,DEEPLINK_USER_SHARED:10,DEEPLINK_QP:11,AI_SEARCH_CHATS_LIST:12,CHAT_INFO_PAGE:13,AI_VOICE:14,AI_CHAT_SHORTCUT:15,AI_IMAGINE_BOTTOM_SHEET:16,AI_HOME_PREVIEW:17,AI_SEARCH_CHATS_LIST_VOICE:18,AI_CHAT_THREAD_VOICE:19,AI_FAB_VOICE:20,CHAT_INFO_SETTINGS:21,CHAT_THREAD:22,AI_MEMORY_BOTTOM_SHEET:23,FORWARD:24,AI_MEMORY_SYSTEM_MESSAGE:25,AI_WIDGET:26,SHARE:27,AI_NEW_FAB_VOICE:28,AI_TAB_DISCOVERY:29,CHAT_LIST:30,AI_TAB:31,AI_HOME_IN_TAB:32,AI_NULL_STATE:33,AI_STUDIO_CREATION:34,AI_STUDIO_PROFILE_EDIT:35,BOT_SETTINGS:36,META_AI_LONG_PRESS_CONTEXT_MENU:37,FAB:38});f.BOT_ENTRY_POINT_TYPE=a}),66); __d("WAWebWamEnumDiscoveryOriginType",[],(function(a,b,c,d,e,f){a=Object.freeze({AI_TAB:1,AI_HOME:2,AI_HOME_IN_TAB:3});f.DISCOVERY_ORIGIN_TYPE=a}),66); __d("WAWebWamEnumInlineTosStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({SUCCESS:1,FAIL:2});f.INLINE_TOS_STATUS=a}),66); __d("WAWebWamEnumInputType",[],(function(a,b,c,d,e,f){a=Object.freeze({SUGGESTION:1,USER_INPUT:2,USER_INPUT_AND_SUGGESTION:3});f.INPUT_TYPE=a}),66); __d("WAWebBotJourneyWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumAdditionalCategoryType","WAWebWamEnumBotDiscoveryPathType","WAWebWamEnumBotEntryPointType","WAWebWamEnumChatFilterActionTypes","WAWebWamEnumDiscoveryOriginType","WAWebWamEnumInlineTosStatus","WAWebWamEnumInputType","WAWebWamEnumTsSurface"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({BotJourney:[4630,{actionType:[1,d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES],additionalCategory:[11,d("WAWebWamEnumAdditionalCategoryType").ADDITIONAL_CATEGORY_TYPE],aiCreationInputType:[29,d("WAWebWamEnumInputType").INPUT_TYPE],aiCreationPersonalityCategoryInsert:[26,a.TYPES.STRING],aiCreationPersonalityCategorySelect:[27,a.TYPES.STRING],aiDiscoveryTab:[4,a.TYPES.STRING],aiSessionId:[18,a.TYPES.STRING],aiVoiceOnSelectionDefault:[24,a.TYPES.BOOLEAN],aiVoiceSelectionEnum:[25,a.TYPES.STRING],appSessionId:[2,a.TYPES.STRING],botDiscoveryPath:[8,d("WAWebWamEnumBotDiscoveryPathType").BOT_DISCOVERY_PATH_TYPE],botEntryPoint:[7,d("WAWebWamEnumBotEntryPointType").BOT_ENTRY_POINT_TYPE],botPersonaId:[5,a.TYPES.STRING],callRandomId:[13,a.TYPES.STRING],conversationStarterCategory:[22,a.TYPES.STRING],conversationStarterIndex:[23,a.TYPES.INTEGER],conversationStarterPromptMode:[28,a.TYPES.STRING],deviceLanguage:[16,a.TYPES.STRING],discoveryOrigin:[19,d("WAWebWamEnumDiscoveryOriginType").DISCOVERY_ORIGIN_TYPE],inlineTosNoticeId:[20,a.TYPES.STRING],inlineTosStatus:[21,d("WAWebWamEnumInlineTosStatus").INLINE_TOS_STATUS],isMetaAiAssistant:[12,a.TYPES.BOOLEAN],isMetaAiCharacterBotChat:[9,a.TYPES.BOOLEAN],isUserCreatedAgent:[10,a.TYPES.BOOLEAN],metricCount:[17,a.TYPES.INTEGER],uiSurface:[6,d("WAWebWamEnumTsSurface").TS_SURFACE],xmaReelIndex:[14,a.TYPES.INTEGER],xmaReelMaxIndex:[15,a.TYPES.INTEGER]},[1,1,1],"regular"]},{BotJourney:[[[],["appSessionId","actionType","botEntryPoint"],[]]]});g.BotJourneyWamEvent=b}),98); __d("WAWebBotLogging",["$InternalEnum","WAWebBotJourneyWamEvent","WAWebGetSharedSessionId","WAWebWamEnumBotEntryPointType","WAWebWamEnumChatFilterActionTypes"],(function(a,b,c,d,e,f,g){var h=b("$InternalEnum").Mirrored(["Agent","Shortcut"]),i=b("$InternalEnum").Mirrored(["View","Accept","Dismiss"]);function j(a){switch(a){case h.Agent:return d("WAWebWamEnumBotEntryPointType").BOT_ENTRY_POINT_TYPE.AI_CONTACT_ON_WA;case h.Shortcut:return d("WAWebWamEnumBotEntryPointType").BOT_ENTRY_POINT_TYPE.AI_CHATS_LIST_BUTTON}}function k(a){switch(a){case i.View:return d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.AI_TOS_VIEW;case i.Accept:return d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.AI_TOS_ACCEPT_CLICK;case i.Dismiss:return d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.AI_TOS_DISMISS_CLICK}}function a(a){a=new(d("WAWebBotJourneyWamEvent").BotJourneyWamEvent)({appSessionId:d("WAWebGetSharedSessionId").getSharedSessionId(),actionType:d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.AI_CHAT_CLICK,botEntryPoint:j(a)});a.commit()}function c(a,b){b=new(d("WAWebBotJourneyWamEvent").BotJourneyWamEvent)({appSessionId:d("WAWebGetSharedSessionId").getSharedSessionId(),actionType:k(b),botEntryPoint:j(a)});b.commit()}g.BotEntryPointType=h;g.BotTosActionType=i;g.logAiChatClickBotJourneyEvent=a;g.logAiTosBotJourneyEvent=c}),98); __d("WAWebBotPluginCarouselChevronBtn.react",["WAWebChevronButton.react","WAWebL10N","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={btnContainer:{position:"x1n2onr6",height:"xvt47uu",width:"x187nhsf",borderTopStartRadius:"x1rcc7c0",borderTopEndRadius:"xbtbmw4",borderBottomEndRadius:"x1lie4ck",borderBottomStartRadius:"x16hxpj1",$$css:!0},btnContainerBackgroundPrev:{backgroundImage:"xe0pjke",$$css:!0},btnContainerBackgroundNext:{backgroundImage:"x1hxqlon",$$css:!0},btnContainerBackgroundPrevRTL:{backgroundImage:"x1hxqlon",$$css:!0},btnContainerBackgroundNextRTL:{backgroundImage:"xe0pjke",$$css:!0}};function a(a){var b=a.displayType,e=a.onClick,f=a.theme;a=a.type;b=b===d("WAWebChevronButton.react").ChevronButtonDisplayType.BotPluginCarousel;var g=a===d("WAWebChevronButton.react").ButtonType.Prev&&b,h=a===d("WAWebChevronButton.react").ButtonType.Next&&b;return j.jsx("div",babelHelpers["extends"]({},{0:{},2:{className:"x10l6tqk x13vifvy xvt47uu x187nhsf x11uqc5h"},1:{className:"x10l6tqk x13vifvy xds687c xvt47uu x187nhsf"},3:{className:"x11uqc5h x10l6tqk x13vifvy xds687c xvt47uu x187nhsf"}}[!!g<<1|!!h<<0],{children:j.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(b&&k.btnContainer,g&&l(),h&&m()),{children:j.jsx(d("WAWebChevronButton.react").ChevronButton,{type:a,onClick:e,theme:f})}))}))}a.displayName=a.name+" [from "+f.id+"]";function l(){return c("WAWebL10N").isRTL()?k.btnContainerBackgroundPrevRTL:k.btnContainerBackgroundPrev}function m(){return c("WAWebL10N").isRTL()?k.btnContainerBackgroundNextRTL:k.btnContainerBackgroundNext}g.ChevronButtonWithFadedBackground=a}),98); __d("WAWebBotPluginCarouselWrapper.react",["WANullthrows","WAWebBotPluginCarouselChevronBtn.react","WAWebChevronButton.react","WAWebClassnames","WAWebCmd","WAWebDisplayType","WAWebErrorBoundary.react","WAWebKeyboardHotKeys.react","WAWebMediaLinkPreviewContainer.react","WAWebMsgGetters","WAWebProtobufsE2E.pb","WAWebRound.react","WAWebVelocityAnimate","WAWebVelocityTransitionGroup","WAWebWrapper.scss","react","useWAWebListener","useWAWebThrottledCallback"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useImperativeHandle,m=b.useRef,n=b.useState,o=200,p=7,q=200,r=100;function a(a){var b,e,f=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var g=m(null),h=a.msgs;a=a.botPluginCarouselId;b=(b=h[0])==null?void 0:(b=b.id)==null?void 0:(b=b.remote)==null?void 0:b.isUser();var i=m(null),s=d("WAWebMsgGetters").getBotPluginType(h[0])===d("WAWebProtobufsE2E.pb").BotPluginMetadata$PluginType.REELS,t=n(!0),u=t[0],v=t[1];t=n(null);var w=t[0],x=t[1];t=n(!1);var y=t[0],z=t[1];t=(t=d("WAWebMsgGetters").getBotResponseTargetId(h[0]))!=null?t:"NULL_MSG_BOT_PLUGIN_TARGET_ID";d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"bot_toggle_plugin_search_details_for_target_id_"+t,function(a){a===void 0&&(a=!0),v(a),self.setTimeout(function(){d("WAWebCmd").Cmd.scrollChatHeight(r)})});var A=function(){return g.current},B=function(){return c("WANullthrows")(i.current)};l(f,function(){return{getElement:A,getContainerElement:B}});k(function(){w==null&&h.length>1&&x(!0)},[h,w]);var C=function(a){a=o*.5*h.length*(a?1:-1);var b=g==null?void 0:g.current;b!=null&&(void c("WAWebVelocityAnimate")(b,"stop"),void c("WAWebVelocityAnimate")(b,"scroll",{SCROLL_ANIMATION:q,container:b,offset:a,axis:"x",easing:[.1,.82,.25,1]}))};t=c("useWAWebThrottledCallback")(function(a){a=g==null?void 0:g.current;if(a==null)return;a.scrollLeft<p?z(!1):z(!0);a=a.scrollLeft+a.clientWidth>=a.scrollWidth-p;a?x(!1):x(!0)},100);f=h.toSorted(function(a,b){a=a.botPluginReferenceIndex;b=b.botPluginReferenceIndex;return a!=null&&b!=null?a>b?1:-1:0}).map(function(a){return j.jsx("div",babelHelpers["extends"]({},{0:{},1:{className:"x1e03a83"}}[!!s<<0],{children:j.jsx(d("WAWebMediaLinkPreviewContainer.react").LinkPreviewContainer,{msg:a.unsafe(),displayType:s?d("WAWebDisplayType").DISPLAY_TYPE.BOT_REELS_PLUGIN:d("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION,theme:"bot_plugin_link"})}),a.id.id)});y=y===!0?j.jsx(d("WAWebBotPluginCarouselChevronBtn.react").ChevronButtonWithFadedBackground,{type:d("WAWebChevronButton.react").ButtonType.Prev,onClick:function(){C(!1)},theme:d("WAWebRound.react").RoundTheme.XSmall,displayType:s?d("WAWebChevronButton.react").ChevronButtonDisplayType.BotReelsPluginCarousel:d("WAWebChevronButton.react").ChevronButtonDisplayType.BotPluginCarousel}):null;var D=w===!0?j.jsx(d("WAWebBotPluginCarouselChevronBtn.react").ChevronButtonWithFadedBackground,{type:d("WAWebChevronButton.react").ButtonType.Next,onClick:function(){C(!0)},theme:d("WAWebRound.react").RoundTheme.XSmall,displayType:s?d("WAWebChevronButton.react").ChevronButtonDisplayType.BotReelsPluginCarousel:d("WAWebChevronButton.react").ChevronButtonDisplayType.BotPluginCarousel}):null;return j.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"bot-plugin-carousel",children:j.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((e={},e[c("WAWebWrapper.scss").botPluginCarouselControlContainer]=!0,e[c("WAWebWrapper.scss").botPluginCarouselControlContainerClosed]=!u,e[c("WAWebWrapper.scss").wrapperAdjustedOneOnOneChat]=b,e[c("WAWebWrapper.scss").wrapperProfilePictureDisplayed]=!b,e)),ref:i,tabIndex:-1,children:j.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"bot-plugin-carousel",children:u?j.jsxs("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((b={},b[c("WAWebWrapper.scss").botPluginScrollControl]=!0,b[c("WAWebWrapper.scss").messageChat]=!0,b[c("WAWebWrapper.scss").reelsPluginOneItem]=!!s&&h.length===1,b[c("WAWebWrapper.scss").reelsPluginTwoItem]=!!s&&h.length===2,b[c("WAWebWrapper.scss").reelsPluginThreeItem]=!!s&&h.length===3,b)),children:[y,j.jsx("div",babelHelpers["extends"]({},{0:{className:"x1rife3k xvzcjjp x1ewi3t5 x1hz6igj x10g8x2y x1x8elzp x1xmf6yo xod5an3"},1:{className:"x1rife3k xvzcjjp x1ewi3t5 x1hz6igj x10g8x2y x1x8elzp x1xmf6yo xod5an3 x1rohswg"}}[!!(h.length===1)<<0],{onScroll:t,ref:g,children:j.jsx("div",babelHelpers["extends"]({},{0:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x75ztot"},8:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x2vq7qx xtfe9a7 xeq5yr9"},4:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x14atkfc x15x72sd"},12:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 x14atkfc x15x72sd"},2:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xwv353n"},10:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x2vq7qx xtfe9a7 xwv353n"},6:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x15x72sd xwv353n"},14:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 x15x72sd xwv353n"},1:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x75ztot xgqtt45"},9:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 xeq5yr9 xgqtt45"},5:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf x14atkfc xgqtt45"},13:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 x14atkfc xgqtt45"},3:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xwv353n xgqtt45"},11:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 xwv353n xgqtt45"},7:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xwv353n xgqtt45"},15:{className:"x123j3cw x1mpkggp xs9asl8 x1t2a60a xrvj5dj x1ldsiy3 x9xpc1z x3xbxsf xtfe9a7 xwv353n xgqtt45"}}[!!s<<3|!!(h.length===1)<<2|!!(h.length===2)<<1|!!(h.length===4)<<0],{"data-id":a,children:f}))})),D]}):null})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebBotSuggestions.react",["WAWebBotProfileGetters","WAWebUISpacing","WAWebUseBotProfileValues","WAWebUseBusinessProfile.react","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={container:{display:"x78zum5",position:"x10l6tqk",bottom:"xmgkm54",maxHeight:"x1nu74zi",overflowX:"x14aock7",whiteSpace:"xuxw1ft",width:"x19sv2k2",$$css:!0},pill:{fontSize:"x1f6kntn",lineHeight:"xdod15v",borderTopStartRadius:"xhw592a",borderTopEndRadius:"xwihvcr",borderBottomEndRadius:"x7wuybg",borderBottomStartRadius:"xb9tvrk",fontWeight:"xk50ysn",backgroundColor:"x1w7vc3g",cursor:"x1ypdohk",$$css:!0},emoji:{display:"x1rg5ohu",$$css:!0}};function a(a){var b=a.id,e=a.onPromptSelect;a=d("WAWebUseBusinessProfile.react").useBusinessProfile(b,["prompts"]);b=d("WAWebUseBotProfileValues").useOptionalBotProfileValues(b,[d("WAWebBotProfileGetters").getPrompts]);b=b[0];b=(b=b)!=null?b:a==null?void 0:a.prompts;return b==null||b.length===0?null:j.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(k.container,d("WAWebUISpacing").uiPadding.vert8,d("WAWebUISpacing").uiPadding.horiz20),{children:b.map(function(a){return j.jsx(l,{prompt:a,onClick:function(){e(a.text)}},a.text)})}))}a.displayName=a.name+" [from "+f.id+"]";function l(a){var b=a.onClick;a=a.prompt;return j.jsxs("div",babelHelpers["extends"]({onClick:b},(i||(i=c("stylex"))).props(k.pill,d("WAWebUISpacing").uiPadding.vert8,d("WAWebUISpacing").uiPadding.start12,d("WAWebUISpacing").uiPadding.end16,d("WAWebUISpacing").uiMargin.horiz4),{children:[j.jsx("span",babelHelpers["extends"]({},i.props(k.emoji,d("WAWebUISpacing").uiMargin.end4),{children:a.emoji})),j.jsx("span",{children:a.text})]}))}l.displayName=l.name+" [from "+f.id+"]";g.BotSuggestions=a}),98); __d("WAWebBugnubNavBarItem.react",["WAWebBugnubLoadable","WAWebBugnubRefreshedIcon.react","WAWebCurrentUser","WAWebNavBarItem.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){a=a.isNavBarExpanded;var b=function(){c("WAWebBugnubLoadable")()},e="Report a bug (internal)";e=i.jsx(d("WAWebNavBarItem.react").NavBarItem,{testid:void 0,icon:i.jsx(d("WAWebBugnubRefreshedIcon.react").BugnubRefreshedIcon,{}),text:e,title:e,onClick:b,isActive:!1,isExpanded:a});return d("WAWebCurrentUser").isEmployee()?e:null}a.displayName=a.name+" [from "+f.id+"]";g.BugnubNavBarItem=a}),98); __d("WAWebBusinessProfileCopyPnDataToLidRows",["WALogger","WAWebBizGatingUtils","WAWebLidMigrationUtils","WAWebModelStorageUtils","WAWebUserPrefsKeys","WAWebUserPrefsStore","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["copyBusinessProfilePnDataToLidRows: error ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["copyBusinessProfilePnDataToLidRows: end migration"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["copyBusinessProfilePnDataToLidRows: start migration"]);j=function(){return a};return a}function a(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(!d("WAWebBizGatingUtils").isLidMigrationForBusinessProfileEnabled()||c("WAWebUserPrefsStore").get(d("WAWebUserPrefsKeys").UserPrefs.BusinessProfileLidTableMigrationComplete))return;var e=!1;yield d("WAWebModelStorageUtils").getStorage().lock(["business-profile"],function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){b=b[0];try{d("WALogger").LOG(j());var c=a.map(function(a){if(a==null)return null;var b=d("WAWebWidFactory").createUserWid(a==null?void 0:a.id);if(b.isLid())return null;var c=d("WAWebLidMigrationUtils").toPn(b);b=d("WAWebLidMigrationUtils").toLid(b);return b==null||(c==null?void 0:c.user)==null?null:{id:b.toString(),commandsDescription:(c=a.commandsDescription)!=null?c:a.commandsDescription,commands:(b=a.commands)!=null?b:a.commands,prompts:(c=a.prompts)!=null?c:a.prompts,automatedType:(b=a.automatedType)!=null?b:a.automatedType,welcomeMsgProtocolMode:(c=a.welcomeMsgProtocolMode)!=null?c:a.welcomeMsgProtocolMode}}).filter(Boolean);yield b.bulkCreateOrMerge(c);d("WALogger").LOG(i());e=!0}catch(a){d("WALogger").ERROR(h(),a).sendLogs("business-profile-lid-migration"),e=!1}});return function(a){return c.apply(this,arguments)}}());c("WAWebUserPrefsStore").set(d("WAWebUserPrefsKeys").UserPrefs.BusinessProfileLidTableMigrationComplete,e)});return k.apply(this,arguments)}g.copyBusinessProfilePnDataToLidRows=a}),98); __d("WAWebQuickPromotionAction",["WAWebQuickPromotionCollection"],(function(a,b,c,d,e,f,g){function a(a){d("WAWebQuickPromotionCollection").QuickPromotionCollection.refreshPromotions(a)}g.loadedQuickPromotions=a}),98); __d("WAWebSmbDataSharingServerUpdateAction",["WAWebCTWADataSharingModel"],(function(a,b,c,d,e,f,g){function a(a){d("WAWebCTWADataSharingModel").CTWADataSharingModel.setValue(a)}g.smbDataSharingSettingUpdateAction=a}),98); __d("WAWebCTWABridgeApi",["WAWebAdEntryPointsConfigurationAction","WAWebNewCTWASuggestionAction","WAWebQuickPromotionAction","WAWebSmbDataSharingServerUpdateAction"],(function(a,b,c,d,e,f,g){a={newCTWASuggestion:function(a){a=a.suggestion;return d("WAWebNewCTWASuggestionAction").newCTWASuggestion(a)},revokeCTWASuggestion:function(a){a=a.suggestion;return d("WAWebNewCTWASuggestionAction").revokeCTWASuggestion(a)},loadedCTWASuggestions:function(a){a=a.suggestions;return d("WAWebNewCTWASuggestionAction").loadedCTWASuggestions(a)},loadedQuickPromotions:function(a){a=a.promotions;return d("WAWebQuickPromotionAction").loadedQuickPromotions(a)},smbDataSharingSettingUpdate:function(a){a=a.smbDataSharingSettingValue;return d("WAWebSmbDataSharingServerUpdateAction").smbDataSharingSettingUpdateAction(a)},loadedAdEntryPointsConfiguration:d("WAWebAdEntryPointsConfigurationAction").loadedAdEntryPointsConfiguration};g.CTWABridgeApi=a}),98); __d("WAWebCTWASuggestionInitFromStorage",["Promise","WALogger","WATimeUtils","WAWebBackendApi","WAWebBizGatingUtils","WAWebSchemaCTWASuggestion"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["restoreCTWASuggestions: could not remove expired suggestions"]);i=function(){return a};return a}function a(){if(!d("WAWebBizGatingUtils").adsActionBannersEnabledOnStartup())return(h||(h=b("Promise"))).resolve();var a=d("WAWebSchemaCTWASuggestion").getCTWASuggestionTable();return a.all().then(function(b){var c=[],e=[];b.forEach(function(a){d("WATimeUtils").isInFuture(a.expiresAt)?c.push(a):e.push(a.id)});d("WAWebBackendApi").frontendFireAndForget("loadedCTWASuggestions",{suggestions:c});if(e.length>0)return a.bulkRemove(e)["catch"](function(){d("WALogger").ERROR(i()).devConsole(e)})})}g.restoreCTWASuggestions=a}),98); __d("WAWebUserPrefsEvents",["WATimeUtils","WAWebUserPrefsKeys","WAWebUserPrefsStore"],(function(a,b,c,d,e,f,g){var h=null;function i(){if(h!=null)return h;var a=parseInt(c("WAWebUserPrefsStore").getUser(d("WAWebUserPrefsKeys").UserPrefs.CagEventsAwarenessBannerFirstSeenTimestamp),10);Number.isNaN(a)||(h=d("WATimeUtils").castToUnixTime(a));return h}function a(){c("WAWebUserPrefsStore").setUser(d("WAWebUserPrefsKeys").UserPrefs.CagEventsAwarenessBannerFirstSeenTimestamp,d("WATimeUtils").unixTime())}function b(){var a=i();return a==null?d("WATimeUtils").unixTime():d("WATimeUtils").futureUnixTime(d("WATimeUtils").WEEK_SECONDS,a)}g.getCagEventsAwarenessBannerFirstSeenTimestamp=i;g.setCagEventsAwarenessBannerFirstSeenTimestamp=a;g.getCagEventsAwarenessBannerAutoDismissalExpiration=b}),98); __d("WAWebCagEventsAwarenessBanner.react",["fbt","WAWebAnnouncementSpeakerIcon.react","WAWebConversationBanner.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebFlexItem.react","WAWebText.react","WAWebUISpacing","WAWebUimUie.react","WAWebUserPrefsEvents","react","useWAWebTimeout"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={banner:{backgroundColor:"x150wa6m",$$css:!0},announcementSpeaker:{color:"x1o6zcso",$$css:!0}};function a(a){var b=a.onClose;a=a.ref;d("WAWebUserPrefsEvents").getCagEventsAwarenessBannerFirstSeenTimestamp()||d("WAWebUserPrefsEvents").setCagEventsAwarenessBannerFirstSeenTimestamp();d("useWAWebTimeout").useAlarm(b,d("WAWebUserPrefsEvents").getCagEventsAwarenessBannerAutoDismissalExpiration(),{immediate:!0,isGlobal:!0});return j.jsx(d("WAWebUimUie.react").UIE,{displayName:"CagEventsAwarenessBanner",escapable:!0,children:j.jsx(c("WAWebConversationBanner.react"),{ref:a,xstyle:k.banner,onClose:b,children:j.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[j.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiPadding.end18,children:j.jsx(d("WAWebAnnouncementSpeakerIcon.react").AnnouncementSpeakerIcon,{iconXstyle:k.announcementSpeaker,width:40,height:40})}),j.jsx(c("WAWebFlexItem.react"),{children:j.jsxs(d("WAWebText.react").WAWebTextMuted,{as:"span",children:[h._(/*BTDS*/"__JHASH__gzV6bKZWdYb__JHASH__")," ",j.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getEventsLearnMoreFaqUrl(),children:c("WAWebFbtCommon")("Learn more")})]})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g.CagEventsAwarenessBanner=a}),226); __d("WAWebCatalogChatlistHeaderDropdownItem.react",["fbt","WAWebBizGatingUtils","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebCatalogManagementFlowLoadable","WAWebChatlistHeaderDropdownLogEvents","WAWebConfirmPopup.react","WAWebDropdownItem.react","WAWebGridRefreshedIcon.react","WAWebMobilePlatforms","WAWebModalManager","WAWebProductCatalogMetaLinkingGatingUtils","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebShopsLog","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","WAWebWamEnumCatalogEntryPoint","WAWebWamEnumShopsManagementAction","WAWebWamEnumWebcMenuItemLabel","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=d("WAWebUserPrefsMeUser").getMeUser(),b=d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(a);if(!(d("WAWebMobilePlatforms").isSMB()&&!d("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(b)&&!d("WAWebProductCatalogMetaLinkingGatingUtils").shouldDisableCatalogDueToMetaLinkingForSelf()))return null;a=d("WAWebProductCatalogMetaLinkingGatingUtils").shouldShowMetaLinkedDisabledCatalogTooltipForSelf();var c=d("WAWebBusinessProfileUtils").hasShop(b),e=function(){d("WAWebBusinessProfileUtils").goToCommerceManager(b),d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_COMMERCE_MANAGER_IN_CATALOG_SETTING)},f=function(a){a==null?void 0:a.preventDefault();if(c){a=d("WAWebBizGatingUtils").bannedShopsEnabled()&&d("WAWebBusinessProfileUtils").isShopBanned(b);d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__fFaOVdV139l__JHASH__"),onOK:e,okText:h._(/*BTDS*/"__JHASH__5riWR6qyguF__JHASH__"),onCancel:function(){d("WAWebModalManager").ModalManager.close(),d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CANCEL_IN_CATALOG_SETTING)},children:a?h._(/*BTDS*/"__JHASH__i4ugKplCstV__JHASH__"):h._(/*BTDS*/"__JHASH__mmVY0Ezbj1M__JHASH__")}));d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CATALOG_SETTING)}else d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_CATALOG_COLLECTIONS_VIEW,{annotations:{string:{EntryPoint:"ToolsMenu"}}}),d("WAWebCatalogManagementFlowLoadable").openCatalogManagementFlow({entryPoint:d("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_SETTINGS,isInitialStep:!0}),d("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.CATALOG)},g=c?h._(/*BTDS*/"__JHASH__i8PGpl-HWvL__JHASH__"):h._(/*BTDS*/"__JHASH__Uk6UVgyKYUF__JHASH__"),i="mi-catalog menu-item";i=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebGridRefreshedIcon.react").GridRefreshedIcon,{}):null,tooltip:a?d("WAWebProductCatalogMetaLinkingGatingUtils").getDisabledMetaLinkedCatalogTooltipText():null,testid:void 0,disabled:a,action:f,children:g});return i}a.displayName=a.name+" [from "+f.id+"]";g.CatalogChatlistHeaderDropdownItem=a}),226); __d("WAWebChangePhoneIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="change-phone";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=112;m=112;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 112 112",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M112 56C112 86.9279 86.9279 112 56 112C25.0721 112 0 86.9279 0 56C0 25.0721 25.0721 0 56 0C86.9279 0 112 25.0721 112 56ZM33 21C30.2386 21 28 23.2386 28 26V76C28 78.7614 30.2386 81 33 81H44C44.5523 81 45 80.5523 45 80V74.5C45 73.9477 44.5523 73.5 44 73.5H34.25C32.8693 73.5 31.75 72.3807 31.75 71V31C31.75 29.6193 32.8693 28.5 34.25 28.5H62C62.5523 28.5 63 28.0523 63 27.5V26C63 23.2386 60.7614 21 58 21H33Z",fill:"#06CF9C",fillOpacity:.15}),j.jsx("path",{d:"M28 26C28 23.2386 30.2386 21 33 21H58C60.7614 21 63 23.2386 63 26V27.5C63 28.0523 62.5523 28.5 62 28.5H34.25C32.8693 28.5 31.75 29.6193 31.75 31V71C31.75 72.3807 32.8693 73.5 34.25 73.5H44C44.5523 73.5 45 73.9477 45 74.5V80C45 80.5523 44.5523 81 44 81H33C30.2386 81 28 78.7614 28 76V26Z",fill:"#06CF9C",fillOpacity:.5}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49 37C49 34.2386 51.2386 32 54 32H79C81.7614 32 84 34.2386 84 37V87C84 89.7614 81.7614 92 79 92H54C51.2386 92 49 89.7614 49 87V68H52.75V82C52.75 83.3807 53.8693 84.5 55.25 84.5H77.75C79.1307 84.5 80.25 83.3807 80.25 82V42C80.25 40.6193 79.1307 39.5 77.75 39.5H55.25C53.8693 39.5 52.75 40.6193 52.75 42V56H49V37ZM61.5 87.625C61.5 87.2798 61.7798 87 62.125 87H70.875C71.2202 87 71.5 87.2798 71.5 87.625C71.5 87.9702 71.2202 88.25 70.875 88.25H62.125C61.7798 88.25 61.5 87.9702 61.5 87.625ZM64.9956 63.1401H42.15C41.5175 63.1401 41 62.6091 41 61.96C41 61.3109 41.5175 60.7799 42.15 60.7799H64.9956L59.3951 55.0091C58.9466 54.5489 58.9466 53.8054 59.3951 53.3452C59.8436 52.8849 60.5681 52.8849 61.0166 53.3452L68.5836 61.1339C69.0321 61.5942 69.0321 62.3376 68.5836 62.7979L61.0051 70.5748C60.5566 71.0351 59.8321 71.0351 59.3836 70.5748C58.9351 70.1146 58.9351 69.3593 59.3836 68.8991L64.9956 63.1401Z",fill:"#06CF9C"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ChangePhoneIcon=a}),98); __d("WAWebUpdateOfflinePeerReceipts",["WALogger","WAWebChatCollection","WAWebCmd","WAWebGroupUnreadMessageType","WAWebMsgCollection","WAWebNewsletterCollection","WAWebUnreadMentionModel"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["updateOfflinePeerReceipt, chatUpdates: ",", ackUpdats: "," "]);h=function(){return a};return a}function a(a,b){if(!d("WAWebCmd").Cmd.isMainStreamReadyMd)return;d("WALogger").DEV(h(),a.length,b).devConsole(a,b);a.forEach(function(a){var b,e=a.chatId,f=a.unreadCount;a=a.unreadMentionsOfMe;b=(b=d("WAWebChatCollection").ChatCollection.get(e))!=null?b:c("WAWebNewsletterCollection").get(e);if(b!=null){e=a.map(function(a){return new(c("WAWebUnreadMentionModel"))({id:a.id,timestamp:a.timestamp})});(a=b.groupMetadata)==null?void 0:a.unreadMentionMetadata.reset();(a=b.groupMetadata)==null?void 0:a.unreadMentionMetadata.addUnreadMentions(e,d("WAWebGroupUnreadMessageType").UnreadMessageType.PERSISTANCE_LOAD);b.set({unreadCount:f})}});b.forEach(function(a){var b=a.msgKey;a=a.ack;b=d("WAWebMsgCollection").MsgCollection.get(b);b&&b.updateAck(a)})}g.updateOfflinePeerReceipt=a}),98); __d("WAWebChatBridgeApi",["Promise","WAWebChatCollection","WAWebCommentAction","WAWebMsgKey","WAWebUpdateLastAddOnPreviewChatAction","WAWebUpdateOfflinePeerReceipts","WAWebUpdateUnreadChatAction"],(function(a,b,c,d,e,f,g){var h;a={getChat:function(a){a=a.chatId;return d("WAWebChatCollection").ChatCollection.get(a)},hasChat:function(a){a=a.chatId;return Boolean(d("WAWebChatCollection").ChatCollection.get(a))},isMessageSentToBusiness:function(a){a=a.msgKey;a=d("WAWebChatCollection").ChatCollection.get(c("WAWebMsgKey").from(a).remote);return(a==null?void 0:a.contact.isBusiness)===!0},chatCollectionAdd:function(a){var b=a.things;a=a.options;return d("WAWebChatCollection").ChatCollection.add(b,a)},chatCollectionGadd:function(a){a=a.chat;return d("WAWebChatCollection").ChatCollection.gadd(a)},chatCollectionTrigger:function(a){var b=a.name;a=a.args;d("WAWebChatCollection").ChatCollection.trigger(b,a)},updateOfflinePeerReceipt:function(a){var b=a.chatUpdates;a=a.ackUpdates;d("WAWebUpdateOfflinePeerReceipts").updateOfflinePeerReceipt(b,a)},chatCollectionUpdate:function(a){a=a.updates;a.forEach(function(a){var b=a.id;a=babelHelpers.objectWithoutPropertiesLoose(a,["id"]);b=d("WAWebChatCollection").ChatCollection.get(b);b&&b.set(a)})},updateChatReadStatus:function(a){var b=a.id;a=a.read;b=d("WAWebChatCollection").ChatCollection.get(b);b&&(a?d("WAWebUpdateUnreadChatAction").markSeen(b):d("WAWebUpdateUnreadChatAction").markUnseen(b))},updateChatUnreadMsgCountAndClearMentions:function(a){a=a.remote;a=d("WAWebChatCollection").ChatCollection.get(a);a&&(d("WAWebUpdateUnreadChatAction").updateUnreadCountMD(a,0,!1),d("WAWebUpdateUnreadChatAction").clearUnreadMentions(a))},updateChatLastAddOnPreview:function(a){a=a.chatMap;d("WAWebUpdateLastAddOnPreviewChatAction").updateModelsForLastAddOnPreview(a)},updateChatToLatest:function(a){a=a.chatIdToLatestUpdates;d("WAWebCommentAction").updateChatToLatest(a)},updateChatSortListener:function(a){a=a.enable;a?d("WAWebChatCollection").ChatCollection.enableSortListener(!0):d("WAWebChatCollection").ChatCollection.disableSortListener()},resetChatPreviewT:function(a){a=a.chatIds;a.forEach(function(a){a=d("WAWebChatCollection").ChatCollection.get(a);a&&(a.previewT=void 0)})},updateChatPreviewT:function(a){var b=a.threadMeta;d("WAWebChatCollection").ChatCollection.forEach(function(a){var c=b==null?void 0:b[a.id.toString({legacy:!0})];c!=null&&(a.previewT=c)})},updateBotInvokeSystemMsgCreated:function(a){a=a.chatId;a=d("WAWebChatCollection").ChatCollection.get(a);if(a!=null)return a.hasCreatedBotInvokeSystemMsg===!0?(h||(h=b("Promise"))).resolve():a.updateBotInvokeSystemMsgCreated()},updateChatLimitSharing:function(a){var b=a.id;a=a.limitSharing;b=d("WAWebChatCollection").ChatCollection.get(b);b&&(b.limitSharing=a)}};g.ChatBridgeApi=a}),98); __d("WAWebChatFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="chat-filled-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ChatFilledRefreshedIcon=a}),98); __d("WAWebLabelFlowLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizLabelFlow.react").__setRef("WAWebLabelFlowLoadable").load());return a}),"LabelFlow");d=c("react-loadable")({loader:a,loading:function(a){return j.jsx(c("WAWebLoadingDrawer.react"),{title:h._(/*BTDS*/"__JHASH__QYeBWxOLrog__JHASH__"),error:Boolean(a.error)})}});g.requireBundle=a;g.LabelFlowLoadable=d}),226); __d("WAWebListsChatlistHeaderDropdownItem.react",["fbt","WAWebChatlistHeaderDropdownLogEvents","WAWebDrawerManager","WAWebDropdownItem.react","WAWebLabelFlowLoadable","WAWebLabelOutlineIcon.react","WAWebListPeopleIcon.react","WAWebListsGatingUtils","WAWebMobilePlatforms","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcMenuItemLabel","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){if(!d("WAWebMobilePlatforms").isSMB())return null;var a=d("WAWebListsGatingUtils").isListsEnabled(),b=function(a){a==null?void 0:a.stopPropagation(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebLabelFlowLoadable").LabelFlowLoadable,{isInitialStep:!0})),d("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.LABELS)},c=a?h._(/*BTDS*/"__JHASH__8Y8j6BjvmKy__JHASH__"):h._(/*BTDS*/"__JHASH__QYeBWxOLrog__JHASH__"),e=a?"mi-lists menu-item":"mi-labels menu-item";e=a?j.jsx(d("WAWebListPeopleIcon.react").ListPeopleIcon,{}):j.jsx(d("WAWebLabelOutlineIcon.react").LabelOutlineIcon,{});a=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?e:null,action:b,children:c});return a}a.displayName=a.name+" [from "+f.id+"]";g.ListsChatlistHeaderDropdownItem=a}),226); __d("WAWebLogoutChatlistHeaderDropdownItem.react",["fbt","WAWebChatlistHeaderDropdownLogEvents","WAWebConfirmLogoutModal.react","WAWebDropdownItem.react","WAWebExitRefreshedIcon.react","WAWebModalManager","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcMenuItemLabel","WAWebWamUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=function(a){a==null?void 0:a.stopPropagation(),d("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.LOG_OUT),d("WAWebWamUtils").forceFlushAllWamAndQplBuffers(),d("WAWebModalManager").ModalManager.open(j.jsx(c("WAWebConfirmLogoutModal.react"),{checkUnsent:!0}))},b=h._(/*BTDS*/"__JHASH__3n1bF_cZdZK__JHASH__"),e="mi-logout menu-item";e=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebExitRefreshedIcon.react").ExitRefreshedIcon,{}):null,action:a,theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:b});return e}a.displayName=a.name+" [from "+f.id+"]";g.LogoutChatlistHeaderDropdownItem=a}),226); __d("WAWebManageAdsDropdownItem.react",["fbt","WAWebAdCreationLogger","WAWebAdsStackRefreshedIcon.react","WAWebChatlistUtils","WAWebDropdownItem.react","WAWebUIRefreshGatingUtils","WAWebWamEnumManageAdsEntryPoint","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useEffect;function a(a){var b=a.activeAccountInfo;l(function(){d("WAWebAdCreationLogger").logManageAdsEntryPointImpression(d("WAWebWamEnumManageAdsEntryPoint").MANAGE_ADS_ENTRY_POINT.WEB_OVERFLOW_MENU)},[b]);a=function(a){a==null?void 0:a.preventDefault(),d("WAWebChatlistUtils").handleManageAds(b,"whatsapp_smb_web_manage_ads_home_menu_item",d("WAWebWamEnumManageAdsEntryPoint").MANAGE_ADS_ENTRY_POINT.WEB_OVERFLOW_MENU)};var c=h._(/*BTDS*/"__JHASH__wHgJuCH_s1S__JHASH__"),e="manage-ads-menu-item";return k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?k.jsx(d("WAWebAdsStackRefreshedIcon.react").AdsStackRefreshedIcon,{directional:!0}):null,action:a,children:c})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebMarkAllChatsAsReadChatlistHeaderDropdownItem.react",["fbt","WAWebChatCollection","WAWebChatMessageSearch","WAWebChatRefreshedIcon.react","WAWebChatSearchFilters","WAWebConfirmPopup.react","WAWebDropdownItem.react","WAWebFrontendChatGetters","WAWebModalManager","WAWebUIRefreshGatingUtils","WAWebUpdateUnreadChatAction","gkx","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=function(){var a=d("WAWebChatCollection").ChatCollection.filter(function(a){if(!d("WAWebFrontendChatGetters").getShouldAppearInList(a))return!1;var b=d("WAWebChatMessageSearch").matchFilter(a,{kind:d("WAWebChatSearchFilters").SearchFilters.UNREAD});a=a.archive;return b&&!a});a.forEach(function(a){var b=!1;d("WAWebUpdateUnreadChatAction").markUnread(a,b,!1)})},b=function(b){b==null?void 0:b.stopPropagation(),d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__fuuxDeu3oIw__JHASH__"),onOK:function(){d("WAWebModalManager").ModalManager.close(),a()},onCancel:function(){d("WAWebModalManager").ModalManager.close()}}))},e=h._(/*BTDS*/"__JHASH__9aBOiUDKyZe__JHASH__"),f="mi-mark-all-as-read";f=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{}):null,testid:void 0,action:b,children:e});return c("gkx")("26258")?null:f}a.displayName=a.name+" [from "+f.id+"]";g.MarkAllChatsAsReadChatlistHeaderDropdownItem=a}),226); __d("WAWebNewGroupChatlistHeaderDropdownItem.react",["fbt","WAWebChatlistHeaderDropdownLogEvents","WAWebDrawerManager","WAWebDrawerViewType","WAWebDropdownItem.react","WAWebModal.react","WAWebModalManager","WAWebNewGroupFlowLoadable","WAWebNewGroupRefreshedIcon.react","WAWebReachoutTimelockRestrictedModalLoadable","WAWebReachoutTimelockUtils","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcMenuItemLabel","asyncToGeneratorRuntime","cr:1925","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a;a=(a=b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())!=null?a:!1;var e=a||d("WAWebUIRefreshGatingUtils").newChatCreationModalEnabled();a=function(a){if(d("WAWebReachoutTimelockUtils").isUserReachoutTimelocked()){d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebReachoutTimelockRestrictedModalLoadable").ReachoutTimelockRestrictedModalLoadable,{}));return}a==null?void 0:a.stopPropagation();e?d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Tower,children:j.jsx(d("WAWebNewGroupFlowLoadable").NewGroupFlowLoadable,{onCreateGroup:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield a,d("WAWebModalManager").ModalManager.close()});return function(b){return a.apply(this,arguments)}}(),onEnd:function(){d("WAWebModalManager").ModalManager.close()},viewType:c("WAWebDrawerViewType").MODAL})})):d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebNewGroupFlowLoadable").NewGroupFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},onCreateGroup:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield a,d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()});return function(b){return a.apply(this,arguments)}}(),isSubFlow:!1}));d("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.NEW_GROUP)};var f=h._(/*BTDS*/"__JHASH__6EroHqWSWmZ__JHASH__"),g="mi-new-group menu-item";g=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebNewGroupRefreshedIcon.react").NewGroupRefreshedIcon,{}):null,action:a,children:f});return g}a.displayName=a.name+" [from "+f.id+"]";g.NewGroupChatlistHeaderDropdownItem=a}),226); __d("WAWebOrderManagementFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizOrderManagementFlow.react").__setRef("WAWebOrderManagementFlowLoadable").load());return a}),"OrderManagementFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});e=d;g["default"]=e}),98); __d("WAWebReceiptRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="receipt-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ReceiptRefreshedIcon=a}),98); __d("WAWebOrdersChatlistHeaderDropdownItem.react",["fbt","WAWebBizEntryPoint","WAWebBizGatingUtils","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebDrawerManager","WAWebDropdownItem.react","WAWebMobilePlatforms","WAWebOrderDetailsActionCategory","WAWebOrderDetailsActionsSmbWamEvent","WAWebOrderManagementFlowLoadable","WAWebReceiptRefreshedIcon.react","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","WAWebWamEnumOrderDetailsCreationAction","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){if(!(d("WAWebMobilePlatforms").isSMB()&&d("WAWebBizGatingUtils").orderManagementEnabled()))return null;var a=function(a){a==null?void 0:a.stopPropagation();a=d("WAWebUserPrefsMeUser").getMeUser();new(d("WAWebOrderDetailsActionsSmbWamEvent").OrderDetailsActionsSmbWamEvent)({orderDetailsCreationAction:d("WAWebWamEnumOrderDetailsCreationAction").ORDER_DETAILS_CREATION_ACTION.VIEW_ORDER_DETAILS_HUB,actionCategory:String(c("WAWebOrderDetailsActionCategory").ORDER_DETAILS_MANAGEMENT),orderDetailEntryPoint:String(c("WAWebBizEntryPoint").FROM_BUSINESS_TOOLS),hasCatalog:d("WAWebBusinessProfileUtils").hasCatalog(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(a))}).commit();d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(c("WAWebOrderManagementFlowLoadable"),{isInitialStep:!0}))},b=d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__aSJVxxplgNS__JHASH__"):h._(/*BTDS*/"__JHASH__adN1yKPXtK1__JHASH__"),e="mi-orders menu-item";e=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebReceiptRefreshedIcon.react").ReceiptRefreshedIcon,{}):null,action:a,children:b});return e}a.displayName=a.name+" [from "+f.id+"]";g.OrdersChatlistHeaderDropdownItem=a}),226); __d("WAWebQuickRepliesFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizQuickRepliesFlow.react").__setRef("WAWebQuickRepliesFlowLoadable").load());return a}),"QuickRepliesFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});g.QuickRepliesFlowLoadable=d}),98); __d("WAWebQuickRepliesChatlistHeaderDropdownItem.react",["fbt","WAWebBizGatingUtils","WAWebBoltIcon.react","WAWebDrawerManager","WAWebDropdownItem.react","WAWebKeyboardTabUtils","WAWebQuickRepliesFlowLoadable","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){if(!d("WAWebBizGatingUtils").quickRepliesManagementEnabled())return null;var a=function(a){a==null?void 0:a.stopPropagation(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebQuickRepliesFlowLoadable").QuickRepliesFlowLoadable,{isInitialStep:!0}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},b=h._(/*BTDS*/"__JHASH__f3OO6H5v91x__JHASH__"),c="mi-quick-replies menu-item";c=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebBoltIcon.react").BoltIcon,{}):null,action:a,children:b});return c}a.displayName=a.name+" [from "+f.id+"]";g.QuickRepliesChatlistHeaderDropdownItem=a}),226); __d("WAWebScreenLockChatlistHeaderDropdownItem.react",["fbt","WAWebConfirmPopup.react","WAWebDropdownItem.react","WAWebLockOutlineIcon.react","WAWebLockScreenResolver","WAWebModalManager","WAWebMsgCollection","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=function(a){a==null?void 0:a.stopPropagation();a=d("WAWebMsgCollection").MsgCollection.hasUnsentMessages();a?d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__UATx5IE1871__JHASH__"),onOK:function(){void d("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow()},okText:h._(/*BTDS*/"__JHASH__R7KgpC_DN6p__JHASH__"),onCancel:function(){return d("WAWebModalManager").ModalManager.close()},cancelText:h._(/*BTDS*/"__JHASH__JomY4EcHzcJ__JHASH__"),children:h._(/*BTDS*/"__JHASH__xiQMrcGTdr2__JHASH__")})):void d("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow()},b=h._(/*BTDS*/"__JHASH__g_MK-7Vvh8k__JHASH__"),c="mi-screen-lock menu-item";c=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebLockOutlineIcon.react").LockOutlineIcon,{}):null,action:a,children:b});return c}a.displayName=a.name+" [from "+f.id+"]";g.ScreenLockChatlistHeaderDropdownItem=a}),226); __d("WAWebSelectChatsChatlistHeaderDropdownItem.react",["fbt","WAWebCheckRefreshedIcon.react","WAWebDropdownItem.react","WAWebMobilePlatforms","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.chatListCollapsed,c=a.isMultiSelectMode;a=a.startMultiSelect;var e=h._(/*BTDS*/"__JHASH__lQXMYzTlNZ2__JHASH__"),f="mi-select-chats";f=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebCheckRefreshedIcon.react").CheckRefreshedIcon,{}):null,action:a,children:e});return!d("WAWebMobilePlatforms").isSMB()&&!Boolean(b)&&!c?f:null}a.displayName=a.name+" [from "+f.id+"]";g.SelectChatsChatlistHeaderDropdownItem=a}),226); __d("WAWebShopsChatlistHeaderDropdownItem.react",["fbt","WAWebBizGatingUtils","WAWebBizShopsManagePopup.react","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebDropdownItem.react","WAWebMobilePlatforms","WAWebModalManager","WAWebShopIcon.react","WAWebShopsLog","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","WAWebWamEnumShopsManagementAction","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){if(!d("WAWebMobilePlatforms").isSMB())return null;var a=d("WAWebUserPrefsMeUser").getMeUser();a=d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(a);var b=d("WAWebBusinessProfileUtils").hasShop(a),e=function(a){a==null?void 0:a.preventDefault(),d("WAWebModalManager").ModalManager.open(j.jsx(c("WAWebBizShopsManagePopup.react"),{onViewShopClick:function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_VIEW_SHOPS_IN_SHOPS_SETTING)},onCommerceManagerClick:function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_COMMERCE_MANAGER_IN_SHOPS_SETTING)},onCancelClick:function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CANCEL_IN_SHOPS_SETTING)}})),d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_SHOPS_SETTING)};a=d("WAWebBizGatingUtils").bannedShopsEnabled()&&d("WAWebBusinessProfileUtils").isShopBanned(a)?h._(/*BTDS*/"__JHASH__VaFslU7GScE__JHASH__"):h._(/*BTDS*/"__JHASH__dOitml6Yl_0__JHASH__");var f="mi-shop menu-item";f=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebShopIcon.react").ShopIcon,{}):null,action:e,children:a});return b?f:null}a.displayName=a.name+" [from "+f.id+"]";g.ShopsChatlistHeaderDropdownItem=a}),226); __d("WAWebStarredChatlistHeaderDropdownItem.react",["fbt","WAWebChatlistHeaderDropdownLogEvents","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDropdownItem.react","WAWebKeyboardTabUtils","WAWebStarRefreshedIcon.react","WAWebStarredDrawerLoadable","WAWebStarredMsgCollection","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcMenuItemLabel","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=function(a){a==null?void 0:a.stopPropagation(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebStarredDrawerLoadable").StarredDrawerLoadable,{starredMsgs:d("WAWebStarredMsgCollection").AllStarredMsgsCollection,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},headerType:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"}),d("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.STARRED)},b=h._(/*BTDS*/"__JHASH__5q5nsTsqpDh__JHASH__"),c="mi-starred menu-item";c=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebStarRefreshedIcon.react").StarRefreshedIcon,{}):null,action:a,children:b});return c}a.displayName=a.name+" [from "+f.id+"]";g.StarredChatlistHeaderDropdownItem=a}),226); __d("WAWebChatlistHeaderDropdown.react",["WAWebAdsCreationChatlistHeaderDropdownItem.react","WAWebArchivedChatlistHeaderDropdownItem.react","WAWebBizGatingUtils","WAWebBizToolsChatlistHeaderDropdownItem.react","WAWebCatalogChatlistHeaderDropdownItem.react","WAWebChatlistHeaderDropdownLogEvents","WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebListsChatlistHeaderDropdownItem.react","WAWebLogoutChatlistHeaderDropdownItem.react","WAWebManageAdsDropdownItem.react","WAWebMarkAllChatsAsReadChatlistHeaderDropdownItem.react","WAWebNewGroupChatlistHeaderDropdownItem.react","WAWebOrdersChatlistHeaderDropdownItem.react","WAWebQuickRepliesChatlistHeaderDropdownItem.react","WAWebScreenLockChatlistHeaderDropdownItem.react","WAWebSelectChatsChatlistHeaderDropdownItem.react","WAWebSettingsGetters","WAWebShopsChatlistHeaderDropdownItem.react","WAWebStarredChatlistHeaderDropdownItem.react","WAWebUIRefreshGatingUtils","WAWebUserPrefsScreenLock","WAWebWamEnumWebcMenuItemLabel","WAWebWamEnumWebcNativeUpsellCtaSourceType","cr:1925","react","useWAWebDesktopUpsellWamImpression","useWAWebSettingsValues"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useEffect;function a(a){var e,f=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2]);f=f[0];var g=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),h=a.chatListCollapsed,i=a.isMultiSelectMode,l=a.activeAccountInfo,m=a.updateActiveNavBarItem;a=a.startMultiSelect;k(function(){d("WAWebChatlistHeaderDropdownLogEvents").logMenuEvent(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.OPEN)},[]);var n=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellAbPropCheck("chatlist_dropdown"),o=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformAwareCTACheckSynchronous();e=(e=b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())!=null?e:!1;e=!e&&!g&&n&&o;d("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:e===!0,source:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.CHATLIST_DROPDOWN});n=e===!0?j.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:function(){d("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.CHATLIST_DROPDOWN})},theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Compact,children:d("WAWebDesktopUpsellCommonStrings").getChatlistDropdownBtnLabel()}):null;o=d("WAWebUserPrefsScreenLock").getScreenLockEnabled();return j.jsxs(j.Fragment,{children:[j.jsx(d("WAWebBizToolsChatlistHeaderDropdownItem.react").BizToolsChatlistHeaderDropdownItem,{activeAccountInfo:l,updateActiveNavBarItem:m}),j.jsx(d("WAWebNewGroupChatlistHeaderDropdownItem.react").NewGroupChatlistHeaderDropdownItem,{}),j.jsx(d("WAWebShopsChatlistHeaderDropdownItem.react").ShopsChatlistHeaderDropdownItem,{}),j.jsx(d("WAWebAdsCreationChatlistHeaderDropdownItem.react").AdsCreationChatlistHeaderDropdownItem,{activeAccountInfo:l}),l!=null&&l!=="not-linked"&&d("WAWebBizGatingUtils").shouldShowManageAdsDropdown(l)&&j.jsx(c("WAWebManageAdsDropdownItem.react"),{activeAccountInfo:l}),j.jsx(d("WAWebCatalogChatlistHeaderDropdownItem.react").CatalogChatlistHeaderDropdownItem,{}),j.jsx(d("WAWebOrdersChatlistHeaderDropdownItem.react").OrdersChatlistHeaderDropdownItem,{}),!f&&j.jsx(d("WAWebArchivedChatlistHeaderDropdownItem.react").ArchivedChatlistHeaderDropdownItem,{}),j.jsx(d("WAWebQuickRepliesChatlistHeaderDropdownItem.react").QuickRepliesChatlistHeaderDropdownItem,{}),j.jsx(d("WAWebStarredChatlistHeaderDropdownItem.react").StarredChatlistHeaderDropdownItem,{}),j.jsx(d("WAWebSelectChatsChatlistHeaderDropdownItem.react").SelectChatsChatlistHeaderDropdownItem,{chatListCollapsed:h,isMultiSelectMode:i,startMultiSelect:a}),j.jsx(d("WAWebListsChatlistHeaderDropdownItem.react").ListsChatlistHeaderDropdownItem,{}),j.jsx(d("WAWebMarkAllChatsAsReadChatlistHeaderDropdownItem.react").MarkAllChatsAsReadChatlistHeaderDropdownItem,{}),g&&j.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}),o?j.jsx(d("WAWebScreenLockChatlistHeaderDropdownItem.react").ScreenLockChatlistHeaderDropdownItem,{}):j.jsx(d("WAWebLogoutChatlistHeaderDropdownItem.react").LogoutChatlistHeaderDropdownItem,{}),n!=null?j.jsxs(j.Fragment,{children:[!g&&j.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}),n]}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebDndIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="dnd";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 24 24",children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"currentColor",d:"M10.6,5.27v-0.6c0-0.68,0.6-1.28,1.27-1.28c0.68,0,1.27,0.6,1.27,1.28v0.59 c2.47,0.59,4.25,2.72,4.25,5.36v3.06L9.41,5.7C9.75,5.53,10.18,5.36,10.6,5.27z M11.88,20.4c-0.94,0-1.7-0.76-1.7-1.7h3.4 C13.57,19.64,12.81,20.4,11.88,20.4z M18.85,19.55l-1.7-1.7H4.65V17l1.7-1.7v-4.68c0-1.02,0.26-1.95,0.76-2.81L4.65,5.36l1.1-1.11 l14.19,14.19L18.85,19.55z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.DndIcon=a}),98); __d("WAWebNewChatFlowFlyout.react",["WAWebDrawerViewType","WAWebNewChatFlowLoadable","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){return i.jsx("div",babelHelpers["extends"]({className:"x1tsk2h8 xwl9fdd"},{children:i.jsx(d("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{viewType:c("WAWebDrawerViewType").FLYOUT})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebNewChatOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="new-chat-outline";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.NewChatOutlineIcon=a}),98); __d("WAWebWaWordmarkRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="wa-wordmark-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox,h=a.innerStyles;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox","innerStyles"]);var l;if(g){var m=g.x;m=m===void 0?0:m;var n=g.y;n=n===void 0?0:n;var o=g.width;o=o===void 0?0:o;g=g.height;g=g===void 0?0:g;l=[m,n,o,g].join(" ")}m=28;n=104;(e!=null||f!=null)&&(m=e,n=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(o=l)!=null?o:"0 0 104 28",height:m,width:n,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"m13.07 21.343-2.681-10.767h-.045L7.708 21.343H4.186L0 5.523h2.981L5.84 17.621h.05L8.973 5.523h2.828l2.997 12.098h.019L17.86 5.523h2.915l-4.252 15.82h-3.456zm21.602-9.771q.486-.732 1.24-1.173a5.4 5.4 0 0 1 1.696-.632c.626-.125 1.079-.188 1.713-.188q.863 0 1.749.122c.59.081.965.24 1.453.476q.729.356 1.194.987.466.63.466 1.672v5.96q0 .778.09 1.484.086.71.31 1.063H41.56a4 4 0 0 1-.144-.543 5 5 0 0 1-.078-.565 4.1 4.1 0 0 1-1.773 1.088 7.1 7.1 0 0 1-2.08.309c-.547 0-.891-.066-1.364-.2a3.5 3.5 0 0 1-1.24-.622 2.9 2.9 0 0 1-.83-1.064q-.3-.642-.3-1.529 0-.975.342-1.606.344-.632.886-1.01.544-.377 1.241-.563c.465-.126.769-.225 1.241-.3q.71-.108 1.395-.178c.458-.043 1.03-.109 1.384-.198q.532-.132.84-.389.31-.254.288-.742 0-.507-.167-.808-.165-.3-.443-.466c-.185-.11-.565-.183-.808-.221a5 5 0 0 0-.786-.055c-.622 0-1.246.132-1.6.398q-.532.4-.622 1.33h-2.827q.066-1.107.553-1.839zm6.034 4.442a5 5 0 0 1-.643.167q-.342.065-.72.111t-.752.11c-.236.045-.635.105-.863.178a2.1 2.1 0 0 0-.598.299q-.256.19-.41.476-.154.287-.155.732c0 .296.053.515.155.707a1.2 1.2 0 0 0 .422.455q.264.166.62.23.355.069.73.069c.621 0 1.43-.104 1.77-.311q.508-.31.753-.742.244-.43.3-.876.056-.44.056-.709v-1.173c-.134.119-.465.21-.663.276zm32.818-.899L71.26 8.523h-.076l-2.337 6.587 4.679.005zm-.816-9.592 5.913 15.82h-2.955l-1.43-4.215h-6.098l-1.482 4.215h-2.909l5.98-15.82zM86.179 18.97q.522-.308.842-.807.32-.498.455-1.164.13-.665.13-1.35.001-.686-.143-1.353a3.6 3.6 0 0 0-.476-1.185 2.64 2.64 0 0 0-.853-.841q-.52-.323-1.275-.323c-.502 0-.948.11-1.293.323q-.523.32-.843.83a3.5 3.5 0 0 0-.455 1.174q-.133.664-.132 1.374c0 .474.046.907.144 1.35q.144.664.464 1.163.323.5.853.808.532.31 1.284.311c.502 0 .949-.104 1.294-.31zm-4.074-9.082v1.463h.044q.575-.93 1.461-1.352c.59-.281 1.075-.42 1.784-.42.9 0 1.508.169 2.16.509q.975.509 1.616 1.352t.953 1.96q.309 1.12.31 2.338-.001 1.152-.31 2.217a5.7 5.7 0 0 1-.942 1.882 4.65 4.65 0 0 1-1.573 1.307c-.628.324-1.197.488-2.038.488-.709 0-1.198-.146-1.794-.433a3.7 3.7 0 0 1-1.475-1.273h-.043v5.43h-2.827V9.89h2.67zm16.278 9.082a2.5 2.5 0 0 0 .843-.807q.32-.498.454-1.164.131-.665.131-1.35a6.3 6.3 0 0 0-.144-1.353 3.6 3.6 0 0 0-.475-1.185 2.64 2.64 0 0 0-.853-.841q-.52-.323-1.275-.323c-.502 0-.948.11-1.293.323q-.524.32-.844.83a3.5 3.5 0 0 0-.454 1.174q-.133.664-.132 1.374c0 .474.046.907.144 1.35q.144.664.464 1.163.323.5.853.808.531.31 1.284.311c.502 0 .948-.104 1.294-.31zM94.31 9.889v1.463h.044q.575-.93 1.461-1.352c.59-.281 1.074-.42 1.783-.42.901 0 1.509.169 2.16.509q.976.509 1.616 1.352.642.843.954 1.96.308 1.12.309 2.338 0 1.152-.309 2.217a5.7 5.7 0 0 1-.942 1.882 4.64 4.64 0 0 1-1.573 1.307c-.628.324-1.197.488-2.038.488-.709 0-1.198-.146-1.795-.433a3.7 3.7 0 0 1-1.474-1.273h-.043v5.43h-2.828V9.89h2.671zm-38.355 8.705q.21.367.544.598.33.233.765.344c.287.074.874.11 1.185.11.221 0 .495-.026.74-.077.243-.051.587-.132.788-.243q.3-.165.498-.443c.133-.185.198-.444.198-.725 0-.428-.436-.898-1.064-1.134q-.94-.356-2.626-.709a15 15 0 0 1-1.339-.367 4.5 4.5 0 0 1-1.163-.553 2.7 2.7 0 0 1-.819-.865q-.31-.52-.31-1.274 0-1.107.433-1.816a3.2 3.2 0 0 1 1.142-1.119 5 5 0 0 1 1.595-.577 8.2 8.2 0 0 1 1.65-.165c.622 0 1.055.058 1.639.177a4.8 4.8 0 0 1 1.561.598q.687.421 1.14 1.117.456.699.542 1.762h-2.659c-.043-.605-.272-1.08-.686-1.292-.414-.215-1.046-.344-1.608-.344-.176 0-.664.04-.862.068s-.43.086-.6.158q-.255.112-.433.322c-.119.141-.177.392-.177.629q-.001.42.31.685.309.268.807.433.499.166 1.142.3c.428.089 1.167.295 1.608.4.458.104.739.227 1.175.375q.652.223 1.164.588.509.367.82.909.309.541.309 1.34 0 1.13-.453 1.896-.455.765-1.185 1.23c-.488.31-.88.39-1.508.515a10 10 0 0 1-1.917.188 8 8 0 0 1-1.781-.2 5.2 5.2 0 0 1-1.696-.664q-.742-.465-1.218-1.23c-.319-.509-.49-1.148-.522-1.917h2.66c0 .34.07.73.21.974zm-3.751-8.698v1.939H49.9v6.002q0 .799.264 1.064.266.266 1.064.267.266-.001.51-.023t.465-.067v2.273a7 7 0 0 1-.885.089q-.488.02-.954.021c-.486 0-.95-.033-1.383-.099a2.07 2.07 0 0 1-.998-.396 1.9 1.9 0 0 1-.635-.82 3.5 3.5 0 0 1-.274-1.396v-6.923H45.17V9.888h1.904V6.454l2.828.008v3.434zM24.65 5.523v5.902h.065c.398-.664 1.03-1.17 1.65-1.472.621-.305 1.27-.376 1.86-.376.841 0 1.202.114 1.74.342q.81.344 1.273.954.466.61.654 1.484.189.877.189 1.939v7.045h-2.815v-6.47q.001-1.419-.442-2.116c-.296-.466-.822-.81-1.572-.864-.967-.07-1.643.324-2.026.833-.385.51-.577 1.444-.577 2.611v6.004h-2.828V5.523z",fill:"currentColor",className:i(h==null?void 0:h.primary)})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.WaWordmarkRefreshedIcon=a}),98); __d("WAWebChatlistHeaderV2.react",["fbt","WAWebBusinessProfileCollection","WAWebChatlistHeaderDropdown.react","WAWebCmd","WAWebDndIcon.react","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDrawerViewType","WAWebDropdown.react","WAWebFbtCommon","WAWebMenuBar.react","WAWebMenuIcon.react","WAWebMessageYourselfMetricUtils","WAWebModal.react","WAWebModalManager","WAWebMoreRefreshedIcon.react","WAWebMuteCollection","WAWebMuteGetters","WAWebNewChatFlowFlyout.react","WAWebNewChatFlowLoadable","WAWebNewChatOutlineIcon.react","WAWebTabOrder","WAWebThemeContext","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","WAWebWaWordmarkRefreshedIcon.react","cr:1925","react","useWAWebForceUpdate","useWAWebListener","useWAWebMuteValues"],(function(a,b,c,d,e,f,g,h){var i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useCallback,m=e.useEffect,n=e.useMemo,o=e.useRef,p=e.useState,q={primaryFill:{fill:"xgz6z4f",$$css:!0},primaryFillDark:{fill:"xd25hor",$$css:!0}};function a(a){var e,f=a.headerRef,g=a.onSelectChatClick,i=a.isMultiSelectMode,j=a.activeAccountInfo;e=(e=b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())!=null?e:!1;var l=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),m=d("useWAWebForceUpdate").useForceUpdateDONOTUSE(),s=d("WAWebThemeContext").useIsDarkTheme(),t=d("useWAWebMuteValues").useMuteValues(a.mute.id,[d("WAWebMuteGetters").getIsMuted]);t=t[0];var u=n(function(){return d("WAWebUserPrefsMeUser").getMeUser()},[]),v=n(function(){return d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(u)},[u]);d("useWAWebListener").useListener(v,"change:profileOptions",m);var w=(b("cr:1925")==null?void 0:b("cr:1925").isWindowsNewChatFlyoutEnabled())===!0||d("WAWebUIRefreshGatingUtils").newChatFlowRefreshVariant()===2&&d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();v=function(a){if(w){d("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.startSession();d("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.newChatPressed();return}a.preventDefault();d("WAWebUIRefreshGatingUtils").newChatFlowRefreshVariant()===1&&d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Tower,children:k.jsx(d("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{onEnd:function(){d("WAWebModalManager").ModalManager.close()},viewType:c("WAWebDrawerViewType").MODAL})})):d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}));d("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.startSession();d("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.newChatPressed()};m=function(){d("WAWebMuteCollection").MuteCollection.globalMute().unmute(),d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__0sWOkmM3KYg__JHASH__")}))};var x=null;t&&(x=k.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:k.jsx(d("WAWebDndIcon.react").DndIcon,{}),title:h._(/*BTDS*/"__JHASH__zbxl2t1i8o5__JHASH__"),onClick:m},"btn-dnd"));t=k.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:k.jsx(d("WAWebNewChatOutlineIcon.react").NewChatOutlineIcon,{directional:!0}),title:h._(/*BTDS*/"__JHASH__wYpVyRE3fxw__JHASH__"),onClick:v,dropdownMenu:{menu:w?k.jsx(c("WAWebNewChatFlowFlyout.react"),{}):[],type:l?d("WAWebDropdown.react").MenuType.Dropdown:d("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:l?d("WAWebDropdown.react").DirX.RIGHT:d("WAWebDropdown.react").DirX.LEFT,dirY:d("WAWebDropdown.react").DirY.BOTTOM,testid:"chatlist-header-newchat-dropdown"}},"btn-new-chat");m=k.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l?k.jsx(d("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,{}):k.jsx(d("WAWebMenuIcon.react").MenuIcon,{}),title:h._(/*BTDS*/"__JHASH__hskmX_lsgx4__JHASH__"),dropdownMenu:{menu:k.jsx(c("WAWebChatlistHeaderDropdown.react"),{startMultiSelect:g,isMultiSelectMode:i,activeAccountInfo:j,updateActiveNavBarItem:a.updateActiveNavBarItem}),type:l?d("WAWebDropdown.react").MenuType.Dropdown:d("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:l?d("WAWebDropdown.react").DirX.RIGHT:d("WAWebDropdown.react").DirX.LEFT,dirY:d("WAWebDropdown.react").DirY.BOTTOM,testid:"chatlist-header-dropdown"}},"btn-menu");v=!e&&l;g=!v&&{title:h._(/*BTDS*/"__JHASH__312r8l5Dewe__JHASH__")};i=p(!0);j=i[0];var y=i[1];a=o(null);r({ref:f,enabled:!j,handler:function(){d("WAWebDrawerManager").DrawerManager.trigger("focus_drawer_left")}});e=function(a){y(a)};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"chat_list_visibility_change",e);return k.jsx("header",{"data-testid":void 0,ref:f,children:k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,babelHelpers["extends"]({ref:a},g,{type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB,menu:[x,t,m],focusBackOrCancel:!0,children:v&&k.jsx(d("WAWebWaWordmarkRefreshedIcon.react").WaWordmarkRefreshedIcon,{"aria-hidden":!1,"aria-label":c("WAWebFbtCommon")("WhatsApp"),innerStyles:{primary:s?q.primaryFillDark:q.primaryFill}})}))})}a.displayName=a.name+" [from "+f.id+"]";function r(a){var b=a.ref,c=a.enabled,d=a.handler,e=l(function(a){d(a)},[d]);m(function(){if(c){var a=b.current;if(a==null)return;a.addEventListener("focusin",e);return function(){a.removeEventListener("focusin",e)}}},[c,e,b])}g["default"]=a}),226); __d("WAWebConversationPanelAnimations",["WAWebVelocityAnimate"],(function(a,b,c,d,e,f,g){function a(a,b){c("WAWebVelocityAnimate")(a,{scaleX:[1,b]},{duration:300,easing:[.1,.82,.25,1]});a=b!==1;return a}g.animateConversationPanel=a}),98); __d("WAWebIntroMdBetaLogoDarkIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="intro-md-beta-logo-dark";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=172;m=303;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 303 172",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"}),j.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}),j.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}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.IntroMdBetaLogoDarkIcon=a}),98); __d("WAWebIntroMdBetaLogoLightIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="intro-md-beta-logo-light";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=172;m=303;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 303 172",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.IntroMdBetaLogoLightIcon=a}),98); __d("WAWebIntroPanel.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={intro:"_al_c",body:"_al_d",title:"_al_e",betaTitle:"_al_g",betaText:"_al_h",textContainer:"_al_i",mdTextContainer:"_al_j",secondary:"_al_k",divider:"_al_l",image:"_al_m",mdImageWrapper:"_al_n",mdBetaImage:"_al_o",mdImage:"_al_p",text:"_al_f",secondaryText:"_al_q",secondaryTextBody:"_al_r",secondaryIcon:"_al_s",upgradeElectronBtn:"_al_t",upgradeModalTitle:"_al_u",upgradeModalText:"_al_v",upgradeModalErrorText:"_al_w",encrypted:"_al_x"};b=a;g["default"]=b}),98); __d("WAWebWdsSmbIllStartAChatIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="wds-smb-ill-start-a-chat";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=152;m=228;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:h,height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsxs("g",{clipPath:"url(#a)",children:[j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"})]}),j.jsx("defs",{children:j.jsx("clipPath",{id:"a",children:j.jsx("path",{fill:"#fff",d:"M0 0h228v152H0z"})})})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.WdsSmbIllStartAChatIcon=a}),98); __d("WAWebIntroPanel.react",["fbt","WAWebBizGatingUtils","WAWebButton.react","WAWebConversationPanelAnimations","WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebDesktopUpsellUtils","WAWebEnvironment","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebIntroMdBetaLogoDarkIcon.react","WAWebIntroMdBetaLogoLightIcon.react","WAWebIntroPanel.scss","WAWebLockOutlineIcon.react","WAWebLockSmallIcon.react","WAWebMobilePlatforms","WAWebText.react","WAWebThemeContext","WAWebUIRefreshGatingUtils","WAWebUseIsFeatureEnabled","WAWebVelocityAnimate","WAWebWaLogoIcon.react","WAWebWamEnumWebcNativeUpsellCtaSourceType","WAWebWdsSmbIllStartAChatIcon.react","bx","cr:10211","cr:1925","react","stylex","useWAWebDesktopUpsellWamImpression","useWAWebExternalBetaOptIn"],(function(a,b,c,d,e,f,g,h){var i,j,k;e=k||d("react");var l=i||(i=c("react")),m=e.useContext,n=e.useEffect,o=e.useImperativeHandle,p=e.useRef,q={whatsappLogo:{color:"x1vef352",display:"x1rg5ohu",$$css:!0},title:{marginTop:"xib59rt",fontSize:"xdhfpv1",fontWeight:"x1iikomf",color:"xx75k7l",$$css:!0},titleUpsellExperiment:{marginTop:"xqui205",fontSize:"xddofbv",fontWeight:"xo1l8bm",color:"xx75k7l",$$css:!0},descriptionUpsellExperiment:{color:"xhslqc4",fontSize:"x6prxxf",fontWeight:"x1cmdng9",lineHeight:"x1o2sk6j",marginTop:"x1xmf6yo",$$css:!0},textContainer:{opacity:"xg01cxk",$$css:!0},mdTextContainer:{opacity:"xg01cxk",$$css:!0},mdBetaImage:{display:"x1rg5ohu",marginTop:"xdj266r",marginEnd:"xkrivgy",marginBottom:"xat24cr",marginStart:"x1gryazu",$$css:!0}};function a(a){var e=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var f=a.animate;a=m(d("WAWebThemeContext").ThemeContext);var g=d("WAWebDesktopUpsellUtils").getUserDesktopOs(),i=d("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb(),k=p(null),s=p(null);n(function(){var a=k.current,b=s.current;f?(c("WAWebVelocityAnimate")(a,{scale:[1,0],opacity:[1,0]},{delay:1340,duration:180,easing:[.05,1.02,0,1.01]}),c("WAWebVelocityAnimate")(b,{translateY:[0,80],opacity:[1,0]},{delay:1300,duration:140,easing:[.05,1.02,0,1.01]})):(a&&(a.style.opacity="1"),b&&(b.style.opacity="1"))},[]);var t=p(null),u=function(a,b){var c;c=(c=t.current)==null?void 0:c.clientWidth;if(c==null||a===b)return!1;c=c/(a-b);return d("WAWebConversationPanelAnimations").animateConversationPanel(t.current,c)},v=function(a){return!t.current?!1:t.current.contains(a)};o(e,function(){return{animatePanel:u,containsDOMNode:v}});e=c("WAWebUseIsFeatureEnabled")("MD_EXTENSION");var w,x=!1,y=q.textContainer,z=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellAbPropCheck("intro_panel"),A=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck(),B=z&&A===!0;d("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({source:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.INTRO_PANEL,isCtaVisible:B});B=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();var C=(b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())===!0,D=B&&d("WAWebMobilePlatforms").isSMB();if(z&&A===!0){z=d("WAWebDesktopUpsellUtils").isEmptyStateUpsellBannerVariantEnabled();A=z?q.titleUpsellExperiment:q.title;var E=z?q.descriptionUpsellExperiment:null;x=!0;g=l.jsx("div",babelHelpers["extends"]({ref:k},{className:"xg01cxk x1g0ag68"},{children:l.jsx("img",{src:g===d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS?c("bx").getURL(c("bx")("482")):c("bx").getURL(c("bx")("484")),width:320,alt:""})}));A=l.jsxs(l.Fragment,{children:[l.jsx("h1",{"data-testid":void 0,className:(j||(j=c("stylex")))(A),children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellDownloadWhatsAppTitle(i)}),z?l.jsxs("div",{"data-testid":void 0,className:(j||(j=c("stylex")))(E),children:[" ",d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellIntroPanelText(i)]}):l.jsx(d("WAWebText.react").WAWebTextMuted,{testid:void 0,marginTop:24,children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellIntroPanelText(i)})]});w=r({buttonText:d("WAWebDesktopUpsellCommonStrings").getDesktopAppDownloadFromStoreBtnLabel(i),onClick:function(){d("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.INTRO_PANEL,isBeta:i})}})}else{x=!0;y=q.mdTextContainer;C?z=l.jsx(d("WAWebWaLogoIcon.react").WaLogoIcon,{height:56,width:56,iconXstyle:q.whatsappLogo}):D?z=l.jsx(d("WAWebWdsSmbIllStartAChatIcon.react").WdsSmbIllStartAChatIcon,{xstyle:q.mdBetaImage}):z=a.theme==="light"?l.jsx(d("WAWebIntroMdBetaLogoLightIcon.react").IntroMdBetaLogoLightIcon,{className_DONOTUSE:"x1rg5ohu xdj266r xkrivgy xat24cr x1gryazu",width:360}):l.jsx(d("WAWebIntroMdBetaLogoDarkIcon.react").IntroMdBetaLogoDarkIcon,{className_DONOTUSE:"x1rg5ohu xdj266r xkrivgy xat24cr x1gryazu",width:360});g=l.jsx("div",babelHelpers["extends"]({ref:k},{className:"xg01cxk x1g0ag68"},{children:z}));D?E=c("WAWebFbtCommon")("WhatsApp Business on Web"):E=c("WAWebFbtCommon")("WhatsApp Web");c("WAWebEnvironment").isWindows&&(E=c("WAWebFbtCommon")("WhatsApp for Windows"));a=l.jsx("div",babelHelpers["extends"]({className:"x3nfvp2 x1tfhste x579bpy x1iikomf x1srq1fq xx75k7l"},{children:l.jsx("h1",{"data-testid":void 0,children:E})}));e?A=l.jsxs(l.Fragment,{children:[a,l.jsxs("div",babelHelpers["extends"]({"data-testid":void 0},{className:"xw7yly9 x1f6kntn xo1l8bm x1fc57z9 xhslqc4"},{children:[h._(/*BTDS*/"__JHASH__dwbfGks1SZL__JHASH__"),l.jsx("br",{}),h._(/*BTDS*/"__JHASH__4OvUeuh89nF__JHASH__")]}))]}):d("WAWebBizGatingUtils").billingEnabled()?A=l.jsxs(l.Fragment,{children:[a,l.jsxs("div",babelHelpers["extends"]({"data-testid":void 0},{className:"xw7yly9 x1f6kntn xo1l8bm x1fc57z9 xhslqc4"},{children:[h._(/*BTDS*/"__JHASH__e4p4UsF70rd__JHASH__",[h._implicitParam("=m0",l.jsx("strong",{children:h._(/*BTDS*/"__JHASH__IMvNNTUb6su__JHASH__")}))]),l.jsx("br",{}),h._(/*BTDS*/"__JHASH__lk5zpsvtzMB__JHASH__"),l.jsx("br",{}),l.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getWhatsAppBusinessPremiumFaqUrl(),children:h._(/*BTDS*/"__JHASH__ERAv2j3YrgV__JHASH__")})]}))]}):D?(A=l.jsxs(l.Fragment,{children:[a,l.jsxs("div",babelHelpers["extends"]({"data-testid":void 0},{className:"xw7yly9 x1f6kntn xo1l8bm x1fc57z9 xhslqc4"},{children:[h._(/*BTDS*/"__JHASH__D0Ipzz5BeVg__JHASH__"),l.jsx("br",{})]}))]}),w=r(null)):(A=l.jsxs(l.Fragment,{children:[a,l.jsxs("div",babelHelpers["extends"]({"data-testid":void 0},{className:"xw7yly9 x1f6kntn xo1l8bm x1fc57z9 xhslqc4"},{children:[h._(/*BTDS*/"__JHASH___Rn1waYwbF7__JHASH__"),l.jsx("br",{}),h._(/*BTDS*/"__JHASH__wCqmH-OFHYs__JHASH__")]}))]}),w=r(null))}z=C||B?l.jsx(d("WAWebLockOutlineIcon.react").LockOutlineIcon,{height:20,width:20}):l.jsx(d("WAWebLockSmallIcon.react").LockSmallIcon,{});return l.jsx("div",babelHelpers["extends"]({className:"x10l6tqk x1vjfegm x9f619 x78zum5 x1iyjqo2 x6s0dn4 xl56j7k xh8yej3 x5yr21d x7sb2j6 x84yb8i xt0e3qv xsknx04"},{ref:t,children:l.jsxs("div",babelHelpers["extends"]({className:"xktia5q x27kpxv x135pmgq x2b8uid"},{"data-testid":void 0,children:[g,l.jsxs("div",babelHelpers["extends"]({ref:s},(j||(j=c("stylex"))).props(y),{children:[A,w,b("cr:10211")?l.jsx("div",babelHelpers["extends"]({className:"x1hogkm0"},{children:l.jsx(b("cr:10211"),{})})):null]})),x&&l.jsxs("div",{className:c("WAWebIntroPanel.scss").encrypted,children:[z," ",h._(/*BTDS*/"__JHASH__m8ebBu5d962__JHASH__")]})]}))}))}a.displayName=a.name+" [from "+f.id+"]";function r(a){return(a==null?void 0:a.buttonText)!=null?l.jsx("div",{className:c("WAWebIntroPanel.scss").upgradeElectronBtn,children:l.jsx(d("WAWebButton.react").Button,{type:"strong-primary",onClick:a.onClick,testid:void 0,children:a.buttonText})}):null}g["default"]=a}),226); __d("WAWebOpenLastActiveChatAction",["Promise","WALogger","WAWebChatCollection","WAWebChatEntryPoint","WAWebCmd","WAWebDrawerManager","WAWebIntroPanel.react","WAWebSideNavButtonsActivityModel","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[debug] openLastActiveChat: unknown error"]);j=function(){return a};return a}var k=i||c("react"),l=function(){d("WAWebDrawerManager").DrawerManager.openDrawerMid(k.jsx(c("WAWebIntroPanel.react"),{animate:!1}),{transition:"none"})};a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=d("WAWebSideNavButtonsActivityModel").getLastActiveChat();if(a==null){l();return(h||(h=b("Promise"))).resolve(!1)}try{a=d("WAWebChatCollection").ChatCollection.get(a);if(a==null){l();return(h||(h=b("Promise"))).resolve(!1)}d("WAWebDrawerManager").DrawerManager.closeDrawerMid();return d("WAWebCmd").Cmd.openChatFromUnread(a,d("WAWebChatEntryPoint").ChatEntryPoint.ChatsTab)}catch(a){d("WALogger").DEV(j()).devConsole(a);return(h||(h=b("Promise"))).resolve(!1)}});return function(){return a.apply(this,arguments)}}();g.openLastActiveChat=a}),98); __d("useWAWebChatsActivityIndicator",["WAWebChatCollection","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useState;function a(){var a=function(){return d("WAWebChatCollection").ChatCollection.getUnreadCount()},b=i(a),c=b[0],e=b[1];b=function(){e(a())};d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"add remove reset change:showUnreadInTitle",b);return{unreadChatCount:c}}g.useChatsActivityIndicator=a}),98); __d("WAWebChatsNavBarItem.react",["fbt","WAWebChatFilledRefreshedIcon.react","WAWebChatRefreshedIcon.react","WAWebChatUnreadCount.react","WAWebDrawerManager","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebOpenLastActiveChatAction","WAWebSideNavButtonsActivityModel","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebChatsActivityIndicator"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Chats)return;e(d("WAWebNavBarTypes").NavBarItems.Chats);d("WAWebDrawerManager").DrawerManager.closeDrawerLeft();d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.CHATS);d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&(d("WAWebSideNavButtonsActivityModel").setLastActiveButton(d("WAWebNavBarTypes").NavBarItems.Chats),void d("WAWebOpenLastActiveChatAction").openLastActiveChat())};var f=b===d("WAWebNavBarTypes").NavBarItems.Chats?j.jsx(d("WAWebChatFilledRefreshedIcon.react").ChatFilledRefreshedIcon,{directional:!0}):j.jsx(d("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{directional:!0}),g=d("useWAWebChatsActivityIndicator").useChatsActivityIndicator();g=g.unreadChatCount;g=g>0?j.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:g}):null;var i=h._(/*BTDS*/"__JHASH__hy-Qp8EeTRI__JHASH__");f=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:f,text:i,inlineActivityIndicator:g,inlineActivityIndicatorType:d("WAWebNavBarItem.react").InlineActivityIndicatorType.Counter,title:i,testid:void 0,isExpanded:c,isActive:b===d("WAWebNavBarTypes").NavBarItems.Chats,onClick:a});return f}a.displayName=a.name+" [from "+f.id+"]";g.ChatsNavBarItem=a}),226); __d("WAWebClockBridgeApi",["WAWebClock"],(function(a,b,c,d,e,f,g){a={setWebClockSkew:function(a){a=a.newClockSkew;d("WAWebClock").Clock.setSkew(a)}};g.ClockBridgeApi=a}),98); __d("WAWebCommunityRefreshed32Icon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="community-refreshed-32";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=32;m=32;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 32 32",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CommunityRefreshed32Icon=a}),98); __d("WAWebCommunityRefreshedFilled32Icon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="community-refreshed-filled-32";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=32;m=32;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 32 32",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CommunityRefreshedFilled32Icon=a}),98); __d("WAWebSettingsFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="settings-filled-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.66248 21.55C9.98748 21.85 10.375 22 10.825 22H13.175C13.625 22 14.0125 21.85 14.3375 21.55C14.6625 21.25 14.8583 20.8833 14.925 20.45L15.15 18.8C15.35 18.7167 15.55 18.6167 15.75 18.5C15.95 18.3833 16.1416 18.2583 16.325 18.125L17.825 18.775C18.2416 18.9583 18.6583 18.975 19.075 18.825C19.4916 18.675 19.8166 18.4083 20.05 18.025L21.25 15.975C21.4833 15.5917 21.55 15.1833 21.45 14.75C21.35 14.3167 21.125 13.9583 20.775 13.675L19.45 12.675C19.4833 12.5583 19.5 12.4458 19.5 12.3375V11.6625C19.5 11.5542 19.4916 11.4417 19.475 11.325L20.8 10.325C21.15 10.0417 21.375 9.68333 21.475 9.25C21.575 8.81667 21.5083 8.40833 21.275 8.025L20.1 5.975C19.8666 5.59167 19.5416 5.325 19.125 5.175C18.7083 5.025 18.2916 5.04167 17.875 5.225L16.325 5.875C16.1416 5.74167 15.9541 5.61667 15.7625 5.5C15.5708 5.38333 15.3666 5.28333 15.15 5.2L14.925 3.55C14.8583 3.11667 14.6625 2.75 14.3375 2.45C14.0125 2.15 13.625 2 13.175 2H10.825C10.375 2 9.98748 2.15 9.66248 2.45C9.33748 2.75 9.14165 3.11667 9.07498 3.55L8.84998 5.2C8.64998 5.28333 8.44998 5.38333 8.24998 5.5C8.04998 5.61667 7.85831 5.74167 7.67498 5.875L6.12498 5.225C5.70831 5.04167 5.29165 5.025 4.87498 5.175C4.45831 5.325 4.13331 5.59167 3.89998 5.975L2.72498 8.025C2.49165 8.40833 2.42498 8.81667 2.52498 9.25C2.62498 9.68333 2.84998 10.0417 3.19998 10.325L4.52498 11.325C4.50831 11.4417 4.49998 11.5542 4.49998 11.6625V12.3375C4.49998 12.4458 4.50831 12.5583 4.52498 12.675L3.19998 13.675C2.84998 13.9583 2.62498 14.3167 2.52498 14.75C2.42498 15.1833 2.49165 15.5917 2.72498 15.975L3.89998 18.025C4.13331 18.4083 4.45831 18.675 4.87498 18.825C5.29165 18.975 5.70831 18.9583 6.12498 18.775L7.67498 18.125C7.85831 18.2583 8.04581 18.3833 8.23748 18.5C8.42915 18.6167 8.63331 18.7167 8.84998 18.8L9.07498 20.45C9.14165 20.8833 9.33748 21.25 9.66248 21.55ZM12 15C12.8286 15 13.5357 14.7071 14.1214 14.1214C14.7071 13.5357 15 12.8286 15 12C15 11.1714 14.7071 10.4643 14.1214 9.87857C13.5357 9.29286 12.8286 9 12 9C11.1571 9 10.4464 9.29286 9.86786 9.87857C9.28929 10.4643 9 11.1714 9 12C9 12.8286 9.28929 13.5357 9.86786 14.1214C10.4464 14.7071 11.1571 15 12 15Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SettingsFilledRefreshedIcon=a}),98); __d("WAWebStatusFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="status-filled-refreshed";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M13.5628 3.1366C13.6587 2.5927 14.1794 2.22462 14.711 2.37435C15.7905 2.67838 16.8135 3.16253 17.736 3.80854C18.9323 4.64621 19.9305 5.73571 20.6606 7.00047C21.3907 8.26523 21.8349 9.67454 21.962 11.1294C22.0601 12.2513 21.9677 13.3793 21.6911 14.4662C21.5549 15.0014 20.9758 15.2682 20.4568 15.0792C19.9378 14.8903 19.677 14.317 19.7998 13.7785C19.9843 12.9693 20.0422 12.1343 19.9696 11.3035C19.8679 10.1396 19.5126 9.01215 18.9285 8.00035C18.3444 6.98854 17.5458 6.11694 16.5888 5.44681C15.9057 4.96841 15.1536 4.60097 14.3606 4.35607C13.8329 4.19311 13.4669 3.68049 13.5628 3.1366Z",fill:"currentColor"}),j.jsx("path",{d:"M18.8944 17.785C19.3175 18.14 19.3759 18.7749 18.9804 19.1604C18.1774 19.9433 17.2466 20.5872 16.2259 21.0631C14.9023 21.6802 13.4597 22 11.9993 21.9999C10.5389 21.9998 9.09633 21.6798 7.77287 21.0625C6.7522 20.5864 5.82149 19.9424 5.01855 19.1594C4.62314 18.7739 4.68167 18.1389 5.10479 17.784C5.52792 17.429 6.15484 17.4898 6.55976 17.8653C7.16828 18.4297 7.86245 18.8974 8.61829 19.25C9.67707 19.7438 10.8312 19.9998 11.9994 19.9999C13.1677 19.9999 14.3218 19.7441 15.3807 19.2504C16.1366 18.898 16.8308 18.4304 17.4394 17.8661C17.8444 17.4906 18.4713 17.4299 18.8944 17.785Z",fill:"currentColor"}),j.jsx("path",{d:"M3.54277 15.078C3.02379 15.2669 2.4447 15.0001 2.30857 14.4648C2.03215 13.378 1.9399 12.2501 2.03806 11.1283C2.16533 9.67358 2.60965 8.26441 3.33978 6.9998C4.06991 5.7352 5.06815 4.64584 6.26432 3.80828C7.1868 3.16237 8.20975 2.6783 9.28915 2.37431C9.82075 2.22459 10.3414 2.59268 10.4373 3.13657C10.5332 3.68047 10.1672 4.19308 9.6395 4.35604C8.84657 4.60091 8.09458 4.96828 7.41146 5.4466C6.45452 6.11664 5.65593 6.98813 5.07183 7.99982C4.48772 9.0115 4.13226 10.1388 4.03045 11.3026C3.95776 12.1334 4.01559 12.9683 4.19998 13.7774C4.3227 14.3159 4.06175 14.8892 3.54277 15.078Z",fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0001 18C15.3138 18 18.0001 15.3137 18.0001 12C18.0001 8.68628 15.3138 5.99999 12.0001 5.99999C8.68635 5.99999 6.00006 8.68628 6.00006 12C6.00006 15.3137 8.68635 18 12.0001 18Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.StatusFilledRefreshedIcon=a}),98); __d("WAWebNavBarEmptyState.react",["fbt","invariant","WAWebAccountCircleIcon.react","WAWebCommunityFilledRefreshedIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerSection.react","WAWebIntroPanel.scss","WAWebLockOutlineIcon.react","WAWebNavBarTypes","WAWebNewsletterIcon.react","WAWebSettingsFilledRefreshedIcon.react","WAWebStatusFilledRefreshedIcon.react","WAWebUIRefreshGatingUtils","cr:20250","react"],(function(a,b,c,d,e,f,g,h,i){var j,k=j||c("react"),l={heroIcon:{color:"x1vef352",display:"x1rg5ohu",$$css:!0}};function a(a){a=a.type;var e,f,g,j,m=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();switch(a){case d("WAWebNavBarTypes").NavBarItems.Status:e=k.jsx(d("WAWebStatusFilledRefreshedIcon.react").StatusFilledRefreshedIcon,{height:64,width:64,iconXstyle:l.heroIcon});f=h._(/*BTDS*/"__JHASH__e1Q0iKbdp7H__JHASH__");g=h._(/*BTDS*/"__JHASH__ooV0c84Tcwn__JHASH__");j=k.jsxs("div",{className:c("WAWebIntroPanel.scss").encrypted,children:[k.jsx(d("WAWebLockOutlineIcon.react").LockOutlineIcon,{height:20,width:20})," ",h._(/*BTDS*/"__JHASH__mlLkKhZkB6e__JHASH__")]});break;case d("WAWebNavBarTypes").NavBarItems.Newsletters:e=k.jsx(d("WAWebNewsletterIcon.react").NewsletterIcon,{height:64,width:64,iconXstyle:l.heroIcon});f=h._(/*BTDS*/"__JHASH__9fTsZDdhGwO__JHASH__");g=h._(/*BTDS*/"__JHASH__WDz_2H7CAyN__JHASH__");break;case d("WAWebNavBarTypes").NavBarItems.Settings:e=k.jsx(d("WAWebSettingsFilledRefreshedIcon.react").SettingsFilledRefreshedIcon,{height:64,width:64,iconXstyle:l.heroIcon});f=h._(/*BTDS*/"__JHASH__r8e-LaiFmJ7__JHASH__");break;case d("WAWebNavBarTypes").NavBarItems.Profile:e=k.jsx(d("WAWebAccountCircleIcon.react").AccountCircleIcon,{height:64,width:64,iconXstyle:l.heroIcon});f=h._(/*BTDS*/"__JHASH__N-LcuPEw1_r__JHASH__");break;case d("WAWebNavBarTypes").NavBarItems.Communities:e=k.jsx(d("WAWebCommunityFilledRefreshedIcon.react").CommunityFilledRefreshedIcon,{height:64,width:64,iconXstyle:l.heroIcon});f=h._(/*BTDS*/"__JHASH__TSBQT94TmEY__JHASH__");g=h._(/*BTDS*/"__JHASH__RRP8KjPVxjJ__JHASH__");j=k.jsxs("div",{className:c("WAWebIntroPanel.scss").encrypted,children:[k.jsx(d("WAWebLockOutlineIcon.react").LockOutlineIcon,{height:20,width:20})," ",h._(/*BTDS*/"__JHASH__lX5S-lJZwhl__JHASH__")]});break;case d("WAWebNavBarTypes").NavBarItems.Calls:b("cr:20250")!=null||i(0,95041);return k.jsx(b("cr:20250"),{});case d("WAWebNavBarTypes").NavBarItems.Archived:case d("WAWebNavBarTypes").NavBarItems.Chats:case d("WAWebNavBarTypes").NavBarItems.Beta:case d("WAWebNavBarTypes").NavBarItems.BizTools:case d("WAWebNavBarTypes").NavBarItems.Orders:case d("WAWebNavBarTypes").NavBarItems.Labels:case d("WAWebNavBarTypes").NavBarItems.LockedChats:case d("WAWebNavBarTypes").NavBarItems.Starred:case d("WAWebNavBarTypes").NavBarItems.MediaHub:return null}return k.jsx(c("WAWebDrawer.react"),{theme:"white-bg",testid:void 0,children:k.jsxs(c("WAWebDrawerBody.react"),{children:[k.jsx(c("WAWebDrawerSection.react"),{theme:"refresh-new",children:"Body"}),k.jsx("div",{className:c("WAWebIntroPanel.scss").intro,children:k.jsxs("div",{className:c("WAWebIntroPanel.scss").body,children:[k.jsx("div",{children:e}),k.jsx("div",{className:c("WAWebIntroPanel.scss").betaTitle,children:k.jsx("h1",{"data-testid":void 0,children:f})}),k.jsx("div",{"data-testid":void 0,className:m?"xw7yly9 x1f6kntn xo1l8bm x1fc57z9 xhslqc4":c("WAWebIntroPanel.scss").betaText,children:g}),j]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g.NavBarEmptyState=a}),226); __d("WAWebOpenLastActiveCommunityAction",["Promise","WALogger","WAWebChatCollection","WAWebChatEntryPoint","WAWebCmd","WAWebDrawerManager","WAWebGroupType","WAWebNavBarEmptyState.react","WAWebNavBarTypes","WAWebSideNavButtonsActivityModel","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[debug] openLastActiveCommunity: unknown error"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[debug] openLastActiveCommunity Attempted to open a group which is not a community"]);k=function(){return a};return a}var l=i||c("react"),m=function(){d("WAWebDrawerManager").DrawerManager.openDrawerMid(l.jsx(d("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:d("WAWebNavBarTypes").NavBarItems.Communities}),{transition:"none",disableRotateFocus:!0});return(h||(h=b("Promise"))).resolve(!1)};a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=d("WAWebSideNavButtonsActivityModel").getLastActiveCommunity();if(a==null)return m();try{a=d("WAWebChatCollection").ChatCollection.get(a);if(a==null||a.groupType==null)return m();switch(a.groupType){case d("WAWebGroupType").GroupType.COMMUNITY:case d("WAWebGroupType").GroupType.LINKED_SUBGROUP:case d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP:case d("WAWebGroupType").GroupType.LINKED_GENERAL_GROUP:d("WAWebDrawerManager").DrawerManager.closeDrawerMid();return d("WAWebCmd").Cmd.openChatFromUnread(a,d("WAWebChatEntryPoint").ChatEntryPoint.CommunitiesTab);case d("WAWebGroupType").GroupType.DEFAULT:d("WALogger").WARN(k()).sendLogs("open-last-active-community-error-not-a-community-group");return m()}}catch(a){d("WALogger").DEV(j()).devConsole(a);return(h||(h=b("Promise"))).resolve(!1)}});return function(){return a.apply(this,arguments)}}();g.openLastActiveCommunity=a}),98); __d("WAWebUnreadActivityIndicator.react",["react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.pulse;b=b===void 0?!1:b;a=a.ref;return i.jsx("span",babelHelpers["extends"]({ref:a,"data-testid":void 0},{0:{className:"x1rg5ohu x11inojt x16suv20 xo5v014 x1pse0pq x2b8uid x16dsc37 xyp3urf x1lq5wgf xgqcy7u x30kzoy x9jhf4c"},1:{className:"x1rg5ohu x11inojt x16suv20 xo5v014 x1pse0pq x2b8uid x16dsc37 xyp3urf x1lq5wgf xgqcy7u x30kzoy x9jhf4c xnyknk1 x1c74tu6 xa4qsjk"}}[!!b<<0]))}a.displayName=a.name+" [from "+f.id+"]";g.UnreadActivityIndicator=a}),98); __d("WAWebCommunitiesNavBarItem.react",["fbt","WAWebCommunityActivityCollection","WAWebCommunityDailyUtils","WAWebCommunityFlow.react","WAWebCommunityRefreshed32Icon.react","WAWebCommunityRefreshedFilled32Icon.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebOpenLastActiveCommunityAction","WAWebSideNavButtonsActivityModel","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUnreadActivityIndicator.react","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={dotIndicatorPosition:{start:"x8zc4e7",left:null,right:null,bottom:"x1oozmrk",$$css:!0}};function a(a){var b=a.activeNavBarItem,e=a.isNavBarExpanded,f=a.updateActiveNavBarItem;a=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Communities)return;f(d("WAWebNavBarTypes").NavBarItems.Communities);d("WAWebCommunityDailyUtils").incrementCommunityTabEvent(d("WAWebCommunityDailyUtils").CommunityDailyTabMetricsType.TAB_VIEWS);d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.COMMUNITIES);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebCommunityFlow.react").CommunityFlow,{}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0});d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&(d("WAWebSideNavButtonsActivityModel").setLastActiveButton(d("WAWebNavBarTypes").NavBarItems.Communities),void d("WAWebOpenLastActiveCommunityAction").openLastActiveCommunity())};var g=b===d("WAWebNavBarTypes").NavBarItems.Communities?j.jsx(d("WAWebCommunityRefreshedFilled32Icon.react").CommunityRefreshedFilled32Icon,{}):j.jsx(d("WAWebCommunityRefreshed32Icon.react").CommunityRefreshed32Icon,{}),i=c("useWAWebEventTargetValue")(c("WAWebCommunityActivityCollection"),"add change remove community_tab_view",function(){return c("WAWebCommunityActivityCollection").shouldShowTabBadge()});i=i?j.jsx(d("WAWebUnreadActivityIndicator.react").UnreadActivityIndicator,{}):null;var l=h._(/*BTDS*/"__JHASH__aaABNHvXhPE__JHASH__");g=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:g,text:l,inlineActivityIndicator:i,inlineActivityIndicatorType:d("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:l,testid:void 0,isExpanded:e,isActive:b===d("WAWebNavBarTypes").NavBarItems.Communities,onClick:a,spacingXstyle:d("WAWebUISpacing").uiPadding.all4,dotIndicatorPositionXstyle:k.dotIndicatorPosition});return g}a.displayName=a.name+" [from "+f.id+"]";g.CommunitiesNavBarItem=a}),226); __d("WAWebCommunityOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="community-outline";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M19.992 17C20.0031 16.2628 20.0099 15.9937 19.9606 15.4041C19.9559 15.347 19.9506 15.2962 19.9447 15.253C19.9007 14.9282 19.8237 14.6238 19.7226 14.3419C19.68 14.2233 19.6332 14.1094 19.5828 13.9999C19.5738 13.9805 19.5647 13.9611 19.5555 13.942C19.4612 13.7454 19.355 13.5636 19.2404 13.3956C19.3264 13.392 19.4137 13.3898 19.5023 13.3892L19.5555 13.389C20.2632 13.389 20.8883 13.4899 21.401 13.6205C21.4627 13.6362 21.5228 13.6523 21.5813 13.6688L21.5915 13.6717L21.6087 13.6766C22.069 13.8088 22.5875 14.0227 23.0245 14.3595C23.4788 14.7097 23.8921 15.2338 23.9736 15.9559C24.0117 16.2932 24 16.0153 23.9908 16.4244C23.9744 17.1535 23.3769 19 22.6608 19H19.6869C19.8643 18.6252 19.9692 17.9298 19.9822 17.4856C19.985 17.3925 19.9887 17.2199 19.992 17Z",fill:"currentColor"}),j.jsx("path",{d:"M2.41872 13.6688C2.47715 13.6524 2.53726 13.6362 2.599 13.6205C3.11171 13.49 3.73676 13.389 4.44446 13.389L4.49762 13.3892C4.58626 13.3899 4.67357 13.3921 4.7595 13.3957C4.64492 13.5637 4.53872 13.7455 4.44444 13.942C4.43524 13.9612 4.42615 13.9805 4.41718 14C4.36671 14.1094 4.31992 14.2234 4.27738 14.342C4.17628 14.6239 4.09928 14.9283 4.05525 15.253C4.04938 15.2963 4.04409 15.347 4.03932 15.4041C3.99008 15.9938 3.99682 16.2629 4.00795 17C4.01127 17.22 4.01498 17.3926 4.01771 17.4857C4.03074 17.9298 4.13562 18.6252 4.31303 19H1.33916C0.623061 19 0.0256195 18.1535 0.00922726 17.4245C2.95136e-05 17.0154 -0.0117388 16.2932 0.0263682 15.9559C0.107939 15.2339 0.521192 14.7098 0.975466 14.3596C1.41245 14.0228 1.9309 13.8088 2.39128 13.6766L2.40848 13.6717L2.41872 13.6688Z",fill:"currentColor"}),j.jsx("mask",{id:"mask0_210_34",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:5,y:12,width:14,height:7,children:j.jsx("path",{d:"M6.37097 18.6728C6.22771 18.5403 6.10436 18.3762 6.00893 18.1973C5.88016 17.9559 5.80223 17.6876 5.79477 17.4335C5.77998 16.9291 5.757 15.9342 5.81696 15.4918C5.84373 15.2944 5.89027 15.111 5.95085 14.9421C6.02317 14.7405 6.11797 14.5597 6.2284 14.3977C6.44704 14.077 6.72693 13.8296 7.01492 13.6386C7.049 13.616 7.08319 13.5941 7.11741 13.5731C7.57939 13.2888 8.09607 13.1117 8.52836 12.9865C8.90312 12.878 9.34966 12.7693 9.85708 12.6823C10.4851 12.5746 11.2063 12.5001 12 12.5001C12.7938 12.5001 13.515 12.5746 14.143 12.6823C14.6504 12.7693 15.0969 12.878 15.4717 12.9865C15.904 13.1117 16.4207 13.2888 16.8826 13.5731C16.9169 13.5941 16.9511 13.616 16.9851 13.6386C17.2731 13.8296 17.553 14.077 17.7717 14.3977C17.8821 14.5597 17.9769 14.7405 18.0492 14.9421C18.1098 15.111 18.1563 15.2944 18.1831 15.4918C18.2431 15.9342 18.2201 16.9291 18.2053 17.4335C18.1978 17.6876 18.1199 17.9559 17.9911 18.1973C17.8957 18.3762 17.7723 18.5403 17.6291 18.6729C17.4139 18.872 17.1537 19 16.8757 19H7.12439C6.84638 19 6.5862 18.872 6.37097 18.6728Z",fill:"#54656F"})}),j.jsx("g",{mask:"url(#mask0_210_34)",children:j.jsx("path",{d:"M7.56768 14.4719L7.56768 14.4719C7.59198 14.4558 7.61659 14.4401 7.64147 14.4248L7.64147 14.4248C7.98806 14.2115 8.4022 14.0641 8.80649 13.9471C9.14887 13.8479 9.55891 13.7481 10.0261 13.6679C10.6043 13.5688 11.2688 13.5001 12 13.5001C12.7313 13.5001 13.3957 13.5688 13.974 13.6679C14.4411 13.7481 14.8512 13.8479 15.1936 13.9471C15.5979 14.0641 16.012 14.2115 16.3586 14.4248L16.3586 14.4248C16.3835 14.4401 16.4081 14.4558 16.4324 14.4719L16.9811 13.6446L16.4324 14.4719C16.6396 14.6094 16.8159 14.771 16.9454 14.9609L17.7717 14.3977L16.9454 14.9609C17.0104 15.0564 17.0656 15.1617 17.1079 15.2797C17.1457 15.3851 17.1751 15.5004 17.1922 15.6261L18.1831 15.4918L17.1922 15.6262C17.2383 15.9667 17.2217 16.8608 17.2057 17.4042C17.2034 17.4827 17.1757 17.6012 17.1088 17.7266L17.9911 18.1973L17.1088 17.7266C17.0607 17.8168 17.0035 17.8893 16.9499 17.9389L17.6291 18.6729L16.9499 17.9389C16.9101 17.9757 16.8804 17.9925 16.8663 17.9989C16.8653 17.9993 16.8644 17.9997 16.8637 18H7.1364C7.13563 17.9997 7.13475 17.9993 7.13377 17.9989C7.11966 17.9925 7.08998 17.9757 7.05017 17.9389C6.99657 17.8893 6.93934 17.8168 6.89125 17.7266C6.82433 17.6012 6.79665 17.4827 6.79434 17.4042C6.77841 16.8608 6.76173 15.9667 6.8079 15.6262C6.82495 15.5004 6.85436 15.3851 6.89215 15.2797C6.93448 15.1617 6.98966 15.0564 7.05471 14.9609L6.30134 14.4474L7.05471 14.9609C7.18421 14.771 7.36045 14.6094 7.56768 14.4719Z",stroke:"currentColor",strokeWidth:2})}),j.jsx("mask",{id:"mask1_210_34",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:8,y:4,width:8,height:8,children:j.jsx("path",{d:"M9.91613 9.03805L9.10219 9.61901L9.91613 9.03805C9.86836 8.97113 9.82379 8.90186 9.78264 8.83049L8.91633 9.33L9.78264 8.83049C9.56772 8.45776 9.44434 8.02519 9.44434 7.56C9.44434 7.42212 9.45517 7.28739 9.47586 7.15644C9.66888 5.93473 10.7278 5 11.9999 5C13.2719 5 14.3309 5.93473 14.5239 7.15644C14.5446 7.28739 14.5554 7.42212 14.5554 7.56C14.5554 8.02519 14.432 8.45776 14.2171 8.83049C14.176 8.90186 14.1314 8.97113 14.0836 9.03805C13.8774 9.32698 13.6122 9.57121 13.306 9.75311C12.9248 9.97956 12.4793 10.11 11.9999 10.11C11.5204 10.11 11.0749 9.97956 10.6937 9.75311C10.3875 9.57121 10.1224 9.32698 9.91613 9.03805Z",stroke:"currentColor",strokeWidth:2})}),j.jsx("g",{mask:"url(#mask1_210_34)",children:j.jsx("path",{d:"M15.0834 9.33C15.0261 9.42949 14.964 9.52593 14.8976 9.61901C14.6109 10.0206 14.2426 10.3599 13.8167 10.6129C13.285 10.9287 12.6637 11.11 11.9999 11.11C11.3361 11.11 10.7147 10.9287 10.183 10.6129C9.75719 10.3599 9.38885 10.0206 9.10219 9.61901C9.03575 9.52593 8.97369 9.42949 8.91633 9.33C8.61608 8.80927 8.44434 8.20499 8.44434 7.56C8.44434 7.36964 8.4593 7.18272 8.48811 7.00038C8.75647 5.30182 10.2266 4 11.9999 4C13.7732 4 15.2433 5.30182 15.5117 7.00038C15.5405 7.18272 15.5554 7.36964 15.5554 7.56C15.5554 8.20499 15.3837 8.80927 15.0834 9.33Z",fill:"currentColor"})}),j.jsx("path",{d:"M7.01994 10.0243C7.07943 9.80287 7.11115 9.57012 7.11115 9.33004C7.11115 8.65375 6.8594 8.03766 6.44449 7.56909C5.95586 7.01727 5.24095 6.67004 4.44449 6.67004C2.97174 6.67004 1.77783 7.85729 1.77783 9.33004C1.77783 10.232 2.22561 11.0306 2.91099 11.5142C3.34475 11.8202 3.87368 12 4.44449 12C4.57186 12 4.69716 11.9911 4.81976 11.9738C5.28441 11.9082 5.7106 11.7225 6.06612 11.4492C6.52468 11.0968 6.86567 10.5986 7.01994 10.0243Z",fill:"currentColor"}),j.jsx("path",{d:"M17.934 11.4493C18.2895 11.7225 18.7157 11.9082 19.1803 11.9738C19.3029 11.9911 19.4282 12 19.5556 12C20.1264 12 20.6553 11.8202 21.0891 11.5141C21.7745 11.0306 22.2222 10.232 22.2222 9.33004C22.2222 7.85729 21.0283 6.67004 19.5556 6.67004C18.7591 6.67004 18.0442 7.01727 17.5556 7.56909C17.1407 8.03766 16.8889 8.65375 16.8889 9.33004C16.8889 9.57012 16.9206 9.80287 16.9801 10.0243C17.1344 10.5986 17.4754 11.0968 17.934 11.4493Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CommunityOutlineIcon=a}),98); __d("WAWebCommunityTabIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="community-tab";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M19.992 17C20.0031 16.2628 20.0099 15.9937 19.9606 15.4041C19.9559 15.347 19.9506 15.2962 19.9447 15.253C19.9007 14.9282 19.8237 14.6238 19.7226 14.3419C19.68 14.2233 19.6332 14.1094 19.5828 13.9999C19.5738 13.9805 19.5647 13.9611 19.5555 13.942C19.4612 13.7454 19.355 13.5636 19.2404 13.3956C19.3264 13.392 19.4137 13.3898 19.5023 13.3892L19.5555 13.389C20.2632 13.389 20.8883 13.4899 21.401 13.6205C21.4627 13.6362 21.5228 13.6523 21.5813 13.6688L21.5915 13.6717L21.6087 13.6766C22.069 13.8088 22.5875 14.0227 23.0245 14.3595C23.4788 14.7097 23.8921 15.2338 23.9736 15.9559C24.0117 16.2932 24 16.0153 23.9908 16.4244C23.9744 17.1535 23.3769 19 22.6608 19H19.6869C19.8643 18.6252 19.9692 17.9298 19.9822 17.4856C19.985 17.3925 19.9887 17.2199 19.992 17Z",fill:"currentColor"}),j.jsx("path",{d:"M2.41872 13.6688C2.47715 13.6524 2.53726 13.6362 2.599 13.6205C3.11171 13.49 3.73676 13.389 4.44446 13.389L4.49762 13.3892C4.58626 13.3899 4.67357 13.3921 4.7595 13.3957C4.64492 13.5637 4.53872 13.7455 4.44444 13.942C4.43524 13.9612 4.42615 13.9805 4.41718 14C4.36671 14.1094 4.31992 14.2234 4.27738 14.342C4.17628 14.6239 4.09928 14.9283 4.05525 15.253C4.04938 15.2963 4.04409 15.347 4.03932 15.4041C3.99008 15.9938 3.99682 16.2629 4.00795 17C4.01127 17.22 4.01498 17.3926 4.01771 17.4857C4.03074 17.9298 4.13562 18.6252 4.31303 19H1.33916C0.623061 19 0.0256195 18.1535 0.00922726 17.4245C2.95136e-05 17.0154 -0.0117388 16.2932 0.0263682 15.9559C0.107939 15.2339 0.521192 14.7098 0.975466 14.3596C1.41245 14.0228 1.9309 13.8088 2.39128 13.6766L2.40848 13.6717L2.41872 13.6688Z",fill:"currentColor"}),j.jsx("path",{d:"M15.0834 9.33C15.0261 9.42949 14.964 9.52593 14.8976 9.61901C14.6109 10.0206 14.2426 10.3599 13.8167 10.6129C13.285 10.9287 12.6637 11.11 11.9999 11.11C11.3361 11.11 10.7147 10.9287 10.183 10.6129C9.75719 10.3599 9.38885 10.0206 9.10219 9.61901C9.03575 9.52593 8.97369 9.42949 8.91633 9.33C8.61608 8.80927 8.44434 8.20499 8.44434 7.56C8.44434 7.36964 8.4593 7.18272 8.48811 7.00038C8.75647 5.30182 10.2266 4 11.9999 4C13.7732 4 15.2433 5.30182 15.5117 7.00038C15.5405 7.18272 15.5554 7.36964 15.5554 7.56C15.5554 8.20499 15.3837 8.80927 15.0834 9.33Z",fill:"currentColor"}),j.jsx("path",{d:"M7.01994 10.0243C7.07943 9.80287 7.11115 9.57012 7.11115 9.33004C7.11115 8.65375 6.8594 8.03766 6.44449 7.56909C5.95586 7.01727 5.24095 6.67004 4.44449 6.67004C2.97174 6.67004 1.77783 7.85729 1.77783 9.33004C1.77783 10.232 2.22561 11.0306 2.91099 11.5142C3.34475 11.8202 3.87368 12 4.44449 12C4.57186 12 4.69716 11.9911 4.81976 11.9738C5.28441 11.9082 5.7106 11.7225 6.06612 11.4492C6.52468 11.0968 6.86567 10.5986 7.01994 10.0243Z",fill:"currentColor"}),j.jsx("path",{d:"M17.934 11.4493C18.2895 11.7225 18.7157 11.9082 19.1803 11.9738C19.3029 11.9911 19.4282 12 19.5556 12C20.1264 12 20.6553 11.8202 21.0891 11.5141C21.7745 11.0306 22.2222 10.232 22.2222 9.33004C22.2222 7.85729 21.0283 6.67004 19.5556 6.67004C18.7591 6.67004 18.0442 7.01727 17.5556 7.56909C17.1407 8.03766 16.8889 8.65375 16.8889 9.33004C16.8889 9.57012 16.9206 9.80287 16.9801 10.0243C17.1344 10.5986 17.4754 11.0968 17.934 11.4493Z",fill:"currentColor"}),j.jsx("path",{d:"M6.37097 18.6728C6.22771 18.5403 6.10436 18.3762 6.00893 18.1973C5.88016 17.9559 5.80223 17.6876 5.79477 17.4335C5.77998 16.9291 5.757 15.9342 5.81696 15.4918C5.84373 15.2944 5.89027 15.111 5.95085 14.9421C6.02317 14.7405 6.11797 14.5597 6.2284 14.3977C6.44704 14.077 6.72693 13.8296 7.01492 13.6386C7.049 13.616 7.08319 13.5941 7.11741 13.5731C7.57939 13.2888 8.09607 13.1117 8.52836 12.9865C8.90312 12.878 9.34966 12.7693 9.85708 12.6823C10.4851 12.5746 11.2063 12.5001 12 12.5001C12.7938 12.5001 13.515 12.5746 14.143 12.6823C14.6504 12.7693 15.0969 12.878 15.4717 12.9865C15.904 13.1117 16.4207 13.2888 16.8826 13.5731C16.9169 13.5941 16.9511 13.616 16.9851 13.6386C17.2731 13.8296 17.553 14.077 17.7717 14.3977C17.8821 14.5597 17.9769 14.7405 18.0492 14.9421C18.1098 15.111 18.1563 15.2944 18.1831 15.4918C18.2431 15.9342 18.2201 16.9291 18.2053 17.4335C18.1978 17.6876 18.1199 17.9559 17.9911 18.1973C17.8957 18.3762 17.7723 18.5403 17.6291 18.6729C17.4139 18.872 17.1537 19 16.8757 19H7.12439C6.84638 19 6.5862 18.872 6.37097 18.6728Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CommunityTabIcon=a}),98); __d("WAWebNewsletterTabIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="newsletter-tab";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterTabIcon=a}),98); __d("WAWebStatusIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="status";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("circle",{cx:12,cy:12,r:6,fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12C20 12.9267 19.8424 13.8166 19.5526 14.6444C19.3824 15.1305 19.5352 15.6866 19.9709 15.9613C20.4736 16.2782 21.1446 16.0964 21.3551 15.5406C21.7719 14.44 22 13.2466 22 12C22 7.15998 18.5615 3.12307 13.9941 2.19883C13.4118 2.08101 12.9 2.55153 12.9 3.14558C12.9 3.66061 13.2896 4.08652 13.7916 4.20139C17.3473 5.0149 20 8.19767 20 12ZM12 20C14.2014 20 16.1951 19.1108 17.6416 17.672C18.0063 17.3094 18.5733 17.208 19.0083 17.4823C19.5115 17.7995 19.6362 18.4841 19.2249 18.9138C17.4045 20.8156 14.8406 22 12 22C9.13243 22 6.54677 20.793 4.72334 18.8594C4.31526 18.4266 4.44515 17.7429 4.95068 17.4295C5.38777 17.1585 5.95401 17.2641 6.31591 17.6295C7.76573 19.0933 9.77697 20 12 20ZM3.9996 15.9013C4.43726 15.63 4.59424 15.075 4.42776 14.5877C4.15046 13.776 4 12.9056 4 12C4 8.19767 6.65269 5.0149 10.2084 4.20139C10.7104 4.08652 11.1 3.66061 11.1 3.14558C11.1 2.55153 10.5882 2.08101 10.0059 2.19883C5.4385 3.12307 2 7.15998 2 12C2 13.2201 2.21851 14.3892 2.61853 15.4702C2.82479 16.0276 3.49447 16.2145 3.9996 15.9013ZM12.0438 2.00009L12 2L11.9562 2.00009H12.0438Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.StatusIcon=a}),98); __d("WAWebStatusOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="status-outline";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M13.5627 3.13663C13.6586 2.59273 14.1793 2.22466 14.7109 2.37438C15.7904 2.67842 16.8134 3.16256 17.7359 3.80858C18.9322 4.64624 19.9304 5.73574 20.6605 7.0005C21.3906 8.26526 21.8348 9.67457 21.9619 11.1294C22.06 12.2513 21.9676 13.3794 21.691 14.4662C21.5548 15.0014 20.9756 15.2682 20.4567 15.0793C19.9377 14.8903 19.6769 14.317 19.7996 13.7785C19.9842 12.9693 20.0421 12.1343 19.9695 11.3035C19.8678 10.1396 19.5124 9.01218 18.9284 8.00038C18.3443 6.98857 17.5457 6.11697 16.5887 5.44684C15.9055 4.96844 15.1535 4.601 14.3605 4.3561C13.8328 4.19314 13.4668 3.68052 13.5627 3.13663Z",fill:"currentColor"}),j.jsx("path",{d:"M18.8943 17.785C19.3174 18.14 19.3758 18.7749 18.9803 19.1604C18.1773 19.9433 17.2465 20.5872 16.2257 21.0631C14.9022 21.6802 13.4595 22 11.9992 21.9999C10.5388 21.9998 9.09621 21.6798 7.77275 21.0625C6.75208 20.5865 5.82137 19.9424 5.01843 19.1595C4.62302 18.7739 4.68155 18.139 5.10467 17.784C5.52779 17.4291 6.15471 17.4898 6.55964 17.8654C7.16816 18.4298 7.86233 18.8974 8.61817 19.25C9.67695 19.7438 10.831 19.9998 11.9993 19.9999C13.1676 20 14.3217 19.7442 15.3806 19.2505C16.1365 18.898 16.8307 18.4304 17.4393 17.8661C17.8443 17.4906 18.4712 17.43 18.8943 17.785Z",fill:"currentColor"}),j.jsx("path",{d:"M3.54265 15.0781C3.02367 15.267 2.44458 15.0001 2.30844 14.4649C2.03202 13.3781 1.93978 12.2502 2.03794 11.1283C2.16521 9.67361 2.60953 8.26444 3.33966 6.99984C4.06979 5.73523 5.06802 4.64587 6.2642 3.80832C7.18668 3.1624 8.20962 2.67833 9.28902 2.37434C9.82063 2.22462 10.3413 2.59271 10.4372 3.1366C10.5331 3.6805 10.1671 4.19311 9.63938 4.35607C8.84645 4.60094 8.09446 4.96831 7.41133 5.44663C6.45439 6.11667 5.65581 6.98816 5.0717 7.99985C4.4876 9.01153 4.13214 10.1389 4.03032 11.3026C3.95764 12.1334 4.01547 12.9683 4.19986 13.7775C4.32257 14.3159 4.06162 14.8892 3.54265 15.0781Z",fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 16C14.2091 16 15.9999 14.2092 15.9999 12C15.9999 9.79088 14.2091 8.00002 11.9999 8.00002C9.7908 8.00002 7.99994 9.79088 7.99994 12C7.99994 14.2092 9.7908 16 11.9999 16ZM11.9999 18C15.3136 18 17.9999 15.3137 17.9999 12C17.9999 8.68631 15.3136 6.00002 11.9999 6.00002C8.68623 6.00002 5.99994 8.68631 5.99994 12C5.99994 15.3137 8.68623 18 11.9999 18Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.StatusOutlineIcon=a}),98); __d("WAWebNavBarUtils",["WAWebArchivedFilledIcon.react","WAWebArchivedOutlineIcon.react","WAWebCommunityOutlineIcon.react","WAWebCommunityTabIcon.react","WAWebNavBarTypes","WAWebNewsletterOutlineIcon.react","WAWebNewsletterTabIcon.react","WAWebStatusIcon.react","WAWebStatusOutlineIcon.react","WAWebUnreadActivityIndicator.react","err","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||c("react");a={height:24,width:24};var j={activeIcons:{read:i.jsx(d("WAWebStatusIcon.react").StatusIcon,{})},inactiveIcons:{read:i.jsx(d("WAWebStatusOutlineIcon.react").StatusOutlineIcon,{})}},k={activeIcons:{read:i.jsx(d("WAWebCommunityTabIcon.react").CommunityTabIcon,babelHelpers["extends"]({},a))},inactiveIcons:{read:i.jsx(d("WAWebCommunityOutlineIcon.react").CommunityOutlineIcon,babelHelpers["extends"]({},a))}},l={activeIcons:{read:i.jsx(d("WAWebArchivedFilledIcon.react").ArchivedFilledIcon,babelHelpers["extends"]({},a))},inactiveIcons:{read:i.jsx(d("WAWebArchivedOutlineIcon.react").ArchivedOutlineIcon,babelHelpers["extends"]({},a))}},m={activeIcons:{read:i.jsx(d("WAWebNewsletterTabIcon.react").NewsletterTabIcon,babelHelpers["extends"]({},a))},inactiveIcons:{read:i.jsx(d("WAWebNewsletterOutlineIcon.react").NewsletterOutlineIcon,babelHelpers["extends"]({},a))}},n=function(a){switch(a){case d("WAWebNavBarTypes").NavBarItems.Status:return j;case d("WAWebNavBarTypes").NavBarItems.Communities:return k;case d("WAWebNavBarTypes").NavBarItems.Newsletters:return m;case d("WAWebNavBarTypes").NavBarItems.Archived:return l;default:throw c("err")("_getAllIconForNavBarItem: trying to get icons for an unsupported navbar item")}};b=function(a,b,c){a=n(a);b=b?a.activeIcons:a.inactiveIcons;return c?i.jsxs("div",babelHelpers["extends"]({className:"x1n2onr6"},{children:[b.read,i.jsx("div",babelHelpers["extends"]({className:"x10l6tqk x1nc75zl xjifam0"},{children:i.jsx(d("WAWebUnreadActivityIndicator.react").UnreadActivityIndicator,{})}))]})):b.read};g.getNavBarIcon=b}),98); __d("WAWebCommunityTabMenuBarItem.react",["fbt","WAWebCommunityActivityCollection","WAWebMenuBar.react","WAWebNavBarTypes","WAWebNavBarUtils","WAWebTabOrder","react","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.onClick,e=a.ref,f=a.selected;f=f===void 0?!1:f;a=a.vertical;var g=c("useWAWebEventTargetValue")(c("WAWebCommunityActivityCollection"),"add change remove community_tab_view",function(){return c("WAWebCommunityActivityCollection").shouldShowTabBadge()});g=d("WAWebNavBarUtils").getNavBarIcon(d("WAWebNavBarTypes").NavBarItems.Communities,f,g);return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{ref:e,testid:void 0,title:h._(/*BTDS*/"__JHASH__aaABNHvXhPE__JHASH__"),tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:g,onClick:b,theme:"force-size",vertical:a,selected:f,showHoverTooltip:!0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebComposeBox.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={footer:"_ak1i",botSuggestions:"_anyz",boxPanelWrapper:"_ak1m",pttComposerActive:"_ak1n",textMessageComposerContainer:"_ak1q",textMessageComposerInputContainer:"_ak1r",pttComposerContainer:"_ak1s",focusAnimation:"_ak1v"};b=a;g["default"]=b}),98); __d("WAWebConversationNewBanner.react",["WAWebButton.react","WAWebFlex.react","WAWebText.react","react","useWAWebWindowSize"],(function(a,b,c,d,e,f,g){var h,i=h||d("react"),j=1250,k={wrapper:{borderStartWidth:"xy80clv",borderStartStyle:"x26u7qi",borderStartColor:"x1mmk74n",$$css:!0},container:{borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",backgroundColor:"x1qlhaiu",display:"x78zum5",justifyContent:"x1l1ennw",$$css:!0}};function a(a){var b=a.buttons,e=a.primaryText,f=a.secondaryText;a=a.testId;a=c("useWAWebWindowSize")();a=a.width;a=a<=j?d("WAWebFlex.react").FlexColumn:d("WAWebFlex.react").FlexRow;return i.jsx(d("WAWebFlex.react").FlexColumn,{padding:8,xstyle:k.wrapper,children:i.jsxs(a,{alignSelf:"stretch",align:"center",justify:"all",xstyle:k.container,padding:[16,16,16,16],gap:16,testid:void 0,children:[i.jsxs(d("WAWebFlex.react").FlexColumn,{children:[i.jsx(d("WAWebText.react").WAWebTextTitle,{children:e}),f!=null&&i.jsx(d("WAWebText.react").WAWebTextMuted,{children:f})]}),i.jsx(d("WAWebButton.react").ButtonGroup,{direction:"horizontal",shrink:0,children:b})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebRoundSendInvIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="round-send-inv";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=35;m=35;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 35 35",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 35 35",children:[j.jsx("title",{children:k}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.RoundSendInvIcon=a}),98); __d("WAWebConversationSpam.react",["fbt","WAWebBlockContactUtils","WAWebBlockContants","WAWebBlocklistCollection","WAWebBlocklistUtils","WAWebBox.react","WAWebBusinessProfileTypes","WAWebButton.react","WAWebChatGetters","WAWebChatGroupUtils","WAWebClickableLink.react","WAWebCmd","WAWebContactGetters","WAWebConversationNewBanner.react","WAWebDrawerManager","WAWebExitIcon.react","WAWebFbtCommon","WAWebFrontendChatGetters","WAWebFrontendContactGetters","WAWebGroupGatingUtils","WAWebGroupSafetyCheckGatingUtils","WAWebGroupSafetyToolsModal.react","WAWebLeaveCommunityModal.react","WAWebMiscGatingUtils","WAWebModalManager","WAWebPrivacyVisibilityEditDrawer.react","WAWebReportContactPopup.react","WAWebReportSpamPopup.react","WAWebRoundSendInvIcon.react","WAWebSendSpamChatAction","WAWebSettingsBlockedIcon.react","WAWebSpamConstants","WAWebSuspendedGroupUtils","WAWebSvgComponentBase","WAWebThumbsDownIcon.react","WAWebUISpacing","WAWebUnstyledButton.react","WAWebXIcon.react","fbs","react","useWAWebChatValues","useWAWebContactValues","useWAWebForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={link:{display:"xt0psk2",$$css:!0}};function a(a){var b,e,f=a.chat,g=a.contact,i=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();b=d("useWAWebChatValues").useChatValues(a.chat.id,[(b=d("WAWebChatGetters")).getId,b.getIsPSA,b.getIsIAS,(e=d("WAWebFrontendChatGetters")).getShouldAppearInList,e.getTrusted,b.getIsGroup,e.getContact,e.getGroupMetadata]);e=b[0];var m=b[1],n=b[2],o=b[3],p=b[4],q=b[5];b[6];var r=b[7];b=d("useWAWebContactValues").useContactValues(a.contact.id,[(b=d("WAWebContactGetters")).getId,b.getIsBusiness,b.getIsSupportAccount,b.getVerifiedLevel,d("WAWebFrontendContactGetters").getFormattedName,b.getIsMe,d("WAWebFrontendContactGetters").getBusinessProfile,b.getIsMyContact]);b[0];var s=b[1],t=b[2],u=b[3];b[4];var v=b[5];b[6];b[7];d("useWAWebListener").useListener(d("WAWebBlocklistCollection").BlocklistCollection,["add","remove","reset"],i);var w=function(){void d("WAWebSendSpamChatAction").sendReport({chat:f,spamFlow:q===!0?d("WAWebSpamConstants").SpamFlow.GroupSpamBannerReport:d("WAWebSpamConstants").SpamFlow.OneToOneChatSpamBannerReport}),d("WAWebModalManager").ModalManager.close()},x=function(){void d("WAWebSendSpamChatAction").sendSpamExitClear(f,d("WAWebSpamConstants").SpamFlow.GroupSpamBannerReport),d("WAWebModalManager").ModalManager.close()},y=function(){void d("WAWebSendSpamChatAction").sendSpamBlockClear(f,d("WAWebSpamConstants").SpamFlow.OneToOneChatSpamBannerReport),d("WAWebModalManager").ModalManager.close()};b=function(){var a=r==null?void 0:r.getParentGroupChat();a!=null&&d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(f)?d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebLeaveCommunityModal.react").LeaveCommunityModal,{chat:a,enableDeactivateIfSuperAdmin:!0})):d("WAWebChatGroupUtils").isGroupExitExperienceEnabledForChat(f)?d("WAWebSuspendedGroupUtils").openLeaveAndReportGroupModal(f,d("WAWebSpamConstants").SpamFlow.GroupSpamBannerReport):d("WAWebCmd").Cmd.deleteOrExitChat(f)};i=function(){if(!q&&d("WAWebBlocklistUtils").isRBIRevampedBlockReportDesignEnabled()){d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebReportContactPopup.react").ReportContactPopupV2,{chat:f,spamFlow:d("WAWebSpamConstants").SpamFlow.OneToOneChatSpamBannerReport}));return}d("WAWebModalManager").ModalManager.open(q?j.jsx(c("WAWebReportSpamPopup.react"),{isMessage:!1,isGroupChat:!0,onReport:w,onReportExitClear:x,onCancel:function(){return d("WAWebModalManager").ModalManager.close()}}):j.jsx(c("WAWebReportSpamPopup.react"),{isMessage:!1,isBusiness:s,isGroupChat:!1,onReport:w,onReportBlockClear:y,onCancel:function(){return d("WAWebModalManager").ModalManager.close()}}))};var z=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(c("WAWebPrivacyVisibilityEditDrawer.react"),{onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},category:"groupAdd"}))},A=function(){d("WAWebGroupSafetyToolsModal.react").displayGroupSafetyToolsModal()};if(m||n||!o||p||t||v)return null;m=d("WAWebBlocklistCollection").BlocklistCollection.get(e);n=d("WAWebButton.react").WAWebButtonSecondary;o=d("WAWebButton.react").WAWebButtonSecondaryDestructive;p=d("WAWebGroupSafetyCheckGatingUtils").groupSafetyCheckEnabled()?h._(/*BTDS*/"__JHASH__cMdMjIRnseq__JHASH__"):c("WAWebFbtCommon")("OK");t=j.jsx(n,{testid:void 0,onClick:a.onClickNotSpam,icon:d("WAWebRoundSendInvIcon.react").RoundSendInvIcon,children:p},"not_spam");v=j.jsx(c("WAWebUnstyledButton.react"),{testid:void 0,onClick:a.onClickDismissSpam,role:"button",xstyle:[d("WAWebUISpacing").uiMargin.topAuto,d("WAWebUISpacing").uiMargin.bottomAuto],children:j.jsx(d("WAWebXIcon.react").XIcon,{height:24,width:24,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.GRAY_LIGHTER})},"dismiss_spam");e=j.jsx(o,{testid:void 0,onClick:i,icon:d("WAWebThumbsDownIcon.react").ThumbsDownIcon,children:h._(/*BTDS*/"__JHASH__lmNWNj4RDIv__JHASH__")},"report_spam");p=j.jsx(o,{testid:void 0,onClick:b,icon:d("WAWebExitIcon.react").ExitIcon,children:l(f)},"exit_group");var B,C;a=[];q?(d("WAWebGroupSafetyCheckGatingUtils").groupSafetyCheckEnabled()?i=h._(/*BTDS*/"__JHASH__Z4bGIUQ01g___JHASH__",[h._param("safety_tools",j.jsx(c("WAWebClickableLink.react"),{onClick:A,xstyle:k.link,children:c("fbs")._(/*BTDS*/"__JHASH__Dc0spoc01Pz__JHASH__")}))]):(i=h._(/*BTDS*/"__JHASH__xoe_b-sdvPK__JHASH__"),B=h._(/*BTDS*/"__JHASH__sNsqCOsH0Gk__JHASH__",[h._implicitParam("=m2",j.jsx(c("WAWebClickableLink.react"),{onClick:z,xstyle:k.link,children:h._(/*BTDS*/"__JHASH__EX87RN9WDOW__JHASH__")}))])),a.push(e),a.push(p),a.push(t)):(i=j.jsx(d("WAWebBox.react").Box,{xstyle:d("WAWebUISpacing").uiPadding.end15,children:h._(/*BTDS*/"__JHASH__Wo9DdALigPb__JHASH__")}),s&&(u!==d("WAWebBusinessProfileTypes").VERIFIED_LEVEL.HIGH?i=h._(/*BTDS*/"__JHASH__g_IJrWB_k-u__JHASH__"):u===d("WAWebBusinessProfileTypes").VERIFIED_LEVEL.HIGH?i=d("WAWebMiscGatingUtils").isBlueStringsEnabled()?h._(/*BTDS*/"__JHASH__tJA4t9pbdwk__JHASH__"):h._(/*BTDS*/"__JHASH__F3njffzzKpt__JHASH__"):i=h._(/*BTDS*/"__JHASH__EY0lxbH6b-w__JHASH__")),m?C=j.jsx(n,{testid:void 0,onClick:function(){return d("WAWebBlockContactUtils").handleUnblock(g,s?d("WAWebBlockContants").BlockEntryPoint.BizSpamBannerBlock:d("WAWebBlockContants").BlockEntryPoint.OneToOneOldSpamBannerBlock)},grow:1,children:c("WAWebFbtCommon")("Unblock")},"unblock"):C=j.jsx(o,{testid:void 0,onClick:function(){return d("WAWebBlockContactUtils").handleBlock(f,s?d("WAWebBlockContants").BlockEntryPoint.BizSpamBannerBlock:d("WAWebBlockContants").BlockEntryPoint.OneToOneOldSpamBannerBlock)},icon:d("WAWebSettingsBlockedIcon.react").SettingsBlockedIcon,grow:1,children:c("WAWebFbtCommon")("Block")},"block"),a.push(e,C,t));q?b=[p,t]:s?b=[C,t]:b=[C,v];return j.jsx(c("WAWebConversationNewBanner.react"),{primaryText:i,secondaryText:B,buttons:b})}a.displayName=a.name+" [from "+f.id+"]";function l(a){if(d("WAWebGroupGatingUtils").isGroupExitExperienceEnabled()&&!d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(a))return c("WAWebFbtCommon")("Exit Group");if(d("WAWebGroupSafetyCheckGatingUtils").groupSafetyCheckEnabled())return h._(/*BTDS*/"__JHASH__c9cLTwxA5Tc__JHASH__");return d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(a)?c("WAWebFbtCommon")("Exit Community"):c("WAWebFbtCommon")("Leave Group")}g["default"]=a}),226); __d("WAWebComposeBoxPopupPanels.react",["WAWebAnimationGroup","WAWebAnimationGroupItem.react","WAWebBizCtwaContextImagePreview.react","WAWebChatGetters","WAWebChatInternalStatusHookWrapper","WAWebComposeBoxExpressionPanels.react","WAWebComposeBoxPanelsMenu.react","WAWebComposeBoxPopupPanel.react","WAWebConversationSpam.react","WAWebFocusIndicator","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebMediaLinkPreview.react","WAWebMediaLinkPreviewContainer.react","WAWebQuotedMsg.react","WAWebQuotedMsgAdminGroupName.react","WAWebResizeObserver.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUim","WAWebUimUie.react","WAWebVelocityTransitionGroup","cr:5981","gkx","react","stylex","useWAWebChatValues","useWAWebForceUpdate","useWAWebListener","useWAWebMeasure","useWAWebSetModelValue"],(function(a,b,c,d,e,f,g){var h,i,j;e=j||d("react");var k=h||(h=c("react")),l=e.useEffect,m=e.useImperativeHandle,n=e.useRef,o={overlay:{position:"x10l6tqk",bottom:"x1ey2m1c",start:"x17qophe",left:null,right:null,boxSizing:"x9f619",width:"xh8yej3",$$css:!0},overlayRefresh:{width:"x8pckko",$$css:!0},topPanelContainer:{borderTopStartRadius:"xhw592a",borderTopEndRadius:"xwihvcr",boxShadow:"xkfubxc",display:"x1lliihq",$$css:!0},topPanelContainerMaxWidth:{maxWidth:"xazf962",$$css:!0}};function p(a){var b=a.chat,d=a.onClickDismissSpam;a=a.onClickNotSpam;return k.jsx(c("WAWebConversationSpam.react"),{chat:b,contact:b.contact,onClickNotSpam:a,onClickDismissSpam:d})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.getComposeBlockWidth,e=a.onEmoji,f=a.onExpressionPanelChange,g=a.onExpressionPanelClose,h=a.onGif,i=a.onSticker,j=a.ref,l=a.restoreFocus;a=a.selectedExpressionPanel;var o=n(null),p=n(),q=function(a){p.current=a};m(j,function(){return{restoreFocus:function(a){var b;(b=o.current)==null?void 0:b.restoreFocus(a)}}});j=c("useWAWebMeasure")();var r=j[0];j=j[1];j=j.width>0?j.width:b();b=function(){c("WAWebFocusIndicator").shouldIndicateFocus(),l()};return k.jsx(c("WAWebAnimationGroupItem.react"),{ref:r,children:k.jsx(c("WAWebComposeBoxExpressionPanels.react"),{displayCache:p.current,width:j,onDisplayCache:q,onEmoji:e,onFocusRelease:b,onGif:h,onExpressionPanelChange:f,onSticker:i,requestDismiss:g,ref:o,selectedExpressionPanel:a,theme:d("WAWebComposeBoxPanelsMenu.react").PanelsTheme.ChatComposeBox})})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.attachmentButtonHidden,e=a.chat,f=a.isTopmostPanel,g=a.rawQuotedMsg,h=a.ref;a=a.restoreFocus;var i=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();d("useWAWebListener").useListener(e.composeQuotedMsg,"change:latestEditMsgKey",i);var j=d("useWAWebSetModelValue").useSetModelValue(e,"composeQuotedMsg");i=function(a){a===void 0&&(a=d("WAWebUim").DismissReason.UIM_INTERACTION);if(a===d("WAWebUim").DismissReason.LIFECYCLE)return;j(null)};return k.jsx(d("WAWebUimUie.react").UIE,{ref:h,displayName:"ComposeBoxQuotedMsg",escapable:!0,requestFocus:a,requestDismiss:i,children:k.jsx(c("WAWebComposeBoxPopupPanel.react"),{onOmit:i,attachmentButtonHidden:b,isTopmostPanel:f,children:k.jsx(c("WAWebQuotedMsg.react"),{msg:g.safe(),composeQuotedMsgRemoteJid:e.composeQuotedMsgRemoteJid,theme:"composeBox",chat:d("WAWebFrontendMsgGetters").getChat(g)},g.id.toString())})})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b=a.attachmentButtonHidden,e=a.chat,f=a.quotedGroupJid,g=a.ref;a=a.restoreFocus;var h=d("useWAWebSetModelValue").useSetModelValue(e,"quotedMsgAdminGroupJid"),i=function(a){a===void 0&&(a=d("WAWebUim").DismissReason.UIM_INTERACTION);if(a===d("WAWebUim").DismissReason.LIFECYCLE)return;h(null)};return k.jsx(d("WAWebUimUie.react").UIE,{ref:g,displayName:"QuotedMsgAdminGroupName",escapable:!0,requestFocus:a,requestDismiss:i,children:k.jsx(c("WAWebComposeBoxPopupPanel.react"),{onOmit:i,attachmentButtonHidden:b,isTopmostPanel:!0,children:k.jsx(d("WAWebQuotedMsgAdminGroupName.react").QuotedMsgAdminGroupName,{isComposePreview:!0,quotedGroupJid:f,quotedParentGroupJid:e.quotedMsgAdminGroupSubject!=null?e.quotedMsgAdminParentGroupJid:void 0,quotedGroupSubject:e.quotedMsgAdminGroupSubject},f.toString())})})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b=a.attachmentButtonHidden,e=a.isTopmostPanel,f=a.isUiRefreshM1Enabled,g=a.linkPreviewData,h=a.omitLinkPreview;a=a.ref;var i=g.title,j=g.matchedText,l=g.description,m=g.thumbnail,n=g.inviteGrpType,o=g.isLoading,p=g.thumbnailHQ,q=g.thumbnailWidth;g=g.thumbnailHeight;f=f?d("WAWebMediaLinkPreviewContainer.react").getHostnameForUrl(j):j;return k.jsx(d("WAWebUimUie.react").UIE,{ref:a,displayName:"ComposeBoxLinkPreview",escapable:!0,requestDismiss:h,children:k.jsx("div",{"data-testid":void 0,children:k.jsx(c("WAWebComposeBoxPopupPanel.react"),{onOmit:h,bodyBackground:!1,attachmentButtonHidden:b,isTopmostPanel:e,children:k.jsx(c("WAWebMediaLinkPreview.react"),{title:i,compose:!0,thumbnailJpegHQ:p,matchedText:(a=f)!=null?a:j,description:l,thumbnailJpeg:m,inviteGrpType:n,isLoading:o,thumbnailJpegWidth:q,thumbnailJpegHeight:g})})})})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.attachmentButtonHidden,e=a.ctwaContextData,f=a.ctwaContextLinkData,g=a.isTopmostPanel,h=a.omitCtwa;a=a.ref;return k.jsx(d("WAWebUimUie.react").UIE,{ref:a,displayName:"ComposeBoxCtwaContextPreview",escapable:!0,requestDismiss:h,children:k.jsx(c("WAWebComposeBoxPopupPanel.react"),{onOmit:h,attachmentButtonHidden:b,isTopmostPanel:g,children:k.jsx(c("WAWebBizCtwaContextImagePreview.react"),{context:e,sourceUrl:f.sourceUrl,compose:!0})})})}u.displayName=u.name+" [from "+f.id+"]";function a(a,e){var f,g=e.chat,h=e.linkPreviewData,j=e.ctwaContextLinkData,m=e.ctwaContextData,v=e.restoreFocus,w=e.selectedExpressionPanel,x=e.getComposeBlockWidth,y=e.onComposeHeightChange,z=e.omitLinkPreview,A=e.omitCtwa,B=e.attachmentButtonHidden,C=e.onEmoji,D=e.onGif,E=e.onExpressionPanelChange,F=e.onSticker,G=e.onExpressionPanelClose,H=e.showSpamPanel,I=e.onClickNotSpam;e=e.onClickDismissSpam;var J=n(null),K=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),L=[],M=[];f=d("useWAWebChatValues").useChatValues(g.id,[d("WAWebChatGetters").getIsPSA,(f=d("WAWebFrontendChatGetters")).getShouldAppearInList,f.getComposeQuotedMsg,f.getComposeQuotedMsgRemoteJid,f.getQuotedMsgAdminGroupJid,f.getQuotedMsgAdminGroupSubject,f.getQuotedMsgAdminParentGroupJid,f.getMsgs,f.getContact]);var N=f[0],O=f[1],P=f[2];f[3];var Q=f[4];f[5];f[6];var R=f[7];f[8];H&&!N&&O&&R&&R.length>0?M.push(k.jsx(p,{chat:g,onClickNotSpam:I,onClickDismissSpam:e})):M.push(null);w&&x()!=null?M.push(k.jsx(q,{getComposeBlockWidth:x,onEmoji:C,onExpressionPanelChange:E,onExpressionPanelClose:G,onGif:D,onSticker:F,restoreFocus:v,ref:a,selectedExpressionPanel:w})):M.push(null);H=(f=c("WAWebChatInternalStatusHookWrapper")(g.id))!=null?f:{};N=H.hasStatus;c("gkx")("26258")===!1&&d("WAWebChatGetters").getIsGroup(g)===!1&&b("cr:5981")!=null&&N===!0?L.push(k.jsx(b("cr:5981").InternalStatusWarningComposeBox,{id:g.contact.id,borders:!0,renderImmediately:!0})):L.push(null);P?L.push(k.jsx(r,{chat:g,attachmentButtonHidden:B,rawQuotedMsg:P,isTopmostPanel:L.filter(Boolean).length===0,restoreFocus:v})):Q?L.push(k.jsx(s,{chat:g,restoreFocus:v,quotedGroupJid:Q})):L.push(null);h?L.push(k.jsx(t,{linkPreviewData:h,isTopmostPanel:L.filter(Boolean).length===0,omitLinkPreview:z,isUiRefreshM1Enabled:K})):L.push(null);j?L.push(k.jsx(u,{ctwaContextLinkData:j,isTopmostPanel:L.filter(Boolean).length===0,omitCtwa:A,ctwaContextData:m})):L.push(null);O=L.filter(Boolean).length>0;R=[o.overlay];K&&(R.push(o.overlayRefresh,d("WAWebUISpacing").uiMargin.horiz12),O&&R.push(d("WAWebUISpacing").uiMargin.top6));l(function(){K&&S()},[]);I=function(a,b){b===void 0&&(b=!1),y({overlay:a},b)};var S=function(){var a;a=J==null?void 0:(a=J.current)==null?void 0:a.clientHeight;y({overlay:a},!0)};e=k.jsx("div",babelHelpers["extends"]({className:"x10l6tqk x13vifvy x17qophe xh8yej3"},{children:k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(R),{ref:J,children:K?k.jsxs(k.Fragment,{children:[M,k.jsx(c("WAWebResizeObserver.react"),{onResize:S,children:k.jsx(c("WAWebVelocityTransitionGroup"),{displayName:"ComposeBoxPanels",transitionName:"compose-panel-down",xstyle:[o.topPanelContainer,d("WAWebUISpacing").uiMargin.horizAuto,d("WAWebUIRefreshGatingUtils").restrictMessageListWidth()===!0&&o.topPanelContainerMaxWidth],children:L})})]}):k.jsx(c("WAWebAnimationGroup"),{onHeightChange:I,children:[].concat(M,L).map(function(a,b){return a!=null?k.jsx(c("WAWebAnimationGroupItem.react"),{children:a},b):null})})}))}));return{PopupPanels:e,hasTopPanels:O}}g.useComposePopupPanels=a}),98); __d("WAWebExpressionsIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="expressions";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M8.49893 10.2521C9.32736 10.2521 9.99893 9.5805 9.99893 8.75208C9.99893 7.92365 9.32736 7.25208 8.49893 7.25208C7.6705 7.25208 6.99893 7.92365 6.99893 8.75208C6.99893 9.5805 7.6705 10.2521 8.49893 10.2521Z",fill:"currentColor"}),j.jsx("path",{d:"M17.0011 8.75208C17.0011 9.5805 16.3295 10.2521 15.5011 10.2521C14.6726 10.2521 14.0011 9.5805 14.0011 8.75208C14.0011 7.92365 14.6726 7.25208 15.5011 7.25208C16.3295 7.25208 17.0011 7.92365 17.0011 8.75208Z",fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8221 19.9799C15.5379 21.2537 13.8087 21.9781 12 22H9.27273C5.25611 22 2 18.7439 2 14.7273V9.27273C2 5.25611 5.25611 2 9.27273 2H14.7273C18.7439 2 22 5.25611 22 9.27273V11.8141C22 13.7532 21.2256 15.612 19.8489 16.9776L16.8221 19.9799ZM14.7273 4H9.27273C6.36068 4 4 6.36068 4 9.27273V14.7273C4 17.6393 6.36068 20 9.27273 20H11.3331C11.722 19.8971 12.0081 19.5417 12.0058 19.1204L11.9935 16.8564C11.9933 16.8201 11.9935 16.784 11.9941 16.7479C11.0454 16.7473 10.159 16.514 9.33502 16.0479C8.51002 15.5812 7.84752 14.9479 7.34752 14.1479C7.24752 13.9479 7.25585 13.7479 7.37252 13.5479C7.48919 13.3479 7.66419 13.2479 7.89752 13.2479L13.5939 13.2479C14.4494 12.481 15.5811 12.016 16.8216 12.0208L19.0806 12.0296C19.5817 12.0315 19.9889 11.6259 19.9889 11.1248V9.07648H19.9964C19.8932 6.25535 17.5736 4 14.7273 4ZM14.0057 19.1095C14.0066 19.2605 13.9959 19.4089 13.9744 19.5537C14.5044 19.3124 14.9926 18.9776 15.4136 18.5599L18.4405 15.5576C18.8989 15.1029 19.2653 14.5726 19.5274 13.996C19.3793 14.0187 19.2275 14.0301 19.0729 14.0295L16.8138 14.0208C15.252 14.0147 13.985 15.2837 13.9935 16.8455L14.0057 19.1095Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ExpressionsIcon=a}),98); __d("WAWebGetExpressionsPanelOffset",["WAWebDropdown.react","WAWebL10N"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var e=c("WAWebL10N").isRTL(),f=b.height;b=b.width;var g=e?a.x+a.width:a.x;g=e?g-a.width/2+d("WAWebDropdown.react").getEmojiPickerWidth()/2-6:g+a.width/2-d("WAWebDropdown.react").getEmojiPickerWidth()/2+6;f=f-a.y+20;return{horizontal:e?Math.abs(g-b):g,vertical:f}}g.getExpressionsPanelOffset=a}),98); __d("WAWebGifRefreshedNewIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="gif-refreshed-new";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M4 18q-.824 0-1.412-.587A1.93 1.93 0 0 1 2 16V8q0-.824.587-1.412A1.93 1.93 0 0 1 4 6h5a1 1 0 0 1 0 2H4v8h4v-3H7a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1v4q0 .824-.588 1.413A1.93 1.93 0 0 1 8 18zm9 0a1 1 0 0 1-1-1V7a1 1 0 1 1 2 0v10a1 1 0 0 1-1 1m4 0a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-4v3h3a1 1 0 1 1 0 2h-3v4a1 1 0 0 1-1 1",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.GifRefreshedNewIcon=a}),98); __d("WAWebExpressionsPanelPicker.react",["fbt","ReactDOM","WANullthrows","WAWebAttachMenuGatingUtils","WAWebCmd","WAWebComposeBoxPanelTypes","WAWebDrawerManager","WAWebDropdown.react","WAWebEmojiPanel.react","WAWebEmojiRefreshedIcon.react","WAWebExpressionsIcon.react","WAWebFlex.react","WAWebGetExpressionsPanelOffset","WAWebGifIcon.react","WAWebGifPanel.react","WAWebGifRefreshedNewIcon.react","WAWebIconTabs.react","WAWebL10N","WAWebModalManager","WAWebPanelsDisplayLocation","WAWebSmileyIcon.react","WAWebStickerIcon.react","WAWebStickerPanel.react","WAWebStickerRefreshedIcon.react","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUimUie.react","WAWebUnstyledButton.react","WAWebUserPrefsGeneral","WAWebVelocityTransitionGroup","WDSFocusStateStyles","asyncToGeneratorRuntime","react","stylex","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j,k;e=k||d("react");var l=i||(i=c("react")),m=e.useImperativeHandle,n=e.useRef,o=e.useState,p={button:{color:"xfect85",$$css:!0},buttonRefresh:{color:"xzwifym",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",width:"x100vrsf",height:"x1vqgdyp",$$css:!0},activeButton:{color:"xjudz8i",$$css:!0},activeButtonRefresh:{backgroundColor:"x1786zcw",$$css:!0},tabsContainer:{borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xao2bj1",height:"xsdox4t",$$css:!0},tab:{width:"x1ig0tib",height:"x1pwvq5b",$$css:!0},expressionsPanelPickerWrapper:{display:"x78zum5",flex:"x98rzlu",alignItems:"xuk3077",alignSelf:"xpvyfi4",$$css:!0},expressionsPanelPickerWrapperRefresh:{minWidth:"x1fns5xo",alignItems:"x6s0dn4",justifyContent:"xl56j7k",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",":active_backgroundColor":"xyklrzc",":hover_backgroundColor":"x1ry1tff",$$css:!0}};function a(a){var e=a.getComposeBoxEditorRef,f=a.iconWidth,g=a.onEmoji,i=a.onGif,k=a.onSticker,q=a.onStickerFromStore,r=a.onToggleActive,s=a.ref;a=a.wrapperRef;var t=o(!1),u=t[0],v=t[1];t=o(d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.EMOJI);var w=t[0],x=t[1],y=[d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.EMOJI,i?d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.GIF:null,k?d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.STICKER:null].filter(Boolean),z=function(a){return y.includes(a)},A=n(null),B=n(null),C=n(null);t=o("");var D=t[0],E=t[1];t=o(null);var F=t[0];t=t[1];var G=o(!1),H=G[0],I=G[1],J=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),K=c("WAWebL10N").isRTL(),L=function(a){v(a),r==null?void 0:r(a)};G=function(a){E(a)};var M=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(u||(yield d("WAWebModalManager").ModalManager.existsAsync()))return;x(a);L(!0)});return function(b){return a.apply(this,arguments)}}(),N=function(){E(""),L(!1)},O=function(){if(u)L(!1);else{var a=d("WAWebUserPrefsGeneral").getLastComposeBoxExpressionPanel();x(z(a)?a:d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.EMOJI);L(!0)}},P=y.map(function(a){if(a===d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.EMOJI)return{Icon:J?d("WAWebEmojiRefreshedIcon.react").EmojiRefreshedIcon:d("WAWebSmileyIcon.react").SmileyIcon,iconStyle:p.tab,testid:"expressions-btn-emoji",ariaLabel:h._(/*BTDS*/"__JHASH__tJd2_iASRmu__JHASH__")};if(a===d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.GIF)return{Icon:J?d("WAWebGifRefreshedNewIcon.react").GifRefreshedNewIcon:d("WAWebGifIcon.react").GifIcon,iconStyle:p.tab,testid:"expressions-btn-gif",ariaLabel:h._(/*BTDS*/"__JHASH__fgcair3r9qj__JHASH__")};if(a===d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.STICKER)return z(d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.STICKER)?{Icon:J?d("WAWebStickerRefreshedIcon.react").StickerRefreshedIcon:d("WAWebStickerIcon.react").StickerIcon,iconStyle:p.tab,testid:"expressions-btn-sticker",ariaLabel:h._(/*BTDS*/"__JHASH__Lgi_15kaHGu__JHASH__")}:null}).filter(Boolean),Q=function(){return x(y[(y.indexOf(w)-1+y.length)%y.length])},R=function(){return x(y[(y.indexOf(w)+1)%y.length])},S;switch(w){case d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.EMOJI:S=l.jsx(d("WAWebEmojiPanel.react").EmojiPanel,{defaultSearchText:D,displayCache:A.current,displayLocation:d("WAWebPanelsDisplayLocation").DisplayLocation.ExpressionsPanel,onChange:G,onDisplayCache:function(a){A.current=a},onEmoji:g,onFocusPrev:Q,onFocusNext:R});break;case d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.GIF:S=l.jsx(d("WAWebGifPanel.react").GifPanel,{defaultSearchText:D,displayCache:B.current,displayLocation:d("WAWebPanelsDisplayLocation").DisplayLocation.ExpressionsPanel,onChange:G,onDisplayCache:function(a){B.current=a},onFocusPrev:Q,onFocusNext:R,onGif:function(a,b,c){i==null?void 0:i(a,b,c)}});break;case d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.STICKER:S=l.jsx(c("WAWebStickerPanel.react"),{defaultSearchText:D,displayCache:C.current,displayLocation:d("WAWebPanelsDisplayLocation").DisplayLocation.ExpressionsPanel,onChange:G,onDisplayCache:function(a){C.current=a},onFocusPrev:Q,onFocusNext:R,onSticker:function(a,b,c){k==null?void 0:k(a,b,c)},onStickerFromStore:q});break}m(s,function(){return{close:function(){N()}}});d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"open_compose_box_panel",M);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"close_expression_panels",N);d("useWAWebListener").useListener(d("WAWebDrawerManager").DrawerManager,["open_drawer_mid","close_drawer_mid"],function(a){return I(Boolean(a))});g=function(a,b){a=(a=e())==null?void 0:(a=a.editor)==null?void 0:a.getRootElement();if(a==null?void 0:a.contains(b==null?void 0:b.srcElement))return;N()};D=function(){if(d("WAWebAttachMenuGatingUtils").areExpressionPanelsUiV2Enabled()&&F){var a=F.getBoundingClientRect();a=d("WAWebGetExpressionsPanelOffset").getExpressionsPanelOffset(a,{height:document.body.clientHeight,width:document.body.clientWidth});var b=a.horizontal;a=a.vertical;b=K?{right:b+"px"}:{left:b+"px"};return babelHelpers["extends"]({},b,{bottom:a+"px"})}return{}};G=J||d("WAWebAttachMenuGatingUtils").areExpressionPanelsUiV2Enabled()?l.jsx(d("WAWebExpressionsIcon.react").ExpressionsIcon,{width:f}):l.jsx(d("WAWebSmileyIcon.react").SmileyIcon,{width:f});Q=l.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"dropdown"});u&&!H&&(Q=l.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"dropdown",children:l.jsx(d("WAWebUimUie.react").UIE,{displayName:"MenuBarMenuItem",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:g,children:l.jsxs(d("WAWebDropdown.react").Dropdown,{type:d("WAWebDropdown.react").MenuType.ExpressionsPanel,style:D(),flipOnRTL:!0,dirX:d("WAWebAttachMenuGatingUtils").areExpressionPanelsUiV2Enabled()?d("WAWebDropdown.react").DirX.CENTER:d("WAWebDropdown.react").DirX.RIGHT,dirY:d("WAWebDropdown.react").DirY.TOP,testid:void 0,children:[S,l.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",align:"center",xstyle:p.tabsContainer,children:l.jsx(d("WAWebIconTabs.react").IconTabs,{selectedIndex:y.indexOf(w),onSelect:function(a){a=y[a];a!==w&&(x(a),d("WAWebUserPrefsGeneral").setLastComposeBoxExpressionPanel(a))},tabConfigs:P,theme:"expression-panels"})})]})})}));if(d("WAWebAttachMenuGatingUtils").areExpressionPanelsUiV2Enabled()){R=c("WANullthrows")(document.querySelector("#expressions-panel-container"));Q=d("ReactDOM").createPortal(Q,R)}return l.jsxs(l.Fragment,{children:[l.jsx("div",babelHelpers["extends"]({ref:a},(j||(j=c("stylex"))).props(p.expressionsPanelPickerWrapper,J?[p.expressionsPanelPickerWrapperRefresh,d("WAWebUISpacing").uiMargin.end6]:d("WAWebUISpacing").uiPadding.end10,u&&J&&p.activeButtonRefresh),{children:l.jsx(c("WAWebUnstyledButton.react"),{ref:t,dataTab:d("WAWebTabOrder").TAB_ORDER.COMPOSE_BOX_EXPRESSION_PICKER,xstyle:[p.button,J&&[p.buttonRefresh,d("WAWebUISpacing").uiPadding.all8],u&&!J&&p.activeButton,d("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus],onClick:O,"aria-label":h._(/*BTDS*/"__JHASH__Lf0i2Kvi3Ov__JHASH__"),children:G})})),Q]})}a.displayName=a.name+" [from "+f.id+"]";g.ExpressionsPanelPicker=a}),226); __d("WAWebDivider.react",["WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={divider:{height:"x1qx5ct2",borderEndWidth:"xm81vs4",borderEndStyle:"xu3j5b3",borderEndColor:"x1qqiy34",opacity:"xbyyjgo",$$css:!0}};function a(a){a=a.noMargin;a=a===void 0?!1:a;return j.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(k.divider,d("WAWebUISpacing").uiMargin.end10,d("WAWebUISpacing").uiMargin.start18,a&&d("WAWebUISpacing").uiMargin.all0)))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebPttCancelButton.react",["fbt","WAWebDeleteIcon.react","WAWebPttButton.react","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={pttCancelButton:{display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",width:"x1n7h9c3",height:"x1s1d1n7",color:"xlp4hpx",":hover_color":"x1gddwk9",$$css:!0},pttCancelButtonRefresh:{color:"xzwifym",":hover_color":"x144v4sp",$$css:!0},svg:{width:"x1kky2od",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var c=a.onConfirm;a=a.confirmOnMouseUp;var e=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),f=e?j.jsx(d("WAWebDeleteIcon.react").DeleteIcon,{iconXstyle:d("WAWebPttButton.react").pttSvgStyles.svg}):j.jsx(d("WAWebPttButton.react").PttSvg,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 22",xstyle:k.svg,children:j.jsx("path",{d:"M5,0,3,2H0V4H16V2H13L11,0ZM15,5H1V19.5A2.5,2.5,0,0,0,3.5,22h9A2.5,2.5,0,0,0,15,19.5Z",fill:"currentColor"})});return j.jsx(d("WAWebPttButton.react").PttButton,{ref:b,xstyle:[k.pttCancelButton,e&&k.pttCancelButtonRefresh],testid:void 0,ariaLabel:h._(/*BTDS*/"__JHASH__q7leJJI5-_X__JHASH__"),confirmOnMouseUp:a,onConfirm:c,children:f})}a.displayName=a.name+" [from "+f.id+"]";g.PttCancelButton=a}),226); __d("WAWebRecordingSessionStateEnum",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum").Mirrored(["NOT_STARTED","RECORDING","PAUSED","STOPPED","ERROR"]);f.RecordingSessionState=a}),66); __d("WAWebPttComposerRecordingSessionGetters",["WAWebGetters","WAWebGettersCaches","WAWebRecordingSessionStateEnum"],(function(a,b,c,d,e,f,g){a=d("WAWebGetters").createGetterFactories({createCache:d("WAWebGettersCaches").createRecordingSessionCache});b=a.field;c=a.computed;e=a.clearCacheFor;f=e;a=b("exceedsMinDuration");e=b("recordingState");c=c(function(a){a=a[0];return a===d("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING},[e]);e=b("isViewOnce");g.clearRecordingSessionGetterCacheFor=f;g.getExceedsMinDuration=a;g.getIsRecording=c;g.getIsViewOnce=e}),98); __d("WAWebPttComposerStreamingEncryptor",["Promise","WACryptoAesCbc","WACryptoHmac","WAMediaCalculateFilehash","WAMediaCrypto","WATypedArraysConcat","WAWebCryptoCreateMediaKeys","WAWebMmsMediaTypes","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){var h,i=function(){function a(a){var c=a.mediaKeys,e=a.encKey,f=a.onChunkEncrypted;a=a.onEncryptionCompleted;this.$6=(h||(h=b("Promise"))).resolve();this.$3=c;this.$4=e;this.$5=d("WACryptoAesCbc").getIv(this.$3.iv);this.$2=[this.$5];this.$1=new Uint8Array([]);this.$8=f;this.$9=a;this.$7=!1}var e=a.prototype;e.getMediaKeys=function(){return this.$3};e.encryptChunk=function(a,e){var f=this;if(this.$7)throw c("err")("Encryption was already finalized");e&&(this.$7=!0);var g=this.$10(a,e);if(g==null)return;this.$6=this.$6.then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("WACryptoAesCbc").aesCbcEncryptChunk(e,g,f.$5,f.$4));f.$8==null?void 0:f.$8(a.encryptedChunk);f.$11(a,e)}))};e.$11=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){this.$2.push(a.encryptedChunk);this.$5=a.nextIv;if(!b)return;a=d("WATypedArraysConcat").concatTypedArrays(Uint8Array,this.$2,d("WAMediaCrypto").HMAC_LENGTH);b=this.$2[0].byteLength;var c=a.byteLength-d("WAMediaCrypto").HMAC_LENGTH,e=a.subarray(0,c);e=(yield d("WACryptoHmac").hmacSha256(this.$3.macKey,e,d("WAMediaCrypto").HMAC_LENGTH));a.set(new Uint8Array(e),c);c=a.subarray(b);a=(yield d("WAMediaCalculateFilehash").calculateFilehash(c));this.$9==null?void 0:this.$9(e,a)});function c(b,c){return a.apply(this,arguments)}return c}();e.$10=function(a,b){this.$1=d("WATypedArraysConcat").concatTypedArrays(Uint8Array,[this.$1,a]);if(this.$1.length>=d("WACryptoAesCbc").AES_CBC_BLOCK_SIZE||b){a=b?this.$1.length:Math.floor(this.$1.length-this.$1.length%d("WACryptoAesCbc").AES_CBC_BLOCK_SIZE);b=this.$1.slice(0,a);b.subarray();var c=new Uint8Array(this.$1.length-a);c.set(this.$1.slice(a,this.$1.length));this.$1=c;return b}};return a}();function a(a){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=(yield c("WAWebCryptoCreateMediaKeys")(d("WAWebMmsMediaTypes").MEDIA_TYPES.PTT,a.mediaKey)),e=(yield d("WACryptoAesCbc").importRawKey(b.encKey));return new i({mediaKeys:b,encKey:e,onChunkEncrypted:a.onChunkEncrypted,onEncryptionCompleted:a.onEncryptionCompleted})});return j.apply(this,arguments)}g.StreamingEncryptor=i;g.createStreamingEncryptor=a}),98); __d("WAWebWamEnumPttResultType",[],(function(a,b,c,d,e,f){a=Object.freeze({SENT:1,CANCELLED:2,TOO_SHORT:3});f.PTT_RESULT_TYPE=a}),66); __d("WAWebWamEnumPttSourceType",[],(function(a,b,c,d,e,f){a=Object.freeze({FROM_CONVERSATION:0,FROM_VOICEMAIL:1});f.PTT_SOURCE_TYPE=a}),66); __d("WAWebPttWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumPttResultType","WAWebWamEnumPttSourceType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({Ptt:[458,{pttAvgNoiseLoudness:[11,a.TYPES.NUMBER],pttAvgNoiseLoudnessReduction:[12,a.TYPES.NUMBER],pttAvgSpeechLoudness:[13,a.TYPES.NUMBER],pttAvgSpeechLoudnessReduction:[14,a.TYPES.NUMBER],pttDraftPlayCnt:[7,a.TYPES.INTEGER],pttDraftSeekCnt:[8,a.TYPES.INTEGER],pttDuration:[5,a.TYPES.TIMER],pttLock:[4,a.TYPES.BOOLEAN],pttPauseCnt:[9,a.TYPES.INTEGER],pttResult:[1,d("WAWebWamEnumPttResultType").PTT_RESULT_TYPE],pttSize:[3,a.TYPES.NUMBER],pttSource:[2,d("WAWebWamEnumPttSourceType").PTT_SOURCE_TYPE],pttStop:[6,a.TYPES.BOOLEAN],pttStopTapCnt:[10,a.TYPES.INTEGER]},[1,1,1],"regular"]},{Ptt:[]});g.PttWamEvent=b}),98); __d("WAWebUploadStreamerRefactorGatingUtils",["WAWebABProps"],(function(a,b,c,d,e,f,g){function a(){return d("WAWebABProps").getABPropConfigValue("web_ptt_streamer_upload")}g.isUploadStreamerRefactorEnabled=a}),98); __d("WAWebPttComposerRecordingSession",["fbt","invariant","$InternalEnum","Promise","WAAbortError","WALogger","WAMediaCalculateFilehash","WANullthrows","WAPromiseRaceAbort","WAPttComposerRecorder","WAPttComposerScaleWaveform","WARandomHex","WAWebBaseModel","WAWebCallCollection","WAWebConfirmPopup.react","WAWebCreateMediaUploadMetrics","WAWebCryptoRandomMediaKey","WAWebFrontendChatGetters","WAWebGuidePopup.react","WAWebMedia","WAWebMediaCapture","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(a,b,c,d,e,f,g,h,i){var j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["Error resuming recording session\n",""],["Error resuming recording session\\n",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["PTT Recording Error\n",""],["PTT Recording Error\\n",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["PTT Streaming Upload cancelled due to a problem encrypting"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["PTT Streaming Upload cancelled due to a problem when finalizing upload"]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["onEncryptionCompleted: ptt-streaming-upload-error: ",""]);p=function(){return a};return a}function q(){var a=babelHelpers.taggedTemplateLiteralLoose(["PTT Streaming Upload cancelled due to a problem uploading"]);q=function(){return a};return a}function r(){var a=babelHelpers.taggedTemplateLiteralLoose(["onChunkEncrypted: ptt-streaming-upload-error: ",""]);r=function(){return a};return a}var s=k||c("react"),t=b("$InternalEnum").Mirrored(["CANCEL_BUTTON","PTT_TOO_SHORT","SENT","OTHER"]),u=1,v=8.5,w=64;e=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(b=c=a.call.apply(a,[this].concat(f))||this,c.id=d("WAWebBaseModel").prop(),c.duration=d("WAWebBaseModel").prop(0),c.exceedsMinDuration=d("WAWebBaseModel").prop(!1),c.isViewOnce=d("WAWebBaseModel").prop(!1),c.recordingState=d("WAWebBaseModel").prop(d("WAWebRecordingSessionStateEnum").RecordingSessionState.NOT_STARTED),c._hasStreamingUploadFailed=d("WAWebBaseModel").prop(!1),c._draftPreviewSeen=d("WAWebBaseModel").prop(!1),c._draftPlayCount=d("WAWebBaseModel").prop(0),c._draftSeekCount=d("WAWebBaseModel").prop(0),c._pauseCount=d("WAWebBaseModel").prop(0),b)||babelHelpers.assertThisInitialized(c)}var f=e.prototype;f.initialize=function(){var b=this;a.prototype.initialize.call(this);var c=null;this.on("change:recordingState",function(){b._endTsExternalEvent==null?void 0:b._endTsExternalEvent();if(b._chat==null)return;d("WAWebPttComposerRecordingSessionGetters").getIsRecording(b)?(c=d("WAWebPttAudioChannels").MainAudioChannel.claim(b,function(){b.pause()}),d("WAWebPresenceChatAction").markRecording(b._chat),b._endTsExternalEvent=d("WAWebTimeSpentLoggingExternal").beginTsExternalEvent(d("WAWebWamEnumTsExternalEventSource").TS_EXTERNAL_EVENT_SOURCE.PTT_RECORD)):(c==null?void 0:c(),d("WAWebPresenceChatAction").markPaused(b._chat))})};f.start=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=this;switch(this.recordingState){case d("WAWebRecordingSessionStateEnum").RecordingSessionState.NOT_STARTED:break;case d("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING:return!0;case d("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED:return this.resume();case d("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED:case d("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR:throw c("err")("Can't start recording from state "+this.recordingState)}var e=c("WAWebCreateMediaUploadMetrics")(d("WAWebMmsMediaTypes").MEDIA_TYPES.PTT,c("WAWebMediaGetUploadOriginForChat")(this._chat),0,!1,!1),f=e.handleUploadHostFound,g=e.handleUploadAttemptSuccess,h=e.handleUploadAttemptError,i=e.handleUploadSuccess,k=e.handleUploadError,l=e.handleEncryptionStart,s=e.handleEncryptionSuccess,t=e.handleStreamUploadStart,v=e.handleUploadProgress;e=e.handleSendMessageStart;this._handleSendMessageStart=e;if(d("WAWebUploadStreamerRefactorGatingUtils").isUploadStreamerRefactorEnabled()){var w=c("WAWebCryptoRandomMediaKey")();this._earlyUploadPromise=new(j||(j=b("Promise")))(function(b){a._resolveEarlyUploadPromise=b});e=new AbortController();this._uploaderAbortController=e;var x=(yield d("WAMediaCalculateFilehash").getRandomFilehash()),y=new(d("WAWebMmsClientUploadStreamer").UploadStreamer)({encFilehash:x,token:x,type:d("WAWebMmsMediaTypes").MEDIA_TYPES.PTT,signal:e.signal,byteOffset:0,onUploadHostFound:f,onUploadAttemptSuccess:g,onUploadAttemptError:h,onProgress:function(a,b){v(a.loaded+b)},onStreamUploadStart:t,mediaId:d("WAWebWamMediaMetricUtils").generateMediaEventId()});y.startUploadFromClient();this._encryptor=(yield d("WAWebPttComposerStreamingEncryptor").createStreamingEncryptor({mediaKey:w.key,onChunkEncrypted:function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){try{yield y.uploadChunkFromClient(b)}catch(b){a._resolveEarlyUploadPromise==null?void 0:a._resolveEarlyUploadPromise(null);a._hasStreamingUploadFailed=!0;if(b.name===d("WAAbortError").ABORT_ERROR)return;d("WALogger").ERROR(r(),b.message);d("WALogger").ERROR(q()).devConsole(b).sendLogs("ptt-streaming-upload-failed");k(b)}});function e(a){return c.apply(this,arguments)}return e}(),onEncryptionCompleted:function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b,c){s();try{yield y.uploadChunkFromClient(new Uint8Array(b));b=(yield y.finalizeUploadFromClient(c));a._resolveEarlyUploadPromise==null?void 0:a._resolveEarlyUploadPromise({directPath:b.directPath,mediaKey:w.key,mediaKeyTimestamp:w.timestamp,encFilehash:c,url:b.url});i()}catch(b){a._resolveEarlyUploadPromise==null?void 0:a._resolveEarlyUploadPromise(null);a._hasStreamingUploadFailed=!0;if(b.name===d("WAAbortError").ABORT_ERROR)return;d("WALogger").ERROR(p(),b.message);d("WALogger").ERROR(o()).devConsole(b).sendLogs("ptt-streaming-upload-failed");k(b)}});function e(a,b){return c.apply(this,arguments)}return e}()}))}try{var A=!0;this._recorder=new(c("WAPttComposerRecorder"))({createStream:z,waveformSampleRate:this.getWaveformSampleRate(),onDuration:function(b){a.duration=b,a.exceedsMinDuration=b>=u},onPage:function(b,c){if(!d("WAWebUploadStreamerRefactorGatingUtils").isUploadStreamerRefactorEnabled()||a._hasStreamingUploadFailed)return;try{var e;A&&(l(),A=!1);(e=a._encryptor)==null?void 0:e.encryptChunk(b,c)}catch(b){d("WALogger").ERROR(n()).devConsole(b),a._resolveEarlyUploadPromise==null?void 0:a._resolveEarlyUploadPromise(null),a._hasStreamingUploadFailed=!0}}});x=(yield this._recorder.start());if(x){this.recordingState=d("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING;d("WAWebPresenceCollection").PresenceCollection.update(this._chat.presence.id);d("WAWebPttDailyUtils").incrementPttDailyCount(d("WAWebPttDailyUtils").PttDailyCountKind.RECORD,c("WANullthrows")(d("WAWebFrontendChatGetters").getKind(this._chat)));return!0}}catch(a){d("WALogger").ERROR(m(),c("WAWebSerializeError")(a)).devConsole(a)}this._endSession();this.recordingState=d("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR;return!1});function e(){return a.apply(this,arguments)}return e}();f.getLiveWaveformSamples=function(){var a;return(a=(a=this._recorder)==null?void 0:a.getLiveWaveformSamples())!=null?a:[]};f.getCorrectedWaveformSamples=function(){var a;return(a=(a=this._recorder)==null?void 0:a.getCorrectedWaveformSamples())!=null?a:[]};f.getScaledWaveformSamples=function(){return c("WAPttComposerScaleWaveform")(this.getCorrectedWaveformSamples(),w).map(function(a){return Math.floor(a*100)})};f.getPreciseDuration=function(){var a;return(a=(a=this._recorder)==null?void 0:a.getPreciseDuration())!=null?a:0};f._endSession=function(){var a;(a=this._recorder)==null?void 0:a.stop()};f.pause=function(){if(this.recordingState!==d("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING)return;if(!this.exceedsMinDuration){this.stop(t.PTT_TOO_SHORT);return}this.recordingState=d("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED;var a=c("WANullthrows")(this._recorder);a.pause()};f.resume=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){switch(this.recordingState){case d("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING:return!0;case d("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED:break;case d("WAWebRecordingSessionStateEnum").RecordingSessionState.NOT_STARTED:case d("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED:case d("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR:throw c("err")("Can't resume recording from state "+this.recordingState)}this.recordingState=d("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING;try{var a=c("WANullthrows")(this._recorder);a=(yield a.resume());if(!a){this.recordingState=d("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED;return!1}return!0}catch(a){this.recordingState=d("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR;d("WALogger").ERROR(l(),c("WAWebSerializeError")(a));return!1}});function e(){return a.apply(this,arguments)}return e}();f.stop=function(a){if(this.recordingState===d("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED)return;this.recordingState=d("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED;this._endSession();if(this._recorder==null)return;a===t.SENT?d("WAWebPttDailyUtils").incrementPttDailyCount(d("WAWebPttDailyUtils").PttDailyCountKind.SEND,c("WANullthrows")(d("WAWebFrontendChatGetters").getKind(this._chat))):this.duration>u&&d("WAWebPttDailyUtils").incrementPttDailyCount(d("WAWebPttDailyUtils").PttDailyCountKind.CANCEL,c("WANullthrows")(d("WAWebFrontendChatGetters").getKind(this._chat)));a!==t.SENT&&this._uploaderAbortController&&this._uploaderAbortController.abort();a=y(a);a!=null&&this._sendPttWamEvent(a)};f._getDataForSending=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=c("WANullthrows")(this._recorder);a=(yield a.getCompleteRecording());return c("WAWebMediaOpaqueData").createFromData(a,a.type)});function a(){return a.apply(this,arguments)}return a}();f._getDataForPlayback=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=c("WANullthrows")(this._recorder);a=(yield a.getPartialRecording());a=(yield d("WAWebMediaLoad").transcode(a));return c("WAWebMediaOpaqueData").createFromData(a,a.type)});function a(){return a.apply(this,arguments)}return a}();f.getAudioForPlayback=function(){var a=this;return new B(function(){return a._getDataForPlayback()})};f.getWaveformSampleRate=function(){return v};f.send=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var e;a===void 0&&(a=!1);this._handleSendMessageStart==null?void 0:this._handleSendMessageStart(a);var f=c("WANullthrows")(this._recorder),g=this._chat,h=c("WAPromiseRaceAbort")(this._getDataForSending(),g.getDeleteSignal());e=((e=g.getComposeContents())==null?void 0:e.ctwaContext)||void 0;f=d("WAWebMedia").prepRawMedia(h,{isPtt:!0,precomputedFields:{duration:Math.floor(f.getDuration()),waveform:new Uint8Array(this.getScaledWaveformSamples())}});f.sendToChat(g,{quotedMsg:g.composeQuotedMsg||void 0,addEvenWhilePreparing:!a,ctwaContext:e,isViewOnce:a,isWamoSub:b},this._earlyUploadPromise);g.composeQuotedMsg=null;this.stop(t.SENT);yield h["catch"](d("WAAbortError").catchAbort(c("WAWebNoop")))});function e(b,c){return a.apply(this,arguments)}return e}();f._sendPttWamEvent=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=c("WANullthrows")(this._recorder);b=(yield b.getCompleteRecording());new(d("WAWebPttWamEvent").PttWamEvent)({pttSource:d("WAWebWamEnumPttSourceType").PTT_SOURCE_TYPE.FROM_CONVERSATION,pttResult:a,pttDuration:Math.round(this.duration)*1e3,pttSize:c("lodash").round((a=b.size)!=null?a:0,-3),pttStop:this._draftPreviewSeen,pttDraftPlayCnt:this._draftPlayCount,pttDraftSeekCnt:this._draftSeekCount,pttPauseCnt:this._pauseCount}).commit()});function a(b){return a.apply(this,arguments)}return a}();f.markDraftPreviewSeen=function(){if(this._draftPreviewSeen)return;this._draftPreviewSeen=!0;d("WAWebPttDailyUtils").incrementPttDailyCount(d("WAWebPttDailyUtils").PttDailyCountKind.DRAFT_REVIEW,c("WANullthrows")(d("WAWebFrontendChatGetters").getKind(this._chat)))};f.incrementDraftPlayCount=function(){this._draftPlayCount++};f.incrementDraftSeekCount=function(){this._draftSeekCount++};f.incrementPauseButtonCount=function(){this._pauseCount++,this._pauseCount===1&&d("WAWebPttDailyUtils").incrementPttDailyCount(d("WAWebPttDailyUtils").PttDailyCountKind.PAUSED_RECORD,c("WANullthrows")(d("WAWebFrontendChatGetters").getKind(this._chat)))};f["delete"]=function(){a.prototype["delete"].call(this),d("WAWebPttComposerRecordingSessionGetters").clearRecordingSessionGetterCacheFor(this)};return e}(d("WAWebBaseModel").BaseModel);e.Proxy="recordingSession";var x=d("WAWebBaseModel").defineModel(e);function a(a){return new x({id:d("WARandomHex").randomHex(8),_chat:a.chat})}function y(a){switch(a){case t.SENT:return d("WAWebWamEnumPttResultType").PTT_RESULT_TYPE.SENT;case t.PTT_TOO_SHORT:return d("WAWebWamEnumPttResultType").PTT_RESULT_TYPE.TOO_SHORT;case t.CANCEL_BUTTON:return d("WAWebWamEnumPttResultType").PTT_RESULT_TYPE.CANCELLED;case t.OTHER:return null}}function z(a){return A.apply(this,arguments)}function A(){A=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(c("WAWebCallCollection").activeCall){d("WAWebModalManager").ModalManager.open(s.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:h._(/*BTDS*/"__JHASH__4zG1ZkGyzX0__JHASH__")}));return null}var b=d("WAWebMediaCapture").start("microphone"),e=b.disposeStream;b=b.asyncStream;a.addEventListener("abort",function(){e()},{once:!0});try{return yield b}catch(a){if(a instanceof d("WAWebMiscErrors").GetUserMedia.NotAllowedError){d("WAWebModalManager").ModalManager.open(s.jsx(d("WAWebGuidePopup.react").GuidePopup,{messaging:d("WAWebGuidePopup.react").Messaging.MIC_FAIL,type:d("WAWebGuidePopup.react").GuidePopupType.GUIDE_UNBLOCK}));return null}if(a instanceof d("WAWebMiscErrors").GetUserMedia.GetUserMediaError){d("WAWebModalManager").ModalManager.open(s.jsx(d("WAWebGuidePopup.react").GuidePopup,{messaging:d("WAWebGuidePopup.react").Messaging.MIC_MISSING,type:d("WAWebGuidePopup.react").GuidePopupType.GUIDE_NONE}));return null}throw a}});return A.apply(this,arguments)}var B=function(){function a(a){var c=this;this._opaqueDataPromise=a();a=d("WAWebPttAudioManager").AudioManager.createAudioProxy();this._audio=a;this._unregisterFromAudioChannel=d("WAWebPttAudioChannels").MainAudioChannel.registerMedia(a);b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c._opaqueDataPromise),b=c._audio;if(b==null)return;b.src=a.url()})()}var c=a.prototype;c.getAudio=function(){this._audio!=null||i(0,56371);return this._audio};c.dispose=function(){var a=this,c=this._audio;if(c==null)return;this._unregisterFromAudioChannel();this._audio=null;b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield a._opaqueDataPromise);b.autorelease()})()};return a}();g.RecordingSessionStopReason=t;g.RecordingSession=x;g.createRecordingSession=a;g.AudioResource=B}),226); __d("WAWebPttCustomIcons",["WAWebPauseIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={outlined:{strokeWidth:"x8pzrqk",stroke:"x1b4pc8b",fill:"xbh8q5q",$$css:!0}};function a(a){return i.jsx(d("WAWebPauseIcon.react").PauseIcon,babelHelpers["extends"]({},a,{innerStyles:{primary:j.outlined}}))}a.displayName=a.name+" [from "+f.id+"]";g.OutlinedPauseCustomIcon=a}),98); __d("WAWebPttPauseResumeRecordingButton.react",["fbt","WAWebPttButton.react","WAWebPttCustomIcons","WAWebUIRefreshGatingUtils","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={pttPauseAndResumeRecordingButton:{position:"x1n2onr6",width:"x1td3qas",height:"x10w6t97",color:"xz0mkc0",$$css:!0},pttPauseAndResumeRecordingButtonRefresh:{color:"xzwifym",":hover_color":"x144v4sp",$$css:!0},pttPauseIconRefreh:{width:"xvy4d1p",height:"xxk0z11",$$css:!0},pttPauseAndResumeRecordingButtonEnabled:{":hover_color":"xa8l713",$$css:!0},growOnHover:{transition:"x14sdrxx",transformOrigin:"x1g0ag68",$$css:!0},growOnHoverEnabled:{":hover_transform":"x1lcra6a",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.recording,f=a.onConfirm,g=a.confirmOnMouseUp;a=a.disabled;a=a===void 0?!1:a;var i=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),m=e?h._(/*BTDS*/"__JHASH__PonpV2tBf4e__JHASH__"):h._(/*BTDS*/"__JHASH__R5tVbhjVHz8__JHASH__"),n=[l.growOnHover,!a&&l.growOnHoverEnabled],o=i?k.jsx(d("WAWebPttCustomIcons").OutlinedPauseCustomIcon,{xstyle:l.pttPauseIconRefreh}):k.jsxs(d("WAWebPttButton.react").PttSvg,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:[k.jsx("circle",{cx:"16",cy:"16",r:"14.75",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),k.jsx("path",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(n),{d:"M20.65,21.69V10.25H17.31V21.69Zm-9.3-11.44V21.69h3.34V10.25Z",fill:"currentColor"}))]});return k.jsxs(d("WAWebPttButton.react").PttButton,{ref:b,xstyle:[l.pttPauseAndResumeRecordingButton,!a&&l.pttPauseAndResumeRecordingButtonEnabled,i&&l.pttPauseAndResumeRecordingButtonRefresh],testid:void 0,ariaLabel:m,confirmOnMouseUp:g,onConfirm:f,disabled:a,children:[k.jsx("div",babelHelpers["extends"]({},{0:{className:"x10l6tqk x13vifvy x17qophe xh8yej3 x5yr21d xg01cxk xamds3w xziw2gg"},2:{className:"x13vifvy x17qophe xh8yej3 x5yr21d xg01cxk xamds3w xziw2gg x1n2onr6 x78zum5 xl56j7k x6s0dn4"},1:{className:"x10l6tqk x13vifvy x17qophe xh8yej3 x5yr21d xamds3w x1hc1fzr x3oybdh"},3:{className:"x13vifvy x17qophe xh8yej3 x5yr21d xamds3w x1n2onr6 x78zum5 xl56j7k x6s0dn4 x1hc1fzr x3oybdh"}}[!!i<<1|!!e<<0],{children:o})),k.jsx("div",babelHelpers["extends"]({},{0:{className:"x10l6tqk x13vifvy x17qophe xh8yej3 x5yr21d xg01cxk xamds3w xziw2gg"},1:{className:"x10l6tqk x13vifvy x17qophe xh8yej3 x5yr21d xamds3w x1hc1fzr x3oybdh"}}[!!!e<<0],{children:k.jsxs(d("WAWebPttButton.react").PttSvg,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:n,children:[k.jsx("path",{fill:"currentColor",d:"M16,4c1.9,0,3.4,1.4,3.4,3.1v8.6c0,1.7-1.5,3.1-3.4,3.1 c-1.9,0-3.4-1.4-3.4-3.1V7.1C12.6,5.4,14.1,4,16,4"}),k.jsx("path",{fill:"currentColor",d:"M16.3,23.4c-0.2,0-0.6,0-0.9,0l-0.3,0c-3.7-0.4-6.6-3.7-7.1-7.8 L8,15.2c0-0.5,0.3-0.9,0.8-0.9h0.4c0.5,0,0.8,0.4,0.9,0.9l0.1,0.4c0.5,3.1,3,5.5,5.9,5.5c2.9,0,5.3-2.3,5.9-5.4l0.1-0.4 c0-0.5,0.4-0.9,0.9-0.9h0.4c0.4,0,0.8,0.4,0.8,0.9c0,0,0,0.1-0.1,0.6c-0.6,4.1-3.7,7.3-7.4,7.6L16.3,23.4z"}),k.jsx("path",{fill:"currentColor",d:"M17.1,27.3c0,0.4-0.4,0.7-0.9,0.7h-0.5c-0.5,0-0.9-0.3-0.9-0.7V23 c0-0.4,0.4-0.7,0.9-0.7h0.5c0.5,0,0.9,0.3,0.9,0.7V27.3z"})]})}))]})}a.displayName=a.name+" [from "+f.id+"]";a.displayName="PttPauseAndResumeRecordingButton";g.PttPauseAndResumeRecordingButton=a}),226); __d("WAWebPttSendButton.react",["fbt","WAWebL10N","WAWebPttButton.react","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={pttSendButton:{width:"x1n7h9c3",minWidth:"x1ask5yi",height:"x1s1d1n7",color:"x2jl805",$$css:!0},pttSendButtonRefresh:{color:"x1v5yvga",minWidth:"x1fns5xo",minHeight:"x1ba4aug",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",":hover_color":"xaoa0i2",$$css:!0},pttSendButtonEnabled:{":hover_color":"xof5ctd",$$css:!0},pttSendButtonIconRTL:{transform:"xpk2tj9",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.disabled;e=e===void 0?!1:e;var f=a.confirmOnMouseUp;a=a.onConfirm;return j.jsx(d("WAWebPttButton.react").PttButton,{ref:b,xstyle:[k.pttSendButton,!e&&k.pttSendButtonEnabled,d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&k.pttSendButtonRefresh],testid:void 0,ariaLabel:h._(/*BTDS*/"__JHASH__rTVI-iTC6XE__JHASH__"),confirmOnMouseUp:f,onConfirm:a,disabled:e,children:j.jsxs(d("WAWebPttButton.react").PttSvg,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35 35",xstyle:c("WAWebL10N").isRTL()&&k.pttSendButtonIconRTL,children:[j.jsx("path",{d:"M17.5,0h0A17.51,17.51,0,0,1,35,17.5h0A17.51,17.51,0,0,1,17.5,35h0A17.51,17.51,0,0,1,0,17.5H0A17.51,17.51,0,0,1,17.5,0Z",fill:"currentColor"}),j.jsx("path",babelHelpers["extends"]({},{0:{className:"x14sdrxx x1g0ag68"},1:{className:"x14sdrxx x1g0ag68 x1lcra6a"}}[!!!e<<0],{d:"M25.64,18.55,11.2,24.93a.86.86,0,0,1-1.13-.44.83.83,0,0,1-.06-.44l.48-4.11a1.36,1.36,0,0,1,1.24-1.19l7.51-.6a.16.16,0,0,0,.14-.16.16.16,0,0,0-.14-.14l-7.51-.6a1.36,1.36,0,0,1-1.24-1.19L10,12a.84.84,0,0,1,.74-.94.87.87,0,0,1,.45.06l14.44,6.38a.61.61,0,0,1,.31.79A.59.59,0,0,1,25.64,18.55Z",fill:"#fff"}))]})})}a.displayName=a.name+" [from "+f.id+"]";g.PttSendButton=a}),226); __d("useWAWebPttRecordingSessionValues",["useWAWebCollectionValues"],(function(a,b,c,d,e,f,g){function a(a,b){return d("useWAWebCollectionValues").useModelGetterValues(a,b)}g.usePttRecordingSessionValues=a}),98); __d("WAWebPttComposer.react",["$InternalEnum","WANullthrows","WAWebAttachMediaViewOnce.react","WAWebBizCoexUtils","WAWebChatGetters","WAWebClock","WAWebCmd","WAWebDivider.react","WAWebFrontendChatGetters","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebNewsletterWamoSubMessageType","WAWebNewsletterWamoSubUtils","WAWebPttCancelButton.react","WAWebPttComposerRecordingSession","WAWebPttComposerRecordingSessionGetters","WAWebPttComposerWaveform.react","WAWebPttPauseResumeRecordingButton.react","WAWebPttPlayPauseButton.react","WAWebPttSendButton.react","WAWebPttTsExternalLogger","WAWebRecordingSessionStateEnum","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebVelocityTransitionGroup","WAWebViewOnceGatingUtils","asyncToGeneratorRuntime","cr:8554","err","react","stylex","useWAWebChatValues","useWAWebEventTargetValue","useWAWebListener","useWAWebOnUnmount","useWAWebPttRecordingSessionValues","useWAWebSetModelValue","useWAWebStableCallback"],(function(a,b,c,d,e,f,g){var h,i,j;e=j||d("react");var k=h||(h=c("react")),l=e.useCallback,m=e.useEffect,n=e.useRef,o=e.useState,p=b("cr:8554")==null?void 0:b("cr:8554").NewsletterWamoSubMessageTypePopup,q=b("$InternalEnum").Mirrored(["RECORDER","PREVIEW"]),r={pauseRecordingButtonContainer:{display:"x78zum5",$$css:!0},recorderContainer:{position:"x10l6tqk",top:"x13vifvy",end:"xds687c",bottom:"x1ey2m1c",start:"x17qophe",display:"x78zum5",alignItems:"x6s0dn4",$$css:!0},recordingDotRefresh:{height:"x170jfvy",width:"x1fsd2vl",backgroundColor:"x10o6jyz",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",$$css:!0}};function a(a){var e=a.chat,f=a.recordingSession,g=a.onComplete;a=n();var h=n(),j=o(function(){switch(f.recordingState){case d("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED:return q.PREVIEW;case d("WAWebRecordingSessionStateEnum").RecordingSessionState.RECORDING:return q.RECORDER;default:throw c("err")("Invalid recording session state: "+f.recordingState)}}),u=j[0],v=j[1];j=(j=d("useWAWebChatValues").useOptionalChatValues(e.id,[d("WAWebChatGetters").getIsNewsletter,d("WAWebFrontendChatGetters").getNewsletterMetadata]))!=null?j:[!1,null];var w=j[0],x=j[1];j=o(null);var y=j[0],z=j[1];j=o(function(){return u===q.PREVIEW?f.getAudioForPlayback():null});var A=j[0],B=j[1];j=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();m(function(){if(A!=null)return d("WAWebPttTsExternalLogger").attachPttPlayTimeSpentLogger(A.getAudio())},[A]);var C=function(){B(null),A==null?void 0:A.dispose()},D=A==null?void 0:A.getAudio(),E=n(),F=n(),G=n(f);G.current=f;var H=c("useWAWebEventTargetValue")(f,"change:duration",function(){return Math.floor(f.duration)}),I=o(function(){return Math.floor((D==null?void 0:D.currentTime)||0)}),aa=I[0],ba=I[1];I=o(function(){return((D==null?void 0:D.currentTime)||0)===0});var ca=I[0],da=I[1],J=function(a){ba(Math.floor(a)),da(a===0)};d("useWAWebListener").useListener(D,"timeupdate",function(){var a;J((a=D==null?void 0:D.currentTime)!=null?a:0)});I=o(null);var K=I[0],L=I[1];I=d("useWAWebPttRecordingSessionValues").usePttRecordingSessionValues(f,[d("WAWebPttComposerRecordingSessionGetters").getExceedsMinDuration,d("WAWebPttComposerRecordingSessionGetters").getIsRecording,d("WAWebPttComposerRecordingSessionGetters").getIsViewOnce]);var ea=I[0],M=I[1],N=I[2],fa=d("useWAWebSetModelValue").useSetModelValue(f,"isViewOnce");I=o(N);var O=I[0],ga=I[1];I=function(){ga(!1),fa(!N)};d("useWAWebListener").useListener(f,"change:recordingState",function(){(f.recordingState===d("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED||f.recordingState===d("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR)&&g()});var P=c("useWAWebEventTargetValue")(D,["play","pause"],function(){return D!=null&&!D.paused}),Q=s(),R=function(){f.stop(d("WAWebPttComposerRecordingSession").RecordingSessionStopReason.CANCEL_BUTTON)};m(function(){M&&self.setTimeout(function(){var a;(a=E.current)==null?void 0:a.focus()},100)},[M]);m(function(){u===q.PREVIEW&&(G.current.markDraftPreviewSeen(),self.setTimeout(function(){var a;(a=F.current)==null?void 0:a.focus()},100))},[u]);c("useWAWebOnUnmount")(function(){D==null?void 0:D.pause(),C(),f.pause()});var S=function(a){void f.send(N,a)},T=function(){var a;a=(a=h.current)==null?void 0:a.getButtonRef();if(w&&d("WAWebNewsletterWamoSubUtils").newsletterSupportsSubscriptions(x)&&a&&p!=null&&d("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()){var b=function(a){S(a===d("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub)};z({popupAnchorEl:a,handleSelect:b})}else S()};d("useWAWebListener").useListener(f,"change:recordingState",function(){if(d("WAWebPttComposerRecordingSessionGetters").getIsRecording(f))return;if(f.recordingState!==d("WAWebRecordingSessionStateEnum").RecordingSessionState.PAUSED)return;C();var a=f.getAudioForPlayback();B(a);J(0);v(q.PREVIEW)});var U=function(){f.incrementPauseButtonCount(),f.pause()},V=function(){b("asyncToGeneratorRuntime").asyncToGenerator(function*(){D==null?void 0:D.pause();v(q.RECORDER);var a=(yield f.resume());a||v(q.PREVIEW)})()},ha=function(){var a=c("WANullthrows")(D);a.paused?(a.play(),f.incrementDraftPlayCount()):a.pause()};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"pause_ptt_recording",function(){var a=u===q.RECORDER?U:V;a()});d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"send_ptt_recording",function(){T()});d("useWAWebListener").useListener(D,"ended",function(){c("WANullthrows")(D).load()});var W=l(function(){var a;return(a=D==null?void 0:D.currentTime)!=null?a:0},[D]),X=c("useWAWebStableCallback")(function(){return f.getPreciseDuration()}),ia=c("useWAWebStableCallback")(function(){return f.duration}),Y=c("useWAWebStableCallback")(function(){return f.getLiveWaveformSamples()}),ja=c("useWAWebStableCallback")(function(){return f.getCorrectedWaveformSamples()}),Z=c("useWAWebStableCallback")(function(a){J(a),L(null),c("WANullthrows")(D).currentTime=a,f.incrementDraftSeekCount()}),$=c("useWAWebStableCallback")(function(a){L(Math.floor(a))}),ka=k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(r.pauseRecordingButtonContainer,d("WAWebUISpacing").uiMargin.end12),{children:k.jsx(d("WAWebPttPauseResumeRecordingButton.react").PttPauseAndResumeRecordingButton,{recording:u===q.RECORDER,confirmOnMouseUp:Q,onConfirm:u===q.RECORDER?U:V})}));Y=k.jsxs("div",babelHelpers["extends"]({},i.props(r.recorderContainer,!j&&d("WAWebUISpacing").uiMargin.start12),{children:[j&&k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(r.recordingDotRefresh,d("WAWebUISpacing").uiMargin.horiz12))),k.jsx(t,{time:H}),k.jsx("div",babelHelpers["extends"]({className:"x78zum5 x1iyjqo2 xs83m0k x1r8uery x1fgtraw xmo9yow xsgj6o6"},{children:k.jsx(d("WAWebPttComposerWaveform.react").Waveform,{location:d("WAWebPttComposerWaveform.react").WaveformLocation.DRAFT_PREVIEW,sampleRate:f.getWaveformSampleRate(),getSamples:Y,getCurrentTime:W,getDuration:X,live:M,mode:d("WAWebPttComposerWaveform.react").WaveformMode.RECORDER,onSeek:$,onSeekEnd:Z,tabIndex:d("WAWebTabOrder").TAB_ORDER.PTT_BUTTON})}))]}));X=d("WAWebViewOnceGatingUtils").isSendingViewOnceV2Enabled()&&!d("WAWebChatGetters").getIsNewsletter(e)&&!e.contact.isEnterprise&&!d("WAWebFrontendChatGetters").getIsCapiHostedGroup(e)&&!d("WAWebBizCoexUtils").isMeOrCurrentContactHosted(e.contact)&&!d("WAWebUserPrefsMeUser").isMeAccount(e.contact.id)?k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(d("WAWebUISpacing").uiMargin.horiz12),{children:k.jsx(c("WAWebAttachMediaViewOnce.react"),{mediaType:d("WAWebMsgType").MSG_TYPE.PTT,dimension:24,onChange:I,isOn:N,disabled:!1,shouldShowNux:u===q.PREVIEW,dataTab:j?d("WAWebTabOrder").TAB_ORDER.PTT_BUTTON:void 0,shouldSkipNuxAndToast:O})})):null;I=(e=K)!=null?e:ca?H:aa;O=k.jsxs("div",babelHelpers["extends"]({},{0:{className:"x10l6tqk x13vifvy xds687c x1ey2m1c x17qophe x78zum5 x6s0dn4 xq8finb x1cxxrxm xu5n5zk x178xt8z xm81vs4 xso031l xy80clv x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x15unhv1 xihwxa6 xvp2sfm x8cosvx x14bsz84 x1e6ar86 x18poeml x1fnp2h5 xzt5al7 x1w2lkzu x1oq7267"},1:{className:"x10l6tqk x13vifvy xds687c x1ey2m1c x17qophe x78zum5 x6s0dn4 xq8finb x1cxxrxm x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x15unhv1 xihwxa6 xvp2sfm x8cosvx x14bsz84 x1e6ar86 x18poeml x1fnp2h5 xzt5al7 x1w2lkzu x1oq7267 x972fbf xcfux6l x1qhh985 xm0m39n x1k74hu9"}}[!!j<<0],{children:[k.jsx(d("WAWebPttPlayPauseButton.react").PttPlayPauseButton,{ref:F,theme:"compose-box",paused:!P,onConfirm:ha}),k.jsx("div",babelHelpers["extends"]({className:"x78zum5 x1iyjqo2 xs83m0k x1r8uery x1fgtraw x1t4t16n x17adc0v"},{children:k.jsx(d("WAWebPttComposerWaveform.react").Waveform,{location:d("WAWebPttComposerWaveform.react").WaveformLocation.DRAFT_PREVIEW,sampleRate:f.getWaveformSampleRate(),getSamples:ja,getCurrentTime:W,getDuration:ia,live:P,mode:d("WAWebPttComposerWaveform.react").WaveformMode.PREVIEW,onSeek:$,onSeekEnd:Z,tabIndex:d("WAWebTabOrder").TAB_ORDER.PTT_BUTTON})})),k.jsx(t,{time:I})]}));K=function(a){a.key==="Escape"&&(a.stopPropagation(),R())};return k.jsxs("div",babelHelpers["extends"]({onKeyDown:K,ref:a},{className:"x78zum5 x6s0dn4 xh8yej3 x19ygybj"},{tabIndex:0,children:[k.jsx(d("WAWebPttCancelButton.react").PttCancelButton,{ref:E,confirmOnMouseUp:Q,onConfirm:R}),k.jsx("div",babelHelpers["extends"]({},{0:{className:"x1n2onr6 x78zum5 x1iyjqo2 xs83m0k x1r8uery x6s0dn4 xwvwv9b"},1:{className:"x1n2onr6 x78zum5 x1iyjqo2 xs83m0k x1r8uery x6s0dn4 x5yr21d"}}[!!j<<0],{children:k.jsxs(c("WAWebVelocityTransitionGroup"),{transitionName:"fade",children:[u===q.RECORDER?Y:null,u===q.PREVIEW?O:null]})})),ka,X&&!j&&k.jsx(c("WAWebDivider.react"),{noMargin:!0}),X,k.jsx(d("WAWebPttSendButton.react").PttSendButton,{ref:h,disabled:!ea,confirmOnMouseUp:Q,onConfirm:T}),y!=null&&p!=null&&k.jsx(p,{handleSelect:y.handleSelect,popupAnchorEl:y.popupAnchorEl,onDismiss:function(){return z(null)}})]}))}a.displayName=a.name+" [from "+f.id+"]";function s(){var a=o(!1),b=a[0],c=a[1],d=250;m(function(){var a=self.setTimeout(function(){c(!0)},d),b=function(){c(!1),e()};window.addEventListener("mouseup",b);var e=function(){window.removeEventListener("mouseup",b),self.clearTimeout(a)};return e},[]);return b}function t(a){a=a.time;return k.jsx("div",babelHelpers["extends"]({className:"x2c5eco x1603h9y"},{role:"timer",children:d("WAWebClock").Clock.durationStr(a)}))}t.displayName=t.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebMessageComposer.react",["WAWebAttachMenuBarItem.react","WAWebAttachMenuGatingUtils","WAWebBotGating","WAWebChatGetters","WAWebChevronCustomIcons","WAWebClassnames","WAWebCmd","WAWebComposeBox.scss","WAWebComposeBoxPanelsMenu.react","WAWebComposeBoxSendButton.react","WAWebContactGetters","WAWebEnvironment","WAWebExpressionsPanelPicker.react","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebNewsletterGatingUtils","WAWebPttComposer.react","WAWebStateUtils","WAWebSvgComponentBase","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUnstyledButton.react","nullthrows","react","stylex","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i,j,k=j||c("react"),l=(h||(h=d("react"))).useRef,m={inputContainer:{boxSizing:"x9f619",flex:"x12lumcd",width:"x1qrby5j",minWidth:"xeuugli",minHeight:"xisnujt",fontSize:"x6prxxf",fontWeight:"x1fcty0u",lineHeight:"x1fc57z9",backgroundColor:"xe7vic5",borderTopColor:"x1716072",borderEndColor:"xgde2yp",borderBottomColor:"x89wmna",borderStartColor:"xbjl0o0",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",outline:"x1a2a7pz",willChange:"x13w7htt",display:"x78zum5",$$css:!0},inputContainerMaterial:{borderTopStartRadius:"xyi19xy",borderTopEndRadius:"x1ccrb07",borderBottomEndRadius:"xtf3nb5",borderBottomStartRadius:"x1pc53ja",$$css:!0},inputContainerRefresh:{minHeight:"x1wiwyrm",height:"xt7dq6l",borderTopStartRadius:"x1x9wcxt",borderTopEndRadius:"x1f9vhhg",borderBottomEndRadius:"xsr4h3p",borderBottomStartRadius:"x1ytmua2",boxShadow:"xkfubxc",alignItems:"x6s0dn4",transition:"x1m0b2ad",$$css:!0},inputContainerRefreshNoTopPanel:{transition:"x1p0mfcu",$$css:!0},inputContainerHasTopPanel:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",boxShadow:"xz16w4b",transition:"x1m0b2ad",$$css:!0},childPadding:{boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",minHeight:"x1ofbdpd",$$css:!0},sendButtonContainer:{width:"x100vrsf",minWidth:"x1fns5xo",$$css:!0}};function a(a){var b=a.chat,e=a.closePttComposer,f=a.expressionsPanelPickerRef,g=a.expressionsPanelWrapperRef,h=a.getCurrentComposeContent,j=a.handleExpressionPanelChange,o=a.handleInputBlur,p=a.handleInputFocus,q=a.handleMetaUpDebounced,r=a.handlePanelsGif,s=a.handlePanelsSticker,t=a.handlePanelsStickerFromStore,u=a.handleSendText,v=a.handleTab,w=a.hasTextState,x=a.hasTopPanel,y=a.input,z=a.inputHotkeyRef,A=a.isMessageToBot,B=a.onExpandComposer,C=a.onExpressionPanelActive,D=a.pttComposerActive,E=a.recordingSession,F=a.ref,G=a.replaceInputSelection,H=a.richTextInputRef,I=a.selectedExpressionPanel,J=a.startRecording;a=a.updateTextAfterMediaDrawerClose;var K=l(null);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"open_attachment_dropdown",function(){var a=K.current;a&&a.open()});var L=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();if(D&&!L)return null;var M=(!d("WAWebChatGetters").getIsNewsletter(b)||d("WAWebNewsletterGatingUtils").isNewsletterPTTSendingEnabled())&&!d("WAWebContactGetters").getIsCAPISupportAccount(b.contact)&&(!A||d("WAWebBotGating").isBotPttEnabled()),N=function(a){a.target===a.currentTarget&&D===!1&&(H==null?void 0:H.focus())};g={expressionsPanelWrapperRef:g,expressionsPanelPickerRef:f,replaceInputSelection:G,handlePanelsSticker:s,handlePanelsStickerFromStore:t,handlePanelsGif:r,isMessageToBot:A,onExpressionPanelActive:C,getComposeBoxEditorRef:function(){return H}};f=L?[d("WAWebUISpacing").uiPadding.all5,d("WAWebUISpacing").uiMargin.horiz12,d("WAWebUISpacing").uiMargin.bottom12]:[d("WAWebUISpacing").uiPadding.vert9,d("WAWebUISpacing").uiPadding.horiz12,d("WAWebUISpacing").uiMargin.vert5,d("WAWebUISpacing").uiMargin.horiz8];G=L?k.jsx(d("WAWebComposeBoxSendButton.react").SendButtonRefresh,{supportsPtt:M,onClickSend:u,recordingSession:E,onStartRecording:function(){return void J()},hasTextState:w,isMessageToBot:A}):k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(d("WAWebUISpacing").uiPadding.vert5,m.childPadding,m.sendButtonContainer),{children:k.jsx(d("WAWebComposeBoxSendButton.react").SendButton,{supportsPtt:M,hasText:w,onClickSend:u,recordingSession:E,onStartRecording:function(){return void J()}})}));s=void 0;A||(L?s=k.jsx("div",babelHelpers["extends"]({className:"x100vrsf x1vqgdyp x78zum5 x6s0dn4 xpvyfi4"},{children:k.jsx(c("WAWebAttachMenuBarItem.react"),{ref:K,chat:d("WAWebStateUtils").unproxy(b),getComposeContents:h,getComposeBoxEditorRef:function(){return H},onMenuComplete:a,iconWidth:L?24:void 0})})):s=k.jsx("div",babelHelpers["extends"]({className:"x100vrsf x1vqgdyp x78zum5 x6s0dn4"},{children:k.jsx(c("WAWebAttachMenuBarItem.react"),{ref:K,chat:d("WAWebStateUtils").unproxy(b),getComposeContents:h,getComposeBoxEditorRef:function(){return H},onMenuComplete:a})})));t=D&&L?k.jsx("div",babelHelpers["extends"]({className:"x78zum5 x13a6bvl xh8yej3 x5kalc8 x67bb7w"},{children:k.jsx(c("WAWebPttComposer.react"),{chat:d("WAWebStateUtils").unproxy(b),recordingSession:c("nullthrows")(E),onComplete:e})})):k.jsxs(k.Fragment,{children:[L&&!A&&s,d("WAWebAttachMenuGatingUtils").areExpressionPanelsEnabledV2()&&!d("WAWebAttachMenuGatingUtils").shouldShowExpressionPanelsOutOfInput()?k.jsx(n,babelHelpers["extends"]({},g)):void 0,y,L&&G,B&&k.jsx(d("WAWebFlex.react").FlexColumn,{justify:"end",children:k.jsx(c("WAWebUnstyledButton.react"),{onClick:B,children:k.jsx(d("WAWebChevronCustomIcons").ChevronUpCustomIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,displayInline:!0,height:24})})})]});r=c("WAWebEnvironment").isWindows;C=babelHelpers["extends"]({tab:v,"shift+tab":v},r?{"ctrl+up":q}:{"meta+up":q});return k.jsxs("div",{ref:F,className:c("WAWebComposeBox.scss").textMessageComposerContainer,children:[k.jsxs("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease("x9f619 x78zum5 x6s0dn4 xl56j7k x1ofbdpd",c("WAWebComposeBox.scss").boxPanelWrapper),children:[d("WAWebAttachMenuGatingUtils").areExpressionPanelsEnabledV2()?void 0:k.jsx(d("WAWebComposeBoxPanelsMenu.react").ComposeBoxExpressionPanelsMenu,{chat:b,selectedExpressionPanel:I,onChange:j,theme:d("WAWebComposeBoxPanelsMenu.react").PanelsTheme.ChatComposeBox,isMessageToBot:A}),d("WAWebAttachMenuGatingUtils").areExpressionPanelsEnabledV2()&&d("WAWebAttachMenuGatingUtils").shouldShowExpressionPanelsOutOfInput()?k.jsx(n,babelHelpers["extends"]({},g)):void 0,!L&&s]}),k.jsxs("div",{className:c("WAWebComposeBox.scss").textMessageComposerInputContainer,children:[k.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:z,className:(i||(i=c("stylex")))(m.inputContainer,f,d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&m.inputContainerMaterial,L&&m.inputContainerRefresh,L&&!x&&m.inputContainerRefreshNoTopPanel,L&&x&&m.inputContainerHasTopPanel),handlers:C,onClick:N,onFocus:p,onBlur:o,children:t}),!L&&G]})]})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.expressionsPanelPickerRef,c=a.expressionsPanelWrapperRef,e=a.getComposeBoxEditorRef,f=a.handlePanelsGif,g=a.handlePanelsSticker,h=a.handlePanelsStickerFromStore,i=a.isMessageToBot,j=a.onExpressionPanelActive;a=a.replaceInputSelection;return k.jsx(d("WAWebExpressionsPanelPicker.react").ExpressionsPanelPicker,{ref:b,wrapperRef:c,onEmoji:a,onSticker:i?void 0:g,onStickerFromStore:i?void 0:h,onGif:i?void 0:f,onToggleActive:function(a){j==null?void 0:j(a)},getComposeBoxEditorRef:e})}n.displayName=n.name+" [from "+f.id+"]";g.MessageComposer=a}),98); __d("WAWebQuickRepliesPluginLogEvents",["WAWebQuickReplyWamEvent","WAWebWamEnumQuickReplyAction","WAWebWamEnumQuickReplyEntryPoint","WAWebWamEnumQuickReplyType"],(function(a,b,c,d,e,f,g){function a(a,b){b===void 0&&(b=!1);a=new(d("WAWebQuickReplyWamEvent").QuickReplyWamEvent)({quickReplyAction:d("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_CHAT_IMPRESSION,quickReplyCount:a,quickReplyEntryPoint:b?d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD});a.commit()}function b(a){a===void 0&&(a=!1);a=new(d("WAWebQuickReplyWamEvent").QuickReplyWamEvent)({quickReplyAction:d("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_CHAT_CLICK,quickReplyKeywordMatched:!1,quickReplyEntryPoint:a?d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD});a.commit()}function c(a){a===void 0&&(a=!1);a=new(d("WAWebQuickReplyWamEvent").QuickReplyWamEvent)({quickReplyAction:d("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_CHAT_CLICK_CANCEL,quickReplyEntryPoint:a?d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD});a.commit()}function e(a){a===void 0&&(a=!1);a=new(d("WAWebQuickReplyWamEvent").QuickReplyWamEvent)({quickReplyAction:d("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_SMART_DEFAULT_CLICK,quickReplyKeywordMatched:!1,quickReplyEntryPoint:a?d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD});a.commit()}function f(a){a===void 0&&(a=!1);a=new(d("WAWebQuickReplyWamEvent").QuickReplyWamEvent)({quickReplyAction:d("WAWebWamEnumQuickReplyAction").QUICK_REPLY_ACTION.ACTION_SMART_DEFAULT_CLICK,quickReplyKeywordMatched:!1,quickReplyEntryPoint:a?d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD,quickReplyType:d("WAWebWamEnumQuickReplyType").QUICK_REPLY_TYPE.QUICK_REPLY_TYPE_PIX_KEY});a.commit()}g.logFilterEvent=a;g.logSelectEvent=b;g.logCancelEvent=c;g.logSmartDefaultSelectEvent=e;g.logPixSmartSelectEvent=f}),98); __d("WAWebQuickRepliesPluginResult.react",["WAWebEmojiText.react","WAWebFormatConfiguration","WAWebStylesEnv","WAWebUISpacing","react","stylex","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={result:{display:"x78zum5",height:"x1qx5ct2",overflowX:"x6ikm8r",overflowY:"x10wlt62",fontSize:"x1f6kntn",color:"x40yjcy",textOverflow:"xlyipyv",whiteSpace:"xuxw1ft",verticalAlign:"xxymvpz",$$css:!0},resultEmoji:{position:"x1n2onr6",top:"x1e0gzzx",$$css:!0},resultSelected:{backgroundColor:"x1ru9bj0",$$css:!0},slash:{color:"xiqmkuo",$$css:!0},shortcutPrefix:{fontWeight:"x117nqv4",color:"x1cgtc05",$$css:!0},shortcutSuffix:{color:"xy9n6vp",$$css:!0},message:{color:"x40yjcy",textAlign:"x1yc453h",$$css:!0}};function a(a){var b=d("useWAWebModelValues").useModelValues(a.quickReply,["shortcut","message"]),e=b.shortcut;b=b.message;var f=a.query,g=a.selected,h=a.onMouseDown,l=a.onMouseEnter;a=a.onMouseUp;e=e.slice(f.length);return j.jsxs("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(k.result,d("WAWebUISpacing").uiPadding.vert16,d("WAWebUISpacing").uiPadding.horiz18,d("WAWebStylesEnv").hasEmoji&&k.resultEmoji,g&&k.resultSelected),{onMouseDown:h,onMouseUp:a,onMouseEnter:l,children:[j.jsx("span",babelHelpers["extends"]({},i.props(k.slash,d("WAWebUISpacing").uiPadding.top3))),j.jsx(d("WAWebEmojiText.react").EmojiText,{className:i(k.shortcutPrefix,d("WAWebUISpacing").uiPadding.top3),text:f}),j.jsx(d("WAWebEmojiText.react").EmojiText,{className:i(k.shortcutSuffix,d("WAWebUISpacing").uiPadding.top3),text:e}),j.jsx(d("WAWebEmojiText.react").EmojiText,{className:i(k.message,d("WAWebUISpacing").uiPadding.top3,d("WAWebUISpacing").uiMargin.start10),testid:void 0,ellipsify:!0,text:b,formatters:d("WAWebFormatConfiguration").QuickReply()})]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebSendLocationChatAction",["WALogger","WATimeUtils","WAWebAck","WAWebMsgKey","WAWebSendMsgChatAction","WAWebSendMsgResultAction","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["Location message send to chat failure: ",""]);h=function(){return a};return a}function a(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.chat,e=a.lat,f=a.lng,g=a.loc;a=a.meUser;e=(yield j({chat:b,lat:e,lng:f,loc:g,meUser:a}));try{f=(yield d("WAWebSendMsgChatAction").addAndSendMsgToChat(b,e)[1]);if(!f||f.messageSendResult!==d("WAWebSendMsgResultAction").SendMsgResult.OK)throw c("err")("Location message SendMsgResult failure status")}catch(a){d("WALogger").WARN(h(),a);throw a}});return i.apply(this,arguments)}function j(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.chat,e=a.lat,f=a.lng,g=a.loc;a=a.meUser;a={type:"location",ack:d("WAWebAck").ACK.CLOCK,from:a,id:new(c("WAWebMsgKey"))({from:a,to:b.id,id:yield c("WAWebMsgKey").newId(),participant:void 0,selfDir:"out"}),local:!0,isNewMsg:!0,t:d("WATimeUtils").unixTime(),to:b.id,lat:e,lng:f,loc:g};return a});return k.apply(this,arguments)}g["default"]=a}),98); __d("WAWebQuickReplySuggestions.react",["Lexical","WATypeUtils","WAWebBizSendOrderAction","WAWebBusinessProfileCollection","WAWebChatCollection","WAWebChatGetters","WAWebContactCollection","WAWebFrontendContactGetters","WAWebL10NCountryCodes","WAWebListSuggestionsPanel.react","WAWebQuickRepliesPluginLogEvents","WAWebQuickRepliesPluginResult.react","WAWebQuickReplyCollection","WAWebQuickReplyEnum","WAWebQuickReplyGetters","WAWebSendContactsAction","WAWebSendLocationChatAction","WAWebSendTextMsgChatAction","WAWebUserPrefsMeUser","react","useWAWebForceUpdate","useWAWebLexicalEvent","useWAWebLexicalTypeAhead","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useImperativeHandle,m=b.useMemo,n=b.useRef,o=52,p="/",q=25;function a(a){var b=a.ref,e=a.editor,f=a.kind,g=a.onSelect;a=a.onHide;var h=d("useWAWebLexicalTypeAhead").useTypeAhead(e,p,{boundary:!0,maxQueryLength:q}),i=h.query,s=h.clearQuery,t=h.replaceQuery,y=h.omitQuery,z=h.setQuery;h=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();var A=n(!1),B=n(),C=n(!1);d("useWAWebListener").useListener(d("WAWebQuickReplyCollection").QuickReplyCollection,"add remove change:shortcut",h);k(function(){d("WAWebQuickReplyCollection").QuickReplyCollection.addSmartDefaultsIfNeeded()},[]);h=function(a,b){return j.jsx(c("WAWebQuickRepliesPluginResult.react"),{quickReply:a.quickReply,query:a.query,selected:b},a.quickReply.id.toString())};var D=function(a){a=a.quickReply;B.current=a.message;switch(d("WAWebQuickReplyGetters").getType(a)){case d("WAWebQuickReplyEnum").QuickReplyTypes.PROFILE_SMART_DEFAULT:s();w(a);break;case d("WAWebQuickReplyEnum").QuickReplyTypes.ADDRESS_SMART_DEFAULT:s();v(a);break;case d("WAWebQuickReplyEnum").QuickReplyTypes.HOURS_SMART_DEFAULT:s();u(a);break;case d("WAWebQuickReplyEnum").QuickReplyTypes.PIX_KEY_SMART_DEFAULT:s();x(a);break;default:t(a.message,{select:!0}),a.useOnce()}d("WAWebQuickReplyGetters").getType(a)===d("WAWebQuickReplyEnum").QuickReplyTypes.PIX_KEY_SMART_DEFAULT?d("WAWebQuickRepliesPluginLogEvents").logPixSmartSelectEvent(A.current):a.isSmartDefault()?d("WAWebQuickRepliesPluginLogEvents").logSmartDefaultSelectEvent(A.current):d("WAWebQuickRepliesPluginLogEvents").logSelectEvent(A.current);C.current=A.current;A.current=!1;g==null?void 0:g()},E=function(){y(),A.current=!1},F=m(function(){if(i==null)return null;var a=r(i,A.current);return a.length===0?null:a.map(function(a,b){return{height:o,itemKey:a.id,contentKey:i,index:b,quickReply:a,query:i,selectable:!0}})},[i]);d("useWAWebLexicalEvent").useLexicalKeydownEvent(e,"Backspace",function(){var a=B.current;if(!a)return;e.getEditorState().read(function(){var b=d("Lexical").$getSelection();if(!b)return;a===b.getTextContent()&&d("WAWebQuickRepliesPluginLogEvents").logCancelEvent(C.current)})},!0);l(b,function(){return{togglePanel:function(){i==null?(z(""),A.current=!0):(s(),A.current=!1)}}});return j.jsx(d("WAWebListSuggestionsPanel.react").ListSuggestionsPanel,{kind:f,editor:e,items:F,renderItem:h,onSelect:D,onDismiss:E,onHide:a})}a.displayName=a.name+" [from "+f.id+"]";function r(a,b){a=d("WAWebQuickReplyCollection").QuickReplyCollection.filterShortcuts(a);var c=d("WAWebChatCollection").ChatCollection.getActive();c!=null&&d("WAWebChatGetters").getIsGroup(c)&&(a=s(a));a=t(a,d("WAWebL10NCountryCodes").getCountryShortcodeByPhone((c=d("WAWebChatCollection").ChatCollection.getActive())==null?void 0:c.contact.id.user));a.length&&d("WAWebQuickRepliesPluginLogEvents").logFilterEvent(a.length,b);return a}function s(a){return a.filter(function(a){return!a.hideFromGroupChat()})}function t(a,b){return a.filter(function(a){return!a.hideForRecipientCountryCode(b)})}function u(a){var b=d("WAWebChatCollection").ChatCollection.getActive();if(!b)return;d("WAWebSendTextMsgChatAction").sendTextMsgToChat(b,a.message);a.useOnce()}function v(a){var b=d("WAWebChatCollection").ChatCollection.getActive(),e=d("WAWebUserPrefsMeUser").getMeUser(),f=d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(e),g=d("WAWebContactCollection").ContactCollection.get(e);if(!b||!f)return;var h=f.latitude,i=f.longitude,j=f.address;if(d("WATypeUtils").isNumber(h)&&d("WATypeUtils").isNumber(i)&&g){g=d("WAWebFrontendContactGetters").getDisplayName(g);f.address&&(g+="\n"+f.address);c("WAWebSendLocationChatAction")({chat:b,lat:h,lng:i,loc:g,meUser:e});a.useOnce()}else j&&(d("WAWebSendTextMsgChatAction").sendTextMsgToChat(b,j),a.useOnce())}function w(a){var b=d("WAWebChatCollection").ChatCollection.getActive(),e=d("WAWebUserPrefsMeUser").getMeUser();if(e==null)return;e=d("WAWebContactCollection").ContactCollection.get(e);if(!b||!e)return;c("WAWebSendContactsAction")([e],b);a.useOnce()}function x(a){var b=d("WAWebChatCollection").ChatCollection.getActive();if(!b)return;void d("WAWebBizSendOrderAction").sendPixKeyPaymentInfoMessage(b);a.useOnce()}g.QuickReplySuggestions=a}),98); __d("WAWebReconnectUtil",["WAWebSocketModel","WAWebStreamModel"],(function(a,b,c,d,e,f,g){a=function(){var a=this;this.isReconnecting=!1;this.reconnectIfDisconnected=function(){!a.isReconnecting&&d("WAWebStreamModel").Stream.displayInfo===d("WAWebStreamModel").StreamInfo.OFFLINE&&(a.isReconnecting=!0,d("WAWebSocketModel").Socket.summary(),self.setTimeout(function(){return a.isReconnecting=!1},3e3))}};b=new a().reconnectIfDisconnected;g.reconnect=b}),98); __d("WAWebUseComposeBoxActionListeners",["WAWebComposeBoxActions","useWAWebListener"],(function(a,b,c,d,e,f,g){function a(a,b){var c,e;a=a.id.toString();(c=d("useWAWebListener")).useListener((e=d("WAWebComposeBoxActions")).ComposeBoxActions,"focus_"+a,b.onFocus);c.useListener(e.ComposeBoxActions,"focus",b.onFocus);c.useListener(e.ComposeBoxActions,"send_"+a,b.onSend);c.useListener(e.ComposeBoxActions,"paste_"+a,b.onPaste);c.useListener(e.ComposeBoxActions,"paste",b.onPaste);c.useListener(e.ComposeBoxActions,"send_paste_"+a,b.onRoutedPaste);c.useListener(e.ComposeBoxActions,"toggle_quick_replies",b.onToggleQuickReplies);c.useListener(e.ComposeBoxActions,"add_sending_log_attributes_"+a,b.onSendingLogAttributes);c.useListener(e.ComposeBoxActions,"set_ctwa_context_link_data_"+a,b.onCtwaContextLinkData);c.useListener(e.ComposeBoxActions,"set_text_content_"+a,b.onSetTextContent)}g["default"]=a}),98); __d("WAWebUseShouldShowBotSuggestions",["WAWebBotGating","WAWebMsgType","WAWebUserPrefsMeUser","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g){function a(a,b){var e=c("useWAWebEventTargetValue")(a,["change:msgsLength"],function(){var b,c=d("WAWebBotGating").isBotEnabled()&&a.id.isBot();b=(b=a.msgs.last())==null?void 0:b.subtype;return c&&(a.msgsLength===0||a.msgsLength===1&&b==="bot_init")}),f=c("useWAWebEventTargetValue")(a,["change:msgsLength"],function(){if(!d("WAWebBotGating").isBizBot3pAvailable()||!b||b.length===0)return!1;var c=a.msgs.last();if(!c||c.subtype==="biz_bot_3p_disclosure")return!0;if(c.type===d("WAWebMsgType").MSG_TYPE.CHAT&&!d("WAWebUserPrefsMeUser").isMeAccount(c.from)){c=a.msgs.at(a.msgs.length-2);if((c==null?void 0:c.subtype)==="biz_bot_3p_disclosure")return!0}return!a.msgs.some(function(a){return a.type!==d("WAWebMsgType").MSG_TYPE.NOTIFICATION_TEMPLATE&&a.type!==d("WAWebMsgType").MSG_TYPE.E2E_NOTIFICATION})?!0:!1},[b]);return e||f}g.useShouldShowBotSuggestions=a}),98); __d("useForceUpdate",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useReducer;function a(){var a=i(j,0);a=a[1];return a}function j(a){return a+1}g["default"]=a}),98); __d("WAWebComposeBox.react",["fbt","$InternalEnum","PaymentLink","PaymentLinkWamLogger","Promise","WAAbortError","WAFilteredCatch","WALogger","WANullthrows","WAShiftTimer","WATimeUtils","WAWebABProps","WAWebApiPrepareCtwaContextSend","WAWebAttachMenuGatingUtils","WAWebAttachmentMenuLogger","WAWebBizGatingUtils","WAWebBizQueryCtwaContextBridge","WAWebBlocklistCollection","WAWebBotCommandSuggestions.react","WAWebBotGating","WAWebBotProfileGetters","WAWebBotSuggestions.react","WAWebBotTypes","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebChatGetters","WAWebChatPreferenceCollection","WAWebClassnames","WAWebCmd","WAWebCodeFormatMutator","WAWebComposeBox.scss","WAWebComposeBoxActions","WAWebComposeBoxPopupPanels.react","WAWebComposeBoxUtils","WAWebConstantsDeprecated","WAWebConversationSpamUtils","WAWebCopyPasteCopyableArea.react","WAWebCryptoRandomMediaKey","WAWebDrawerManager","WAWebElevatedPushNamesFlag","WAWebEmojiPickerPlugin","WAWebEmojiSuggestions.react","WAWebErrorBoundary.react","WAWebFilePicker.react","WAWebFileUtils","WAWebFocusIndicator","WAWebFrontendChatGetters","WAWebGenMinimalLinkPreviewChatAction","WAWebKeyboardHotKeys.react","WAWebLexicalUtils","WAWebLimitSharingUIUtils","WAWebLinkPreviewChatAction","WAWebLinkify","WAWebMediaGetUploadOriginForChat","WAWebMediaOpaqueData","WAWebMediaUploadMmsThumbnail","WAWebMentionPickerPlugin","WAWebMentionSuggestions.react","WAWebMessageComposer.react","WAWebMessageEditGatingUtils","WAWebMimeTypes","WAWebMiscErrors","WAWebMmsMediaTypes","WAWebNewsletterGatingUtils","WAWebNewsletterSendMsgAction","WAWebNewsletterWamoSubMessageType","WAWebNewsletterWamoSubUtils","WAWebNoop","WAWebPrepareMessageSendingAction","WAWebPresenceChatAction","WAWebProtobufsE2E.pb","WAWebPttComposer.react","WAWebPttComposerRecordingSession","WAWebQuickReplyLogging","WAWebQuickReplySuggestions.react","WAWebReconnectUtil","WAWebRecordingSessionStateEnum","WAWebRichTextInput.react","WAWebRichTextInputGatingUtils","WAWebSendStickerAction","WAWebSendTextMsgChatAction","WAWebStateUtils","WAWebStopEvent","WAWebSuggestionsPanelContainer.react","WAWebTabOrder","WAWebTextSizeUtils","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUim","WAWebUimUie.react","WAWebUseBotProfileValues","WAWebUseBusinessProfile.react","WAWebUseComposeBoxActionListeners","WAWebUseIsKeyboardUser","WAWebUseShouldShowBotSuggestions","WAWebUserPrefsGeneral","WAWebUserPrefsMeUser","WAWebVelocityTransitionGroup","WAWebWamEnumMediaPickerOriginType","WAWebWamEnumQuickReplyEntryPoint","WAWebWamEnumWebcStickerMakerEventNameType","WAWebWebcStickerMakerEventsWamEvent","asyncToGeneratorRuntime","cr:5993","cr:7456","cr:8554","gkx","react","stylex","useForceUpdate","useLazyRef","useWAWebChatValues","useWAWebDebouncedCallback","useWAWebListener","useWAWebModelValues","useWAWebOnUnmount","useWAWebSetModelValue","useWAWebStableCallback"],(function(a,b,c,d,e,f,g,h){var i,j,k,l;function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["Unable to retrieve CTWA context data, error: ",""]);m=function(){return a};return a}function aa(){var a=babelHelpers.taggedTemplateLiteralLoose(["Full preview upload has failed: "]);aa=function(){return a};return a}function ba(){var a=babelHelpers.taggedTemplateLiteralLoose(["link preview: uploading new thumbnail mms"]);ba=function(){return a};return a}function ca(){var a=babelHelpers.taggedTemplateLiteralLoose(["link preview: using an existing thumbnail mms"]);ca=function(){return a};return a}var n=l||d("react"),o=k||(k=c("react")),da=n.useEffect,ea=n.useImperativeHandle,fa=n.useMemo,p=n.useRef,q=n.useState,r=b("cr:8554")==null?void 0:b("cr:8554").NewsletterWamoSubMessageTypePopup,ga=/^https?:\/\/media\.giphy\.com\/media\/([a-zA-Z0-9]+)/,ha=1,ia=700,ja=8,s=b("$InternalEnum").Mirrored(["ATTACHMENT_MENU","OTHER"]),t={blockCompose:{position:"x1n2onr6",zIndex:"xhtitgo",boxSizing:"x9f619",display:"x78zum5",flexDirection:"x1q0g3np",alignItems:"xuk3077",maxWidth:"x193iq5w",minHeight:"x122xwht",backgroundColor:"x1bmpntp",$$css:!0},blockComposeRefresh:{backgroundColor:"xjbqb8w",minHeight:"x1wiwyrm",$$css:!0},maxWidthEnabled:{maxWidth:"xquzyny",$$css:!0},richTextRefresh:{caretColor:"xjdcl3y",$$css:!0}};function a(a){var e,f=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var g=a.chat,k=a.onPageUpDown,l=a.onComposeHeightChange,n=a.canShowSpamPanel;n=n===void 0?!1:n;var u=c("useForceUpdate")(),v=d("useWAWebChatValues").useChatValues(a.chat.id,[d("WAWebChatGetters").getId,d("WAWebFrontendChatGetters").getTrusted,d("WAWebFrontendChatGetters").getComposeQuotedMsg,d("WAWebChatGetters").getIsPSA,d("WAWebChatGetters").getIsGroup,d("WAWebFrontendChatGetters").getPttRecordingSession,d("WAWebFrontendChatGetters").getShouldAppearInList,d("WAWebFrontendChatGetters").getPresence,d("WAWebFrontendChatGetters").getContact,d("WAWebFrontendChatGetters").getAttachMediaContents,d("WAWebFrontendChatGetters").getQuotedMsgAdminGroupJid,d("WAWebFrontendChatGetters").getQuotedMsgAdminGroupSubject,d("WAWebFrontendChatGetters").getQuotedMsgAdminParentGroupJid,d("WAWebFrontendChatGetters").getComposeQuotedMsgRemoteJid,d("WAWebChatGetters").getIsAutoMuted,d("WAWebChatGetters").getIsNewsletter,d("WAWebChatGetters").getIsBroadcast,d("WAWebFrontendChatGetters").getNewsletterMetadata,d("WAWebFrontendChatGetters").getIsCAG]),w=v[0],ka=v[1],la=v[2];v[3];var ma=v[4];v[5];v[6];var na=v[7];v[8];v[9];var oa=v[10],pa=v[11],qa=v[12];v[13];v[14];var x=v[15];v[16];var ra=v[17],sa=d("useWAWebSetModelValue").useSetModelValue(g,"composeQuotedMsg"),ta=d("useWAWebSetModelValue").useSetModelValue(g,"quotedMsgAdminGroupJid"),ua=d("useWAWebSetModelValue").useSetModelValue(g,"composeQuotedMsgRemoteJid"),va=d("useWAWebSetModelValue").useSetModelValue(g,"pttRecordingSession"),y=d("useWAWebModelValues").useModelValues(c("WAWebChatPreferenceCollection").getDefault(),["spellcheck","transformTextEmoji","enterIsSend","showExpandedComposer"]);v=fa(function(){return g.getComposeContents()},[g]);var z=q(null),wa=z[0],xa=z[1],A=p(v==null?void 0:v.omittedURL);z=q(null);var B=z[0],C=z[1];z=q(!1);var ya=z[0],za=z[1];z=q(d("PaymentLinkWamLogger").LinkPreviewStatus.NOT_STARTED);var Aa=z[0],Ba=z[1],Ca=p(v==null?void 0:v.omittedURL),D=p((v==null?void 0:v.text)||""),Da=function(){var a=d("WAWebCodeFormatMutator").removeCodeBlocks(D.current);return d("WAWebLinkify").findLinks(a,!0,d("WAWebUserPrefsMeUser").assertGetMe())[0]};z=c("WAWebUseIsKeyboardUser")();z=z.isKeyboardUser;var E=q(null),Ea=E[0],Fa=E[1];E=function(){return w.isBot()||Ea!=null};var F=d("WAWebUseBusinessProfile.react").useBusinessProfile(d("WAWebBotGating").isBizBot3pAvailable()||d("WAWebBotGating").isBizBot1pEnabled()?w:null,["commands","prompts","isBizBot1p","isBizBot3p"]);e=(e=Ea)!=null?e:w;var Ga=d("WAWebUseBotProfileValues").useOptionalBotProfileValues(e,[d("WAWebBotProfileGetters").getCommands]);Ga=Ga[0];var G=(F==null?void 0:F.commands)||d("WAWebBotGating").isMetaBotCommandsEnabled&&Ga||null,Ha=p([]),Ia=c("useLazyRef")(function(){return new AbortController()}),H=q(!1),Ja=H[0],Ka=H[1];H=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();a=d("WAWebUseShouldShowBotSuggestions").useShouldShowBotSuggestions(a.chat,F==null?void 0:F.prompts);var La=function(){Ha.current=[],Ia.current.abort(),Ia.current=new AbortController(),Ja&&Ka(!1)},Ma=function(a){a===void 0&&(a=d("WAWebUim").DismissReason.UIM_INTERACTION),za(!0),Na(a)},Na=function(a){a===void 0&&(a=d("WAWebUim").DismissReason.UIM_INTERACTION);if(a===d("WAWebUim").DismissReason.LIFECYCLE)return;d("WAWebABProps").getABPropConfigValue("link_preview_shimmer_enabled")&&La();B&&(Ca.current=A.current,C(null))},Oa=function(){A.current=null,za(!1),Ba(d("PaymentLinkWamLogger").LinkPreviewStatus.NOT_STARTED),Na()},Pa=function(a,e){if(a.data.thumbnailDirectPath!==void 0){d("WALogger").LOG(ca());var f=d("WAWebComposeBoxUtils").getCachedPreview(a);C(function(b){return(b==null?void 0:b.url)!==a.url?b:f});return(i||(i=b("Promise"))).resolve()}d("WALogger").LOG(ba());var h=a.data.thumbnailHQ;return!h?(i||(i=b("Promise"))).resolve():c("WAWebMediaOpaqueData").createFromBase64Jpeg(h).then(function(a){return c("WAWebMediaUploadMmsThumbnail")({thumbnail:a,mediaType:x?d("WAWebMmsMediaTypes").MEDIA_TYPES.NEWSLETTER_THUMBNAIL_LINK:d("WAWebMmsMediaTypes").MEDIA_TYPES.THUMBNAIL_LINK,mediaKeyInfo:c("WAWebCryptoRandomMediaKey")(),uploadOrigin:c("WAWebMediaGetUploadOriginForChat")(g),forwardedFromWeb:!1,signal:e,timeout:c("WAWebConstantsDeprecated").MMS_THUMBNAIL_UPLOAD_TIMEOUT,isViewOnce:!1})}).then(function(b){var c=b.mediaEntry;if(!c)return;C(function(d){if((d==null?void 0:d.url)!==a.url)return d;d={mediaKey:c.mediaKey,mediaKeyTimestamp:c.mediaKeyTimestamp,thumbnailDirectPath:c.directPath,thumbnailSha256:b.filehash,thumbnailEncSha256:c.encFilehash};d=babelHelpers["extends"]({},a,{data:babelHelpers["extends"]({},a.data,d)});return d})})["catch"](d("WAAbortError").catchAbort(c("WAWebNoop")))["catch"](function(a){d("WALogger").LOG(aa()).devConsole(a)})},I=q(!!D.current),Qa=I[0],Ra=I[1];I=q(v==null?void 0:v.ctwaContextLinkData);var J=I[0],Sa=I[1],Ta=p(null),Ua=p(null);I=p(null);var Va=p(null),Wa=p(null),Xa=p(null),Ya=p(null),Za=p(0),$a=p(!1),ab=p(!1),bb=p(null),cb=c("useWAWebStableCallback")(function(){if(!Qa||J){Oa();return}var a=Da();if(!a){Oa();return}var b=a.url;if(A.current!==""&&A.current===b)return;A.current=b;Ca.current=null;var e=Ia.current.signal,f=null;d("PaymentLink").shouldDetectInComposer()&&(f=d("PaymentLink").getPSP(b));var h=f!=null?d("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.PAYMENT_LINKS:d("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.NONE,i=d("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(a,h,!0,f);d("WAWebABProps").getABPropConfigValue("link_preview_shimmer_enabled")&&C(i);Ba(d("PaymentLinkWamLogger").LinkPreviewStatus.STARTED);b=d("WAWebLinkPreviewChatAction").getLinkPreview(a,g).then(function(b){if(e.aborted)throw new(d("WAAbortError").AbortError)();if(b&&A.current===b.url&&(b.data&&(b.data.title||b.data.description))){C(b);return Pa(b,e)["finally"](function(){Ba(d("PaymentLinkWamLogger").LinkPreviewStatus.COMPLETED)})}d("WAWebABProps").getABPropConfigValue("link_preview_shimmer_enabled")&&i!=null&&C(d("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(a,h,!1,f))});Ha.current.push(b);b["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebMiscErrors").Unmount,c("WAWebNoop")))["catch"](d("WAAbortError").catchAbort(c("WAWebNoop")))}),K=c("useLazyRef")(function(){return new(d("WAShiftTimer").ShiftTimer)(cb)}),db=p({text:"",parsableText:"",data:{}}),eb=p(null),L=null,M=q(),N=M[0];M=M[1];var O=q(g.pttRecordingSession),fb=O[0],gb=O[1];O=q(g.pttRecordingSession!=null);var hb=O[0],ib=O[1];O=q(null);var jb=O[0],kb=O[1];O=q("");var lb=O[0],mb=O[1];O=q(v==null?void 0:v.ctwaContext);var P=O[0],nb=O[1];v=q(function(){return d("WAWebConversationSpamUtils").shouldShowSpamPanel(g)});var ob=v[0],pb=v[1];O=function(a){mb(a)};v=function(){pb(!1),d("WAWebConversationSpamUtils").acknowledgeGroupAsNotSpam(g)};var qb=function(){pb(!1)},Q=q({handleOnce:[],handleMultiple:[]}),rb=Q[0],sb=Q[1];d("useWAWebListener").useListener(d("WAWebBlocklistCollection").BlocklistCollection,["add","remove","reset"],u);Q=q(y.showExpandedComposer);var tb=Q[0],ub=Q[1];u=function(){ub(!tb),y.set("showExpandedComposer",!y.showExpandedComposer)};var R=function(){var a=D.current,b=g.getComposeContents();if(b==null&&a.trim()==="")return;if((b==null?void 0:(b=b.text)==null?void 0:b.trim())===a.trim())return;b={text:a,timestamp:d("WATimeUtils").unixTime()};a=Ca.current;a!=null&&(b.omittedURL=a);P!=null&&(b.ctwaContext=P);J!=null&&(b.ctwaContextLinkData=J);g.setComposeContents(b)},vb=function(a){R();Oa();var b=a.sourceUrl;b!=null&&b!==""&&d("WAWebBizQueryCtwaContextBridge").fetchCtwaContextData(a).then(function(a){nb(a),R()})["catch"](function(a){d("WALogger").WARN(m(),a)})};da(function(){Za.current=c("WANullthrows")(Va.current).clientHeight,K.current.debounceAndCap(50,50),J&&(!P||P.sourceUrl!==J.sourceUrl)&&(nb(null),vb(J))},[]);c("useWAWebOnUnmount")(function(){var a;K.current.cancel();Ia.current.abort();(a=bb.current)==null?void 0:a.cancel();R()});var wb=c("useWAWebDebouncedCallback")(R,200),S=function(){var a=D.current.trim().length>0;return a},T=function(a){N==null?void 0:N.focus()},xb=function(a,b){N==null?void 0:N.replaceSelection(a,b)};Q=function(a,b){if(a===" "&&!S())return d("WAWebCmd").Cmd.scrollMessages();T(!0);xb(a,b)};var yb=function(a){T(!0),N==null?void 0:N.paste(a)},U=p(s.OTHER),zb=function(){var a;(a=eb.current)==null?void 0:a.togglePanel();U.current=s.ATTACHMENT_MENU},Ab=function(){N==null?void 0:N.reset()},V=function(){T()},W=function(){d("WAWebComposeBoxActions").ComposeBoxActions.setIsFocus(!0)},Bb=function(){d("WAWebComposeBoxActions").ComposeBoxActions.setIsFocus(!1)},Cb=p(null),Db=p(null),X=function(a){Sa(a),nb(null),vb(a)},Eb=function(a){sb(function(b){var c=b.handleOnce;b=b.handleMultiple;return{handleOnce:a.handleOnce?c.concat(a.handleOnce):c,handleMultiple:a.handleMultiple?c.concat(a.handleMultiple):b}})},Fb=function(){Sa(null),nb(null),R(),K.current.onOrBefore(1)},Gb=function(){var a;(a=Ua.current)==null?void 0:a.activate();c("WAWebFocusIndicator").maybeIndicateFocus(Ya.current,c("WAWebComposeBox.scss").focusAnimation);T(!1)},Hb=function(a){if(!k)return;a.stopPropagation();k(a);(a=bb.current)==null?void 0:a.debounce(0)},Y=c("useWAWebStableCallback")(function(){return g.getComposeContents()}),Z=c("useWAWebStableCallback")(function(a,b){b===void 0&&(b={});b=b;b=b.initCaptionUsed;a&&b&&Ab();a&&Fb()}),Ib=c("useWAWebStableCallback")(function(){wb.flush()}),Jb=function(){kb(null),V()},Kb=function(a,b,e,f){a=d("WAWebComposeBoxUtils").fetchGif(a,b,e,f);wb.flush();d("WAWebCmd").Cmd.attachMediaDrawer({chat:g,attachments:[a],initCaption:Y(),fileOrigin:d("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_GIF_INAPP,onComplete:function(a,b){Z(a,b),a&&Jb()}});a["catch"](c("WAWebNoop"));return a},Lb=function(a,b,c){void Kb(a,a,b,c)},Mb=function(a,b,c){var e=la,f=d("WAWebApiPrepareCtwaContextSend").prepareCtwaContextSend(J,P);b={stickerSendOrigin:b,quotedMsg:e,ctwaContext:f};c===d("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub&&(b.isWamoSub=!0);void d("WAWebSendStickerAction").sendStickerToChat(g,a,b);sa(null);Fb()},Nb=function(a,b,c){if(a.isCreateButton){var e;new(d("WAWebWebcStickerMakerEventsWamEvent").WebcStickerMakerEventsWamEvent)({stickerMakerEventName:d("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.STICKER_MAKER_BUTTON_TAP}).commit();(e=Xa.current)==null?void 0:e.open();return}if(x&&d("WAWebNewsletterWamoSubUtils").newsletterSupportsSubscriptions(ra)&&(c==null?void 0:c.target)&&r!=null&&d("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()){e=function(c){Mb(a,b,c)};xa({popupAnchorEl:c.target,handleSelect:e})}else Mb(a,b)},Ob=function(a,b,c){c===!0?Mb(a,b,d("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub):Mb(a,b)},Pb=function(a){var b=S();D.current=a;var c=S();c!==b&&(window.setTimeout(function(){d("WAWebComposeBoxActions").ComposeBoxActions.setHasText(c)},0),Ra(c));c?(na.subscribe(),d("WAWebPresenceChatAction").markComposing(g),void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(g)):(L=null,d("WAWebPresenceChatAction").markPaused(g));b=Da();(!b&&A.current||b&&b.url!==A.current)&&Oa();$a.current?K.current.onOrBefore(1):K.current.debounce(ia);$a.current=!1;wb();!ob&&a&&!ka&&pb(!0);b=db.current.data;a=b.mentionedJidList;b=a==null?void 0:a.find(function(a){return a.isBot()});Fa(b)},Qb=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;g.pttRecordingSession!=null?a=g.pttRecordingSession:(a=d("WAWebPttComposerRecordingSession").createRecordingSession({chat:d("WAWebStateUtils").unproxy(g)}),a.on("change:recordingState",function(){var b=a.recordingState;g.pttRecordingSession===a&&(b===d("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR||b===d("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED)&&va(null)}));gb(a);ib(!1);var b;try{b=(yield a.start())}finally{var c=b?a:null;va(c);gb(c);ib(c!=null)}});return function(){return a.apply(this,arguments)}}(),Rb=function(a){kb(a),a!=null&&d("WAWebUserPrefsGeneral").setLastComposeBoxExpressionPanel(a)},Sb=function(a){if(w.isBot()){d("WAWebToastManager").ToastManager.open(o.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__tpJsB8etjfa__JHASH__")}));return!1}a=a.getFiles().filter(function(a){a=d("WAWebFileUtils").typeFromMimetype(a.type);return a==="image"||a==="video"});a.length&&(wb.flush(),d("WAWebCmd").Cmd.attachMediaDrawer({chat:g,attachments:a.map(function(a){return{file:a}}),fileOrigin:d("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.PASTE,initCaption:Y(),onComplete:Z}))},Tb=function(a){var b=ga.exec(a);if(b){b="https://media.giphy.com/media/"+b[1]+"/200w.mp4";Kb(b,a,d("WAWebProtobufsE2E.pb").Message$VideoMessage$Attribution.GIPHY)["catch"](function(){d("WAWebDrawerManager").DrawerManager.closeDrawerMid(),T(!0),N==null?void 0:N.replaceSelection(a),d("WAWebToastManager").ToastManager.open(o.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__3NqmbS0GWwG__JHASH__")}))});return!0}$a.current=!0;return!1},Ub=function(){return!Va.current?0:Va.current.offsetWidth-ha},Vb=function(a){var b;a=a.target;if(a instanceof HTMLElement&&((b=Db.current)==null?void 0:b.contains(a)))return;a instanceof HTMLElement&&a===(N==null?void 0:(b=N.editor)==null?void 0:b.getRootElement())&&Gb();!ma&&Qa&&pb(!0)},Wb=function(a){var b,e;d("WAWebReconnectUtil").reconnect();var f=db.current.text.trim(),h=db.current.data;if(f.length===0&&!J)return;if(d("WAWebLimitSharingUIUtils").isLimitSharingReceiverEnabledForUsers(g,h.mentionedJidList)){d("WAWebLimitSharingUIUtils").showLimitSharingInvokeBlockedPopup(g);return}La();var i=la,j=B==null?void 0:B.data;b=(B==null?void 0:(b=B.data)==null?void 0:b.psp)!=null?d("PaymentLink").getPaymentLinkMessageMetadata(B==null?void 0:(b=B.data)==null?void 0:b.psp):null;var k=h.mentionedJidList||[];h=h.groupMentions||[];var l=d("WAWebApiPrepareCtwaContextSend").prepareCtwaContextSend(J,P),m=ab.current;kb(null);Ra(!1);C(null);(e=Cb.current)==null?void 0:e.close();L&&(d("WAWebQuickReplyLogging").logQuickReplySendEvent(L===s.ATTACHMENT_MENU?d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD),L=null);if(m){e=d("WAWebStateUtils").unproxy(g);e.urlText&&(e.urlText=void 0)}m={linkPreview:j,quotedMsg:i,mentionedJidList:k,groupMentions:h,quotedMsgAdminGroupJid:oa,quotedMsgAdminGroupSubject:pa,quotedMsgAdminParentGroupJid:qa,ctwaContext:l};x?(a===d("WAWebNewsletterWamoSubMessageType").NewsletterWamoSubMessageType.WamoSub&&d("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()&&(m.isWamoSub=!0),void d("WAWebNewsletterSendMsgAction").sendNewsletterTextMsg(g,f,m)):(void d("WAWebSendTextMsgChatAction").sendTextMsgToChat(g,f,babelHelpers["extends"]({},m,{botMsgBodyType:d("WAWebBotGating").isBizBot3pAvailable()&&(F==null?void 0:F.commands)&&d("WAWebLexicalUtils").hasBotCommand(N==null?void 0:N.editor)?d("WAWebBotTypes").BotMsgBodyType.COMMAND:null,paymentLinkMetadata:b})),Fb(),rb.handleOnce.forEach(function(a){return a==null?void 0:a()}),rb.handleMultiple.forEach(function(a){return a==null?void 0:a()}),sb({handleMultiple:rb.handleMultiple,handleOnce:[]}));if(d("PaymentLinkWamLogger").PaymentLinkWamLogger.shouldLogSendEvent()){e=d("WAWebUserPrefsMeUser").getMeUser();j=d("WAWebBusinessProfileUtils").hasCatalog(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(e));d("PaymentLinkWamLogger").PaymentLinkWamLogger.genLogSendEventIfPaymentLink(d("WAWebCodeFormatMutator").removeCodeBlocks(f),ya,B,Aa,j,g,b)["catch"](c("WAWebNoop"))}ab.current=!1;sa(null);ta(null);ua(null);g.setComposeContents({});Ab();S()},Xb=function(){if(x&&d("WAWebNewsletterWamoSubUtils").newsletterSupportsSubscriptions(ra)&&Ta.current&&r!=null&&d("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()){var a=function(a){Wb(a)};xa({popupAnchorEl:Ta.current,handleSelect:a})}else Wb()},$=c("useWAWebStableCallback")(function(a){N==null?void 0:N.setTextContent(a)}),Yb=function(a){if(jb){var b;(b=Wa.current)==null?void 0:b.restoreFocus(!0);d("WAWebStopEvent").stopEvent(a)}},Zb=c("useWAWebDebouncedCallback")(function(a){if(S()||!(x?d("WAWebNewsletterGatingUtils").isNewsletterMessageEditingEnabled():d("WAWebMessageEditGatingUtils").sendTextEditEnabled()||d("WAWebMessageEditGatingUtils").sendCaptionEditEnabled()))return;d("WAWebComposeBoxUtils").editLastMessage(g,a)},200,{trailing:!0}),$b=function(){gb(null),ib(!1),V()},ac=function(a){if(!a)return;a.stopPropagation();a=a.target.files==null?[]:Array.from(a.target.files);if(!a.length)return;new(d("WAWebWebcStickerMakerEventsWamEvent").WebcStickerMakerEventsWamEvent)({stickerMakerEventName:d("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.IMAGE_UPLOADED}).commit();d("WAWebCmd").Cmd.attachMediaDrawer({chat:g,attachments:a.map(function(a){return{file:a,stickerMaker:!0}}),fileOrigin:d("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_PHOTO_LIBRARY,sendAsSticker:!0})};c("WAWebUseComposeBoxActionListeners")(g,{onFocus:V,onPaste:Q,onRoutedPaste:yb,onSend:Xb,onToggleQuickReplies:zb,onCtwaContextLinkData:X,onSendingLogAttributes:Eb,onSetTextContent:$});Q=d("WAWebTextSizeUtils").getWAWebTextSizeStyles().composerFontSize;yb=d("WAWebStateUtils").unproxy(g).groupMetadata;zb=function(a){d("WAWebSendTextMsgChatAction").sendTextMsgToChat(g,a,{botMsgBodyType:d("WAWebBotGating").isBizBot3pAvailable()?d("WAWebBotTypes").BotMsgBodyType.PROMPT:null})};X=d("WAWebComposeBoxUtils").getComposeBoxPlaceholderText(g);Eb=function(a){a&&d("WAWebAttachMenuGatingUtils").areExpressionPanelsOpenEnabled()};M=o.jsxs(d("WAWebRichTextInput.react").RichTextInput,{ref:M,onFocus:W,onBlur:Bb,placeholder:X,ariaLabel:X,ariaActiveDescendents:lb,textXstyle:Q,xstyle:H&&t.richTextRefresh,testid:void 0,initialText:($=Y())==null?void 0:$.text,groupMetadata:yb,readOnly:fb!=null,maxLength:c("WAWebConstantsDeprecated").MAX_TXT_MSG_SIZE,maxVisibleLines:ja,minVisibleLines:tb?2:1,spellCheck:y.spellcheck,transformTextEmoji:y.transformTextEmoji,enterIsNewLine:!y.enterIsSend,multiline:!0,focusOnMount:!z,textFormatEnabled:!0,tabOrder:d("WAWebTabOrder").TAB_ORDER.COMPOSE_BOX_INPUT,onChange:function(a){db.current=a,Pb(a.parsableText)},onEnter:Xb,onFiles:Sb,onTextPaste:Tb,onMaxPasteExceeded:d("WAWebComposeBoxUtils").handleMaxPasteExceeded,bulletPointsEnabled:!0,numberedListEnabled:!0,inlineCodeEnabled:!0,blockQuoteEnabled:!0,internLinksEnabled:!0,phoneNumbersEnabled:!1,linksEnabled:!0,textFormatShortcutsEnabled:!0,floatingToolbarEnabled:!tb,botInvokeEnabled:g.canInvokeBot(),highlightedBotCommands:G,children:[H&&o.jsx(d("WAWebEmojiPickerPlugin").EmojiPickerPlugin,{}),H&&o.jsx(d("WAWebMentionPickerPlugin").MentionPickerPlugin,{chat:d("WAWebStateUtils").unproxy(g),elevatedPushNamesEnabled:d("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(g),botInvokeEnabled:g.canInvokeBot()})]});var bc;W=N==null?void 0:N.editor;W!=null&&(bc=o.jsxs(o.Fragment,{children:[!H&&o.jsx(d("WAWebMentionSuggestions.react").MentionSuggestions,{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W,chat:g,groupMetadata:yb,elevatedPushNamesEnabled:d("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(g),botInvokeEnabled:g.canInvokeBot()}),!H&&o.jsx(d("WAWebEmojiSuggestions.react").EmojiSuggestions,{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W,emojiSuggestionSelect:O}),d("WAWebBizGatingUtils").canSendQuickReplyInChat(g)&&o.jsx(d("WAWebQuickReplySuggestions.react").QuickReplySuggestions,{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W,ref:eb,onSelect:function(){U.current===s.ATTACHMENT_MENU?(d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(g,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.QUICK_REPLY),L=s.ATTACHMENT_MENU):L=s.OTHER,U.current=s.OTHER},onHide:function(){U.current===s.ATTACHMENT_MENU&&d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(g,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.QUICK_REPLY),U.current=s.OTHER}}),(d("WAWebBotGating").isBizBot3pEnabled()&&F||d("WAWebBotGating").isMetaBotCommandsEnabled()&&Ga)&&o.jsx(d("WAWebBotCommandSuggestions.react").BotCommandSuggestions,{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W,businessProfile:F&&d("WAWebStateUtils").unproxy(F),metaBotId:e}),!c("gkx")("26258")&&b("cr:5993")?o.jsx(b("cr:5993"),{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W}):null]}));ea(f,function(){return{flushSaveComposeContentDebounced:Ib,getCurrentComposeContent:Y,updateTextAfterMediaDrawerClose:Z}},[Ib,Y,Z]);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"start_ptt_recording",function(){hb||void Qb()});Bb=null;a&&(Bb=o.jsx(d("WAWebBotSuggestions.react").BotSuggestions,{id:w,onPromptSelect:zb}));X={chat:g,pttComposerActive:hb,isMessageToBot:E(),getCurrentComposeContent:Y,richTextInputRef:N,updateTextAfterMediaDrawerClose:Z,inputHotkeyRef:Ya,handleTab:Yb,handleMetaUpDebounced:Zb,handleInputFocus:Vb,input:M,expressionsPanelWrapperRef:Db,expressionsPanelPickerRef:Cb,replaceInputSelection:xb,handlePanelsSticker:Nb,handlePanelsStickerFromStore:Ob,handlePanelsGif:Lb,hasTextState:Qa,handleSendText:Xb,recordingSession:fb,startRecording:Qb,onExpressionPanelActive:Eb};lb=d("WAWebComposeBoxPopupPanels.react").useComposePopupPanels(Wa,{chat:g,linkPreviewData:B==null?void 0:B.data,ctwaContextLinkData:J,ctwaContextData:P,restoreFocus:V,selectedExpressionPanel:jb,getComposeBlockWidth:Ub,onComposeHeightChange:l,omitLinkPreview:Ma,omitCtwa:Fb,attachmentButtonHidden:E(),onEmoji:xb,onGif:Lb,onExpressionPanelChange:Rb,onSticker:Nb,onExpressionPanelClose:Jb,showSpamPanel:n&&ob,onClickNotSpam:v,onClickDismissSpam:qb});Q=lb.PopupPanels;$=lb.hasTopPanels;Sb=d("WAWebRichTextInputGatingUtils").composerV2M2Enabled()&&Boolean(b("cr:7456"));tb&&b("cr:7456")?Tb=o.jsx(b("cr:7456"),babelHelpers["extends"]({},X,{ref:Ta,onCollapseComposer:u})):Tb=o.jsx(d("WAWebMessageComposer.react").MessageComposer,babelHelpers["extends"]({},X,{ref:Ta,handleExpressionPanelChange:Rb,selectedExpressionPanel:jb,onExpandComposer:Sb?u:null,hasTopPanel:$,closePttComposer:$b}));return o.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"compose-box",type:"fatal",children:o.jsx(d("WAWebUimUie.react").UIE,{displayName:"ComposeBox",ref:Ua,uimState:d("WAWebUim").UIMState.PASSIVE,requestFocus:z?null:V,children:o.jsxs(d("WAWebKeyboardHotKeys.react").HotKeys,{component:"footer",tabIndex:null,handlers:{pagedown:Hb,pageup:Hb},className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((G={},G[c("WAWebComposeBox.scss").pttComposerActive]=hb,G[c("WAWebComposeBox.scss").footer]=!0,G[c("WAWebComposeBox.scss").botSuggestions]=a,G),{0:"",1:"x1wiwyrm"}[!!H<<0]),ref:I,children:[Bb,o.jsx(c("WAWebCopyPasteCopyableArea.react"),{canCut:!0,className:(j||(j=c("stylex")))(t.blockCompose,H&&[t.blockComposeRefresh,d("WAWebUISpacing").uiMargin.horizAuto,d("WAWebUIRefreshGatingUtils").restrictMessageListWidth()&&t.maxWidthEnabled],!H&&[d("WAWebUISpacing").uiPadding.bottom5,d("WAWebUISpacing").uiPadding.horiz16]),ref:Va,children:o.jsxs("div",babelHelpers["extends"]({"data-testid":void 0},{0:{className:"x1n2onr6 x98rzlu xh8yej3 xeuugli x1ofbdpd"},1:{className:"x1n2onr6 x98rzlu xh8yej3 xeuugli x1gg8mnh"}}[!!H<<0],{children:[hb&&!H?o.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pttComposer",children:o.jsx("div",{className:c("WAWebComposeBox.scss").pttComposerContainer,children:o.jsx(c("WAWebPttComposer.react"),{chat:d("WAWebStateUtils").unproxy(g),recordingSession:c("WANullthrows")(fb),onComplete:$b})})}):null,o.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"messageComposer",children:Tb})]}))}),Q,o.jsx(c("WAWebFilePicker.react"),{ref:Xa,mimes:d("WAWebMimeTypes").IMAGE_MIMES,onChange:ac,multiple:!1}),bc,wa!=null&&r!=null&&o.jsx(r,{handleSelect:wa.handleSelect,popupAnchorEl:wa.popupAnchorEl,onDismiss:function(){return xa(null)}})]})})})}a.displayName=a.name+" [from "+f.id+"]";n=a;function e(a){var b=a.chat;a=a.handleFocus;b=b.id.toString();d("useWAWebListener").useListener(d("WAWebComposeBoxActions").ComposeBoxActions,"focus_"+b,a);d("useWAWebListener").useListener(d("WAWebComposeBoxActions").ComposeBoxActions,"focus",a);return o.jsx(d("WAWebUimUie.react").UIE,{displayName:"PlaceholderComposeBox"})}e.displayName=e.name+" [from "+f.id+"]";g.ComposeBox=n;g.PlaceholderComposeBox=e}),226); __d("WAWebCompression",["JSResourceForInteraction","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){b===void 0&&(b={});var a=(yield c("JSResourceForInteraction")("WAGzip").__setRef("WAWebCompression").load());return a.createDeflate(b)});return h.apply(this,arguments)}g.createDeflate=a}),98); __d("WAWebCongratulationsAnimation.react",["WAWebCongratulationsAnimationsUtils","WAWebLottieAnimationLoadable","react","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useImperativeHandle,l=b.useRef,m=b.useState,n={lottieComponent:{height:"x5yr21d",width:"xh8yej3",$$css:!0}};function a(a){var b=a.onAnimationComplete;a=a.ref;var e=m(!1),f=e[0],g=e[1];e=m(null);var h=e[0],i=e[1];e=l(null);var o=c("useWAWebUnmountSignal")(),p=function(){b==null?void 0:b();if(o.aborted)return;g(!1)},q=function(a){if(o.aborted)return;a=d("WAWebCongratulationsAnimationsUtils").getCongratulationsAnimationPath(a.animation);i(a);g(!0)};k(a,function(){return{triggerAnimation:q}});a=null;f&&h!=null&&(a=j.jsx("div",babelHelpers["extends"]({className:"x10l6tqk x1omtkq1 x47corl x5yr21d xh8yej3 x78zum5 xl56j7k"},{children:j.jsx("div",babelHelpers["extends"]({className:"x5yr21d xktia5q"},{children:j.jsx(d("WAWebLottieAnimationLoadable").LottieAnimation,{ref:e,autoplay:!0,path:h,onComplete:p,xstyle:n.lottieComponent})}))})));return a}a.displayName=a.name+" [from "+f.id+"]";e=a;g.CongratulationsAnimation=e}),98); __d("WAWebCongratulationsAnimationConversation.react",["WAWebCongratulationsAnimation.react","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useRef;function l(a,b){a.animationCandidateData&&(b==null?void 0:b.triggerAnimation({animation:a.animationCandidateData.animationType}),a.setCelebrationAnimationLastPlayed())}function a(a){a=a.chat;var b=k();a=d("useWAWebModelValues").useModelValues(a,["animationCandidateData","celebrationAnimationLastPlayed"]);a.animationCandidateData&&a.animationCandidateData.msgTimestampSeconds>a.celebrationAnimationLastPlayed&&l(a,b.current);return j.jsx(d("WAWebCongratulationsAnimation.react").CongratulationsAnimation,{ref:b})}a.displayName=a.name+" [from "+f.id+"]";g.CongratulationsAnimationConversation=a}),98); __d("WAWebContactMutator",["WALogger","WAWebBizCoexGatingUtils","WAWebContactCollection","WAWebProtobufsAdv.pb","WAWebWidFactory"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["updated contact name"]);h=function(){return a};return a}function a(a){var b=a.contactId;a=a.pushname;b=d("WAWebContactCollection").ContactCollection.gadd(b);if(b.pushname===a)return!1;a={pushname:a};b.set(a);return!0}function b(a){a=a.lidPhoneNumberMappings;a.forEach(function(a){var b=a.lid;a=a.phoneNumber;b=d("WAWebContactCollection").ContactCollection.get(d("WAWebWidFactory").createUserWid(b,"lid"));var c=d("WAWebContactCollection").ContactCollection.get(d("WAWebWidFactory").createUserWid(a));if(b!=null){a=b.phoneNumber=d("WAWebWidFactory").createUserWid(a);b.copyNameFromPnContact(a)}b==null?void 0:b.updateContactBlocked();c==null?void 0:c.updateContactBlocked();b==null?void 0:b.updateContactOptedOutOfMarketingMessages();c==null?void 0:c.updateContactOptedOutOfMarketingMessages()})}function c(a){a=a.lidContactDataMappings;a.forEach(function(a){var b=a.lid,c=a.shareOwnPn,e=a.displayNameLID;a=a.requestedPnTimestamp;b=d("WAWebContactCollection").ContactCollection.gadd(b);b!=null&&(c!=null&&(b.shareOwnPn=c),e!=null&&(b.displayNameLID=e),a!=null&&(b.requestedPnTimestamp=a))})}function e(a){var b=a.contactId;a=a.name;d("WAWebContactCollection").ContactCollection.gadd(b).set({name:a});d("WALogger").LOG(h()).tags("contact")}function f(a){var b=a.contactId,c=a.disappearingModeDuration;a=a.disappearingModeSettingTimestamp;d("WAWebContactCollection").ContactCollection.gadd(b).set({disappearingModeDuration:c,disappearingModeSettingTimestamp:a})}function i(a){var b=a.contactId,c=a.textStatusString,e=a.textStatusEmoji,f=a.textStatusEphemeralDuration,g=a.textStatusLastUpdateTime;a=a.textStatusExpiryTs;d("WAWebContactCollection").ContactCollection.gadd(b).set({textStatusString:c,textStatusEmoji:e,textStatusEphemeralDuration:f,textStatusLastUpdateTime:g,textStatusExpiryTs:a})}function j(a){var b=a.contactId;a=a.businessInfo;if(a==null)return;d("WAWebContactCollection").ContactCollection.gadd(b).set(a)}function k(a){a=a.usernameUpdates;a.forEach(function(a){var b=a.id,c=a.username;a=a.displayNameLID;b=d("WAWebContactCollection").ContactCollection.gadd(d("WAWebWidFactory").createUserWid(b));if(b.username===c)return;b.username=c;a!=null&&(b.displayNameLID=a)})}function l(a){var b=a.contactId;a=a.advAccountType;if(d("WAWebBizCoexGatingUtils").bizHostedDevicesEnabled()){a=a===d("WAWebProtobufsAdv.pb").ADVEncryptionType.HOSTED;d("WAWebContactCollection").ContactCollection.gadd(b).set(a?{isHosted:!0,isOrHasBeenHosted:!0}:{isHosted:!1})}}function m(a){var b=a.showMe;b=b===void 0?!1:b;var c=a.showWithoutName;c=c===void 0?!1:c;a=a.includeLidContacts;a=a===void 0?!1:a;return d("WAWebContactCollection").ContactCollection.getFilteredContacts({showMe:b,showWithoutName:c,includeLidContacts:a})}function n(a){var b=a.id;a=a.usernamePin;b=d("WAWebContactCollection").ContactCollection.gadd(d("WAWebWidFactory").createUserWid(b));b.usernamePin=a}g.updatePushname=a;g.bulkUpdatePhoneNumberJids=b;g.bulkUpdateLidContactState=c;g.updateContactName=e;g.updateDisappearingMode=f;g.updateTextStatus=i;g.updateBusinessInfo=j;g.bulkUpdateUsernames=k;g.updateContactAdvAccountType=l;g.getFilteredContacts=m;g.updateUsernamePin=n}),98); __d("WAWebContactBridgeApi",["WAWebBizUpdateContactsWithVerifiedNamesAction","WAWebContactCollection","WAWebContactMutator"],(function(a,b,c,d,e,f,g){b={updatePushname:(a=d("WAWebContactMutator")).updatePushname,bulkUpdatePhoneNumberJids:a.bulkUpdatePhoneNumberJids,updateContactName:a.updateContactName,bulkUpdateLidContactState:a.bulkUpdateLidContactState,updateDisappearingMode:a.updateDisappearingMode,updateTextStatus:a.updateTextStatus,updateContactWithVerifiedName:function(a){var b=a.contactId;a=a.verifiedNameInfo;b=d("WAWebContactCollection").ContactCollection.gadd(b);d("WAWebBizUpdateContactsWithVerifiedNamesAction").updateContactsWithVerifiedNames([a],[b])},addContactToCollection:function(a){var b=a.contact;a=a.option;d("WAWebContactCollection").ContactCollection.add(babelHelpers["extends"]({},b),a)},updateBusinessInfo:a.updateBusinessInfo,bulkUpdateUsernames:a.bulkUpdateUsernames,updateContactAdvAccountType:a.updateContactAdvAccountType,getFilteredContacts:a.getFilteredContacts,updateUsernamePin:a.updateUsernamePin};g.ContactBridgeApi=b}),98); __d("WAWebConversationDeprecatedLidChatBanner.react",["fbt","WALogger","WAWebButton.react","WAWebCmd","WAWebComposeBoxActions","WAWebConversationNewBanner.react","WAWebFindChatAction","WAWebRoundSendInvIcon.react","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[deprecated lid chat] failed to find or create latest chat using the latest lid for given pn"]);j=function(){return a};return a}var k=i||d("react");function a(a){var e=a.latestLid;a=h._(/*BTDS*/"__JHASH__qwqOobeMJBo__JHASH__");var f=h._(/*BTDS*/"__JHASH__zc7f1VLQnl6__JHASH__"),g=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("WAWebFindChatAction").findOrCreateLatestChat(e,"deprecatedLidOrPnChat").then(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=a.chat;var b=(yield d("WAWebCmd").Cmd.openChatFromUnread(a));b&&d("WAWebComposeBoxActions").ComposeBoxActions.focus(a)});return function(b){return a.apply(this,arguments)}}())["catch"](function(){d("WALogger").ERROR(j()).sendLogs("failed-to-find-or-create-latest-chat-from-deprecated-chat")})});return function(){return a.apply(this,arguments)}}();g=k.jsx(d("WAWebButton.react").WAWebButtonSecondary,{onClick:g,icon:d("WAWebRoundSendInvIcon.react").RoundSendInvIcon,children:f},"go_to_latest_lid_chat");return k.jsx(c("WAWebConversationNewBanner.react"),{primaryText:a,buttons:[g]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebConversationDeprecatedLidChatUtils",["WAWebApiContact","WAWebLid1X1MigrationGating"],(function(a,b,c,d,e,f,g){var h={isLidDeprecated:!1};function a(a){if(!d("WAWebLid1X1MigrationGating").Lid1X1MigrationUtils.isLidMigrated()||!a.id.isRegularUser()||!a.accountLid)return h;a=a.accountLid;var b=d("WAWebApiContact").getLatestLid(a);a=a.equals(b);return a||b==null?h:{isLidDeprecated:!0,latestLid:b}}g.getLidDeprecatedInfo=a}),98); __d("WAWebHistorySyncOnDemandEvents",["WAWebEventEmitter"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.triggerSuccessHistorySyncOd=function(a){this.trigger("history_sync_on_demand_events:success_history_sync_od",a)};c.triggerErrorHistorySyncOd=function(a){this.trigger("history_sync_on_demand_events:error_history_sync_od",a)};return b}(c("WAWebEventEmitter"));b=new a();g.WAWebHistorySyncOnDemandEvents=b}),98); __d("WAWebConversationLoadMoreMessagesHistorySync",["fbt","WALogger","WAWebAlertSyncPausedIcon.react","WAWebChatConstants","WAWebClock","WAWebHistorySyncInProgressPopup.react","WAWebHistorySyncOnDemandEvents","WAWebHistorySyncPausedPopup.react","WAWebHistorySyncProgressGetters","WAWebHistorySyncUIText","WAWebModalManager","WAWebNonMessageDataRequestHistorySyncOnDemandUtils","WAWebProtobufsE2E.pb","WAWebSendNonMessageDataRequest","WAWebSpinner.react","WAWebSyncGatingUtils","WAWebSyncInProgressIcon.react","WAWebUserPrefsHistorySync","gkx","react","useWAWebHistorySyncProgressValues","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync][on demand] fail for chat ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync][on demand] success for chat ",""]);l=function(){return a};return a}var m=j||c("react"),n=(i||(i=d("react"))).useState;function a(a){var b=a.chatId;a=a.mdHistorySyncTransferState;var e=d("useWAWebHistorySyncProgressValues").useHistorySyncProgressValues([d("WAWebHistorySyncProgressGetters").getInProgress,d("WAWebHistorySyncProgressGetters").getPaused]),f=e[0];e=e[1];var g=a===d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.INCOMPLETE,i=b==null?void 0:b.toJid(),j=n(function(){return i!=null?new Set(d("WAWebNonMessageDataRequestHistorySyncOnDemandUtils").inFlightHistorySyncOnDemandRequests.values()).has(i):!1}),o=j[0],p=j[1];j=n(null);var q=j[0],r=j[1];d("useWAWebListener").useListener(d("WAWebHistorySyncOnDemandEvents").WAWebHistorySyncOnDemandEvents,"history_sync_on_demand_events:success_history_sync_od",function(a){d("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&a===i&&(d("WALogger").LOG(l(),c("gkx")("26258")?"":b),p(!1),r(!0))});d("useWAWebListener").useListener(d("WAWebHistorySyncOnDemandEvents").WAWebHistorySyncOnDemandEvents,"history_sync_on_demand_events:error_history_sync_od",function(a){d("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&a===i&&(d("WALogger").LOG(k(),c("gkx")("26258")?"":b),p(!1),r(!1))});var s,t,u;if(g&&f)s=e?d("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_SYSTEM_MESSAGE_TEXT():d("WAWebHistorySyncUIText").SYNC_IN_PROGRESS_CONTEXTUAL_SYSTEM_MESSAGE_TEXT(),t=e?m.jsx(d("WAWebAlertSyncPausedIcon.react").AlertSyncPausedIcon,{width:14,height:14}):m.jsx(d("WAWebSyncInProgressIcon.react").SyncInProgressIcon,{width:11,height:14}),u=e?function(){d("WAWebModalManager").ModalManager.open(m.jsx(c("WAWebHistorySyncPausedPopup.react"),{}))}:function(){d("WAWebModalManager").ModalManager.open(m.jsx(c("WAWebHistorySyncInProgressPopup.react"),{}))};else{if(d("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&a!=null&&!f&&!o&&!d("WAWebNonMessageDataRequestHistorySyncOnDemandUtils").historySyncOnDemandRequestsFailureRecord.disableRequestSending)switch(a){case d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY:b!=null&&(q!==!1?s=h._(/*BTDS*/"__JHASH__pvzE2_DSA1K__JHASH__"):(s=h._(/*BTDS*/"__JHASH__S6j0zPwt9FS__JHASH__"),t=m.jsx(d("WAWebAlertSyncPausedIcon.react").AlertSyncPausedIcon,{width:14,height:14})),u=function(){p(!0),d("WAWebSendNonMessageDataRequest").sendPeerDataOperationRequest(d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.HISTORY_SYNC_ON_DEMAND,{chatId:b}),r(null)});break;case d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY:s=h._(/*BTDS*/"__JHASH__vxGNqBuXAuO__JHASH__");break;default:break}if(s==null){j=d("WAWebClock").Clock.relativeDateStr(d("WAWebUserPrefsHistorySync").getHistorySyncEarliestDate());s=h._(/*BTDS*/"__JHASH__vIqNJqZEv6W__JHASH__",[h._param("date",j)])}}if(d("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&o)return m.jsx("div",babelHelpers["extends"]({className:"x78zum5 x1okw0bk xl56j7k xexx8yu x4uap5 xwxc41k xkhd6sd"},{children:m.jsx("div",babelHelpers["extends"]({className:"x78zum5 x6s0dn4 xl56j7k x187nhsf xn3w4p2 xdj266r xkrivgy xat24cr x1gryazu xiqmkuo x150wa6m x14yjl9h xudhj91 x18nykt9 xww2gxu x1wpep30"},{children:m.jsx(d("WAWebSpinner.react").Spinner,{stroke:6,size:24,color:"highlight"})}))}));e=m.jsxs("div",babelHelpers["extends"]({className:"x78zum5 x6s0dn4 x1r0jzty x17zd0t2"},{children:[t,m.jsx("div",{children:s})]}));f={0:"x9f619 x1rg5ohu x1okw0bk x193iq5w x123j3cw xn6708d x10b6aqq x1ye3gou x13a8xbf xdod15v x2b8uid x1lq5wgf xgqcy7u x30kzoy x9jhf4c",2:"x14m1o6m x126m2zf x1b9z3ur x9f619 x1rg5ohu x1okw0bk x193iq5w x123j3cw xn6708d x10b6aqq x1ye3gou x13a8xbf xdod15v x2b8uid x1lq5wgf xgqcy7u x30kzoy x9jhf4c",1:"x14m1o6m x150wa6m x1b9z3ur x9f619 x1rg5ohu x1okw0bk x193iq5w x123j3cw xn6708d x10b6aqq x1ye3gou x13a8xbf xdod15v x2b8uid x1lq5wgf xgqcy7u x30kzoy x9jhf4c",3:"x126m2zf x14m1o6m x150wa6m x1b9z3ur x9f619 x1rg5ohu x1okw0bk x193iq5w x123j3cw xn6708d x10b6aqq x1ye3gou x13a8xbf xdod15v x2b8uid x1lq5wgf xgqcy7u x30kzoy x9jhf4c"}[!!!g<<1|!!g<<0];a=u!=null?m.jsx("button",{className:f,onClick:u,children:e}):m.jsx("div",{className:f,children:e});return m.jsx("div",babelHelpers["extends"]({className:"x78zum5 x1okw0bk xl56j7k xqy66fx x4uap5 x1hhzuzn xkhd6sd"},{children:a}))}a.displayName=a.name+" [from "+f.id+"]";g.HistorySyncLoadMoreMessages=a}),226); __d("WAWebConversationLoadMoreMessages.react",["fbt","WAWebConversationLoadMoreMessagesHistorySync","WAWebRefreshIcon.react","WAWebSpinner.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.chatId,c=a.direction,e=a.isLoadingAroundMsgs,f=a.isLoadingEarlierMsgs,g=a.isLoadingRecentMsgs;a.isMostRecentCMC;var i=a.isRepairingMsgHistory,k=a.loadMoreMsgs;a=a.mdHistorySyncTransferState;f=c==="earlier"&&f;g=c==="recent"&&g;e=c==="around"&&e;f=f||g||e||i;g=a!=null&&!f;var l,m;if(f)e=j.jsx(d("WAWebSpinner.react").Spinner,{stroke:6,size:24,color:"highlight"}),l=h._(/*BTDS*/"__JHASH__tdRLYwdNocz__JHASH__");else if(g)return j.jsx(d("WAWebConversationLoadMoreMessagesHistorySync").HistorySyncLoadMoreMessages,{mdHistorySyncTransferState:a,chatId:b});else{switch(c){case"earlier":l=h._(/*BTDS*/"__JHASH__qUKMplZh2-K__JHASH__");break;case"recent":l=h._(/*BTDS*/"__JHASH__AXXzuEim8e9__JHASH__");break;default:l=h._(/*BTDS*/"__JHASH__tdRLYwdNocz__JHASH__")}e=j.jsx(d("WAWebRefreshIcon.react").RefreshIcon,{});m=k}return j.jsx("div",babelHelpers["extends"]({className:"x78zum5 x1okw0bk xl56j7k xexx8yu x4uap5 xwxc41k xkhd6sd"},{children:j.jsx("div",babelHelpers["extends"]({className:"x78zum5 x6s0dn4 xl56j7k x187nhsf xn3w4p2 xdj266r xkrivgy xat24cr x1gryazu xiqmkuo x150wa6m x14yjl9h xudhj91 x18nykt9 xww2gxu x1wpep30"},{title:l,onClick:m,children:e}))}))}a.displayName=a.name+" [from "+f.id+"]";g.LoadMoreMessages=a}),226); __d("WAWebConversationMsgsUtils",["WALogger","WAWebChatGetters","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebMsgGetters","WAWebRenderCursor","gkx"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["invalid unreadDividerOffset: ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["insufficient unreadMsgs.length: ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["unreadMsgs.length is: ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["MRM noEarlierMsgs on chat "," is true but chat.msgChunks has length: ",",\n and chat.msgs.length: ",""]);k=function(){return a};return a}function l(a){if(a==null)return null;return a.key!=null?babelHelpers["extends"]({},a,{msg:d("WAWebMsgCollection").MsgCollection.get(a.key)}):a}function a(a){a=a.msgLoadState;return{noEarlierMsgs:a.noEarlierMsgs,isLoadingEarlierMsgs:a.isLoadingEarlierMsgs,isLoadingRecentMsgs:a.isLoadingRecentMsgs,isLoadingAroundMsgs:a.isLoadingAroundMsgs,contextLoaded:a.contextLoaded,isRepairingMsgHistory:a.isRepairingMsgHistory}}function b(a,b,c){c=c.noEarlierMsgs&&d("WAWebFrontendChatGetters").getShouldAppearInList(a)&&b&&a.msgChunks.filter(function(a){return a.filter(function(b){return b.msgChunk===a}).length>0}).length>0;c&&d("WALogger").ERROR(k(),String(a.id),a.msgChunks.length,a.msgs.length).sendLogs("noEarlierMsgs-error");return c}function e(a,b){var c=a.focusCtx,e=a.chat,f=a.msgCollection;c=l(c)||m(a,b);a=c==null?void 0:c.msg;b=a==null?void 0:a.id;return{cursor:d("WAWebRenderCursor").RenderCursor.create({msgCollection:f,focusedMsgKey:b,type:d("WAWebChatGetters").getIsGroup(e)?d("WAWebRenderCursor").RENDER_CURSOR.GROUP_CONVERSATION:d("WAWebRenderCursor").RENDER_CURSOR.CONVERSATION}),focusCtx:c}}function m(a,b){var e=a.chat,f=a.msgCollection,g=a.focusCtx,k;e.unreadCount?k=e.unreadCount:k=b;if(g&&!n(a)||!k)return;b=f.filter(function(a){return d("WAWebMsgGetters").getIsUnreadType(a)}).reverse().slice(0,k);if(b.length===k)c("gkx")("26258")||d("WALogger").LOG(j(),b.length),g=b[b.length-1];else{c("gkx")("26258")||d("WALogger").LOG(i(),b.length);return}a=e.unreadDividerOffset;if(a>0){k=f.filter(Boolean).reverse();b=k.indexOf(g);k.slice(b+1,b+a+1).every(function(a){return Boolean(d("WAWebFrontendMsgGetters").getAsRevoked(a))})?g=k[b+a]:d("WALogger").ERROR(h(),a).sendLogs("invalid-unread-divider-offset",{sampling:.001})}return{msg:g,isUnreadDivider:d("WAWebFrontendChatGetters").getShouldShowUnreadDivider(e),highlightMsg:!1}}function n(a){return a.chat.msgs===a.msgCollection}g.validateFocusCtx=l;g.getMsgLoadState=a;g.noEarlierMsgStateIsIncorrect=b;g.getInitialCursorAndFocusContext=e;g.getUnreadFocusCtx=m;g.isMostRecentCMC=n}),98); __d("WAWebGroupCatchUpWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({GroupCatchUp:[3058,{mentionsCountPendingPercentage:[4,d("WAWebWamCodegenUtils").TYPES.INTEGER]},[1,1,1],"regular"]},{GroupCatchUp:[]});g.GroupCatchUpWamEvent=a}),98); __d("WAWebIcChevronDownWideIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="ic-chevron-down-wide";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.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"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.IcChevronDownWideIcon=a}),98); __d("WAWebJumpToButtons.react",["fbt","WAWebChatGetters","WAWebChatUnreadCount.react","WAWebChevronCustomIcons","WAWebIcChevronDownWideIcon.react","WAWebMentionsIcon.react","WAWebMentionsRefreshedIcon.react","WAWebRound.react","WAWebTabOrder","WAWebUA","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUnstyledButton.react","WAWebVelocityTransitionGroup","fbs","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||d("react"),l={incoming:{display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",width:"x10h3iyq",height:"x5kalc8",backgroundColor:"x1gslqiq",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",boxShadow:"x1wpep30",$$css:!0},buttonGap:{transition:"x6q2ic0",$$css:!0},buttonGapRemove:{transition:"x17pwrhq",$$css:!0},unread:{position:"x10l6tqk",top:"xjibb99",start:"x1tz92iz",left:null,right:null,$$css:!0},iconColor:{color:"x1h7gb8d",$$css:!0},chevronRefreshed:{color:"xhslqc4",$$css:!0},incomingFfFix:{end:"x1k4u1m8",left:null,right:null,$$css:!0},incomingRefreshed:{display:"x78zum5",flexDirection:"xdt5ytf",alignItems:"x6s0dn4",justifyContent:"xl56j7k",backgroundColor:"x1gslqiq",rowGap:"x3pnbk8",$$css:!0},unreadRefreshed:{display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",height:"x1qx5ct2",$$css:!0},boxShadow:{boxShadow:"x1wpep30",$$css:!0},borderRadius:{borderTopStartRadius:"x1x9wcxt",borderTopEndRadius:"x1f9vhhg",borderBottomEndRadius:"xsr4h3p",borderBottomStartRadius:"x1ytmua2",$$css:!0},incomingContainerRefreshed:{position:"x10l6tqk",end:"x1epdt8v",bottom:"x1qs2g4o",zIndex:"xa1v5g2",display:"x3nfvp2",flexDirection:"xdt5ytf",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},incomingContainerRefreshedPosition:{end:"x1ntpj0o",left:null,right:null,$$css:!0}};function a(a){var b=a.chat,e=a.handleJumpToBottom,f=a.handleJumpToMention,g=a.isMostRecentAndNotLoading,j=a.isNearBottom,m=a.newUnread;a=a.unreadMentionCount;var n=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();j=!j||g;g=d("WAWebChatGetters").getIsGroup(b)&&a>0;var o=null;if(g){var p=c("fbs")._(/*BTDS*/"__JHASH__-SHWX4t5tcl__JHASH__",[c("fbs")._plural(a,"count")]);n?o=k.jsxs(c("WAWebUnstyledButton.react"),{xstyle:[l.incomingRefreshed,d("WAWebUISpacing").uiPadding.all10,j===!1&&[l.boxShadow,l.borderRadius]],dataTab:d("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST_SCROLL_BUTTON,onClick:f,"aria-label":h._(/*BTDS*/"__JHASH__FklmNlQSlvY__JHASH__"),children:[k.jsx(d("WAWebMentionsRefreshedIcon.react").MentionsRefreshedIcon,{xstyle:l.iconColor,width:24,height:24}),k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop",xstyle:l.unreadRefreshed,children:k.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:a,ariaLabel:p.toString()})})]}):o=k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop",children:k.jsxs(d("WAWebRound.react").Round,{xstyle:[l.incoming,j?[l.buttonGap,d("WAWebUISpacing").uiMargin.bottom16]:l.buttonGapRemove],onClick:f,dataTab:d("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST_SCROLL_BUTTON,children:[k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop",xstyle:l.unread,children:k.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:a,ariaLabel:p.toString()})}),k.jsx(d("WAWebMentionsIcon.react").MentionsIcon,{xstyle:l.iconColor,width:16,height:16})]})})}f=null;if(j){a=null;m&&b.unreadCount&&(a=k.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:m},"icon-unread"));n?f=k.jsxs(c("WAWebUnstyledButton.react"),{xstyle:[l.incomingRefreshed,d("WAWebUISpacing").uiPadding.all10,g===!1&&[l.boxShadow,l.borderRadius]],dataTab:d("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST_SCROLL_BUTTON,onClick:e,"aria-label":h._(/*BTDS*/"__JHASH__OwMMzHewa9E__JHASH__"),children:[k.jsx(d("WAWebIcChevronDownWideIcon.react").IcChevronDownWideIcon,{xstyle:l.chevronRefreshed}),a&&k.jsx("span",babelHelpers["extends"]({className:"x78zum5 x6s0dn4 xl56j7k x1qx5ct2"},{children:a}))]}):f=k.jsxs(d("WAWebRound.react").Round,{xstyle:[l.incoming,d("WAWebUA").UA.isGecko&&l.incomingFfFix],dataTab:d("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST_SCROLL_BUTTON,onClick:e,label:h._(/*BTDS*/"__JHASH__OwMMzHewa9E__JHASH__"),children:[k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop",xstyle:l.unread,children:a}),k.jsx(d("WAWebChevronCustomIcons").ChevronDownCustomIcon,{xstyle:l.iconColor})]})}return n&&j&&g?k.jsxs("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(l.incomingContainerRefreshed,l.borderRadius,l.boxShadow,d("WAWebUISpacing").uiMargin.end4,d("WAWebUIRefreshGatingUtils").restrictMessageListWidth()===!1&&l.incomingContainerRefreshedPosition),{children:[o,k.jsx("span",{className:"xjm9jq1 xh8yej3 x3x0x6p"}),f]})):k.jsxs("div",babelHelpers["extends"]({},{0:{className:"x10l6tqk x1epdt8v x1qs2g4o xa1v5g2 x3nfvp2 xdt5ytf"},1:{className:"x10l6tqk x1qs2g4o xa1v5g2 x3nfvp2 xdt5ytf x1ntpj0o"}}[!!(d("WAWebUIRefreshGatingUtils").restrictMessageListWidth()===!1)<<0],{children:[o,k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop",children:f})]}))}a.displayName=a.name+" [from "+f.id+"]";g.JumpToButtons=a}),226); __d("WAWebMath",[],(function(a,b,c,d,e,f){function a(a,b,c,d,e,f,g,h){var i={x:null,y:null,onLine1:!1,onLine2:!1},j=(h-f)*(c-a)-(g-e)*(d-b);if(j===0)return i;var k=b-f,l=a-e;g=(g-e)*k-(h-f)*l;e=(c-a)*k-(d-b)*l;k=g/j;l=e/j;i.x=a+k*(c-a);i.y=b+k*(d-b);k>0&&k<1&&(i.onLine1=!0);l>0&&l<1&&(i.onLine2=!0);return i}function b(a,b){if(a===0||b===0)return 0;a=a/b*100;return a%10===0?a:(parseInt(a/10,10)+1)*10}f.intersect=a;f.roundUp10thPercentage=b}),66); __d("WAWebMessageGroupedSticker.react",["fbt","WALogger","WAWebChatRefreshedIcon.react","WAWebCmd","WAWebComposeBoxActions","WAWebCopyRefreshedIcon.react","WAWebCopyStickerToClipboard","WAWebCopyToClipboard","WAWebDebugGatingUtils","WAWebDeleteRefreshedIcon.react","WAWebDevOnlyBadge.react","WAWebDropdown.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebEmojiRefreshedIcon.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","WAWebReactIcon.react","WAWebReactionsPanel.react","WAWebReactionsUtils","WAWebReplyPrivatelyRefreshedIcon.react","WAWebReplyRefreshedIcon.react","WAWebReplyToMsgChatAction","WAWebRequestMediaReuploadBridge","WAWebRevokeMetricUtils","WAWebRound.react","WAWebSendReactionMsgAction","WAWebSendReactionsTray.react","WAWebSendReactionsTrayContainer.react","WAWebStarRefreshedIcon.react","WAWebStateUtils","WAWebStickerRefreshedIcon.react","WAWebStickerUtils","WAWebUIRefreshGatingUtils","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnfavoriteRefreshedIcon.react","WAWebUnstarRefreshedIcon.react","WAWebVelocityTransitionGroup","WAWebWrapperListeners.react","react","useWAWebDebouncedCallback","useWAWebMsgValues","useWAWebStableCallback"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[media reupload] failed to reupload media"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["sendReactionMsg: error sending from sticker row ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["sendReactionMsg: error ",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["[contact chat] failed to find or create latest chat"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["[contact chat] failed to open chat from unread"]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["[private msg reply] failed to privately reply to msg"]);p=function(){return a};return a}b=j||d("react");var q=i||(i=c("react")),r=b.useEffect,s=b.useImperativeHandle,t=b.useRef,u=b.useState,v={reactIcon:{color:"x1odib58",$$css:!0},reactIconRefreshed:{color:"xhslqc4",$$css:!0}},w={REACTION_BUTTON:75};function a(a){var b=a.ref,e=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]),f=e.msg;a=e.menuTransition;var g=e.onOpenForwardFlow,i=e.onOpenDeleteFlow,j=e.rowIsKeyboardFocused,x=j===void 0?!1:j,y=e.onModalClosed,z=t(null),A=t(),B=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();j=u(null);var C=j[0],D=j[1];j=u(!1);var E=j[0],F=j[1];j=u(null);var G=j[0],H=j[1];j=u(null);var I=j[0],J=j[1];j=u(!1);var K=j[0];j=j[1];var L=t(null),M=f.unsafe(),N=d("useWAWebMsgValues").useMsgValues(f.id,[d("WAWebFrontendMsgGetters").getAsRevoked]);N=N[0];N&&d("WAWebCmd").Cmd.refreshMessages();var aa=function(a){L.current&&c("WAWebFocusTracer").focus(L.current,a)},O=c("useWAWebStableCallback")(function(){aa({preventScroll:!0})}),P=c("useWAWebDebouncedCallback")(j,w.REACTION_BUTTON);r(function(){P(E||G!=null||x)},[E,G,P,x]);var Q=function(a){F(!0)},R=function(){F(!1)};N=function(){P(E||G!=null||x)};var ba=function(){if(!z.current)return;return z.current.getContext()},ca=function(){d("WAWebCmd").Cmd.msgInfoDrawer(d("WAWebStateUtils").unproxy(M))},da=function(){var a=d("WAWebStateUtils").unproxy(M),b=d("WAWebFrontendMsgGetters").getChat(a);b.composeQuotedMsg=a;d("WAWebComposeBoxActions").ComposeBoxActions.focus(b)},ea=function(){var a=d("WAWebStateUtils").unproxy(M);c("WAWebReplyToMsgChatAction")(a)["catch"](function(){return d("WALogger").ERROR(p()).sendLogs("private-msg-reply-failed")})},fa=function(){var a=d("WAWebStateUtils").unproxy(M);d("WAWebCmd").Cmd.sendStarMsgs(d("WAWebFrontendMsgGetters").getChat(a),[a])},ga=function(){var a=d("WAWebStateUtils").unproxy(M);d("WAWebCmd").Cmd.sendUnstarMsgs(d("WAWebFrontendMsgGetters").getChat(a),[a])},ha=function(){d("WAWebFavoriteStickerAction").addStickerMsgsToFavorites([d("WAWebStateUtils").unproxy(M)])},ia=function(){d("WAWebFavoriteStickerAction").removeStickerMsgFromFavorites(d("WAWebStateUtils").unproxy(M))},ja=function(){i(!0,M),d("WAWebRevokeMetricUtils").UiRevokeActionHelper.startSession(),d("WAWebRevokeMetricUtils").UiRevokeActionHelper.messageSelected()},ka=function(){d("WAWebFindChatAction").findOrCreateLatestChat(f.author,"messageGroupedSticker").then(function(a){var b=a.chat;d("WAWebCmd").Cmd.openChatFromUnread(b).then(function(a){a&&d("WAWebComposeBoxActions").ComposeBoxActions.focus(b)})["catch"](function(){return d("WALogger").ERROR(o()).sendLogs("failed-to-open-chat-from-unread")})})["catch"](function(){return d("WALogger").ERROR(n()).sendLogs("failed-to-find-or-create-latest-chat")})},S=function(){y==null?void 0:y(),H(null),O()},T=function(){y==null?void 0:y(),J(null),O()},la=c("useWAWebStableCallback")(function(a){if(!d("WAWebReactionsUtils").canReactToMessage(a))return;var b=function(b){d("WAWebSendReactionMsgAction").sendReactionToMsg(a,b)["catch"](function(a){d("WALogger").DEV(m(),a)}),T()};J({dirY:d("WAWebDropdown.react").DirY.BOTTOM,dirX:d("WAWebMsgGetters").getIsSentByMe(a)?d("WAWebDropdown.react").DirX.LEFT:d("WAWebDropdown.react").DirX.RIGHT,type:d("WAWebDropdown.react").MenuType.ReactionPicker,menu:q.jsx(d("WAWebReactionsPanel.react").ReactionsPanel,{msgId:a.id.toString(),onSelection:b}),flipOnRTL:!0,anchor:A.current})}),U=function(a){if(!d("WAWebReactionsUtils").canReactToMessage(a))return;var b=function(b){b!==d("WAWebSendReactionsTray.react").MORE_REACTIONS?d("WAWebSendReactionMsgAction").sendReactionToMsg(a,b)["catch"](function(a){d("WALogger").DEV(l(),a)}):self.setTimeout(function(){la(a)},150),S()};b={dirY:d("WAWebDropdown.react").DirY.TOP,dirX:d("WAWebDropdown.react").DirX.CENTER,type:d("WAWebDropdown.react").MenuType.ReactionSendTray,menu:q.jsx(d("WAWebSendReactionsTrayContainer.react").SendReactionsTrayContainer,{msg:M,selectedCallback:b,onMouseEnter:Q,onMouseOver:Q,onMouseLeave:R}),flipOnRTL:!1,anchor:A.current};H(b)},ma=function(b,e){if(e===!0&&C){D(null);return}e=e===!0?ba():b;b=d("WAWebStateUtils").unproxy(f);var a=[];d("WAWebMsgGetters").getIsSentByMe(b)&&!d("WAWebFrontendMsgGetters").getAsRevoked(b.unsafe())&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ca,icon:B?q.jsx(d("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__6ZxqC6H3okB__JHASH__")},"info"));d("WAWebMsgReply").canReplyMsg(b.unsafe())&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:da,icon:B?q.jsx(d("WAWebReplyRefreshedIcon.react").ReplyRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__9qwPCOZrFoa__JHASH__")},"reply"));(d("WAWebMsgReply").canPrivateReply(b.unsafe())||d("WAWebMsgReply").canPrivateReplyInRestrictedGrp(b.unsafe()))&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ea,icon:B?q.jsx(d("WAWebReplyPrivatelyRefreshedIcon.react").ReplyPrivatelyRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__dS67_Denh_O__JHASH__")},"private_reply"));d("WAWebMsgGetters").getIsGroupMsg(f)&&!!f.author&&!d("WAWebMsgGetters").getIsSentByMe(f)&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ka,icon:B?q.jsx(d("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__eKdD9YzdLgN__JHASH__",[h._param("author",f.displayName())])},"author"));d("WAWebReactionsUtils").canReactToMessage(M)&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){U(M)},icon:B?q.jsx(d("WAWebEmojiRefreshedIcon.react").EmojiRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__AxiUt4Efrtn__JHASH__")},"sendReaction"));d("WAWebMsgActionCapability").canForwardMsg(b.unsafe())&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){g(!0,M)},icon:B?q.jsx(d("WAWebForwardRefreshedIcon.react").ForwardRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__jYHCjlR6HcL__JHASH__",[h._plural(1)])},"forward"));d("WAWebMsgActionCapability").canStarMsg(b.unsafe())&&(b.star?a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ga,icon:B?q.jsx(d("WAWebUnstarRefreshedIcon.react").UnstarRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__X3QIRH8IFsq__JHASH__",[h._plural(1)])},"star")):a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:fa,icon:B?q.jsx(d("WAWebStarRefreshedIcon.react").StarRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__TWFJFniUvZ8__JHASH__",[h._plural(1)])},"star")));d("WAWebMiscGatingUtils").isFavoriteStickersEnabled()&&(d("WAWebFavoriteStickerAction").isStickerFilehashFavorited(f.filehash)?a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ia,icon:B?q.jsx(d("WAWebUnfavoriteRefreshedIcon.react").UnfavoriteRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__10aUrzJv-aW__JHASH__")},"remove-favorite-sticker")):a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ha,icon:B?q.jsx(d("WAWebFavoriteRefreshedIcon.react").FavoriteRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__H-tHYVLT5WO__JHASH__")},"favorite-sticker")));var i=d("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.get(f.filehash);if(d("WAWebStickerUtils").getStickerFileType(f.mediaData.mimetype)===d("WAWebStickerUtils").StickerFileType.LOTTIE){var j=d("WAWebInMemoryLottieStickerCache").InMemoryLottieStickerCache.get(f.filehash);j!=null&&d("WAWebCopyToClipboard").supportsCopyImageToClipboard()&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){void d("WAWebCopyStickerToClipboard").copyLottieStickerToClipboard(j)},icon:B?q.jsx(d("WAWebCopyRefreshedIcon.react").CopyRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__OLGkra74hh4__JHASH__")},"copy-favorite-sticker"))}else i!=null&&d("WAWebCopyToClipboard").supportsCopyImageToClipboard()&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){void d("WAWebCopyToClipboard").copyImageToClipboard(i)},icon:B?q.jsx(d("WAWebCopyRefreshedIcon.react").CopyRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__OLGkra74hh4__JHASH__")},"copy-favorite-sticker"));b=f.mediaData;var l=b.stickerPackId;b=b.isFirstParty;l!=null&&b===!0&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return d("WAWebCmd").Cmd.openStickerPack(l)},icon:B?q.jsx(d("WAWebStickerRefreshedIcon.react").StickerRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__Hd-aIQawmmJ__JHASH__")},"open-sticker-pack"));B&&a.push(q.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}));a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:ja,icon:B?q.jsx(d("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}):null,theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:h._(/*BTDS*/"__JHASH__bihMRyAdtz8__JHASH__",[h._plural(1)])},"delete"));d("WAWebDebugGatingUtils").msgDebugMenuItemsEnabled()&&(a.push(q.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{})),a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){void d("WAWebCopyToClipboard").copyTextToClipboard(f.id.toString())},children:q.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Msg ID"})},"copy-id")),d("WAWebFrontendMsgGetters").getAsMms(M)&&(f.deprecatedMms3Url!=null&&a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){void d("WAWebCopyToClipboard").copyTextToClipboard(f.deprecatedMms3Url||"")},children:q.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Mms3 Url"})},"copy-mms3-url")),a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){void d("WAWebCopyToClipboard").copyTextToClipboard(f.filehash||"")},children:q.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Media filehash"})},"copy-filehash"))),a.push(q.jsx(d("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){c("WAWebRequestMediaReuploadBridge")(M)["catch"](function(){return d("WALogger").ERROR(k()).sendLogs("failed-to-reupload-media")})},children:q.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Trigger RMR"})},"trigger-rmr")));D({menu:a,anchor:e,theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Compact})};j=function(){y==null?void 0:y(),D(null)};var V=function(a,b){e.scrollMsg(a,b)},W={scrollMsg:V};s(b,function(){return W});var X;(E||C||x)&&(X=q.jsx(c("WAWebMessageMenu.react"),{msg:M,hasAuthor:!1,displayType:e.displayType,position:d("WAWebMessagePosition").MsgPosition.SINGLE,ref:z,onToggle:function(a){ma(a)},isGroupedSticker:!0,role:"button",ariaLabel:h._(/*BTDS*/"__JHASH__YjpyvfIbeIH__JHASH__"),isMenuOpen:Boolean(C),tabIndex:0,contextOwnerIsKeyboardFocused:x},"icon-context"));var Y;e.isFocused===!0&&(Y=q.jsx(d("WAWebWrapperListeners.react").WhileFocusedListener,{parent:W}));var Z;C&&(Z=q.jsx(d("WAWebUimUie.react").UIE,{displayName:"MsgContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:j,children:q.jsx(c("WAWebUimUieMenu.react"),{contextMenu:C})}));var $;G?$=q.jsx(d("WAWebUimUie.react").UIE,{displayName:"MsgReaction",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:S,children:q.jsx(c("WAWebUimUieMenu.react"),{contextMenu:G})}):I&&($=q.jsx(d("WAWebUimUie.react").UIE,{displayName:"MsgReactionPicker",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:T,children:q.jsx(c("WAWebUimUieMenu.react"),{contextMenu:I})}));V=q.jsx(c("WAWebMessageStickerBubble.react"),{mediaData:f.mediaData,msg:f,displayAuthor:!1,forwardRef:e.forwardRef,animateOnView:!0,displayType:e.displayType,onDetailsPaneClosed:y,isGroupedSticker:!0},"sticker-bubble");var na=function(){G?S():U(M)};b=[V];if(d("WAWebReactionsUtils").canReactToMessage(M)){j=null;K&&(j=q.jsx(c("WAWebFlexItem.react"),{children:q.jsx(d("WAWebRound.react").Round,{testid:void 0,label:h._(/*BTDS*/"__JHASH__Nd9Nqs7s_UX__JHASH__"),theme:B?d("WAWebRound.react").RoundTheme.QuickActionRefreshed:d("WAWebRound.react").RoundTheme.QuickAction,onClick:function(){return na(M)},small:!0,children:B?q.jsx(d("WAWebEmojiRefreshedIcon.react").EmojiRefreshedIcon,{xstyle:v.reactIconRefreshed,height:20}):q.jsx(d("WAWebReactIcon.react").ReactIcon,{xstyle:v.reactIcon,width:15})})}));I=q.jsx("div",babelHelpers["extends"]({ref:A},{className:"x1n2onr6 xzi7r1p xezl2tj"},{children:j}),"reaction-entry-point");d("WAWebMsgGetters").getIsSentByMe(f)?b.unshift(I):b.push(I)}return q.jsxs("div",babelHelpers["extends"]({className:"x78zum5"},{onMouseEnter:Q,onFocus:N,onBlur:N,ref:L,onMouseLeave:R,children:[q.jsx(d("WAWebFlex.react").FlexRow,{children:b}),q.jsx("div",babelHelpers["extends"]({className:"x1n2onr6 x1sln4lm"},{children:q.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:a,children:X})})),Z,$,Y]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebMessageGroupedStickerCheckbox.react",["WAWebCheckBox.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.checked,c=a.onClick;a=a.ref;return i.jsx("div",babelHelpers["extends"]({ref:a},{className:"x10l6tqk x1rozsjd xh8yej3 x5yr21d x1ypdohk"},{onClick:c,children:i.jsx("div",babelHelpers["extends"]({className:"x10l6tqk xxk6nc9 x1f1mv5i"},{onClick:function(a){return a.stopPropagation()},children:i.jsx(d("WAWebCheckBox.react").CheckBox,{onChange:c,checked:b})}))}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebReactionsListeners.react",["useWAWebReactions"],(function(a,b,c,d,e,f,g){function a(a){var b=a.msgIds;a=a.onReactionChange;c("useWAWebReactions")(b,a);return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebMessageAlbumWrapper.react",["fbt","invariant","WALogger","WANullthrows","WAWebABProps","WAWebAddOnBubblesContainer.react","WAWebChatGetters","WAWebCheckBox.react","WAWebClassnames","WAWebClientFeatureFlags","WAWebCmd","WAWebConfirmPopup.react","WAWebDeleteRefreshedIcon.react","WAWebDeleteRevokeMsgFlow.react","WAWebDisplayType","WAWebDomScroll","WAWebDownloadRefreshedIcon.react","WAWebDropdownItem.react","WAWebFbtCommon","WAWebFileSaver","WAWebFocusIndicator","WAWebFocusTracer","WAWebForwardChatIcon.react","WAWebForwardMessageModalLoadable","WAWebForwardRefreshedIcon.react","WAWebForwardedNewsletterMessageInfoActionButton.react","WAWebFrontendMsgGetters","WAWebGroupChatProfilePicture.react","WAWebKeyboardListHotKeys.react","WAWebKeyboardRotateFocusArrows.react","WAWebMedia","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","WAWebTypesMedia","WAWebUIRefreshGatingUtils","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnstarRefreshedIcon.react","WAWebUseIsKeyboardUser","WAWebVelocityTransitionGroup","WAWebWrapper.scss","WAWebWrapperGetTailIcon","WAWebWrapperListeners.react","WAWebWrapperMessageActionButtonsRow","react"],(function(a,b,c,d,e,f,g,h,aa){var i,j;function ba(){var a=babelHelpers.taggedTemplateLiteralLoose(["Only ","/"," were valid album messages"]);ba=function(){return a};return a}function ca(){var a=babelHelpers.taggedTemplateLiteralLoose(["[A11y] Failed promised from getAlbumRowAriaLabel"]);ca=function(){return a};return a}function da(){var a=babelHelpers.taggedTemplateLiteralLoose(["[A11y] Failed promised from getAlbumRowAriaLabel"]);da=function(){return a};return a}b=j||d("react");var k=i||(i=c("react")),l=b.useCallback,ea=b.useEffect,fa=b.useImperativeHandle,m=b.useRef,n=b.useState,ga={svgColor:{color:"x10b7xu",$$css:!0},svgColorRefreshed:{color:"xhslqc4",$$css:!0}};function a(a){var b,e,f=a.ref,g=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]),i=g.msgs;a=g.position;var j=g.isMsgVisible,o=g.selectable,p=g.selectedMessages,q=g.onMessageSelect,r=g.albumId,s=g.isFocusedAlbum,t=g.focusedMsgIndex,u=g.isFocusable,v=g.displayType,w=g.showProfilePicture;w=w===void 0?!0:w;var x=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),y=n(),z=y[0],A=y[1];y=n(!1);var B=y[0],C=y[1];y=n(i.filter(function(a){return p.isSelected(d("WAWebStateUtils").unproxy(a.unsafe()))}).length);var D=y[0],ha=y[1];y=n();var ia=y[0],ja=y[1];y=c("WAWebUseIsKeyboardUser")();var E=y.isKeyboardUser,ka=m(new Set()),la=m(!0),F=m(),G=m({}),H=m(),ma=m(),na=m(null),oa=m(),pa=m(),qa=m(null),ra=m(null),I=l(function(a){ja(a)},[]);ea(function(){d("WAWebClientFeatureFlags").isFeatureEnabled("media_existence_check")&&i.map(function(a){return d("WAWebFrontendMsgGetters").getAsAlbumAsset(a.unsafe())}).filter(Boolean).forEach(function(a){ka.current.has(a.id.toString())||(void d("WAWebMedia").checkMediaExistence(a),ka.current=new Set(ka.current).add(a.id.toString()))}),d("WAWebMiscGatingUtils").messageCustomAriaLabelEnabled()&&!la.current&&d("WAWebMessageUiUtils").getLegacyAlbumRowAriaLabel(i).then(I)["catch"](function(){d("WALogger").DEV(da())}),la.current=!1},[I,i]);y=l(function(a){!a.buttons&&!B&&C(!0)},[B]);var sa=l(function(){B&&C(!1)},[B]),ta=l(function(a){a.stopPropagation()},[]),J=l(function(a){F.current&&c("WAWebFocusTracer").focus(F.current,a)},[F]),K=l(function(a){var b=a.selectedMsg,c=a.mode,e=a.event;d("WAWebRevokeMetricUtils").UiRevokeActionHelper.startSession();e&&e.stopPropagation();if(b){q(d("WAWebStateUtils").unproxy(b.unsafe()),!p.isSelected(d("WAWebStateUtils").unproxy(b)),c,e);return}var f=D===0;i.forEach(function(a){q(d("WAWebStateUtils").unproxy(a.unsafe()),f,c,e)})},[i,D,p,q]),L=l(function(a,b){for(var e=0;e<i.length;e++)if(d("WAWebFrontendMsgGetters").getIsUnsentMedia(i[e])){var f=h._(/*BTDS*/"__JHASH__eMwcRvhni12__JHASH__",[h._plural(1)]);d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__3jedy_AkFol__JHASH__"),onOK:function(){return d("WAWebModalManager").ModalManager.close()},okText:c("WAWebFbtCommon")("OK"),children:f}));return}a?K({mode:d("WAWebMultiSelectBar.react").MultiSelectMode.FORWARD,selectedMsg:b}):d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebForwardMessageModalLoadable").ForwardMessageModalLoadable,{msgs:i.map(function(a){return a.unsafe()}),onClose:function(){return d("WAWebModalManager").ModalManager.close()}}),{transition:"modal-flow"})},[K,i]),ua=l(function(){d("WAWebCmd").Cmd.sendStarMsgs(d("WAWebFrontendMsgGetters").getChat(i[0].unsafe()),i.map(function(a){return a.unsafe()}))},[i]),va=l(function(){d("WAWebCmd").Cmd.sendUnstarMsgs(d("WAWebFrontendMsgGetters").getChat(i[0].unsafe()),i.map(function(a){return a.unsafe()}))},[i]),wa=l(function(){d("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()&&J({preventScroll:!0})},[J]),M=l(function(){wa()},[wa]),xa=l(function(){var a=0;i.forEach(function(b){p.isSelected(d("WAWebStateUtils").unproxy(b.unsafe()))&&a++});return a},[i,p]),N=l(function(){var a=i[0],b=i[1];return d("WAWebFrontendMsgGetters").getAsGroupedSticker(a.unsafe())!=null&&d("WAWebFrontendMsgGetters").getAsGroupedSticker(b.unsafe())!=null},[i]),ya=l(function(a){var b;N()?b=xa():b=a?i.length:0;D!==b&&ha(b)},[xa,N,i.length,D]),za=l(function(){d("WAWebFileSaver").FileSaver.initDownload(i.map(function(a){return a.unsafe()}))},[i]),O=l(function(a,b){a?K({mode:d("WAWebMultiSelectBar.react").MultiSelectMode.DELETE,selectedMsg:b}):d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebDeleteRevokeMsgFlow.react"),{chat:d("WAWebFrontendMsgGetters").getChat(i[0].unsafe()),msgList:i.map(function(a){return a.unsafe()}),isMsgVisible:j})),d("WAWebRevokeMetricUtils").UiRevokeActionHelper.startSession(),d("WAWebRevokeMetricUtils").UiRevokeActionHelper.messageSelected()},[K,i,j]),Aa=l(function(){if(!H.current)return;return H.current.getContext()},[H]),Ba=l(function(a,b){if(b&&z){A(null);return}b=b?Aa():a;a=[];var c=i.every(function(a){return d("WAWebMsgActionCapability").canDownloadMsg(a.unsafe())});c&&a.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:za,icon:x?k.jsx(d("WAWebDownloadRefreshedIcon.react").DownloadRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__4H4cb6R4DXe__JHASH__")},"download"));c=i.every(function(a){return d("WAWebMsgActionCapability").canForwardMsg(a.unsafe())});c&&a.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){L(!0)},icon:x?k.jsx(d("WAWebForwardRefreshedIcon.react").ForwardRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__q9fMh-WcO3H__JHASH__")},"forward"));c=i.every(function(a){return d("WAWebMsgActionCapability").canStarMsg(a.unsafe())});if(c){c=i.every(function(a){return a.star});c?a.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){va()},icon:x?k.jsx(d("WAWebUnstarRefreshedIcon.react").UnstarRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__TnSW5en7OI-__JHASH__")},"star")):a.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){ua()},icon:x?k.jsx(d("WAWebStarRefreshedIcon.react").StarRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__4at6h4PHw6h__JHASH__")},"star"))}a.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:x?k.jsx(d("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}):null,action:function(){O(!0)},theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:h._(/*BTDS*/"__JHASH__E7QholNynqe__JHASH__")},"delete"));A({menu:a,anchor:b,theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Compact})},[z,Aa,i,O,x,za,L,va,ua]),Ca=l(function(){M(),E&&C(!1),A(null)},[M,E]),P=l(function(){var a;a=(a=(a=F.current)==null?void 0:a.contains(document.activeElement))!=null?a:!1;return E&&a},[E,F]),Da=l(function(a,b){a?G.current[b.id.toString()]=a:delete G.current[b.id.toString()]},[G]),Q=l(function(a,b){var c=F.current;if(!c)return;var e=c.offsetParent;if(!e)return;e instanceof HTMLElement||aa(0,56542);void d("WAWebDomScroll").scrollAt(c,e,b).then(a)},[F]),R=l(function(){var a=na.current,b;N()?t===0?b=oa:t===1&&(b=pa):b=ma;if(!b)return;c("WAWebFocusIndicator").indicateFocus(b.current,c("WAWebWrapper.scss").highlightAnimation);c("WAWebFocusIndicator").indicateFocus(a,c("WAWebWrapper.scss").highlightAnimation);u&&J({preventScroll:!0})},[N,u,t,J]),Ea=l(function(){var a=i.map(function(a){return a.id.toString()});d("WAWebReactionsUtils").lastMessageReactionChange(a);d("WAWebMiscGatingUtils").messageCustomAriaLabelEnabled()&&d("WAWebMessageUiUtils").getLegacyAlbumRowAriaLabel(i).then(I)["catch"](function(){d("WALogger").DEV(ca())})},[i,I]);fa(f,function(){return{getContainerElement:function(){return F.current},props:g,refAlbumComponents:G.current,isGroupedSticker:N}});var S=i[0],Fa=i[1];f=d("WAWebMsgGetters").getIsSentByMe(S);var T=d("WAWebMsgGetters").getIsGroupMsg(S);P=d("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()&&P();var Ga=i.length>d("WAWebMessageListAlbums").ALBUM_MIN_SIZE?i.length-d("WAWebMessageListAlbums").ALBUM_MIN_SIZE+1:null,U=d("WAWebDisplayType").isWideDisplay(v),V=N(),W=!U&&(a===d("WAWebMessagePosition").MsgPosition.FRONT||a===d("WAWebMessagePosition").MsgPosition.SINGLE||V);b=T&&!f&&!!W&&v===d("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION&&!o&&((b=S.senderObj)==null?void 0:b.id)!=null&&w;w=b?k.jsx(d("WAWebGroupChatProfilePicture.react").GroupChatProfilePicture,{userContact:S.senderObj,chatWid:d("WAWebFrontendMsgGetters").getChat(S.unsafe()).id}):null;b=V&&W&&(f||!T);e=d("WAWebClassnames").classnamesConvertMeToStylexPlease((e={},e[c("WAWebWrapper.scss").msgContinuation]=(a===d("WAWebMessagePosition").MsgPosition.FRONT||a===d("WAWebMessagePosition").MsgPosition.MID)&&!U,e["message-out"]=f,e["message-in"]=!f,e),(e={},e[d("WAWebKeyboardListHotKeys.react").LIST_FOCUSABLE_ITEM_CLASS_NAME]=u,e),(e={},e[c("WAWebWrapper.scss").wrapperProfilePictureDisplayed]=v!==d("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT,e[c("WAWebWrapper.scss").wrapperAdjustedOneOnOneChat]=!d("WAWebChatGetters").getIsGroup(d("WAWebFrontendMsgGetters").getChat(S.unsafe())),e[c("WAWebWrapper.scss").row]=!0,e[c("WAWebWrapper.scss").msgBottomMargin]=!0,e[c("WAWebWrapper.scss").msg]=!0,e[c("WAWebWrapper.scss").msgAnnouncement]=U,e),{0:"",1:"xrfv5zq x174ow07"}[!!(v!==d("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT&&d("WAWebABProps").getABPropConfigValue("sticky_chat_profile_picture_enabled"))<<0]);T=(!f||U)&&T;var Ha;if(T){var X,Y;Y=d("WAWebClassnames").classnamesConvertMeToStylexPlease((X={},X[(Y=c("WAWebWrapper.scss")).groupStickerAuthor]=V,X[Y.groupStickerAuthorAnnouncement]=U,X[Y.author]=!0,X[Y.groupStickerAuthorOutgoing]=f,X));Ha=k.jsx("div",{className:Y,children:k.jsx(c("WAWebMessageAuthor.react"),{msg:i[0],contact:i[0].senderObj,albumId:r,displayType:v})})}Y=d("WAWebClassnames").classnamesConvertMeToStylexPlease((X={},X[c("WAWebWrapper.scss").messageTransparent]=V,X[c("WAWebWrapper.scss").hasTail]=W,X[c("WAWebWrapper.scss").tailOverrideHide]=b,X[c("WAWebWrapper.scss").hasAuthor]=!V&&T,X[c("WAWebWrapper.scss").forwarded]=!V&&d("WAWebMsgSelectors").showForwarded(i[0]),X[c("WAWebWrapper.scss").message]=!0,X));X=d("WAWebClassnames").classnamesConvertMeToStylexPlease((b={},b[c("WAWebWrapper.scss").messageBackground]=!V,b[c("WAWebWrapper.scss").hasBorderBox]=!V,b[c("WAWebWrapper.scss").albumBubbleContainer]=!0,b[c("WAWebWrapper.scss").albumAnnouncementBubbleContainer]=U,b));var Ia;if(W){b=d("WAWebWrapperGetTailIcon").getTailIcon(f);Ia=k.jsx(b,{className_DONOTUSE:c("WAWebWrapper.scss").tail,containerRef:na,"aria-hidden":!0})}W=[];if(d("WAWebMsgActionCapability").canQuickForwardMsg(S.unsafe())){b=k.jsx(d("WAWebRound.react").Round,{label:h._(/*BTDS*/"__JHASH___1iXL2x6FDv__JHASH__"),theme:x?d("WAWebRound.react").RoundTheme.QuickActionRefreshed:d("WAWebRound.react").RoundTheme.QuickAction,onClick:function(){L(!1)},children:x?k.jsx(d("WAWebForwardRefreshedIcon.react").ForwardRefreshedIcon,{xstyle:ga.svgColorRefreshed,height:20}):k.jsx(d("WAWebForwardChatIcon.react").ForwardChatIcon,{xstyle:ga.svgColor})});W.push(b)}var Z=i.map(function(a){return d("WAWebFrontendMsgGetters").getAsAlbumAsset(a.unsafe())}).filter(Boolean);b=Z.some(function(a){return a.hasReaction===!0});var Ja;(B||z||P)&&(Ja=k.jsx(c("WAWebMessageMenu.react"),{msg:S.unsafe(),hasAuthor:T,position:a,ref:H,onToggle:function(a){Ba(a)},role:"button",ariaLabel:h._(/*BTDS*/"__JHASH__YjpyvfIbeIH__JHASH__"),tabIndex:0,displayType:v,isMenuOpen:Boolean(z)},"icon-context"));z?T="none":d("WAWebFrontendMsgGetters").getIsRTL(S)?T="pop-fast-reverse":T="pop-fast";var Ka;z&&(Ka=k.jsx(d("WAWebUimUie.react").UIE,{displayName:"MsgContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:Ca,children:k.jsx(c("WAWebUimUieMenu.react"),{contextMenu:z})}));a=o?k.jsx(c("WAWebMessageCheckbox.react"),{checked:D>0,theme:D>0&&D<i.length?d("WAWebCheckBox.react").CheckboxTheme.PARTIAL:void 0,onClick:function(a){K({event:a})}}):null;var La;s&&(La=k.jsx(d("WAWebWrapperListeners.react").WhileFocusedListener,{parent:{scrollMsg:Q,highlight:R}}));if(V){var $;Ca=i.map(function(a){return k.jsx(d("WAWebWrapperListeners.react").SelectionListener,{parent:{onSelectChange:ya},msgId:a.id.toString(),selectedMessages:p},a.id.toString())});V=o?k.jsx(c("WAWebMessageGroupedStickerCheckbox.react"),{checked:p.isSelected(d("WAWebStateUtils").unproxy(S.unsafe())),onClick:function(a){K({selectedMsg:S.unsafe()})}}):null;o=o?k.jsx(c("WAWebMessageGroupedStickerCheckbox.react"),{checked:p.isSelected(d("WAWebStateUtils").unproxy(Fa.unsafe())),onClick:function(a){K({selectedMsg:Fa.unsafe()})}}):null;var Ma=i.some(function(a){return d("WAWebReactionsUtils").canReactToMessage(a.unsafe())})?k.jsx(d("WAWebMsgSendFailIcon.react").MsgSendFailIcon,{msgs:i,showForMessages:!1,showForAddOns:!0,displayType:d("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION}):null;$=d("WAWebClassnames").classnamesConvertMeToStylexPlease(($={},$[c("WAWebWrapper.scss").groupStickerContainer]=!0,$[c("WAWebWrapper.scss").groupStickerAnnouncementContainer]=U,$));$=k.jsxs("div",{className:e,"data-id":r,ref:F,tabIndex:-1,children:[k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"delay-leave",children:a}),k.jsxs("div",{className:Y,role:"group",onContextMenu:ta,children:[Ia,w,Ha,k.jsxs("div",{className:$,children:[k.jsxs("div",{onMouseEnter:function(){var a;return(a=qa.current)==null?void 0:a.startAnimation()},role:"img",className:c("WAWebWrapper.scss").singleGroupedStickerContainer,ref:oa,children:[k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"delay-leave",children:V}),k.jsx(c("WAWebMessageGroupedSticker.react"),{msg:c("WANullthrows")(d("WAWebFrontendMsgGetters").getAsGroupedSticker(S.unsafe())),menuTransition:T,onOpenForwardFlow:L,onOpenDeleteFlow:O,scrollMsg:Q,highlight:R,isFocused:s&&t===0,forwardRef:qa,displayType:v,rowIsKeyboardFocused:P,onModalClosed:M})]}),k.jsxs("div",{onMouseEnter:function(){var a;return(a=ra.current)==null?void 0:a.startAnimation()},role:"img",className:c("WAWebWrapper.scss").singleGroupedStickerContainer,ref:pa,children:[k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"delay-leave",children:o}),k.jsx(c("WAWebMessageGroupedSticker.react"),{msg:c("WANullthrows")(d("WAWebFrontendMsgGetters").getAsGroupedSticker(Fa.unsafe())),menuTransition:T,onOpenForwardFlow:L,onOpenDeleteFlow:O,scrollMsg:Q,highlight:R,isFocused:s&&t===1,forwardRef:ra,displayType:v,rowIsKeyboardFocused:P,onModalClosed:M})]}),k.jsx(c("WAWebReactionsListeners.react"),{msgIds:i.map(function(a){return a.id.toString()}),onReactionChange:Ea})]}),Ma]}),Ca]});return d("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()?k.jsx(c("WAWebKeyboardRotateFocusArrows.react"),{role:"row",children:$}):$}Z.length!==i.length&&d("WALogger").ERROR(ba(),Z.length,i.length).sendLogs("invalid-album-grid");V=null;if(Z.length>0){o=Z.map(function(a){return a.id.toString()});V=k.jsx(c("WAWebAddOnBubblesContainer.react"),{isOutgoingMsg:f,displayType:v,hasReaction:b,onDetailsPaneClosed:M,parentIds:o})}Q=Z.length>0?k.jsx(d("WAWebMsgSendFailIcon.react").MsgSendFailIcon,{msgs:Z,showForMessages:!1,showForAddOns:!0,displayType:d("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION}):null;var Na=Z.length>d("WAWebMessageListAlbums").ALBUM_MIN_SIZE?Z[0]:null;R=d("WAWebMsgSelectors").showForwarded(i[0])?k.jsx(c("WAWebMessageForwardedIndicator.react"),{msg:i[0].unsafe(),className:c("WAWebWrapper.scss").forwardedIndicator}):null;P=k.jsxs("div",{className:e,"data-id":r,"data-testid":void 0,ref:F,"aria-label":ia,tabIndex:-1,children:[k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"delay-leave",children:a}),k.jsxs("div",{className:Y,role:"group",onContextMenu:ta,onMouseOver:y,onFocus:y,onMouseDown:sa,onMouseUp:y,onMouseLeave:sa,children:[Ia,w,k.jsxs("div",{className:X,ref:ma,children:[Ha,R,k.jsx("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((s={},s[c("WAWebWrapper.scss").gridContainer]=!0,s[c("WAWebWrapper.scss").gridAnnouncementContainer]=U,s)),children:i.slice(0,d("WAWebMediaAlbumGridConstants").ALBUM_GRID_MAX_THUMBNAIL).map(function(a,b){var e=b===d("WAWebMediaAlbumGridConstants").ALBUM_GRID_MAX_THUMBNAIL-1?{numAdditionalMedia:Ga,zoomMsg:Na}:null;return k.jsx(c("WAWebMediaAlbumGrid.react"),babelHelpers["extends"]({msg:c("WANullthrows")(d("WAWebFrontendMsgGetters").getAsAlbumAsset(a.unsafe())),albumMsgs:Z,albumPosition:d("WAWebMediaAlbumGridConstants").ALBUM_GRID_POSITIONS[b%d("WAWebMediaAlbumGridConstants").ALBUM_GRID_MAX_THUMBNAIL],isMsgVisible:j,displayType:v,ref:function(b){Da(b,a)},albumTheme:d("WAWebTypesMedia").DisplayTheme.Album,currentAlbumMessageIndex:b},e),a.id.toString())})}),k.jsx(d("WAWebForwardedNewsletterMessageInfoActionButton.react").ForwardedNewsletterMessageInfoActionButton,{msg:i[0].unsafe(),isAlbum:!0})]}),k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:T,children:Ja}),Q,k.jsx(d("WAWebWrapperMessageActionButtonsRow").MessageActionButtonsRow,{isOutgoingMsg:f,isMsgGallery:!1,hasReaction:b,messageActionButtons:W})]}),V,d("WAWebMiscGatingUtils").messageCustomAriaLabelEnabled()?k.jsx(c("WAWebReactionsListeners.react"),{msgIds:i.map(function(a){return a.id.toString()}),onReactionChange:Ea}):null,Ka,La,k.jsx(d("WAWebWrapperListeners.react").SelectionListener,{parent:{onSelectChange:ya},msgId:i[0].id.toString(),selectedMessages:p})]});return d("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()?k.jsx(c("WAWebKeyboardRotateFocusArrows.react"),{role:"row",children:P}):P}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebMessageListBotCarousel",["WAWebABProps"],(function(a,b,c,d,e,f,g){function a(a,b){return d("WAWebABProps").getABPropConfigValue("bonsai_carousel_enabled")===!0&&b.botResponseTargetId===a.botResponseTargetId}g.canBeGroupedAsBotCarousel=a}),98); __d("WAWebMessageListGenerateMsgListRows",["WALogger","WATimeUtils","WAWebABProps","WAWebFrontendMsgGetters","WAWebMessageListAlbums","WAWebMessageListBotCarousel","WAWebMessageListDayOfMsg","err","lodash"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["generateMsgListRows: large message order mismatch detected: "," vs ",", "," days apart"]);h=function(){return a};return a}var i=10;function a(a,b,e,f,g,h){var o=[],p=0,q;for(p=0;!q&&p<b.length;p++)q=b[p];p--;var r=!1,s=!1,t=q?c("WAWebMessageListDayOfMsg")(q):0,u=0,v=p;while(q){var w=q;s||o.push({type:"date",msg:w,count:u++});w===f&&a.unread&&o.push({type:"unread",unreadCount:g});var x=void 0,y=p+1;for(;!x&&y<b.length;y++)x=b[y];y=void 0;var z=void 0,A=void 0,B=[],C=[],D=!1,E=!1,F=void 0,G=!1,H=null,I=d("WAWebFrontendMsgGetters").getAsGroupedSticker(w.unsafe());if(I&&!l(w,h)){B.push(I);G=w===e;H=0;v=p+1;I=b[v];var J=I!=null?d("WAWebFrontendMsgGetters").getAsGroupedSticker(I.unsafe()):null;J&&d("WAWebMessageListAlbums").canBeGroupedAsAlbum(w,I)&&I!==f&&!l(I,h)&&(B.push(J),x=b[v+1],E=!0,F=!0,I===e&&(G=!0,H=1))}J=d("WAWebFrontendMsgGetters").getAsBotPluginCarouselMsg(w.unsafe());if(J){C.push(J);I=q;J=void 0;v=p;for(;v<b.length-1&&C.length<i;v++){I=b[v];J=b[v+1];var K=J!=null?d("WAWebFrontendMsgGetters").getAsBotPluginCarouselMsg(J.unsafe()):null;if(K&&d("WAWebMessageListBotCarousel").canBeGroupedAsBotCarousel(I,J))C.push(J);else break}C.length>=1&&(D=!0,x=b[v+1])}if(D){o.push({type:"botPluginCarousel",botPluginCarouselId:(K=C[0].id)==null?void 0:K.id,msgs:C});p=v+1;q=b[p];r=!1;continue}I=d("WAWebFrontendMsgGetters").getAsAlbumAsset(w.unsafe());if(I&&!l(w,h)){B.push(I);J=q;D=void 0;G=q===e;v=p;for(;v<b.length-1&&B.length<d("WAWebMessageListAlbums").ALBUM_MAX_SIZE;v++){J=b[v];D=b[v+1];K=D!=null?d("WAWebFrontendMsgGetters").getAsAlbumAsset(D.unsafe()):null;if(K&&d("WAWebMessageListAlbums").canBeGroupedAsAlbum(J,D)&&D!==f&&!l(D,h))B.push(K),D===e&&(G=!0);else break}B.length>=d("WAWebMessageListAlbums").ALBUM_MIN_SIZE&&(E=!0,F=!1,x=b[v+1])}if(x){C=x;A=c("WAWebMessageListDayOfMsg")(x);z=A===t;y=z&&d("WAWebMessageListAlbums").canBeGroupedWithNext(w,C)&&x!==f;z||n(t,A)}else y=!1,z=!1,A=0;if(E){F===!0?I=B.reduce(function(a,b){return a+"-"+b.id.toString()},"grouped-sticker-"):I=m(B);o.push({type:"album",msgs:B,albumId:I,groupedWithPrev:r,groupedWithNext:y,isFocusedAlbum:G,focusedMsgIndex:H});p=v+1;q=b[p];r=y;s=z;t=A;continue}o.push({type:"msg",msg:w,isFocused:w===e,groupedWithPrev:r,groupedWithNext:y});p++;r=y;s=z;t=A;q=x}return d("WAWebABProps").getABPropConfigValue("sticky_chat_profile_picture_enabled")?k(o,a):j(o,a)}function j(a,b){var d=b.msg,e=b.date,f=b.unread,g=b.album,h=b.botPluginCarousel;return a.map(function(a){switch(a.type){case"msg":return d(a.msg,a.isFocused,a.groupedWithPrev,a.groupedWithNext,!0);case"album":return g(a.msgs,a.albumId,a.groupedWithPrev,a.groupedWithNext,a.isFocusedAlbum,a.focusedMsgIndex,!0);case"date":return e(a.msg,a.count);case"unread":return f(a.unreadCount);case"botPluginCarousel":return h(a.msgs,a.botPluginCarouselId);default:a.type;throw c("err")("Invalid message list row type "+a.type)}})}function k(a,b){var d=b.msgGroup,e=b.date,f=b.unread;b=b.botPluginCarousel;var g=[],h=[],i=function(){h.length>0&&(g.push(d(h)),h=[])};for(a of a){a.type!=="msg"&&a.type!=="album"&&i();switch(a.type){case"msg":case"album":h.push(a);a.groupedWithNext||i();break;case"date":g.push(e(a.msg,a.count));break;case"unread":g.push(f(a.unreadCount));break;case"botPluginCarousel":g.push(b(a.msgs,a.botPluginCarouselId));break;default:a.type;throw c("err")("Invalid message list row type "+a.type)}}return g}function l(a,b){return b==null?!0:a.t>b.t}function m(a){var b=a.length,c=a[0]?a[0].id.toString():"";a=a[b-1]?a[b-1].id.toString():"";return"album-"+c+"-"+a+"-"+b}function n(a,b){if(a<=b)return;var c=Math.floor((a-b)/d("WATimeUtils").DAY_SECONDS);c>=2&&o(a,b,c)}var o=c("lodash").debounce(function(a,b,c){return d("WALogger").WARN(h(),a,b,c)},d("WATimeUtils").MINUTE_MILLISECONDS,{leading:!0,trailing:!1});g["default"]=a}),98); __d("WAWebMessageUnread.react",["fbt","WAWebThemeContext","WAWebUIRefreshGatingUtils","WAWebUISpacing","WDSFont.react","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={msgUnread:{width:"xh8yej3",marginStart:"x1d1ct2s",fontSize:"x13a8xbf",color:"xy9n6vp",textAlign:"x2b8uid",textTransform:"xtvhhri",backgroundColor:"xy4wh6y",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xdvm3u5",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"x11s3hvy",$$css:!0},msgUnreadRefresh:{width:"xh8yej3",marginStart:"x1d1ct2s",textAlign:"x2b8uid",backgroundColor:"x1bu39yj",paddingTop:"xjwt4uw",paddingBottom:"x1izp4mc",$$css:!0},msgUnreadDark:{borderTopWidth:"x16v0oar",borderBottomWidth:"x1enc8s9",$$css:!0},msgUnreadRefreshMaxWidth:{maxWidth:"xquzyny",$$css:!0}};function a(a){var b=a.count;a=a.textContainerRef;var e=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),f=d("WAWebThemeContext").useIsDarkTheme();b=h._(/*BTDS*/"__JHASH__OY_D1wJkxBD__JHASH__",[h._plural(b,"count")]);f=e?[f&&l.msgUnreadDark,l.msgUnreadRefresh,d("WAWebUISpacing").uiMargin.horizAuto,d("WAWebUISpacing").uiMargin.bottom12,d("WAWebUIRefreshGatingUtils").restrictMessageListWidth()&&l.msgUnreadRefreshMaxWidth]:[l.msgUnread,d("WAWebUISpacing").uiPadding.vert5,d("WAWebUISpacing").uiPadding.start40,d("WAWebUISpacing").uiMargin.bottom12];b=e?k.jsx(d("WDSFont.react").WDSTextBody3Emphasized,{colorName:"contentDefault",children:b}):b;return k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(f),{ref:a,children:k.jsx("span",babelHelpers["extends"]({},{0:{className:"x9f619 x1rg5ohu xq8v1hd xojvqvm x6ikm8r x10wlt62 xk50ysn x1mnlqng xlyipyv xuxw1ft x16dsc37 xs5mgot xfh8nwu xoqspk4 x12v9rci x138vmkv xexx8yu xe53cfu x18d9i69 x1g8yoln"},1:{className:"x9f619 x1rg5ohu xq8v1hd xojvqvm x6ikm8r x10wlt62 xk50ysn x1mnlqng xlyipyv xuxw1ft x16dsc37 x1k43qru x143zmbn x1qz2037 x2lxm0n xqhmz9w x1wyaeom x19m0xzs"}}[!!e<<0],{"aria-live":"polite",children:b}))}))}a.displayName=a.name+" [from "+f.id+"]";g.MessageUnread=a}),226); __d("WAWebMessageList.react",["fbt","WAArraysShallowEqual","WALogger","WANullthrows","WAWebABProps","WAWebBotPluginCarouselWrapper.react","WAWebCmd","WAWebDeleteRevokeMsgFlow.react","WAWebGetDisplayType","WAWebKeyboardListHotKeys.react","WAWebL10N","WAWebListenerHoc_DEPRECATED","WAWebMessageAlbumWrapper.react","WAWebMessageAssociation.flow","WAWebMessageAssociationUIUtils","WAWebMessageDateMarker.react","WAWebMessageListGenerateMsgListRows","WAWebMessagePosition","WAWebMessageUnread.react","WAWebMiscGatingUtils","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgCollection","WAWebMsgType","WAWebNoop","WAWebReplyToMsgChatAction","WAWebStateUtils","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebViewMode.flow","WAWebViewModeUtils","WAWebWrapper.react","WAWebWrapperGroupProfilePicture.react","asyncToGeneratorRuntime","err","react","shallowEqual","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["getMsgVisibility on invalid ref: ",""]);l=function(){return a};return a}a=k||d("react");var m=i||(i=c("react"));e=a.Component;var n=a.createRef,o={messageList:{flex:"x3psx0u",paddingBottom:"xwib8y2",paddingStart:"xkhd6sd",transition:"xrmvbpv",$$css:!0},maxWidth:{width:"xh8yej3",maxWidth:"xquzyny",$$css:!0},messageListSelectable:{paddingStart:"xo0ujly",transition:"xdi6fk3",$$css:!0}};f=function(a){babelHelpers.inheritsLoose(e,a);function e(e){var f;f=a.call(this,e)||this;f.$1={};f.$2={};f.$3={};f.$4={};f.$5={};f.$8=n();f.$9=function(){return f.$8.current};f.$13=function(){var a=f.$7;if(a==null)return;d("WAWebWrapper.react").handleMessageReply(f.props.chat,a)};f.$14=function(){var a=f.$7;if(a==null)return;void c("WAWebReplyToMsgChatAction")(a)};f.$15=function(){var a=f.$7;a!=null&&d("WAWebMsgActionCapability").canForwardMsg(a)&&d("WAWebWrapper.react").handleOpenForwardFlow({msg:a,multiSelect:!1})};f.$16=function(){var a=f.$7,b=f.props.chat;a!=null&&d("WAWebMsgActionCapability").canStarMsg(a)&&d("WAWebCmd").Cmd.sendStarMsgs(b,[a])};f.$17=function(){var a=f.$7,b=f.props.chat;if(a==null)return;d("WAWebModalManager").ModalManager.open(m.jsx(c("WAWebDeleteRevokeMsgFlow.react"),{chat:b,msgList:[a].map(d("WAWebStateUtils").unproxy)}))};f.$11=function(){f.forceUpdate()};f.$12=function(a){var b=null;a.parentMsgKey&&(a==null?void 0:a.associationType)===d("WAWebMessageAssociation.flow").MessageAssociationType.MEDIA_ALBUM&&!d("WAWebViewModeUtils").isViewModeVisibleInSurface(d("WAWebViewMode.flow").ViewModeSurface.CHAT,a==null?void 0:a.viewMode)&&(b=d("WAWebMsgCollection").MsgCollection.get(c("WANullthrows")(a.parentMsgKey)));var e=f.$5[a.id.toString()];if(!e&&!b)return;var g=!b&&e.isGroupedSticker();if(g)return;g=b?d("WAWebMessageAssociationUIUtils").getHiddenAssociatedMessages(b.id,d("WAWebViewMode.flow").ViewModeSurface.CHAT):e.props.msgs;g=new Set(g.map(function(a){return a.id.toString()}));var h=function(){var c=b?f.getMsgWrapperRef(b.id.toString()):e.refAlbumComponents[a.id.toString()];return c==null?void 0:c.getContainerElement()};(b||f.$5[a.id.toString()])&&d("WAWebCmd").Cmd.mediaViewerModal({msg:a,getZoomNode:h,highlightedMsgIds:g})};f.$10=function(a){var b=a.newKey;a=a.oldKey;b=b.toString();a=a.toString();var c=f.$1[a];c&&(delete f.$1[a],f.$1[b]=c)};f.$18=function(a,b){a?f.$1[b]=a:delete f.$1[b]};f.$22={msgGroup:function(a){var b=f.props,e=a[0].type==="msg"?a[0].msg:a[0].msgs[0],g=a[a.length-1];g=g.type==="msg"?[g.msg]:g.msgs;return m.jsxs("div",babelHelpers["extends"]({className:"x1n2onr6"},{children:[m.jsx(c("WAWebWrapperGroupProfilePicture.react"),{msg:e.unsafe(),selectable:b.selectable,position:d("WAWebMessagePosition").MsgPosition.FRONT,sticky:!0,lastMsgs:g}),a.map(function(a){switch(a.type){case"msg":return f.$22.msg(a.msg,a.isFocused,a.groupedWithPrev,a.groupedWithNext,!1);case"album":return f.$22.album(a.msgs,a.albumId,a.groupedWithPrev,a.groupedWithNext,a.isFocusedAlbum,a.focusedMsgIndex,!1);default:a.type;throw c("err")("Invalid message list row type "+a.type)}})]}),"msg-row-"+e.id.toString())},msg:function(a){function b(b,c,d,e,f){return a.apply(this,arguments)}b.toString=function(){return a.toString()};return b}(function(a,b,e,g,h){var i=f.props,j;g&&!e?j=d("WAWebMessagePosition").MsgPosition.FRONT:g&&e?j=d("WAWebMessagePosition").MsgPosition.MID:!g&&e?j=d("WAWebMessagePosition").MsgPosition.END:j=d("WAWebMessagePosition").MsgPosition.SINGLE;g=a.type===d("WAWebMsgType").MSG_TYPE.IMAGE||a.type===d("WAWebMsgType").MSG_TYPE.VIDEO||a.type===d("WAWebMsgType").MSG_TYPE.AUDIO||a.carouselCards!=null;return m.jsx(d("WAWebWrapper.react").Wrapper,{onMsgFocus:function(){f.$7=a.unsafe()},onMsgBlur:function(){f.$7=null},showProfilePicture:h,ref:function(b){f.$18(b,a.id.toString())},msg:a.unsafe(),displayType:d("WAWebGetDisplayType").getDisplayType(a.unsafe()),isMsgVisible:g||a.selectedCarouselCardIndex!=null?i.isMsgVisible:c("WAWebNoop"),selectable:i.selectable,selectedMessages:i.selectedMessages,onMessageSelect:i.onMessageSelect,position:j,isFocusedMsg:b,getSequentialMsg:f.props.getSequentialMsg,isFocusable:!0},"msg-"+a.id.toString())}),album:function(a,b,e,g,h,i,j){var k=f.props,l;g&&!e?l=d("WAWebMessagePosition").MsgPosition.FRONT:g&&e?l=d("WAWebMessagePosition").MsgPosition.MID:!g&&e?l=d("WAWebMessagePosition").MsgPosition.END:l=d("WAWebMessagePosition").MsgPosition.SINGLE;g=a[0];return m.jsx(c("WAWebMessageAlbumWrapper.react"),{msgs:a,ref:function(c){f.$20(c,b,a)},position:l,isMsgVisible:k.isMsgVisible,selectable:k.selectable,selectedMessages:k.selectedMessages,onMessageSelect:k.onMessageSelect,albumId:b,isFocusedAlbum:h,focusedMsgIndex:i,displayType:d("WAWebGetDisplayType").getDisplayType(g==null?void 0:g.unsafe()),isFocusable:!0,showProfilePicture:j},"album-"+b)},date:function(a,b){var d=f.props.isLoadingEarlierMsgs;d=!d||b!==0;return m.jsx(c("WAWebMessageDateMarker.react"),{ref:function(a){return void f.$19(b,a)},timestamp:a.t,isFocusable:d},"msg-"+a.id.toString()+"-date")},unread:function(){return m.jsx(d("WAWebMessageUnread.react").MessageUnread,{count:f.props.unreadCount,textContainerRef:f.$8},"msg-unread")},botPluginCarousel:function(a,b){return m.jsx(c("WAWebBotPluginCarouselWrapper.react"),{msgs:a,ref:function(b){return f.$21(b,a)},botPluginCarouselId:b},"botCarousel-"+b)}};f.$23=function(a){if(a.target instanceof HTMLElement){a=(a=a.target.dataset)==null?void 0:a.id;a=f.$1[a]||f.$3[a];a==null?void 0:a.openContextMenu==null?void 0:a.openContextMenu()}};f.$24=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebCmd").Cmd.openChatBottom(f.props.chat)});e=e.msgs;f.$6=e.length>0?e[e.length-1]:null;return f}var f=e.prototype;f.shouldComponentUpdate=function(a){var b=a.msgs;a=babelHelpers.objectWithoutPropertiesLoose(a,["msgs"]);var d=this.props,e=d.msgs;d=babelHelpers.objectWithoutPropertiesLoose(d,["msgs"]);return!c("shallowEqual")(a,d)||!c("WAArraysShallowEqual")(b,e)};f.getSnapshotBeforeUpdate=function(a){var b=this,d;a=this.props.getScrollContainer();var e=this.props.msgs.find(function(a){return Object.prototype.hasOwnProperty.call(b.$1,a.id)});if(e==null)return null;e=e.id.toString();d=c("WANullthrows")((d=this.getMsgWrapperRef(e))==null?void 0:d.getContainerElement());return{commonMessageId:e,commonMessageTop:this.getMsgElementOffsetTop(d)-a.scrollTop}};f.componentDidMount=function(){var a;this.props.listeners.add(d("WAWebMsgCollection").MsgCollection,"change:msgKey",this.$10);this.props.listeners.add((a=d("WAWebCmd")).Cmd,"refresh_messages",this.$11);this.props.listeners.add(a.Cmd,"open_media_viewer_for_album_media",this.$12);this.props.listeners.add(a.Cmd,"reply_current_message",this.$13);this.props.listeners.add(a.Cmd,"reply_current_message_private",this.$14);this.props.listeners.add(a.Cmd,"forward_current_message",this.$15);this.props.listeners.add(a.Cmd,"star_current_message",this.$16);this.props.listeners.add(a.Cmd,"delete_current_message",this.$17)};f.componentDidUpdate=function(a,b,d){a=this.props.getScrollContainer();if(d!=null){b=d.commonMessageId;d=d.commonMessageTop;b=c("WANullthrows")((b=this.getMsgWrapperRef(b))==null?void 0:b.getContainerElement());a.scrollTop=this.getMsgElementOffsetTop(b)-d}};f.getMsgElementOffsetTop=function(a){if(d("WAWebABProps").getABPropConfigValue("sticky_chat_profile_picture_enabled")){var b=a.offsetParent;if(b instanceof HTMLElement)return b.offsetTop+a.offsetTop}return a.offsetTop};f.getMsgVisibility=function(a){var b=this.props.getScrollContainer(),c=b.scrollTop;b=c+b.clientHeight;var e=a==null?void 0:a.getContainerElement();if(!e){d("WALogger").WARN(l(),a);return{visibility:d("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE,offset:0}}a=this.getMsgElementOffsetTop(e);if(a+e.clientHeight<=c)return{visibility:d("WAWebMessagePosition").MSG_VISIBILITY.ABOVE,offset:a-c};else if(a>=b)return{visibility:d("WAWebMessagePosition").MSG_VISIBILITY.BELOW,offset:a-c};return{visibility:d("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE,offset:a-c}};f.getMsgWrapperRef=function(a){return this.$1[a]||this.$5[a]||this.$4[a]};f.getMsgComponentRef=function(a){if(this.$1[a])return this.$1[a].getMsgComponentRef();else if(this.$5[a])return this.$5[a].refAlbumComponents[a]&&this.$5[a].refAlbumComponents[a].getRef()};f.getDateMarkerRef=function(a){return this.$2[a]};f.$19=function(a,b){b?this.$2[a]=b:delete this.$2[a]};f.getRenderedDateMarkers=function(){return this.$2};f.$20=function(a,b,c){var d=this;a?(this.$3[b]=a,c.forEach(function(b){d.$5[b.id.toString()]=a})):delete this.$3[b]};f.$21=function(a,b){var c=this;a&&b.forEach(function(b){c.$4[b.id.toString()]=a})};f.render=function(){var a=this.props,b=a.msgs,e=a.focusedMsgCtx;a=a.unreadCount;var f,g;e&&(f=e.msg,e.isUnreadDivider===!0&&(a>0&&(g=e.msg)));e=d("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()?null:(e={},e[""+c("WAWebL10N").LR("right","left")]=this.$23,e);var i=d("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()?null:c("WAWebL10N").LR(h._(/*BTDS*/"__JHASH__fNz5NCzT4Nm__JHASH__"),h._(/*BTDS*/"__JHASH__8fQBKGdV_ws__JHASH__"));return m.jsx(d("WAWebKeyboardListHotKeys.react").ListHotKeys,{dataTab:d("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST,className:(j||(j=c("stylex")))(o.messageList,this.props.selectable&&o.messageListSelectable,d("WAWebUIRefreshGatingUtils").restrictMessageListWidth()&&d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&[o.maxWidth,d("WAWebUISpacing").uiMargin.horizAuto]),getPriorityFocusItem:this.$9,onBeforeEnd:this.$24,handlers:e,role:"application",removeTabIndexFocusInside:d("WAWebMiscGatingUtils").messageListA11yRedesignEnabled(),"aria-label":i,children:c("WAWebMessageListGenerateMsgListRows")(this.$22,b,(e=f)==null?void 0:e.safe(),(i=g)==null?void 0:i.safe(),a,this.$6)})};return e}(e);a=d("WAWebListenerHoc_DEPRECATED").ListenerHOC(f);e=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getDateMarkerRef=function(a){return this.getComponent().getDateMarkerRef(a)};c.getMsgComponentRef=function(a){return this.getComponent().getMsgComponentRef(a)};c.getMsgWrapperRef=function(a){return this.getComponent().getMsgWrapperRef(a)};c.getMsgVisibility=function(a){return this.getComponent().getMsgVisibility(a)};c.getRenderedDateMarkers=function(){return this.getComponent().getRenderedDateMarkers()};return b}(a);g["default"]=e}),226); __d("WAWebMessageStickyDateMarker.react",["WAWebEmojiText.react","WAWebUIRefreshGatingUtils","WAWebVelocityTransitionGroup","WAWebWrapperSystemBubble.react","WDSFont.react","react"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useImperativeHandle,l=b.useState;function a(a){a=a.ref;var b,e=l(void 0),f=e[0],g=e[1];e=l(!0);var h=e[0],i=e[1],m=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),n=function(a){m===!1&&a!=null?g(a.toUpperCase()):g(a)},o=function(a){i(a)};k(a,function(){return{updateDateMarkerText:n,setVisibility:o}});f!=null&&h&&(m?b=j.jsx("div",babelHelpers["extends"]({className:"x10l6tqk x8k05lb x9f619 x78zum5 xl56j7k xh8yej3 x12mz7nx x47corl"},{children:j.jsx(c("WAWebWrapperSystemBubble.react"),{theme:"sticky",children:j.jsx(d("WDSFont.react").WDSTextBody3Emphasized,{colorName:"contentDeemphasized",dir:"auto",children:f})})})):b=j.jsx("div",babelHelpers["extends"]({className:"x10l6tqk x8k05lb x9f619 x78zum5 xl56j7k xh8yej3 x12mz7nx xsyo7zv x47corl"},{children:j.jsx(c("WAWebWrapperSystemBubble.react"),{theme:"sticky",children:j.jsx(d("WAWebEmojiText.react").EmojiText,{direction:"auto",text:f})})})));return j.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"slide-down-date",children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebNewsletterSubscribeToLiveUpdatesQuery",["WASmaxNewslettersSubscribeToLiveUpdatesRPC","WAWebBackendErrors","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){return d("WAWebNewsletterRpcUtils").runWithBackoff(function(){return h(a)})}function h(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=(yield d("WASmaxNewslettersSubscribeToLiveUpdatesRPC").sendSubscribeToLiveUpdatesRPC({iqTo:a}));switch(a.name){case"SubscribeToLiveUpdatesResponseSuccess":return{duration:a.value.liveUpdatesDuration*1e3};case"SubscribeToLiveUpdatesResponseServerError":var b=a.value.errorIQErrorInternalServerErrorMixin,c=b.code;b=b.text;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(c,b);case"SubscribeToLiveUpdatesResponseClientError":c=a.value.subscribeToLiveUpdatesClientErrors;switch(c.name){case"ItemNotFoundIQErrorResponse":b=c.value.errorIQErrorItemNotFoundMixin;a=b.text;b=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b,a);case"RateLimitedIQErrorResponse":b=c.value.errorIQErrorRateOverlimitMixin;a=b.text;b=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b,a);case"BadRequestIQErrorResponse":b=c.value.errorIQErrorBadRequestMixin;a=b.text;b=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b,a);case"SuspendedIQErrorResponse":b=c.value.errorIQErrorLockedMixin;a=b.text;b=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b,a);case"UnavailableForLegalReasonsResponse":b=c.value.errorIQErrorUnavailableForLegalReasonsGenericMixin;a=b.text;c=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(c,a)}}});return i.apply(this,arguments)}g.subscribeToLiveUpdatesQuery=a}),98); __d("WAWebNewsletterSubscribeToLiveUpdatesJob",["WAJobOrchestratorTypes","WAWebNewsletterSubscribeToLiveUpdatesQuery","WAWebOrchestratorNonPersistedJob"],(function(a,b,c,d,e,f,g){function a(a){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("subscribeToLiveUpdates",function(){return d("WAWebNewsletterSubscribeToLiveUpdatesQuery").subscribeToLiveUpdatesQuery(a)},{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}g.subscribeToLiveUpdatesJob=a}),98); __d("WAWebNewsletterSubscribeToLiveUpdatesAction",["WAJids","WALogger","WAWebNewsletterBridgeApi","WAWebNewsletterMetadataJob","WAWebNewsletterSubscribeToLiveUpdatesJob","WAWebNewsletterValidationUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[subscribeToLiveUpdatesJob] Failed to subscribe to live updates"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][subscribeToLiveUpdatesJob] Failed to geosuspend channel "," on receiving 451 error - ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][subscribeToLiveUpdatesJob] Failed to suspend channel "," on receiving 423 error - ",""]);j=function(){return a};return a}function a(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{return yield d("WAWebNewsletterSubscribeToLiveUpdatesJob").subscribeToLiveUpdatesJob(d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.toJid()))}catch(b){if((b==null?void 0:b.status)===423)try{yield d("WAWebNewsletterMetadataJob").suspendNewsletter(d("WAJids").toNewsletterJid(a.toJid())),void d("WAWebNewsletterBridgeApi").NewsletterBridgeApi.suspendNewsletter({id:a})}catch(b){d("WALogger").ERROR(j(),a.toString(),b.name).devConsole(b).tags("newsletter").sendLogs("newsletter-subscribe-to-live-updates-suspend-error");return}else if((b==null?void 0:b.status)===451)try{yield d("WAWebNewsletterMetadataJob").geosuspendNewsletter(d("WAJids").toNewsletterJid(a.toJid())),void d("WAWebNewsletterBridgeApi").NewsletterBridgeApi.geosuspendNewsletter({id:a})}catch(b){d("WALogger").ERROR(i(),a.toString(),b.name).devConsole(b).tags("newsletter").sendLogs("newsletter-subscribe-to-live-updates-geosuspend-error");return}d("WALogger").ERROR(h()).devConsole(b)}});return k.apply(this,arguments)}g.subscribeToLiveUpdates=a}),98); __d("WAWebNewsletterLiveUpdatesManager",["WALogger","WAWebNewsletterSubscribeToLiveUpdatesAction","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[LiveUpdatesManager] Failed to subscribe to live updates"]);h=function(){return a};return a}a=function(){function a(){}var c=a.prototype;c.$3=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=(yield d("WAWebNewsletterSubscribeToLiveUpdatesAction").subscribeToLiveUpdates(a));if(a==null){d("WALogger").WARN(h());return}return a.duration});function c(b){return a.apply(this,arguments)}return c}();c.$4=function(a,c){var d=this;this.unsubscribe();this.$1=self.setTimeout(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield d.$3(a));if(b!=null)return d.$4(a,b)}),c)};c.subscribe=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){this.unsubscribe();this.$2=a;var b=(yield this.$3(a));b!=null&&this.$4(a,b)});function c(b){return a.apply(this,arguments)}return c}();c.unsubscribe=function(){self.clearTimeout(this.$1)};return a}();c=new a();g.LiveUpdatesManager=c}),98); __d("WAWebNewsletterRepairMsgHistoryAction",["WALogger","WAPromiseDelays","WARaceSignal","WAWebCommonNewsletterEnums","WAWebMsgDataFromModel","WAWebMsgModelFromData","WAWebNewsletterGatingUtils","WAWebNewsletterMsgHistoryUtils","WAWebNewsletterPullMessagesFromServerAction","WAWebNewsletterValidationUtils","WAWebNewsletterViewModeUIUtils","WAWebNoop","WAWebStateUtils","WAWebWid","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose([""," repaired"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose([""," nothing to repair, exiting"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose([""," pulled "," from server"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose([""," no recent message found on server"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose([""," called for ",", anchor ",""]);l=function(){return a};return a}var m="[news-msg-history][repairMsgHistory]",n=1e3;function a(a){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b,e=d("WAWebStateUtils").unproxy(a.chat);if(!c("WAWebWid").isNewsletter(e.id))return;if(!d("WAWebNewsletterGatingUtils").isProactiveGapFillingEnabled())return;var f=(b=a.msgCollection)!=null?b:e.msgs;if(f!==e.msgs)return;if(f.repairMsgHistoryPromise!=null)return f.repairMsgHistoryPromise;b=e.newsletterMetadata;if(b==null||b.membershipType===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Guest)return;var g=d("WAWebNewsletterViewModeUIUtils").getHiddenMessageServerIdsForChat(e.id),o=f.sort().last();d("WALogger").DEV(l(),m,e.id.toString(),o==null?void 0:o.id).devConsole(e,o);if(o==null||o.serverId==null)return;var p=new AbortController();try{void c("WARaceSignal")([p.signal,a.unmountSignal],function(){return d("WAPromiseDelays").delayMs(n,p.signal).then(function(){f.msgLoadState.isRepairingMsgHistory=!0})["catch"](c("WAWebNoop"))});if(a.fetchLastMessage){b=(yield d("WAWebNewsletterPullMessagesFromServerAction").pullNewsletterMessagesFromServer(e,{messageCount:1,resetUnreadCount:!0,shouldUpdateMsg:function(a){return a.serverId!=null&&a.serverId!==o.serverId&&!g.has(a.serverId)}}));a=b[0];if(a==null){d("WALogger").DEV(k(),m);return}d("WALogger").DEV(j(),m,a.serverId).devConsole(a)}f.repairMsgHistoryPromise=d("WAWebNewsletterMsgHistoryUtils").fillMsgHistoryGaps({jid:d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(e.id.toJid()),msgs:f.toArray().map(d("WAWebMsgDataFromModel").msgDataFromMsgModel),serverIdsToSkip:g}).then(function(a){return a.map(d("WAWebMsgModelFromData").msgModelFromMsgData)});a=(b=(yield e.msgs.repairMsgHistoryPromise))!=null?b:[];if(f.length===a.length){d("WALogger").DEV(i(),m);return}d("WALogger").DEV(h(),m).devConsole(a);f.add(a,{silent:!0});f.sort({silent:!0});e.trigger("msgs:history_repaired")}finally{p.abort(),f.msgLoadState.isRepairingMsgHistory=!1,f.repairMsgHistoryPromise=null}});return o.apply(this,arguments)}g.repairNewsletterMsgHistory=a}),98); __d("WAWebConversationMsgs.react",["fbt","WAAbortError","WAArrayFindNext","WAFilteredCatch","WALogger","WANullthrows","WARaceSignal","WAShiftTimer","WATimeUtils","WAWebBackendErrors","WAWebBizChatAssignmentOpenedAction","WAWebChatAssignmentUtils","WAWebChatConstants","WAWebChatGetters","WAWebChatLoadMessages","WAWebChatMessageSearch","WAWebChatMsgsCollection","WAWebChatThreadLogging","WAWebClock","WAWebCmd","WAWebComposeBoxActions","WAWebCongratulationsAnimationsGatingUtils","WAWebContactGetters","WAWebContactMenuDropdown.react","WAWebConversationLoadMoreMessages.react","WAWebConversationMenus","WAWebConversationMsgsUtils","WAWebCopyPasteCopyableArea.react","WAWebDocumentFlushed","WAWebFocusTracer","WAWebFrontendConstants","WAWebFrontendMsgGetters","WAWebGroupCatchUpWamEvent","WAWebJumpToButtons.react","WAWebListenerHoc_DEPRECATED","WAWebMath","WAWebMessageList.react","WAWebMessagePosition","WAWebMessageStickyDateMarker.react","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgKey","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebNewsletterGetMessageUpdatesAction","WAWebNewsletterLiveUpdatesManager","WAWebNewsletterRepairMsgHistoryAction","WAWebNonMessageDataRequestPlaceholderMessageResendUtils","WAWebNoop","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnmountSignalHoc_DEPRECATED.react","WAWebUpdateUnreadChatAction","WAWebUserPrefsMeUser","WAWebVelocityAnimate","WAWebViewMode.flow","WAWebViewModeUtils","WAWebWid","err","isEmptyObject","lodash","react","shallowEqual","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMsgs] Error while checking if group notification context card is displayed: ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["ConversationMsgs:loadRecentMsgs failed\n",""],["ConversationMsgs:loadRecentMsgs failed\\n",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["ConversationMsgs:loadEarlierMsgs failed\n",""],["ConversationMsgs:loadEarlierMsgs failed\\n",""]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMgs] Promise reject openChatBottom"]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMgs] Promise reject loadAroundPromise"]);p=function(){return a};return a}function q(){var a=babelHelpers.taggedTemplateLiteralLoose(["_onHistorySyncStateUpdate called, attempt to load earlier"]);q=function(){return a};return a}a=k||d("react");var r=i||(i=c("react"));b=a.Component;var s=a.createRef,t=3e3,u=8.5,v=300,w=80,x={jumpToContainer:{height:"x5yr21d",width:"xh8yej3",maxWidth:"xquzyny",$$css:!0},jumpToContainerPosition:{position:"x1n2onr6",$$css:!0}};e=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$1=0;e.$3=new Map();e.$4=[];e.$10=!1;e.$11=!1;e.$12=function(a){return e.scrollContainer=a};e.$13=s();e.$14=s();e.$15=s();e.$27=function(a){var b=e.scrollContainer;b&&(void c("WAWebVelocityAnimate")(b,"stop"),void c("WAWebVelocityAnimate")(b,"scroll",{duration:300,container:b,offset:a}))};e.$37=function(a){var b=e.$14.current;e.$15.current=b==null?void 0:b.getMsgWrapperRef(a.toString())};e.$34=function(a){a.has(e.props.chat.id.toString())&&(d("WALogger").LOG(q()).tags("history-sync"),e.$10=!1,e.loadEarlierMsgs())};e.$43=function(){e.forceUpdate()};e.$28=function(a){a=e.$4[e.$4.length-1];if(!a)return;a=a.toString();var b=e.$14.current;if(a&&b){a=(b=b.getMsgWrapperRef(a))==null?void 0:b.getContainerElement();if(a){b=e.scrollContainer;if(!b)return;var c=e.$44(b,a);e.$42={msg:a,container:b,msgBottom:c}}}};e.$29=function(a){if(!e.$42)return;a=e.$42;var b=a.msg,c=a.container;a=a.msgBottom;e.$45(c,b,a);e.$42=void 0};e.$38=function(a){var b=e.props,c=b.listeners,f=b.chat;b=b.msgCollection;var g=a.focusCtx,i=a.chat;a=a.msgCollection;b&&(c.remove(b,"remove_msgs insert_msgs",e.$47),c.remove(f.msgs,"change:last",e.$48));c.remove(f,"change:unreadCount",e.$49);c.remove(f,"change:unreadEditTimestampMs",e.$49);c.remove(f,"change:activeUnreadCount",e.$50);c.remove(f,"change:pendingDeleteForMeCount",e.$43);e.$9!=null&&e.$9();e.$9=a.onMsgLoadStateChange(e.$51);d("WAWebChatGetters").getIsGroup(f)&&((b=f.groupMetadata)==null?void 0:b.unreadMentionMetadata.unreadMentionCollection)&&c.remove(f.groupMetadata.unreadMentionMetadata.unreadMentionCollection,"add remove reset",e.$52);d("WAWebChatGetters").getIsGroup(i)&&((b=i.groupMetadata)==null?void 0:b.unreadMentionMetadata.unreadMentionCollection)&&c.add(i.groupMetadata.unreadMentionMetadata.unreadMentionCollection,"add remove reset",e.$52);c.add(i,"change:unreadCount",e.$49);c.add(i,"change:unreadEditTimestampMs",e.$49);c.add(i,"change:activeUnreadCount",e.$50);c.add(i,"change:pendingDeleteForMeCount",e.$43);c.add(i.msgs,"change:last",e.$48);c.add(a,"remove_msgs insert_msgs",e.$47);g&&a.loadAroundPromise&&a.loadAroundPromise["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").E404,function(){d("WALogger").DEV(p()),d("WAWebToastManager").ToastManager.open(r.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__ly_tfcw2PD0__JHASH__")})),d("WAWebCmd").Cmd.openChatBottom(i)["catch"](function(){d("WALogger").DEV(o())})}))};e.$17=c("lodash").throttle(function(){var a=e.props.getUnmountSignal();d("WAWebDocumentFlushed").documentFlushed({signal:a}).then(function(){if(a.aborted)throw new(d("WAAbortError").AbortError)();e.$41();if(a.aborted)return;var b=babelHelpers.assertThisInitialized(e);b=b.scrollContainer;if(b==null)return;!e.$10&&b.scrollTop<v&&e.loadEarlierMsgs();if(e.$10&&b.scrollTop<w)return;b.scrollTop>w&&(e.$10=!1);b=e.state;var c=b.isNearBottom;b=b.cursor;var f=e.$53();f?(e.$21(!0),d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)&&c!==f&&e.setState({isNearBottom:f,newUnread:0}),(b.getEnd(e.props.msgCollection)<e.props.msgCollection.length||!d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props))&&e.$54()):c!==f&&e.setState({isNearBottom:f})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAAbortError").AbortError,c("WAWebNoop")))},100);e.$51=function(){var a=e.state.msgLoadState,b=d("WAWebConversationMsgsUtils").getMsgLoadState(e.props.msgCollection),c={msgLoadState:b};if(a.isLoadingAroundMsgs&&!b.isLoadingAroundMsgs){a=d("WAWebConversationMsgsUtils").validateFocusCtx(e.props.focusCtx);b=a==null?void 0:a.msg;b&&(c=babelHelpers["extends"]({},c,{cursor:e.state.cursor.init(b.id,e.props.msgCollection),focusCtx:a}))}e.setState(c)};e.$18=c("lodash").throttle(function(){e.$41()},100);e.$33=function(a){var b=a.newKey;a=a.oldKey;var c=a.toString(),d=b.toString(),f=e.$3.get(c);f&&(e.$3["delete"](c),e.$3.set(d,f));for(c=0;c<e.$4.length;++c)if(e.$4[c]===a){e.$4[c]=b;break}};e.$19=c("lodash").debounce(function(){var a=e.$53();e.state.isNearBottom!==a&&e.setState({isNearBottom:a})},100);e.loadEarlierMsgs=function(){var a=e.props,b=a.chat,c=a.msgCollection;a=e.state;var f=a.cursor;a=a.msgLoadState;if(f.getStart(c)>0)f.hasBefore(c)&&e.setState({cursor:f.loadBefore(c)});else{if(a.isLoadingEarlierMsgs||a.isLoadingAroundMsgs)return;d("WAWebConversationMsgsUtils").noEarlierMsgStateIsIncorrect(b,d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props),a)&&(c.msgLoadState.noEarlierMsgs=!1);if(c.msgLoadState.noEarlierMsgs)return;var g=e.props.getUnmountSignal();d("WAWebChatLoadMessages").loadEarlierMsgs(b,c).then(function(a){if(g.aborted)return;!a||a.length===0?e.$10=!0:e.$10=!1;a={};e.state.focusCtx||(a.focusCtx=d("WAWebConversationMsgsUtils").getUnreadFocusCtx(e.props,e.state.unreadCount));f.hasBefore(c)?(a.cursor=f.loadBefore(c),e.setState(a)):e.setState(a)})["catch"](function(a){d("WALogger").LOG(n(),a)})}};e.$54=function(){var a=e.props,b=a.chat,f=a.msgCollection;a=e.state;var g=a.cursor;a=a.msgLoadState;if(g.getEnd(f)<f.length){e.setState({cursor:g.loadAfter(f)});return}if(a.isLoadingRecentMsgs||a.isLoadingAroundMsgs)return;a=new AbortController();var h=a.signal,i=e.props.getUnmountSignal();h=c("WARaceSignal")([h,i],function(a){return d("WAWebChatLoadMessages").loadRecentMsgs(b,f,a).then(function(){if(a.aborted)throw new(d("WAAbortError").AbortError)();g.hasAfter(f)?e.setState({cursor:g.loadAfter(f)}):e.state.cursor.getEnd(f)>=f.length&&d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)&&e.forceUpdate()})})["catch"](d("WAAbortError").catchAbort(c("WAWebNoop")))["catch"](function(a){d("WALogger").LOG(m(),a)})["finally"](function(){e.$8=null});e.$8={promise:h,controller:a}};e.handleComposeHeightChange=function(a){var b=e.scrollContainer;if(!b)return;if(a){if(b&&a<0&&b.scrollTop===b.scrollHeight-b.clientHeight)return;e.$46(b,b.scrollTop+a)}else{var d=b.scrollHeight-(b.scrollTop+b.clientHeight);void c("WAWebVelocityAnimate")(b,{tween:18},{progress:function(){e.$46(b,b.scrollHeight-d-b.clientHeight)},duration:300},[.1,.82,.25,1])}};e.$55=function(){return c("WANullthrows")(e.scrollContainer,"unexpected empty scroll container")};e.getScrollBottom=function(){var a=e.scrollContainer;return!a?0:a.scrollHeight-(a.scrollTop+a.clientHeight)};e.$20=new(d("WAShiftTimer").ShiftTimer)(function(){var a;(a=e.$13.current)==null?void 0:a.setVisibility(!1)});e.$16=new(d("WAShiftTimer").ShiftTimer)(function(a){a=a||{};var b=a.dateMarkerIdx;a=a.silent;a=a===void 0?!1:a;var c=e.$14.current;if(!c||typeof b!=="number")return;a=a||Date.now()-(e.$2||0)<200;a||e.$39();a=c.getDateMarkerRef(b);if(b===-1){var f;(f=e.$13.current)==null?void 0:f.updateDateMarkerText()}else if(a){var g;f=a.getTimestamp();f=d("WAWebClock").Clock.relativeDateStr(f).toString();(g=e.$13.current)==null?void 0:g.updateDateMarkerText(f)}if(e.$7!==b){g=c.getDateMarkerRef(e.$7);g&&g.show();a&&a.hide()}});e.$57=function(){e.$3.forEach(function(a,b){if((a=e.props.chat.groupMetadata)==null?void 0:a.unreadMentionMetadata.hasMentionId(b)){(a=e.props.chat.groupMetadata)==null?void 0:a.unreadMentionMetadata.removeUnreadMentions(b)}})};e.isMsgVisible=function(a,b){b===void 0&&(b=!1);a=a;var c=d("WAWebMsgCollection").MsgCollection.get(a);if(c!=null&&c.isCarouselCard===!0){a=(c=c.parentMsgId)!=null?c:a}return e.$3.has(a.toString())&&(b?!0:e.getMsgComponent(a))};e.getSequentialMsg=function(a){var b=e.getMsgs();return!b?null:c("WAArrayFindNext")(b,function(b){return a.equals(b.id)})};e.$58=function(a){e.$17()};e.$31=function(){var a=e.props.chat;if(e.$5||!a.isDirty()&&!a.hasUnreadEdit())return;a=2500;e.$5=self.setTimeout(function(){e.$5=null,e.$21()},a)};e.$32=function(){if(!e.state.unreadCount||!d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props))return;var a=e.props.chat;a.unreadCount===0&&(e.setState({unreadCount:0}),a.activeUnreadCount=0);a.markedUnread=!1};e.$59=function(){var a=e.props.msgCollection;d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)&&e.state.cursor.getEnd(a)>=a.length?e.$26():void d("WAWebCmd").Cmd.openChatBottom(e.props.chat).then(function(a){a&&d("WAWebComposeBoxActions").ComposeBoxActions.focus(e.props.chat)})};e.$60=function(){var a,b=e.props.chat;a=(a=b.groupMetadata)==null?void 0:a.unreadMentionMetadata;if(a){var f=a.pendingUnreadMentionCount,g=d("WAWebMath").roundUp10thPercentage(f,a.getUnreadMentionCount());new(d("WAWebGroupCatchUpWamEvent").GroupCatchUpWamEvent)({mentionsCountPendingPercentage:g}).commit();if(f>0){g=h._(/*BTDS*/"__JHASH__JHt7qwKNC9z__JHASH__",[h._plural(f,"count")]);d("WAWebToastManager").ToastManager.open(r.jsx(d("WAWebToast.react").Toast,{msg:g}));a.pendingUnreadMentionCount=0;e.setState({unreadMentionCount:a.getUnreadMentionCount()});return}if(a.unreadMentionCollection.length){f=a.oldestUnreadMention();g=c("WAWebMsgKey").fromString(f==null?void 0:f.id);a=d("WAWebMsgCollection").MsgCollection.get(g.toString());b=d("WAWebChatMessageSearch").getSearchContext(b,(f=a==null?void 0:a.id)!=null?f:g);b.highlightMentionMsg=!0;b.enableAnimation=!1;b&&void d("WAWebCmd").Cmd.openChatAt({chat:e.props.chat,msgContext:b})}}};e.$26=function(a){var b=e.scrollContainer;b&&e.$46(b,b.scrollHeight-b.clientHeight);a&&a();var f=e.props.getUnmountSignal();d("WAWebDocumentFlushed").documentFlushed({signal:f}).then(function(){if(f.aborted)return;e.setState({cursor:e.state.cursor.resetBeforeCursor(e.props.msgCollection)})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAAbortError").AbortError,c("WAWebNoop")))};e.$48=function(a,b){var f=e.props,g=f.msgCollection;f=f.chat;var h=e.state.focusCtx,i=e.state.cursor,j=g.last();if(!d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)){b&&a&&d("WAWebMsgGetters").getIsSentByMe(a)&&e.$59();return}a={};var k=document.hasFocus(),l=e.$53(),m=l;k&&l?(a.unreadCount=f.activeUnreadCount,f.activeUnreadCount===0&&(a.focusCtx=void 0),i=i.setFocusedMsgKey(g)):j&&d("WAWebMsgGetters").getIsSentByMe(j)&&b&&(m=!0,e.state.unreadCount&&(a.unreadCount=0),a.focusCtx=void 0,i=i.setFocusedMsgKey(g),e.$59());h&&!Object.prototype.hasOwnProperty.call(a,"focusCtx")?i=i.loadAfter(g,{count:1}):i=i.loadBeforeCapped(g,{count:1});i!==e.state.cursor&&(a.cursor=i);c("isEmptyObject")(a)||(e.$11=!0,e.setState(a,function(){b&&e.$25({fetchLastMessage:!1}),e.$11=!1,m&&e.$26(),e.$49()}))};e.$30=function(){e.$6=self.setTimeout(function(){var a;e.state.isNearBottom&&!(d("WAWebChatGetters").getIsNewsletter(e.props.chat)===!0&&((a=e.state.focusCtx)==null?void 0:a.highlightMsg)===!0&&((a=e.state.focusCtx.msg)==null?void 0:a.isLastMessage())!==!0)&&e.$26()},1)};e.$52=function(){var a=e.props.chat;a=(a=(a=a.groupMetadata)==null?void 0:a.unreadMentionMetadata.getUnreadMentionCount())!=null?a:0;e.setState({unreadMentionCount:a})};e.$49=c("lodash").debounce(function(){if(e.$11)return;var a=e.props.chat,b=e.$53(),f=document.hasFocus();e.$21(b,f);f={};if(a.unreadCount&&!a.pendingSeenCount&&d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)){f.unreadCount=a.unreadCount;var g=d("WAWebConversationMsgsUtils").getUnreadFocusCtx(e.props,e.state.unreadCount);if(g&&f.focusCtx!==e.props.focusCtx){f.focusCtx=g;f.cursor=e.state.cursor.setFocusedMsgKey(e.props.msgCollection,(g=g.msg)==null?void 0:g.id)}}else if(a.unreadCount===0&&e.state.unreadCount!==0){g=e.props.msgCollection.last();g&&d("WAWebFrontendMsgGetters").getAsRevoked(g)&&(f.unreadCount=0)}var h=b&&e.state.unreadCount+1===f.unreadCount;(!b&&d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)||!a.pendingSeenCount&&e.state.newUnread!==a.unreadCount)&&(f.newUnread=a.unreadCount);c("isEmptyObject")(f)||e.setState(f,function(){h&&e.$26()});a.unreadCount===0&&e.state.unreadCount!==0&&(a.activeUnreadCount=e.state.unreadCount)},150);e.$50=function(){if(e.$11)return;var a=e.props.chat;e.setState({unreadCount:a.activeUnreadCount})};e.$47=function(){var a=e.state.cursor.ensureValidFocus(e.props.msgCollection);e.state.cursor!==a?e.setState({cursor:a}):e.forceUpdate()};e.handlePageUpDown=function(a){c("WAWebFocusTracer").focus(e.scrollContainer)};e.scrollMessages=function(){var a=e.$4[e.$4.length-1];if(!a)return;var b=e.$14.current;if(!b)return;a=(b=b.getMsgWrapperRef(a.toString()))==null?void 0:b.getContainerElement();if(!a)return;b=e.$4.length===1?a.clientHeight:0;var d=e.scrollContainer;void c("WAWebVelocityAnimate")(a,"stop");d&&void c("WAWebVelocityAnimate")(d,"stop");void c("WAWebVelocityAnimate")(a,"scroll",{duration:300,container:d,offset:b})};e.$61=function(a){if(a.metaKey||a.ctrlKey)return;a.preventDefault();a.key==="Enter"&&!a.shiftKey?d("WAWebComposeBoxActions").ComposeBoxActions.send(e.props.chat):d("WAWebComposeBoxActions").ComposeBoxActions.paste(e.props.chat,String.fromCharCode(a.charCode))};e.$62=function(a){var b=e.props.chat,f=e.props.onSelectMessages,g;if(d("WAWebContactGetters").getIsUser(b))g=r.jsx(c("WAWebContactMenuDropdown.react"),{chat:b,toContextMenuManager:!0,contact:b.contact,onSelectMessages:f,enableChatThreadLogging:!1,container:e.scrollContainer});else if(d("WAWebContactGetters").getIsGroup(b))g=d("WAWebConversationMenus").groupMenu(b,f,e.scrollContainer);else if(d("WAWebContactGetters").getIsBroadcast(b))g=d("WAWebConversationMenus").broadcastMenu(b,f);else return;a.preventDefault();a.stopPropagation();d("WAWebChatThreadLogging").handleActivitiesForChatThreadLogging([{activityType:"chatOverflowClicks",ts:d("WATimeUtils").unixTime(),chatId:b.id}]);e.setState({contextMenu:{menu:g,event:a}})};e.$63=function(){e.setState({contextMenu:null})};e.$64=function(a){a.preventDefault(),d("WAWebComposeBoxActions").ComposeBoxActions.sendPaste(e.props.chat,a)};e.$40=function(){if(!e.props.notifyChatRendered)return;e.props.notifyChatRendered(e.getMsgs())};e.$35=function(){var a=e.props.msgCollection,b=e.state.cursor;b.hasBefore(a)&&e.setState({cursor:b.loadBefore(a)})};e.$36=function(){var a,b=e.props.msgCollection;e.setState({cursor:e.state.cursor.init((a=b.last())==null?void 0:a.id,b)},function(){e.props.chat.unreadCount===0&&e.$59()})};var f=b.chat,g=f.pendingSeenCount?0:f.unreadCount,i=0;if(d("WAWebChatGetters").getIsGroup(f)){i=(f=(f=f.groupMetadata)==null?void 0:f.unreadMentionMetadata.getUnreadMentionCount())!=null?f:0}e.state=babelHelpers["extends"]({},d("WAWebConversationMsgsUtils").getInitialCursorAndFocusContext(b,g),{unreadCount:g,unreadMentionCount:i,isNearBottom:!0,newUnread:0,contextMenu:null,msgLoadState:d("WAWebConversationMsgsUtils").getMsgLoadState(b.msgCollection),lastSelectable:b.selectable,lastChat:b.chat,lastMsgCollection:b.msgCollection,lastFocusCtx:b.focusCtx});return e}var e=b.prototype;e.componentWillUnmount=function(){this.$9!=null&&this.$9();this.$16.cancel();this.$17.cancel();this.$18.cancel();this.$19.cancel();this.$20.cancel();this.$5&&self.clearTimeout(this.$5);this.$6&&self.clearTimeout(this.$6);this.$21();this.props.chat.markedUnread=!1;if(d("WAWebChatGetters").getIsGroup(this.props.chat)){var a;(a=this.props.chat.groupMetadata)==null?void 0:a.unreadMentionMetadata.reset()}this.props.chat.activeUnreadCount=0;this.$22()};e.$23=function(){var a=this.props.chat;d("WAWebChatGetters").getIsNewsletter(a)&&d("WAWebNewsletterGatingUtils").isNewsletterReactionEnabled()&&void d("WAWebNewsletterGetMessageUpdatesAction").maybeUpdateMsgsAddOns(a.msgs.getModelsArray(),a)};e.$24=function(){var a=this.props.chat;d("WAWebChatGetters").getIsNewsletter(a)&&void d("WAWebNewsletterLiveUpdatesManager").LiveUpdatesManager.subscribe(a.id)};e.$22=function(){void d("WAWebNewsletterLiveUpdatesManager").LiveUpdatesManager.unsubscribe()};e.componentDidMount=function(){var a=this,b,e=this.props,f=e.chat;e=e.listeners;this.$24();this.$23();this.$25({fetchLastMessage:!0});e.add((b=d("WAWebCmd")).Cmd,"scroll_chat_to_bottom",function(b){a.$26(b)});e.add(b.Cmd,"scroll_messages",this.scrollMessages);e.add(b.Cmd,"scroll_chat_by_height",function(b){a.$27(b)});e.add(b.Cmd,"panes_will_change",this.$28);e.add(b.Cmd,"panes_did_change",this.$29);e.add(b.Cmd,"scroll_to_focused_msg",function(b){a.$1=Date.now(),b()});e.add(b.Cmd,"reaction_changed_last_msg",this.$30);e.add(window,"focus",this.$31);e.add(window,"blur",this.$32);e.add(window,"resize",this.$18);e.add(window,"resize",this.$19);e.add(d("WAWebMsgCollection").MsgCollection,"change:msgKey",this.$33);e.add(b.Cmd,"new_history_sync_chunk_processed",this.$34);e.add(f,"msgs:preloaded",this.$35);e.add(f,"msgs:history_repaired",this.$36);e.add(b.Cmd,"group_notification_context_card_rendered",this.$37);this.$38(this.props);var g=this.props.getUnmountSignal();d("WAWebDocumentFlushed").documentFlushed({signal:g}).then(function(){if(g.aborted)return;a.$39()})["catch"](d("WAFilteredCatch").filteredCatch(d("WAAbortError").AbortError,c("WAWebNoop")));this.props.updateOpenedChatInfo({chat:f});void d("WAWebUpdateUnreadChatAction").sendSeen(f);d("WAWebChatAssignmentUtils").canAssignChats()&&(f.isAssignedToMe&&f.unopenedByAssignedAgent&&void d("WAWebBizChatAssignmentOpenedAction").markChatAsOpened(f,!0));this.$17();this.$40()};b.getDerivedStateFromProps=function(a,b){var c={lastSelectable:a.selectable,lastChat:a.chat,lastMsgCollection:a.msgCollection,lastFocusCtx:a.focusCtx};a.selectable===b.lastSelectable&&(a.chat!==b.lastChat||a.msgCollection!==b.lastMsgCollection||a.focusCtx!==b.lastFocusCtx)&&(c=babelHelpers["extends"]({},c,{msgLoadState:d("WAWebConversationMsgsUtils").getMsgLoadState(a.msgCollection)},d("WAWebConversationMsgsUtils").getInitialCursorAndFocusContext(a,b.unreadCount)));return c};e.shouldComponentUpdate=function(a,b){if(!c("shallowEqual")(a,this.props))return!0;a=this.state;var d=a.msgLoadState;a=babelHelpers.objectWithoutPropertiesLoose(a,["msgLoadState"]);var e=b.msgLoadState;b=babelHelpers.objectWithoutPropertiesLoose(b,["msgLoadState"]);if(!c("shallowEqual")(e,d))return!0;return!c("shallowEqual")(b,a)?!0:!1};e.componentDidUpdate=function(a){a.selectable===this.props.selectable&&(a.chat!==this.props.chat||a.msgCollection!==this.props.msgCollection||a.focusCtx!==this.props.focusCtx)&&(this.$8&&this.$8.controller.abort(),this.$38(this.props));a.chat!==this.props.chat&&(this.$22(),this.$24());var b=this.props.chat;this.$41(a.chat===b);this.props.updateOpenedChatInfo({chat:b});a.msgCollection!==this.props.msgCollection&&(this.$25({fetchLastMessage:!0}),this.$17());this.$40()};e.$25=function(a){a=a.fetchLastMessage;c("WAWebWid").isNewsletter(this.props.chat.id)&&void d("WAWebNewsletterRepairMsgHistoryAction").repairNewsletterMsgHistory({chat:this.props.chat,msgCollection:this.props.msgCollection,unmountSignal:this.props.getUnmountSignal(),fetchLastMessage:a})};e.$44=function(a,b){var c=a.scrollTop,d=a.scrollHeight;a=a.clientHeight;c=d-(c+a);return d-(b.offsetTop+b.clientHeight+c)};e.$45=function(a,b,c){var d=b.offsetTop;b=b.clientHeight;d=d+b+c-a.clientHeight;this.$46(a,d)};e.getRenderedMessageCount=function(){return this.getMsgs().length};e.setScrollBottom=function(a){var b=this.scrollContainer;if(!b)return;this.$46(b,b.scrollHeight-a-b.clientHeight)};e.$46=function(a,b){this.$2=Date.now(),a&&(a.scrollTop=b)};e.focus=function(){var a;a=(a=this.state.focusCtx)==null?void 0:(a=a.msg)==null?void 0:a.id.toString();if(a!=null){var b;b=(b=this.$14.current)==null?void 0:b.getMsgWrapperRef(a);b==null?void 0:(a=b.getContainerElement())==null?void 0:a.focus()}};e.$39=function(){var a;(a=this.$13.current)==null?void 0:a.setVisibility(!0);this.$20.debounce(t)};e.$53=function(){var a=this.scrollContainer;return!a?!1:a.scrollTop+d("WAWebFrontendConstants").SCROLL_FUDGE>a.scrollHeight-a.clientHeight};e.getMsgs=function(a){var b=this;a===void 0&&(a=!1);var c=this.props,e=c.focusCtx;c=c.msgCollection;var f=this.state,g=f.cursor;f=f.msgLoadState;if(e&&f.isLoadingAroundMsgs)return[];e=new(d("WAWebChatMsgsCollection").ChatMsgsCollection)();e.set(c.filter(function(a){return d("WAWebViewModeUtils").isViewModeVisibleInSurface(d("WAWebViewMode.flow").ViewModeSurface.CHAT,a.viewMode)}));f=e.toArray().slice(g.getStart(e),g.getEnd(e)).map(function(a){return a.safe()}).filter(function(a){var c;return a.type===d("WAWebMsgType").MSG_TYPE.GP2&&a.subtype==="create"&&!d("WAWebUserPrefsMeUser").isMeAccount((c=b.props.chat.groupMetadata)==null?void 0:c.owner)?!1:!a.pendingDeleteForMe});d("WAWebNonMessageDataRequestPlaceholderMessageResendUtils").handlePlaceholderMsgsSeen(f,a);return f};e.$56=function(a){if(d("WAWebCongratulationsAnimationsGatingUtils").isCongratulationsAnimationsEnabled()){var b,c=d("WAWebFrontendMsgGetters").getChat(a),e=d("WAWebFrontendMsgGetters").getCelebrationAnimationCandidate(a);if(e==null||d("WAWebContactGetters").getIsMe(c.contact))return;b=c.animationCandidateData!=null?a.t>((b=c.animationCandidateData)==null?void 0:b.msgTimestampSeconds):a.t>c.celebrationAnimationLastPlayed;b&&c.setAnimationCandidateData({animationType:e,msgTimestampSeconds:a.t})}};e.$41=function(a){var b=this.$14.current;if(!b){this.$3.clear();return}var e=[],f=b.props.msgs,g=new Map(),h={},i=0,j=f.length-1;while(i<j){var k=Math.floor((i+j)/2),l=f[k].id.toString();l=b.getMsgWrapperRef(l);b.getMsgVisibility(l).visibility===d("WAWebMessagePosition").MSG_VISIBILITY.ABOVE?i=k+1:j=k}for(l=i;l<f.length;l++){k=f[l].id.toString();var m=b.getMsgWrapperRef(k);if(!m)throw c("err")("msgRef not found!");var n=b.getMsgVisibility(m);if(n.visibility!==d("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE)break;h[k]={offset:n.offset,t:f[l].t};g.set(k,m);e.push(f[l].id);this.$56(f[l].unsafe())}if(!this.scrollContainer)return;n=this.scrollContainer.scrollTop;i=0;j=Object.keys(b.getRenderedDateMarkers()).length-1;k=b.getDateMarkerRef(0);m=k&&k.getElement();if(m&&m.offsetTop<=n+u)while(i<j){l=Math.ceil((i+j)/2);f=b.getDateMarkerRef(l);if(!f)throw c("err")("DateMarkerRef: "+l+" not found. "+Object.keys(b.getRenderedDateMarkers()).toString()+"}");k=c("WANullthrows")(f.getElement(),"unexpected empty element");k.offsetTop>n+u?j=l-1:i=l}else i=-1;this.$16.onOrBefore(0,{dateMarkerIdx:i,silent:a});this.$7=i;this.pauseHiddenGifs(this.$3,g);this.$3=g;this.$4=e;d("WAWebChatGetters").getIsGroup(this.props.chat)&&this.$57();this.props.updateOpenedChatInfo({renderedMsgsInfo:h,visibleMsgOrder:e,clientHeight:this.scrollContainer?this.scrollContainer.clientHeight:0});d("WAWebChatGetters").getIsGroup(this.props.chat)&&(this.props.updateCanShowSpamPanel==null?void 0:this.props.updateCanShowSpamPanel(!this.checkIfGroupNotificationContextCardDisplayed()))};e.getMsgComponent=function(a){var b=this.$14.current;if(b)return b.getMsgComponentRef(a.toString())};e.pauseHiddenGifs=function(a,b){var c=this;a.forEach(function(a,d){if(b.has(d))return;a=c.props.msgCollection.get(d);if((a==null?void 0:a.isGif)!==!0)return;a=c.$14.current;a=a==null?void 0:a.getMsgComponentRef(d);if((a==null?void 0:a.pause)==null)return;a.pause()})};e.$21=function(a,b){a=a;b=b;var c=this.props,e=c.chat;c=c.msgCollection;var f=this.state.cursor;if(!(e.isDirty()&&d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props)&&f.getEnd(c)>=c.length)&&!e.hasUnreadEdit())return;typeof b==="undefined"&&(b=document.hasFocus());if(!b)return;typeof a==="undefined"&&(a=this.$53());if(!a)return;void d("WAWebUpdateUnreadChatAction").sendSeenDebounced(e);return!0};e.checkIfGroupNotificationContextCardDisplayed=function(){try{var a;return this.$15.current!=null&&((a=this.$14.current)==null?void 0:a.getMsgVisibility(this.$15.current).visibility)===d("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE}catch(a){d("WALogger").WARN(l(),a).sendLogs("group-notification-context-card-visibility-check-error");return!1}};e.render=function(){var a=this.props,b=a.chat,e=a.msgCollection,f=a.selectable,g=a.onMessageSelect;a=a.bottomBanners;var h=this.state,i=h.focusCtx,k=h.msgLoadState;h=h.unreadMentionCount;var l=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),m=!!i,n=this.getMsgs(!0);g=r.jsx(c("WAWebMessageList.react"),{ref:this.$14,getScrollContainer:this.$55,chat:b,unreadCount:this.state.unreadCount,selectable:f,onMessageSelect:g,msgs:n,focusedMsgCtx:i,selectedMessages:this.props.selectedMessages,isMsgVisible:this.isMsgVisible,getSequentialMsg:this.getSequentialMsg,isLoadingEarlierMsgs:k.isLoadingEarlierMsgs});n=r.jsx(d("WAWebConversationLoadMoreMessages.react").LoadMoreMessages,{direction:"around",isMostRecentCMC:d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),loadMoreMsgs:c("WAWebNoop"),isLoadingEarlierMsgs:k.isLoadingEarlierMsgs,isLoadingRecentMsgs:k.isLoadingRecentMsgs,isLoadingAroundMsgs:k.isLoadingAroundMsgs,isRepairingMsgHistory:k.isRepairingMsgHistory});var o;(this.state.cursor.getStart(e)>0||!k.noEarlierMsgs||[d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY,d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.NOT_INCLUDED_IN_HIST_SYNC,d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY].includes(b.endOfHistoryTransferType)||d("WAWebConversationMsgsUtils").noEarlierMsgStateIsIncorrect(b,d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),k))&&(o=r.jsx(d("WAWebConversationLoadMoreMessages.react").LoadMoreMessages,{direction:"earlier",isMostRecentCMC:d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),loadMoreMsgs:this.loadEarlierMsgs,isLoadingEarlierMsgs:k.isLoadingEarlierMsgs,isLoadingRecentMsgs:k.isLoadingRecentMsgs,isLoadingAroundMsgs:k.isLoadingAroundMsgs,mdHistorySyncTransferState:b.endOfHistoryTransferType,isRepairingMsgHistory:k.isRepairingMsgHistory,chatId:b.id}));var p;(this.state.cursor.getEnd(e)<e.length||!d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props)||k.isRepairingMsgHistory)&&(p=r.jsx(d("WAWebConversationLoadMoreMessages.react").LoadMoreMessages,{direction:"recent",isMostRecentCMC:d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),loadMoreMsgs:this.$54,isLoadingEarlierMsgs:k.isLoadingEarlierMsgs,isLoadingRecentMsgs:k.isLoadingRecentMsgs,isLoadingAroundMsgs:k.isLoadingAroundMsgs,isRepairingMsgHistory:k.isRepairingMsgHistory}));m&&k.isLoadingAroundMsgs?(p=void 0,o=void 0):n=void 0;var q;this.state.contextMenu&&(q=r.jsx(d("WAWebUimUie.react").UIE,{displayName:"ConversationContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:this.$63,children:r.jsx(c("WAWebUimUieMenu.react"),{contextMenu:this.state.contextMenu})}));i=l?r.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(x.jumpToContainer,d("WAWebUISpacing").uiMargin.horizAuto,d("WAWebUIRefreshGatingUtils").restrictMessageListWidth()&&x.jumpToContainerPosition),{children:r.jsx(d("WAWebJumpToButtons.react").JumpToButtons,{chat:b,unreadMentionCount:h,newUnread:this.state.newUnread,isNearBottom:this.state.isNearBottom,handleJumpToBottom:this.$59,handleJumpToMention:this.$60,isMostRecentAndNotLoading:!k.isLoadingAroundMsgs&&!d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props)})})):r.jsx(d("WAWebJumpToButtons.react").JumpToButtons,{chat:b,unreadMentionCount:h,newUnread:this.state.newUnread,isNearBottom:this.state.isNearBottom,handleJumpToBottom:this.$59,handleJumpToMention:this.$60,isMostRecentAndNotLoading:!k.isLoadingAroundMsgs&&!d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props)});return r.jsxs(c("WAWebCopyPasteCopyableArea.react"),{className:{0:"",1:"x5yr21d"}[!!l<<0],children:[r.jsx(c("WAWebMessageStickyDateMarker.react"),{ref:this.$13}),i,r.jsxs("div",babelHelpers["extends"]({className:"x10l6tqk x13vifvy x17qophe xyw6214 x9f619 x78zum5 xdt5ytf xh8yej3 x5yr21d x6ikm8r x1rife3k xjbqb8w x1ewm37j"},{"data-testid":void 0,ref:this.$12,onScroll:this.$58,onKeyPress:this.$61,onContextMenu:f?null:this.$62,onPaste:this.$64,tabIndex:0,children:[r.jsx("div",{className:"x12lumcd xx9tyur"}),n,o,g,p,r.jsx("div",{children:a})]})),q]})};return b}(b);f=c("WAWebUnmountSignalHoc_DEPRECATED.react")(d("WAWebListenerHoc_DEPRECATED").ListenerHOC(e));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getRenderedMessageCount=function(){return this.getComponent().getRenderedMessageCount()};c.getScrollBottom=function(){return this.getComponent().getScrollBottom()};c.onComposeHeightChange=function(a){this.getComponent().handleComposeHeightChange(a)};c.onPageUpDown=function(a){this.getComponent().handlePageUpDown(a)};c.setScrollBottom=function(a){this.getComponent().setScrollBottom(a)};c.focus=function(){this.getComponent().focus()};c.checkIfGroupNotificationContextCardDisplayed=function(){return this.getComponent().checkIfGroupNotificationContextCardDisplayed()};return b}(f);g["default"]=a}),226); __d("WAWebConversationPanel.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={footer:"_amm5"};b=a;g["default"]=b}),98); __d("WAWebGroupDescriptionBanner.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={body:"_ajvq",text:"_ajvr",hidden:"_ajvs",desc:"_ajvt",more:"_ajvu"};b=a;g["default"]=b}),98); __d("WAWebGroupDescriptionBanner.react",["fbt","WAWebClassnames","WAWebCmd","WAWebConversationBanner.react","WAWebEmojiText.react","WAWebFormatConfiguration","WAWebGroupDescriptionBanner.scss","WAWebLinkify","WAWebNonEmptyString","WAWebResizeObserver.react","WAWebRichTextInputGatingUtils","WAWebText.react","WAWebUISpacing","WAWebUimUie.react","react","stylex","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j,k;b=k||d("react");var l=i||(i=c("react")),m=b.useEffect,n=b.useRef,o=b.useState;function p(a,b){a=a==null?void 0:a.split("\n");return a==null?void 0:a.slice(0,b).join("\n")}function q(a){a=(a=a==null?void 0:a.split("\n"))!=null?a:[];return a.length}function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.chat,f=a.onClose,g=d("useWAWebModelValues").useOptionalModelValues(a.groupMetadata,["displayedDesc"]),i=n(null),k=n(null),s=r(g);g=o(function(){return d("WAWebNonEmptyString").asMaybeNonEmptyString(s)});var t=g[0];g=g[1];var u=p(t,1),v=o(!1),w=v[0],x=v[1];v=o(!0);var y=v[0],z=v[1];v=function(){d("WAWebCmd").Cmd.chatInfoDrawer(e,{showFullGroupDescription:!0})};var A=function(a){var b;a=a.height;b=(b=(b=k.current)==null?void 0:(b=b.getElement())==null?void 0:b.offsetHeight)!=null?b:0;x(q(t)>1||a<b)};m(function(){var a,b;if(!i.current||!k.current)return;a=(a=(a=i.current)==null?void 0:a.clientHeight)!=null?a:0;b=(b=(b=k.current)==null?void 0:(b=b.getElement())==null?void 0:b.offsetHeight)!=null?b:0;x(q(t)>1||a<b);z(!1)},[t]);t!==s&&(g(d("WAWebNonEmptyString").asMaybeNonEmptyString(s)),x(!1),z(!0));if(t==null)return null;g=a.chat.isTrusted()?d("WAWebFormatConfiguration").TrustedGroupDesc({links:d("WAWebLinkify").findLinks(t),bulletPointsEnabled:!0,expandedFormattingEnabled:d("WAWebRichTextInputGatingUtils").formattingV2ExpansionEnabled()}):d("WAWebFormatConfiguration").UntrustedGroupDesc({bulletPointsEnabled:!0,expandedFormattingEnabled:d("WAWebRichTextInputGatingUtils").formattingV2ExpansionEnabled()});a=l.jsx("div",{className:c("WAWebGroupDescriptionBanner.scss").more,role:"button",onClick:v,children:h._(/*BTDS*/"__JHASH__YmkFxppzHPq__JHASH__")});return l.jsx(d("WAWebUimUie.react").UIE,{displayName:"GroupDesc",escapable:!0,requestDismiss:f,children:l.jsxs(c("WAWebConversationBanner.react"),{ref:b,onClose:f,children:[l.jsx(d("WAWebText.react").WAWebTextTitle,{children:h._(/*BTDS*/"__JHASH__Bo_0-nr4vTi__JHASH__")}),l.jsx(c("WAWebResizeObserver.react"),{ref:i,onResize:A,className:c("WAWebGroupDescriptionBanner.scss").body,children:l.jsx(d("WAWebText.react").WAWebTextSmall,{as:"span",children:l.jsxs("span",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((v={},v[c("WAWebGroupDescriptionBanner.scss").hidden]=y,v[c("WAWebGroupDescriptionBanner.scss").text]=!0,v)),children:[l.jsx(d("WAWebEmojiText.react").EmojiText,{ref:k,text:u,selectable:!0,formatters:g,className:c("WAWebGroupDescriptionBanner.scss").desc,multiline:!0}),w&&l.jsxs(l.Fragment,{children:[l.jsx("span",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiMargin.top1),{children:"..."})),a]})]})})})]})})}a.displayName=a.name+" [from "+f.id+"]";function r(a){return a==null?void 0:a.displayedDesc}g["default"]=a}),226); __d("WAWebMetaAICTABanner.react",["fbt","WAHttpUtils","WAWebAiSignalOutlineIcon.react","WAWebBotProfileGetters","WAWebConversationBanner.react","WAWebExternalLink.react","WAWebFlex.react","WAWebFlexItem.react","WAWebLaunchIcon.react","WAWebStopEvent","WAWebText.react","WAWebUISpacing","WAWebUimUie.react","WAWebUseBotProfileValues","WDSHoverStateStyles","react"],(function(a,b,c,d,e,f,g,h){var i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useMemo,m=e.useState,n="https://www.meta.ai",o="whatsapp_web_banner",p={banner:{backgroundColor:"x1h3rtpe",$$css:!0},icon:{color:"xhslqc4",$$css:!0},row:{columnGap:"x1vg3z9j",$$css:!0},iconContainer:{width:"xvy4d1p",height:"xxk0z11",$$css:!0},underline:{textDecoration:"x1bvjpef",$$css:!0}};function q(){var a=d("WAHttpUtils").buildUrl(n,"/",{utm_source:o});return a}function a(a){a=a.ref;var b=m(!1),e=b[0];b=b[1];var f=l(function(){return q()},[]),g=function(a){d("WAWebStopEvent").stopEvent(a),d("WAWebExternalLink.react").openExternalLink(f)};return k.jsx(d("WAWebUimUie.react").UIE,{displayName:"MetaAICTABanner>",children:k.jsx(c("WAWebConversationBanner.react"),{ref:a,xstyle:[d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.vert8,p.banner,e&&d("WDSHoverStateStyles").WDSHoverStateStyles.genericHoverPersistent],onClick:g,onHoverChange:b,children:k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:p.row,children:[k.jsx(c("WAWebFlexItem.react"),{padding:8,shrink:0,children:k.jsx(d("WAWebAiSignalOutlineIcon.react").AiSignalOutlineIcon,{width:24,height:24,iconXstyle:p.icon})}),k.jsx(c("WAWebFlexItem.react"),{grow:1,children:k.jsx(d("WAWebText.react").WAWebTextSectionTitle,{color:"wdsContentDeemphasized",children:h._(/*BTDS*/"__JHASH__kiGhFOEOyEO__JHASH__",[h._implicitParam("=m2",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:f,xstyle:e&&p.underline,children:h._(/*BTDS*/"__JHASH__7umdAQJPu____JHASH__")}))])})}),k.jsx(c("WAWebFlexItem.react"),{padding:8,shrink:0,xstyle:p.iconContainer,children:e&&k.jsx(d("WAWebLaunchIcon.react").LaunchIcon,{width:24,height:24,iconXstyle:p.icon})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){a=d("WAWebUseBotProfileValues").useOptionalBotProfileValues(a.id,[d("WAWebBotProfileGetters").getIsDefault]);a=a[0];return a===!0}g.MetaAICTABanner=a;g.useMetaAICTABanner=b}),226); __d("useWAWebNewsletterGeosuspendedCountries",["Promise","WAWebCountriesUtils","asyncToGeneratorRuntime","react","useWAWebEventTargetValue","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i;e=i||d("react");var j=e.useEffect,k=e.useState;function a(a){var e=k(null),f=e[0],g=e[1];e=d("useWAWebModelValues").useModelValues(a,["newsletterMetadata"]);var i=d("useWAWebModelValues").useOptionalModelValues(e.newsletterMetadata,["geosuspendedCountries"]),l=c("useWAWebEventTargetValue")(i==null?void 0:i.geosuspendedCountries,["add","remove","reset","change"],function(){return i==null?void 0:i.geosuspendedCountries.toArray()});j(function(){function a(){return c.apply(this,arguments)}function c(){c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(l==null)return;var a=(yield (h||(h=b("Promise"))).all(l.map(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){return{countryCode:a.id,countryName:(a=(yield d("WAWebCountriesUtils").getCountryName(a.id)))!=null?a:""}});return function(b){return a.apply(this,arguments)}}())));g(a)});return c.apply(this,arguments)}void a()},[l]);return f}g.useNewsletterGeosuspendedCountries=a}),98); __d("useWAWebNewsletterHasProfilePictureDeletionAlerts",["useWAWebEventTargetValue","useWAWebModelValues"],(function(a,b,c,d,e,f,g){function a(a){var b=d("useWAWebModelValues").useModelValues(a,["newsletterMetadata"]);a=c("useWAWebEventTargetValue")(b.newsletterMetadata,["change:hasProfilePictureDeletionAlerts"],function(){var a;return((a=b.newsletterMetadata)==null?void 0:a.hasProfilePictureDeletionAlerts)===!0});return a}g.useWAWebNewsletterHasProfilePictureDeletionAlerts=a}),98); __d("useWAWebNewsletterMessageDeliveryUpdates",["useWAWebEventTargetValue","useWAWebModelValues"],(function(a,b,c,d,e,f,g){function a(a){a=d("useWAWebModelValues").useModelValues(a,["newsletterMetadata"]);var b=d("useWAWebModelValues").useOptionalModelValues(a.newsletterMetadata,["messageDeliveryUpdates"]);a=c("useWAWebEventTargetValue")(b==null?void 0:b.messageDeliveryUpdates,["add","remove","reset","change"],function(){return b==null?void 0:b.messageDeliveryUpdates.toArray()});return a}g.useNewsletterMessageDeliveryUpdates=a}),98); __d("WAWebNewsletterChannelAlertsBanner.react",["fbt","WAWebCommonNewsletterEnums","WAWebConversationBanner.react","WAWebDrawerManager","WAWebFlex.react","WAWebFlexItem.react","WAWebNewsletterAlertFlow.react","WAWebNewsletterMembershipUtil","WAWebNux","WAWebSvgComponentBase","WAWebText.react","WAWebUISpacing","WAWebUimUie.react","WAWebWarningIcon.react","react","useWAWebModelValues","useWAWebNewsletterGeosuspendedCountries","useWAWebNewsletterHasProfilePictureDeletionAlerts","useWAWebNewsletterIsSuspended","useWAWebNewsletterMessageDeliveryUpdates","useWAWebNux","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={banner:{backgroundColor:"x150wa6m",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.onClose,f=a.newsletter,g=c("useWAWebUIM")();a=function(){d("WAWebDrawerManager").DrawerManager.openDrawerRight(j.jsx(c("WAWebNewsletterAlertFlow.react"),{chat:f,entryPoint:d("WAWebCommonNewsletterEnums").AlertEntryPoint.ALERT_BANNER,onBack:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerRight()},alertScreen:d("WAWebCommonNewsletterEnums").AlertScreen.MULTIPLE_ALERTS_LIST_SCREEN}),{transition:"slide-left",uim:g})};return j.jsx(d("WAWebUimUie.react").UIE,{displayName:"NewsletterChannelAlertsBanner",escapable:!0,children:j.jsx(c("WAWebConversationBanner.react"),{ref:b,xstyle:k.banner,onClick:a,onClose:e,children:j.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[j.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiPadding.end20,children:j.jsx(d("WAWebWarningIcon.react").WarningIcon,{width:20,height:20,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.CRITICAL})}),j.jsx(c("WAWebFlexItem.react"),{children:j.jsx(d("WAWebText.react").WAWebTextSectionTitle,{color:"primary",children:h._(/*BTDS*/"__JHASH__wP8koBM8Pu-__JHASH__")})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b,e,f=d("useWAWebModelValues").useModelValues(a,["id","newsletterMetadata"]),g=d("useWAWebModelValues").useOptionalModelValues(f.newsletterMetadata,["membershipType"]),h=f.id;b=(b=d("useWAWebNewsletterMessageDeliveryUpdates").useNewsletterMessageDeliveryUpdates(f))!=null?b:[];e=(e=d("useWAWebNewsletterGeosuspendedCountries").useNewsletterGeosuspendedCountries(f))!=null?e:[];f=d("useWAWebNewsletterIsSuspended").useNewsletterIsSuspended(f);h=d("WAWebNux").getNewsletterAlertsBannerNuxKey(h.toString());h=c("useWAWebNux")(h);var i=h[0];h=h[1];b=b.length>0;e=e.length>0;a=d("useWAWebNewsletterHasProfilePictureDeletionAlerts").useWAWebNewsletterHasProfilePictureDeletionAlerts(a);i=i&&d("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(g)&&(b||e||f||a);return[i,h]}g.NewsletterChannelAlertsBanner=a;g.useNewsletterChannelAlertsBanner=b}),226); __d("WAWebDashes.react",["fbt","WAWebFlex.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={dashContainer:{height:"x10w6t97",width:"xfo62xy",$$css:!0},dash:{height:"x5yr21d",width:"xfo62xy",borderTopStartRadius:"xm3z3ea",borderTopEndRadius:"x1x8b98j",borderBottomEndRadius:"x131883w",borderBottomStartRadius:"x16mih1h",backgroundColor:"x1vf10k5",$$css:!0},active:{backgroundColor:"x1ooda66",$$css:!0}};function m(a){a=a.active;return k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([l.dash,d("WAWebUISpacing").marginTop2,a&&l.active])))}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.activeIndex;a=a.count;var e=[];for(var f=0;f<a;f++)e.push(k.jsx(m,{active:f===b},"dash-"+f));return k.jsx(d("WAWebFlex.react").FlexColumn,{"aria-label":h._(/*BTDS*/"__JHASH__2DW3euUX-Gp__JHASH__",[h._param("current",b+1),h._param("total",a)]),className:(j||(j=c("stylex")))([l.dashContainer]),children:e})}a.displayName=a.name+" [from "+f.id+"]";g.Dashes=a}),226); __d("WAWebPinnedMessagesBannerBody.react",["WAFilteredCatch","WALogger","WAReplaceRepeatingWhitespace","WAWebABProps","WAWebBaseCollection","WAWebChatMsgSymbol.react","WAWebEmojiText.react","WAWebFlex.react","WAWebFormatConfiguration","WAWebFormatMsgText","WAWebFrontendMsgGetters","WAWebL10N","WAWebMediaMsgPreview.react","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgModelPropUtils","WAWebName.react","WAWebPinInChatCollection","WAWebText.react","WAWebUISpacing","WAWebVelocityTransitionGroup","WAWebWamEnumWebcRmrReasonCode","react","useWAWebAsync","useWAWebListener","useWAWebModelValues","useWAWebMsgValues"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["Failed to hydrate pin in chat parent message with id '","': ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["Removing pin in chat with id '","': ",""]);k=function(){return a};return a}var l=i||c("react"),m=(h||(h=d("react"))).useEffect;function a(a){var b=a.pinInChat;a=c("useWAWebAsync")(function(){return d("WAWebMsgCollection").MsgCollection.hydrateOrGetMessages([b.parentMsgKey.toString()])["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBaseCollection").CollectionSilentQueryError,function(a){d("WALogger").WARN(k(),b.id,a.message);d("WAWebPinInChatCollection").PinInChatCollection.remove(b.id);return[]}))},[b]);if(a.loading)return null;if(a.error){d("WALogger").WARN(j(),b.parentMsgKey,a.error.message);return null}a=(a=a.value)==null?void 0:a[0];return a!=null&&l.jsx(o,{msg:a})}a.displayName=a.name+" [from "+f.id+"]";var n={text:{fontSize:"x1f6kntn",lineHeight:"x1fc57z9",display:"x1rg5ohu",$$css:!0},content:{height:"x5yr21d",whiteSpace:"xuxw1ft",overflowX:"x6ikm8r",overflowY:"x10wlt62",textOverflow:"xlyipyv",$$css:!0},mediaPreview:{minWidth:"x900493",width:"x1useyqa",height:"xsdox4t",$$css:!0}};function o(a){var b;a=a.msg;b=d("useWAWebMsgValues").useMsgValues(a.id,[d("WAWebFrontendMsgGetters").getSenderObj,d("WAWebFrontendMsgGetters").getDir,d("WAWebFrontendMsgGetters").getRtl,(b=d("WAWebMsgGetters")).getIsGroupMsg,b.getLatestEditMsgKey,b.getAck,b.getType]);var e=b[0],f=b[1],g=b[2],h=b[3];b[4];b[5];b=b[6];d("useWAWebListener").useListener(a,"change:msgKey",function(a){a=a.oldKey;d("WAWebPinInChatCollection").PinInChatCollection.deleteByParentMessageKey(a)});var i=[];h&&i.push(l.jsxs(d("WAWebText.react").WAWebTextMuted,{color:"teal",weight:"semibold",children:[l.jsx(d("WAWebName.react").ContactName,{contact:e,useShortName:!0}),":\xa0"]},e.id.toString()));d("WAWebMsgModelPropUtils").hasSymbol(a.unsafe())&&i.push(l.jsx(c("WAWebChatMsgSymbol.react"),{msg:a.unsafe()},"msg-symbol"));h=c("WAWebFormatMsgText")({msg:a,options:{unformat:!1}}).toString();i.push(l.jsx(d("WAWebEmojiText.react").EmojiText,{xstyle:[n.text,d("WAWebUISpacing").uiPadding.end16],direction:f,text:c("WAReplaceRepeatingWhitespace")(h,!0),dirMismatch:g!==c("WAWebL10N").isRTL(),ellipsify:!0,inlineblock:!0,formatters:d("WAWebFormatConfiguration").InlineMessage({mentions:a.mentionMap(),groupMentions:a.groupMentionMap()})},"text"));d("WAWebMediaMsgPreview.react").isMediaTypeWithImage(b)&&d("WAWebABProps").getABPropConfigValue("pinned_messages_m2_image_thumbnail")&&i.push(l.jsx(p,{msg:a}));return l.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pin-message",children:l.jsx(d("WAWebFlex.react").FlexRow,{xstyle:n.content,align:"center",children:i},a.id)})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.msg;a=d("useWAWebMsgValues").useMsgValues(b.id,[d("WAWebFrontendMsgGetters").getMediaData]);a=a[0];var c=d("useWAWebModelValues").useModelValues(a,["preview","fullPreviewData"]),e=c.preview;c=c.fullPreviewData;m(function(){void b.downloadMedia({downloadEvenIfExpensive:!1,isUserInitiated:!1,rmrReason:d("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.OTHER})},[b]);e=e!=null||c!=null;return!e?null:l.jsx(d("WAWebFlex.react").FlexItem,{xstyle:n.mediaPreview,children:l.jsx(d("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:a},"media-preview")})}p.displayName=p.name+" [from "+f.id+"]";g.PinnedMessagesBannerBody=a}),98); __d("WAWebPinnedMessagesBanner.react",["fbt","WALogger","WAWebArrowForwardRefreshedIcon","WAWebChatMessageSearch","WAWebCmd","WAWebConversationBanner.react","WAWebDashes.react","WAWebFlex.react","WAWebFlexItem.react","WAWebMsgCollection","WAWebPinInChatCollection","WAWebPinInChatMetricUtils","WAWebPinMsgGatingUtils","WAWebPinRefreshedIcon.react","WAWebPinned3Icon.react","WAWebPinnedMessagesBannerBody.react","WAWebPinnedMessagesUserJourneyLogger","WAWebProtobufsE2E.pb","WAWebSendPinMessageAction","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUimUie.react","WAWebUnpinRefreshedIcon.react","react","stylex","useWAWebListener","useWAWebPinnedMessages"],(function(a,b,c,d,e,f,g,h){var i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["Error while unpinning a message: ",""]);l=function(){return a};return a}e=k||d("react");var m=i||(i=c("react")),n=e.useMemo,o=e.useState,p={banner:{backgroundColor:"x150wa6m",minHeight:"xuwdbiy",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"x10vq5hr",cursor:"x1ypdohk",":hover_backgroundColor":"x1z0qo99",$$css:!0},iconWrapper:{display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",width:"x1td3qas",height:"x10w6t97",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",backgroundColor:"xsknx04",$$css:!0},icon:{display:"x1rg5ohu",color:"xpteuj8",$$css:!0},bannerBody:{height:"xsdox4t",width:"xh8yej3",$$css:!0},clearMinWidth:{minWidth:"xaaagfd",$$css:!0},dashContainer:{width:"xfo62xy",$$css:!0}};function q(){var a=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebPinRefreshedIcon.react").PinRefreshedIcon:d("WAWebPinned3Icon.react").Pinned3Icon;return m.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([p.iconWrapper,d("WAWebUISpacing").uiMargin.start12]),{children:m.jsx(a,{xstyle:p.icon,"aria-hidden":!0})}))}q.displayName=q.name+" [from "+f.id+"]";function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.chat,f=c("useWAWebPinnedMessages")(e);a=o(function(){return f.length>0?f.length-1:null});var g=a[0],i=a[1];g!=null&&g>f.length-1&&f.length>0&&i(f.length-1);var j=g==null?null:f[g];d("useWAWebListener").useListener(d("WAWebPinInChatCollection").PinInChatCollection,["add","remove","change"],function(){f.length>0&&i(f.length-1)});var k=n(function(){if(f.length>0&&j!=null){var a=j==null?void 0:j.parentMsgKey;if(a)return d("WAWebMsgCollection").MsgCollection.get(a)}},[f,j]),r=function(){var a,b=f.length;a=b-1-((a=g)!=null?a:0);d("WAWebPinInChatMetricUtils").logPinInChatTapOnBanner({msg:k,chat:e,pin:j,pinCount:b,pinIndex:a})},s=function(){f.length>0&&i(function(a){return a==null?f.length-1:(a+1)%f.length})},t=function(){if(j!=null){var a,b=j.parentMsgKey;a=d("WAWebChatMessageSearch").getSearchContext(e,(a=k==null?void 0:k.id)!=null?a:b,null);a&&(a.slideToMsg=!0);void d("WAWebCmd").Cmd.openChatAt({chat:e,msgContext:a,onSuccess:{mediaMsgToOpenInMediaViewer:k}})}};a=function(){s();if(j!=null){var a=d("WAWebMsgCollection").MsgCollection.get(j.parentMsgKey);a&&(new(d("WAWebPinnedMessagesUserJourneyLogger").PinnedMessagesUserJourneyLogger)(e).pinBannerClickUnpin(a,j),d("WAWebSendPinMessageAction").sendPinInChatMsg(a,d("WAWebProtobufsE2E.pb").Message$PinInChatMessage$Type.UNPIN_FOR_ALL)["catch"](function(a){d("WALogger").ERROR(l(),a)}))}};var u=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();a=[{content:h._(/*BTDS*/"__JHASH___LTQvdQdtP7__JHASH__"),onClick:a,icon:u?m.jsx(d("WAWebUnpinRefreshedIcon.react").UnpinRefreshedIcon,{}):null},{content:h._(/*BTDS*/"__JHASH__QpyBszCgUNM__JHASH__"),onClick:t,icon:u?m.jsx(d("WAWebArrowForwardRefreshedIcon").ArrowForwardRefreshedIcon,{}):null}];u=function(a){a.stopPropagation(),t(),s(),r()};var v=d("WAWebPinMsgGatingUtils").isPinnedMessagesM2Enabled()&&f.length>1;v=m.jsx(c("WAWebFlexItem.react"),{xstyle:p.dashContainer,children:v?m.jsx(d("WAWebDashes.react").Dashes,{count:f.length,activeIndex:(v=g)!=null?v:0}):null});return j==null?null:m.jsx(d("WAWebUimUie.react").UIE,{displayName:"PinnedMessagesBanner",children:m.jsx(c("WAWebConversationBanner.react"),{ref:b,xstyle:[p.banner,d("WAWebUISpacing").uiPadding.start20,d("WAWebUISpacing").uiPadding.vert0,d("WAWebUISpacing").uiPadding.end0],onClick:u,menuItems:a,children:m.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",grow:1,children:[m.jsx(c("WAWebFlexItem.react"),{"aria-label":h._(/*BTDS*/"__JHASH__8i3nxmuyh4o__JHASH__")}),v,m.jsx(c("WAWebFlexItem.react"),{xstyle:p.clearMinWidth,align:"center",justify:"center",children:m.jsx(q,{})}),m.jsx(c("WAWebFlexItem.react"),{xstyle:[d("WAWebUISpacing").uiPadding.start12,p.bannerBody],children:m.jsx(d("WAWebPinnedMessagesBannerBody.react").PinnedMessagesBannerBody,{pinInChat:j})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){a=c("useWAWebPinnedMessages")(a);return a.length>0}g.PinnedMessagesBanner=a;g.useWAWebPinnedMessagesBanner=b}),226); __d("WAWebWarningBubbleIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="warning-bubble";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=19;m=18;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 18 19",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"#667781",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M16.2 0.0161133H1.8C0.81 0.0161133 0.00899999 0.826113 0.00899999 1.81611L0 18.0161L3.6 14.4161H16.2C17.19 14.4161 18 13.6061 18 12.6161V1.81611C18 0.826113 17.19 0.0161133 16.2 0.0161133ZM9.9 10.8161H8.1V9.01611H9.9V10.8161ZM9.9 7.21611H8.1V3.61611H9.9V7.21611Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.WarningBubbleIcon=a}),98); __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","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUimUie.react","WAWebWarningBubbleIcon.react","react","useWAWebModelValues","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={banner:{backgroundColor:"x150wa6m",$$css:!0},icon:{color:"x1anpt5t",$$css:!0},iconRefreshed:{color:"xhslqc4",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.onClose,f=a.chat,g=c("useWAWebUIM")();a=function(){d("WAWebDrawerManager").DrawerManager.openDrawerRight(j.jsx(c("WAWebSentForAdminReviewFlow.react"),{chat:d("WAWebStateUtils").unproxy(f),ref:b,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerRight()}},"rta-"+f.id.toString()),{transition:"slide-left",uim:g,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE}),e()};return j.jsx(d("WAWebUimUie.react").UIE,{displayName:"ReportToAdminNewReportBanner",escapable:!0,children:j.jsx(c("WAWebConversationBanner.react"),{ref:b,xstyle:k.banner,onClick:a,onClose:e,children:j.jsxs(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.top6,align:"center",children:[j.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiPadding.end20,children:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebMessageReportRefreshedIcon.react").MessageReportRefreshedIcon,{iconXstyle:k.iconRefreshed}):j.jsx(d("WAWebWarningBubbleIcon.react").WarningBubbleIcon,{xstyle:k.icon,width:20,height:20})}),j.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiMargin.bottom6,children:j.jsx(d("WAWebText.react").WAWebTextMuted,{as:"span",children:h._(/*BTDS*/"__JHASH__sY69c_UGuzK__JHASH__",[h._implicitParam("=m0",j.jsx(d("WAWebText_DONOTUSE.react").TextSpan,{color:"accent",weight:"semibold",children:h._(/*BTDS*/"__JHASH__tDH3Bq8m1wO__JHASH__")}))])})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function l(a){a=d("useWAWebModelValues").useModelValues(a,["groupMetadata"]);a=d("useWAWebModelValues").useOptionalModelValues(a.groupMetadata,["lastReportToAdminTimestamp"]);a=a==null?void 0:a.lastReportToAdminTimestamp;if(a==null)return!1;var b=d("WAWebRevokeMsgConstants").REVOKE_WINDOW+d("WAWebRevokeMsgConstants").REVOKE_WINDOW_RECEIVER_MARGIN;a=d("WATimeUtils").unixTime()-a<=b;return a}function m(a){a=d("useWAWebModelValues").useOptionalModelValues(a.groupMetadata,["reportToAdminMode"]);return d("WAWebABProps").getABPropConfigValue("report_to_admin_kill_switch")&&(a==null?void 0:a.reportToAdminMode)===!0}function b(a){var b=d("useWAWebModelValues").useModelValues(a,["id","groupMetadata"]);a=l(b);a=m(b)&&a;return[a,function(){d("WAWebSendForAdminReviewUtils").clearLastReportTimestamp(b)}]}g.ReportToAdminNewReportBanner=a;g.useReportToAdminNewReportBanner=b}),226); __d("WAWebSimilarNewslettersUnitsLoadable.react",["JSResourceForInteraction","WAWebLazyLoadLoading.react","WAWebLazyLoadedRetriable","WAWebLoadable","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebSimilarNewslettersUnits.react").__setRef("WAWebSimilarNewslettersUnitsLoadable.react").load());return a.SimilarNewslettersConversationBanner}),"SimilarNewslettersConversationBanner");d=c("WAWebLoadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLazyLoadLoading.react"),{error:Boolean(a.error)})}});g.SimilarNewslettersConversationBannerLoadable=d}),98); __d("WAWebSubgroupSuggestionsBanner.react",["fbt","WAWebCmd","WAWebCommunityGatingUtils","WAWebConversationBanner.react","WAWebFlex.react","WAWebFlexItem.react","WAWebGroupType","WAWebNux","WAWebSubgroupsNuxIcon.react","WAWebText.react","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUimUie.react","react","useWAWebEventTargetValue","useWAWebNux"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={banner:{backgroundColor:"x150wa6m",$$css:!0},icon:{color:"xs17brd",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.onClose,f=a.chat;a=a.subgroupSuggestionsCount;var g=function(){var a;a=(a=f.groupMetadata)==null?void 0:a.parentGroup;if(!a)return;d("WAWebCmd").Cmd.openCommunityPendingGroupsDrawer(a);e()};return j.jsx(d("WAWebUimUie.react").UIE,{displayName:"SubgroupSuggestionsBanner",escapable:!0,children:j.jsx(c("WAWebConversationBanner.react"),{ref:b,xstyle:k.banner,onClick:g,onClose:e,children:j.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[j.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiPadding.end18,children:j.jsx(d("WAWebSubgroupsNuxIcon.react").SubgroupsNuxIcon,{xstyle:k.icon,height:20})}),j.jsx(c("WAWebFlexItem.react"),{children:j.jsx(d("WAWebText.react").WAWebTextMuted,{as:"span",children:(b=h._plural(a,"group_suggestions"),h._(/*BTDS*/"__JHASH__5zWYvo0hQZ-__JHASH__",[b,h._implicitParam("=m0",j.jsx(d("WAWebText_DONOTUSE.react").TextSpan,{color:"accent",weight:"semibold",children:h._(/*BTDS*/"__JHASH__-EPtWAG_XYo__JHASH__",[b])}))]))})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function l(a){var b;b=c("useWAWebEventTargetValue")(a==null?void 0:(b=a.groupMetadata)==null?void 0:b.subgroupSuggestions,["add","remove","reset"],function(){var b;return(b=a==null?void 0:(b=a.groupMetadata)==null?void 0:b.getSubgroupSuggestions().length)!=null?b:0});return b}function b(a){var b,e,f;b=(b=a.groupMetadata)==null?void 0:b.getParentGroupChat();var g=l(b),h=(b==null?void 0:b.id)?b.id.toString():"";h=d("WAWebNux").getSubgroupSuggestionsBannerNuxKey(h);e=c("useWAWebEventTargetValue")((e=a.groupMetadata)==null?void 0:e.participants,["bulk_add","bulk_remove","reset","change:isAdmin"],function(){var b;return Boolean((b=a.groupMetadata)==null?void 0:b.participants.iAmAdmin())});h=c("useWAWebNux")(h);var i=h[0];h=h[1];f=((f=a.groupMetadata)==null?void 0:f.groupType)===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP&&Boolean(b)&&g>0&&e&&i&&d("WAWebCommunityGatingUtils").memberSuggestedGroupsEnabled();return[f,h,g]}g.SubgroupSuggestionsBanner=a;g.useSubgroupSuggestionsBanner=b}),226); __d("useWAWebCagEventsAwarenessBanner.react",["WATimeUtils","WAWebChatGroupUtils","WAWebNux","WAWebUserPrefsEvents","useWAWebIAmCommunityAdmin","useWAWebNux"],(function(a,b,c,d,e,f,g){function a(a){var b,e=c("useWAWebNux")(d("WAWebNux").NUX.CAG_EVENTS_AWARENESS_BANNER),f=e[0];e[1];e=e[2];b=c("useWAWebIAmCommunityAdmin")((b=a.groupMetadata)==null?void 0:(b=b.getParentGroupChat())==null?void 0:b.groupMetadata);f=f&&b&&d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(a);if(f){b=d("WAWebUserPrefsEvents").getCagEventsAwarenessBannerFirstSeenTimestamp();b!=null&&(f=d("WATimeUtils").happenedWithin(b,d("WATimeUtils").WEEK_SECONDS))}return[f,e]}g["default"]=a}),98); __d("useWAWebConversationPanelGroupDescription",["WAWebChatGetters","WAWebFrontendChatGetters","WAWebGroupGatingUtils","WAWebMsgType","WAWebUserPrefsGeneral","react"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useState;function a(a){var b=i(function(){if(!d("WAWebChatGetters").getIsGroup(a)||d("WAWebGroupGatingUtils").getGroupDescriptionLength()<=0||d("WAWebUserPrefsGeneral").getSeenGroupDesc(a.id))return!1;d("WAWebUserPrefsGeneral").setSeenGroupDesc(a.id);return a.unreadCount===0?!a.msgs.some(function(a){return a.type!==d("WAWebMsgType").MSG_TYPE.E2E_NOTIFICATION&&a.type!==d("WAWebMsgType").MSG_TYPE.GP2}):!d("WAWebFrontendChatGetters").getShouldShowUnreadDivider(a)}),c=b[0],e=b[1];b=function(){e(!1)};return[c,b]}g["default"]=a}),98); __d("WAWebConversationPanelBanner.react",["$InternalEnum","WAWebBotGating","WAWebCagEventsAwarenessBanner.react","WAWebChangeNumberNotificationBanner.react","WAWebChatGetters","WAWebGroupDescriptionBanner.react","WAWebMembershipApprovalRequestsBanner.react","WAWebMetaAICTABanner.react","WAWebNewsletterChannelAlertsBanner.react","WAWebNewsletterGatingUtils","WAWebPinnedMessagesBanner.react","WAWebReportToAdminNewReportBanner.react","WAWebSimilarNewslettersUnitsLoadable.react","WAWebSubgroupSuggestionsBanner.react","WAWebUIRefreshGatingUtils","WAWebVelocityTransitionGroup","react","useWAWebCagEventsAwarenessBanner.react","useWAWebConversationPanelGroupDescription"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={banner:{zIndex:"xmbbrlm",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xa93pmm",$$css:!0},material:{borderBottomWidth:"x1qhh985",$$css:!0}},k=b("$InternalEnum")({CagEventsAwareness:1,MembershipApprovalRequests:2,ReportToAdminNewReport:3,SubgroupSuggestions:4,GroupDescription:5,PinnedMessages:6,NewsletterChannelAlerts:7,MetaAICTABanner:8});function a(a){var b=a.chat;a=a.groupMetadata;var e=c("useWAWebConversationPanelGroupDescription")(b),f=e[0];e=e[1];var g=d("WAWebMembershipApprovalRequestsBanner.react").useMembershipApprovalRequestsBanner(b),h=g[0];g=g[1];var l=d("WAWebReportToAdminNewReportBanner.react").useReportToAdminNewReportBanner(b),m=l[0];l=l[1];var n=d("WAWebPinnedMessagesBanner.react").useWAWebPinnedMessagesBanner(b),o=d("WAWebNewsletterChannelAlertsBanner.react").useNewsletterChannelAlertsBanner(b),p=o[0];o=o[1];var q=d("WAWebSubgroupSuggestionsBanner.react").useSubgroupSuggestionsBanner(b),r=q[0],s=q[1];q=q[2];var t=c("useWAWebCagEventsAwarenessBanner.react")(b),u=t[0];t=t[1];var v=d("WAWebMetaAICTABanner.react").useMetaAICTABanner(b);u=[{condition:u,component:i.jsx(d("WAWebCagEventsAwarenessBanner.react").CagEventsAwarenessBanner,{onClose:t}),priority:k.CagEventsAwareness},{condition:h,component:i.jsx(d("WAWebMembershipApprovalRequestsBanner.react").MembershipApprovalRequestsBanner,{onClose:g,chat:b}),priority:k.MembershipApprovalRequests},{condition:m,component:i.jsx(d("WAWebReportToAdminNewReportBanner.react").ReportToAdminNewReportBanner,{onClose:l,chat:b}),priority:k.ReportToAdminNewReport},{condition:r,component:i.jsx(d("WAWebSubgroupSuggestionsBanner.react").SubgroupSuggestionsBanner,{onClose:s,chat:b,subgroupSuggestionsCount:q}),priority:k.SubgroupSuggestions},{condition:Boolean(f&&(a==null?void 0:a.displayedDesc)),component:i.jsx(c("WAWebGroupDescriptionBanner.react"),{onClose:e,chat:b,groupMetadata:a}),priority:k.GroupDescription},{condition:n,component:i.jsx(d("WAWebPinnedMessagesBanner.react").PinnedMessagesBanner,{chat:b}),priority:k.PinnedMessages},{condition:d("WAWebChatGetters").getIsNewsletter(b)&&p,component:i.jsx(d("WAWebNewsletterChannelAlertsBanner.react").NewsletterChannelAlertsBanner,{newsletter:b,onClose:o}),priority:k.NewsletterChannelAlerts},{condition:v&&d("WAWebBotGating").isAiChatPersistentMetaAIBannerEnabled(),component:i.jsx(d("WAWebMetaAICTABanner.react").MetaAICTABanner,{}),priority:k.MetaAICTABanner}];h=(t=u.filter(function(a){return a.condition}).sort(function(a,b){return a.priority-b.priority})[0])==null?void 0:t.component;return i.jsxs(i.Fragment,{children:[i.jsxs(c("WAWebVelocityTransitionGroup"),{transitionName:"butterbar",xstyle:[j.banner,d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&j.material],children:[h,i.jsx(d("WAWebChangeNumberNotificationBanner.react").ChangeNumberNotificationBanner,{chat:b})]}),i.jsx("div",babelHelpers["extends"]({},{0:{className:"xmbbrlm x1c4vz4f x2lah0s xdl72j9 xso031l x1q0q8m5 xa93pmm x10l6tqk x1imwcls x17qophe xds687c xgkeump x26u7qi xy80clv"},1:{className:"xmbbrlm x1c4vz4f x2lah0s xdl72j9 x1q0q8m5 xa93pmm x10l6tqk x1imwcls x17qophe xds687c xgkeump x26u7qi xy80clv x1qhh985"}}[!!d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()<<0],{children:d("WAWebChatGetters").getIsNewsletter(b)&&d("WAWebNewsletterGatingUtils").isSimilarNewsletterInThreadEnabled()?i.jsx(d("WAWebSimilarNewslettersUnitsLoadable.react").SimilarNewslettersConversationBannerLoadable,{chat:b}):null}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebNewsletterSuspendedConversationPanelBody.react",["fbt","WAWebClickableLink.react","WAWebCommonNewsletterIntegrityStrings","WAWebExternalLink.react","WAWebFaqUrl","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebWrapperSystemBubble.react","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useEffect,m=e.useState,n={linkColor:{color:"x14m1o6m",textDecoration:"x1hl2dhg",$$css:!0}};function o(){var a=m(null),e=a[0],f=a[1];l(function(){function a(){return c.apply(this,arguments)}function c(){c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("WAWebCommonNewsletterIntegrityStrings").getGeosuspendedInYourCountryString({isPreview:!1}));f(a)});return c.apply(this,arguments)}void a()},[]);if(e==null)return;return k.jsx(c("WAWebWrapperSystemBubble.react"),{theme:"center",children:k.jsxs(c("WAWebClickableLink.react"),{testid:void 0,onClick:function(){d("WAWebExternalLink.react").openExternalLink(d("WAWebFaqUrl").getNewsletterGeosuspendFaqUrl())},xstyle:n.linkColor,children:[k.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{ariaLabel:e,testid:void 0,children:e}),k.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{children:h._(/*BTDS*/"__JHASH__JLEANMVTJaE__JHASH__")})]})})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.isAdminOrOwner;a=a.isGeosuspended;return a?k.jsx(o,{}):k.jsxs(c("WAWebWrapperSystemBubble.react"),{theme:"center",children:[k.jsx(d("WAWebText_DONOTUSE.react").TextHeader,{level:"2",size:"16",weight:"bold",xstyle:d("WAWebUISpacing").uiMargin.bottom2,testid:void 0,children:h._(/*BTDS*/"__JHASH__7waLRHpnY5S__JHASH__")}),k.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{testid:void 0,children:b?h._(/*BTDS*/"__JHASH__oYRuUftwVrV__JHASH__"):h._(/*BTDS*/"__JHASH__wCNqwcDgR5k__JHASH__")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebUseBizBotTos",["WAWebBizBotTos.react","WAWebBotGating","WAWebBotTos","WAWebBotTypes","WAWebChatEntryPoint","WAWebModalManager","WAWebTos","WAWebUseBusinessProfile.react","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;e=i||d("react");var j=h||(h=c("react")),k=e.useEffect,l=e.useRef;function b(b){var c=d("WAWebUseBusinessProfile.react").useBusinessProfile(d("WAWebBotGating").isBizBot3pAvailable()?b.id:null,["isBizBot3p"]),e=l(),f=function(){var f;(f=e.current)==null?void 0:f.close();if(!c)return;d("WAWebBotGating").isBizBot3pAvailable()&&c.isBizBot3p&&!d("WAWebBotTos").hasSeenBizBotTos(d("WAWebBotTypes").BizBotType.BIZ_3P)&&a.setTimeout(function(){var a;d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebBizBotTos.react").BizBotTos,{ref:e,automatedType:d("WAWebBotTypes").BizBotAutomatedType.FULL_3P,chatEntryPoint:(a=b.chatEntryPoint)!=null?a:d("WAWebChatEntryPoint").ChatEntryPoint.Unknown}),{blockClose:!0})},250)};k(f,[b,c]);d("useWAWebListener").useListener(d("WAWebTos").TosManager,"change",f)}g.useBizBot3pTos=b}),98); __d("WAWebSendBotRequestWelcomeAction",["WAJobOrchestratorTypes","WAMemoizeConcurrent","WAWebBotMessageSecret","WAWebBotWelcomeRequestSync","WAWebDBProcessMessage","WAWebMsgDataUtils","WAWebMsgModel","WAWebMsgType","WAWebOrchestratorNonPersistedJob","WAWebSendMsgRecordAction","WAWebSendMsgResultAction","WAWebSyncdCoreApi","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){return i({chat:a,signal:new AbortController().signal})});return h.apply(this,arguments)}var i=c("WAMemoizeConcurrent")(function(a){a=a.chat;return a.id.toString()},function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=a.chat;return j(a)});return function(b){return a.apply(this,arguments)}}());function j(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var e=a.id,f=self.crypto.getRandomValues(new Uint8Array(32)),g=(yield d("WAWebBotMessageSecret").genBotMsgSecretFromMsgSecret(f)),h=babelHelpers["extends"]({},yield d("WAWebMsgDataUtils").genOutgoingMsgData(a,d("WAWebMsgType").MSG_TYPE.PROTOCOL),{type:d("WAWebMsgType").MSG_TYPE.PROTOCOL,kind:d("WAWebMsgType").MsgKind.Protocol,subtype:"bot_request_welcome",messageSecret:f,botMessageSecret:new Uint8Array(g)}),i=new(d("WAWebMsgModel").Msg)(h);a.hasRequestedWelcomeMsg=!0;yield d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("sendMessage",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebDBProcessMessage").storeMessages([h],e);var a=(yield d("WAWebSendMsgRecordAction").sendMsgRecord(i));if(a.messageSendResult===d("WAWebSendMsgResultAction").SendMsgResult.OK){var f=(yield c("WAWebBotWelcomeRequestSync").getBotWelcomeRequestSetMutation(e,!0));yield d("WAWebSyncdCoreApi").lockForSync(["chat"],[f],function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=a[0];return a.merge(e.toString(),{hasRequestedWelcomeMsg:!0})});return function(b){return a.apply(this,arguments)}}())}return a}),{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()});return k.apply(this,arguments)}g.sendBotRequestWelcome=a}),98); __d("WAWebUseMaybeRequestWelcomeMessage",["WAWebBotGating","WAWebBotTos","WAWebBotTypes","WAWebSendBotRequestWelcomeAction","WAWebTos","WAWebUseBusinessProfile.react","react","useWAWebListener","useWAWebModelValues","useWAWebStableCallback"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useEffect;function a(a){var b=d("useWAWebModelValues").useModelValues(a,["hasRequestedWelcomeMsg"]),e=b.hasRequestedWelcomeMsg;b=(b=d("WAWebUseBusinessProfile.react").useBusinessProfile(d("WAWebBotGating").isBizBot1pEnabled()||d("WAWebBotGating").isBizBot3pAvailable()?a.id:null,["isBizBot1p","welcomeMsgProtocolMode"]))!=null?b:{};var f=b.isBizBot1p,g=b.welcomeMsgProtocolMode,h=c("useWAWebStableCallback")(function(){var b=g!=null&&g!==d("WAWebBotTypes").BotWelcomeMsgProtocolModeType.NONE;(d("WAWebBotGating").isBizBot1pEnabled()&&f===!0||d("WAWebBotGating").isBizBot3pAvailable()&&b)&&d("WAWebBotTos").hasAcceptedBizBotTos()&&!e&&void d("WAWebSendBotRequestWelcomeAction").sendBotRequestWelcome(a)});d("useWAWebListener").useListener(d("WAWebTos").TosManager,"change",h);i(function(){return h()},[f,g,a])}g.useMaybeRequestWelcomeMessage=a}),98); __d("WAWebSetChatOpenedAction",["WAWebDBUpdateChatTable","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b={hasOpened:!0};yield d("WAWebDBUpdateChatTable").updateChatTable(a.id,b);a.set(b)});return h.apply(this,arguments)}g.setChatHasOpened=a}),98); __d("useWAWebChatOpenMetrics",["WAWebFMXTrustSignals","WAWebFindCommonGroupsContactAction","WAWebFmxActionWamEvent","WAWebNoop","WAWebSetChatOpenedAction","WAWebWamEnumFmxEntryPoint","WAWebWamEnumFmxEvent","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useEffect;function a(a){i(function(){a.hasOpened!==!0&&(d("WAWebSetChatOpenedAction").setChatHasOpened(a)["catch"](c("WAWebNoop")),self.setTimeout(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=a.msgs.some(function(a){return a.subtype==="contact_info_card"});if(b){new(d("WAWebFmxActionWamEvent").FmxActionWamEvent)({fmxEntryPoint:d("WAWebWamEnumFmxEntryPoint").FMX_ENTRY_POINT.FMX_CARD,fmxEvent:d("WAWebWamEnumFmxEvent").FMX_EVENT.FMX_CARD_VIEWED,countryShown:yield d("WAWebFMXTrustSignals").shouldShowCountryCodeTrustSignal(a.contact),notAContactShown:yield d("WAWebFMXTrustSignals").shouldShowContactTrustSignal(a.contact),commonGroupNum:(b=(b=(yield d("WAWebFindCommonGroupsContactAction").findCommonGroups(a.contact)))==null?void 0:b.length)!=null?b:0}).commit()}}),1e3))},[])}g.useChatOpenMetrics=a}),98); __d("useWAWebConversationPanelActionListeners",["WAWebConversationPanelActions","useWAWebListener"],(function(a,b,c,d,e,f,g){function a(a){d("useWAWebListener").useListener(d("WAWebConversationPanelActions").ConversationPanelActions,"conversation_panel_focus",a.onFocus)}g["default"]=a}),98); __d("useWAWebConversationPanelDragHandlers",["WAWebCmd","WAWebDataTransfer","WAWebMediaEditorOpenTrigger","react"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useRef;function a(a,b){var e=b.canCompose,f=b.onDragEnter,g=i(!1),h=i(null);b=function(a){if(!e)return;g.current=!0};var j=function(a){if(!e)return;g.current=!1},k=function(b){if(!e)return;var i=h.current;if(i!=null){var j=i.getCurrentComposeContent();f();var k=new(c("WAWebDataTransfer"))(b.dataTransfer);!g.current&&k.hasType("Files")&&(i.flushSaveComposeContentDebounced(),d("WAWebCmd").Cmd.attachMediaDrawer({chat:a,initCaption:j,onComplete:i.updateTextAfterMediaDrawerClose,openTrigger:d("WAWebMediaEditorOpenTrigger").MediaEditorOpenTrigger.ConversationPanelDragAndDrop}),b.stopPropagation(),b.preventDefault())}};b={onDragStart:b,onDragEnd:j,onDragEnter:k};return[h,b]}g["default"]=a}),98); __d("useWAWebConversationPanelEphemeralNux",["WAWebChatEphemerality","WAWebChatGetters","WAWebCmd","WAWebNux","WAWebWamEnumEphemeralSettingEntryPointType","react","useWAWebChatValues","useWAWebListener","useWAWebNux"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useEffect;function a(a){var b=c("useWAWebNux")(d("WAWebNux").NUX.EPHEMERAL),e=b[0];b=d("useWAWebChatValues").useChatValues(a.id,[d("WAWebChatGetters").getIsUser]);b=b[0];var f=null;e&&(d("WAWebChatGetters").getIsGroup(a)&&a.groupMetadata!=null?f=a.groupMetadata:b&&(f=a));b=function(){e&&d("WAWebChatEphemerality").isEphemeralSettingOn(a)&&!1&&d("WAWebCmd").Cmd.ephemeralDrawer(a,!0,d("WAWebWamEnumEphemeralSettingEntryPointType").EPHEMERAL_SETTING_ENTRY_POINT_TYPE.EPHEMERAL_NUX)};i(b,[]);d("useWAWebListener").useListener(f,"change:ephemeralDuration",b)}g["default"]=a}),98); __d("useWAWebConversationPanelFiller.react",["Promise","WAAbortError","WAFilteredCatch","WAPromiseRaceAbort","WAWebMiscErrors","WAWebNoop","WAWebVelocityAnimate","react"],(function(a,b,c,d,e,f,g){var h,i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useEffect,m=e.useRef;function a(a){var e=a.canCompose,f=a.selectable,g=a.setScrollBottom,i=a.getScrollBottom,j=a.onComposeHeightChange,n=m(null),o=m(0),p=m(null),q=m(),r=m(!1);l(function(){e||(o.current=0)},[e]);var s=function(a){return Math.max(0,o.current)},t=function(){var a=s();n.current&&(n.current.style.height=a+"px")};a=function(a,e){var f=a.input;a=a.overlay;var k=a===void 0?0:a,l=p.current,m=i();if(!l||m==null)return;if(f!==void 0){j(f);return}if(e){o.current=k;t();g(m);return}o.current+=k;k<0&&(t(),g(m));if(q.current){r.current=!0;(a=q.current)==null?void 0:a.controller.abort()}f=new AbortController();var n=f.signal;a=(((e=q.current)==null?void 0:e.promise)||(h||(h=b("Promise"))).resolve()).then(function(){return c("WAWebVelocityAnimate")(l,{translateY:k>0?[-k,0]:[0,k]},{duration:300,easing:[.1,.82,.25,1]})});e=c("WAPromiseRaceAbort")(a,n)["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebMiscErrors").Unmount,c("WAWebNoop"))).then(function(){if(n.aborted)throw new(d("WAAbortError").AbortError)();k>0&&t();l.style.transform="";k>0&&g(m)})["catch"](d("WAAbortError").catchAbort(function(){c("WAWebVelocityAnimate")(l,"finish",!0)})).then(function(){r.current?r.current=!1:q.current=void 0});q.current={promise:e,controller:f}};var u;f?u=k.jsx("div",babelHelpers["extends"]({ref:n},{className:"x1c4vz4f x2lah0s xdl72j9 x14yy4lh"})):e&&(u=k.jsx("div",{ref:n,style:{height:s()+"px"},className:"x1c4vz4f x2lah0s xdl72j9 x14yy4lh"}));return{msgPanelRef:p,filler:u,handleComposeHeightChange:a}}g["default"]=a}),98); __d("useWAWebConversationPanelMessageSelection",["WANullthrows","WAWebMultiSelectBar.react","WAWebMultiSelection","WAWebRevokeMetricUtils","react","useLazyRef","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useState;function a(a){var b=i(!1),e=b[0],f=b[1];b=i(d("WAWebMultiSelectBar.react").MultiSelectMode.DEFAULT);var g=b[0],h=b[1],j=c("useLazyRef")(function(){return new(c("WAWebMultiSelection"))([],function(a){return a.id.toString()})});b=function(){d("WAWebRevokeMetricUtils").UiRevokeActionHelper.startSession(),f(!0)};var k=function(b,d,e){if(!b||!a)return;b=a.indexOf(b);if(!b)return;d=a.indexOf(d);var f=d>b?-1:1;b=b+(e?f:d<b?0:f*2);while(d!==b)j.current.setVal(c("WANullthrows")(a.at(d)).safe(),e,!0),d+=f},l=function(a,b,c,e){f(!0);c&&h(c);c=j.current.getSelected().pop();e=(e==null?void 0:e.shiftKey)===!0;j.current.setVal(a,b,!0);b&&d("WAWebRevokeMetricUtils").UiRevokeActionHelper.messageSelected();e&&k(c,a,b)},m=function(){if(!e)return;j.current.unsetAll();f(!1);h(d("WAWebMultiSelectBar.react").MultiSelectMode.DEFAULT)};d("useWAWebListener").useListener(a,"remove",function(a){j.current.isSelected(a)&&l(a,!1)});return{selectable:e,selectedMessages:j.current,handleSelectMessages:b,handleMessageSelect:l,handleCancelSelection:m,selectionMode:g}}g["default"]=a}),98); __d("WAWebWebcChatOpenWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({WebcChatOpen:[864,{webcChatOpenBeforePaintT:[7,a.TYPES.TIMER],webcChatOpenPaintedT:[6,a.TYPES.TIMER],webcChatOpenT:[2,a.TYPES.TIMER],webcFinalRenderedMessageCount:[5,a.TYPES.INTEGER],webcRenderedMessageCount:[4,a.TYPES.INTEGER],webcUnreadCount:[1,a.TYPES.NUMBER],webcWindowHeightFloat:[8,a.TYPES.NUMBER]},[1,1,5],"regular"]},{WebcChatOpen:[]});g.WebcChatOpenWamEvent=b}),98); __d("useWAWebConversationPanelMetrics",["WAQplTypes","WAWebChatGetters","WAWebGroupType","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebRenderCursorGetWindowHeight","WAWebUiActionWamEvent","WAWebWamAddressingModeUtils","WAWebWamEnumAgentEngagementEnumType","WAWebWamEnumUiActionChatType","WAWebWamEnumUiActionType","WAWebWamGroupMetricUtils","WAWebWamMsgUtils","WAWebWamPrivateStatsUtils","WAWebWebcChatOpenWamEvent","useLazyRef","useWAWebRenderCallbacks"],(function(a,b,c,d,e,f,g){function a(a,b){var e=c("useLazyRef")(function(){return new(d("WAWebUiActionWamEvent").UiActionWamEvent)({uiActionType:d("WAWebWamEnumUiActionType").UI_ACTION_TYPE.CHAT_OPEN,uiActionPreloaded:!0})}),f=c("useLazyRef")(function(){return new(d("WAWebWebcChatOpenWamEvent").WebcChatOpenWamEvent)({webcUnreadCount:a.unreadCount,webcWindowHeightFloat:c("WAWebRenderCursorGetWindowHeight")()})}),g=c("useLazyRef")(function(){return d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,{annotations:{"int":{unreadMessageCount:a.unreadCount,windowHeight:c("WAWebRenderCursorGetWindowHeight")()}},closePreviousInstanceWithAction:d("WAQplTypes").QuickLogActionType.ABORTED,instanceKeyOption:d("WAQplTypes").QplInstanceKeyOptions.AUTO_INCREMENT}).instanceKey});c("useWAWebRenderCallbacks")({onMount:function(){var c=f.current,i=e.current,j=g.current,k=b();k!=null&&(c.webcRenderedMessageCount=k);c.markWebcChatOpenT();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,"chat_open",{instanceKey:j});k=a.groupMetadata;if(d("WAWebChatGetters").getIsGroup(a)&&k!=null){c=k.isCag;c!=null&&(i.isLid=c);k.cachedDeviceSizeBucket!=null&&(i.sizeBucket=k.cachedDeviceSizeBucket,Object.assign(i,d("WAWebWamGroupMetricUtils").getGroupCountMetricsFromGroupMetadata(k)));Object.assign(i,d("WAWebWamAddressingModeUtils").getAddressingModeMetricsFromGroupMetadata(k))}else i.isLid=a.id.isLid();a.id.isBot()&&(i.agentEngagementType=d("WAWebWamEnumAgentEngagementEnumType").AGENT_ENGAGEMENT_ENUM_TYPE.DIRECT_CHAT);i.botType=d("WAWebWamMsgUtils").getWamBotType(a.id,null,(j=a.contact.businessProfile)==null?void 0:j.automatedType);i.uiActionChatType=h(a);i.markUiActionT();i.commit();d("WAWebWamPrivateStatsUtils").logUiActionShadowPrivateStatsTestEvents()},onBeforePaint:function(){var a=f.current,b=g.current;a.markWebcChatOpenBeforePaintT();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,"painted_start",{instanceKey:b})},onAfterPaint:function(){var a=f.current,c=g.current,e=b();e!=null&&(a.webcFinalRenderedMessageCount=e,d("WAWebQplQuickPerformanceLoggerModule").QPL.markerAnnotate(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,{"int":{finalRenderedMessageCount:e}},{instanceKey:c}));a.markWebcChatOpenPaintedT();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,"painted_end",{instanceKey:c});a.commit();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,d("WAQplTypes").QuickLogActionType.SUCCESS,{instanceKey:c})},onUnmount:function(){var a=g.current;d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,d("WAQplTypes").QuickLogActionType.CANCEL,{instanceKey:a})},onError:function(){var a=g.current;d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,d("WAQplTypes").QuickLogActionType.FAIL,{instanceKey:a})}})}function h(a){if(d("WAWebChatGetters").getIsGroup(a)){var b;if(((b=a.groupMetadata)==null?void 0:b.groupType)===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP)return d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.DEFAULT_SUBGROUP;return((b=a.groupMetadata)==null?void 0:b.groupType)===d("WAWebGroupType").GroupType.LINKED_SUBGROUP?d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.SUBGROUP:d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.GROUP}return d("WAWebChatGetters").getIsNewsletter(a)?d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.CHANNEL:d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.INDIVIDUAL}g["default"]=a}),98); __d("WAWebDeleteExpiredPinsAction",["WAWebPinInChatCollection","WAWebPinMessageAction","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield d("WAWebPinMessageAction").seekAndDestroyExpiredPins(d("WAWebPinInChatCollection").PinInChatCollection.byChatId(d("WAWebWidFactory").toChatWid(a)).toArray())});return function(b){return a.apply(this,arguments)}}();g.deleteExpiredPins=a}),98); __d("WAWebSupportChatConfirmationModal.react",["WAWebConfirmPopup.react","WAWebFbtCommon","WAWebFlex.react","WAWebModalManager","WAWebSupportChatStrings","WAWebText.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||c("react");function a(){return i.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{okText:c("WAWebFbtCommon")("OK"),onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:i.jsx(d("WAWebFlex.react").FlexColumn,{children:i.jsx(d("WAWebText.react").WAWebTextSmall,{children:d("WAWebSupportChatStrings").SupportChatConfirmationModalText()})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebSupportChatUtils",["WALogger","WAWebABPropsSaga","WAWebDrawerManager","WAWebHandleSingleMsg","WAWebModalManager","WAWebOpenChatFlow.react","WAWebSagaSystemMsg","WAWebSupportAIInfoNuxLoadable","WAWebSupportAiSessionWamEvent","WAWebSupportChatConfirmationModal.react","WAWebWamEnumSupportAiEventType","WAWebWidFactory","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["InAppSupport: Error opening support chat: ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["openSupportChat: existing chat, adding system message"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["openSupportChat: successfully opened support chat"]);k=function(){return a};return a}var l=h||c("react");function a(){new(d("WAWebSupportAiSessionWamEvent").SupportAiSessionWamEvent)({supportAiEventType:d("WAWebWamEnumSupportAiEventType").SUPPORT_AI_EVENT_TYPE.SUPPORT_AI_SCREEN_SHOWN_ON_THE_CHAT}).commit(),d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebSupportAIInfoNuxLoadable").SupportAIInfoNuxLoadable,{}),{transition:"modal-flow"})}function e(a,b){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=d("WAWebWidFactory").createWid(a);d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebOpenChatFlow.react").OpenChatFlow,{targetId:a,onSuccess:function(a){var c=a.chat;a=a.created;d("WALogger").LOG(k());d("WAWebDrawerManager").DrawerManager.closeDrawerLeft();b&&(!a&&!d("WAWebABPropsSaga").getIsSagaProtobufSystemMessageEnabled()&&(d("WALogger").LOG(j()),void d("WAWebHandleSingleMsg").handleSingleMsg(c.id,d("WAWebSagaSystemMsg").genSagaInitSystemMsg(c.id),"openSupportChat")))},msgText:null,customError:l.jsx("div",{children:l.jsx(c("WAWebSupportChatConfirmationModal.react"),{})}),onError:function(a){d("WALogger").WARN(i(),a)}}),{transition:"modal-flow"})});return m.apply(this,arguments)}g.openSupportAINux=a;g.openSupportChat=e}),98); __d("useWAWebConversationPanelOpenChat",["WAJids","WALogger","WAWebABProps","WAWebABPropsSaga","WAWebAddonHydrationUtils","WAWebBlockContactAction","WAWebChatGetters","WAWebChatGroupUtils","WAWebCmd","WAWebCommunityGatingUtils","WAWebDeleteExpiredPinsAction","WAWebDrawerManager","WAWebGroupSafetyCheckModalLoggingUtils","WAWebGroupSafetyCheckUtils","WAWebGroupType","WAWebMembershipApprovalRequestAction","WAWebMiscGatingUtils","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNux","WAWebPinMsgGatingUtils","WAWebQueryAndUpdateNewslettersMetadataAction","WAWebRestoreSubgroupSuggestionsAction","WAWebSideNavButtonsActivityModel","WAWebSupportChatUtils","WAWebSuspendedCommunityUtils","WAWebSuspendedGroupUtils","WAWebUIRefreshGatingUtils","WAWebWid","react","useWAWebGroupParticipantStatus","useWAWebNux","useWAWebSetModelValue"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["useOpenChat: error reading pins from DB: ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["useOpenChat: error deleting expired pins from DB: ",""]);j=function(){return a};return a}var k=(h||d("react")).useEffect;function a(a){var b=d("useWAWebSetModelValue").useSetModelValue(a,"active"),e=c("useWAWebGroupParticipantStatus")(a.groupMetadata);e[0];var f=e[1];e=c("useWAWebNux")(d("WAWebNux").NUX.SUPPORT_AI);var g=e[0];k(function(){d("WAWebCmd").Cmd.closeContextMenu();c("WAWebWid").isPSA(a.id)&&d("WAWebBlockContactAction").updatePSAUserBlockingStatus(a.id);b(!0);d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&(d("WAWebDrawerManager").DrawerManager.closeDrawerMid(),d("WAWebSideNavButtonsActivityModel").setLastSideBarActivityBasedOnChat(a));var e=a.groupMetadata;if(e!=null){var h=e.groupType,k=e.participants,l=e.membershipApprovalMode;(h===d("WAWebGroupType").GroupType.DEFAULT||h===d("WAWebGroupType").GroupType.LINKED_SUBGROUP)&&(k.iAmAdmin()||d("WAWebABProps").getABPropConfigValue("web_anyone_can_add_group_setting_enabled")&&f)&&l&&d("WAWebABProps").getABPropConfigValue("group_join_request_m2")&&d("WAWebMembershipApprovalRequestAction").readMembershipApprovalRequestsFromDB(a);if(h===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP&&k.iAmAdmin()&&d("WAWebCommunityGatingUtils").memberSuggestedGroupsEnabled()){l=e.getParentGroupChat();l&&void d("WAWebRestoreSubgroupSuggestionsAction").restoreSubgroupSuggestionsFromDb(l)}d("WAWebGroupSafetyCheckModalLoggingUtils").logGroupOpenEvent({groupJid:a.id.toJid()})}a.id.isCAPISupportAccount()&&d("WAWebABPropsSaga").getIsSagaV1NuxEnabled()&&g&&d("WAWebSupportChatUtils").openSupportAINux();d("WAWebChatGetters").getIsNewsletter(a)&&!((h=a.newsletterMetadata)==null?void 0:h.isPreview)&&void d("WAWebQueryAndUpdateNewslettersMetadataAction").queryAndUpdateNewsletterMetadataAction(d("WAJids").toNewsletterJid(a.id.toString()),{fields:{subscribers:!0,verification:!0},adminFields:{adminCount:d("WAWebNewsletterMembershipUtil").iAmOwner(a.newsletterMetadata)?!0:void 0,capabilities:d("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(a.newsletterMetadata)&&d("WAWebNewsletterGatingUtils").shouldFetchAndLogCapabilities()?!0:void 0}});d("WAWebPinMsgGatingUtils").isPinnedMessagesM1ReceiverEnabled()&&d("WAWebDeleteExpiredPinsAction").deleteExpiredPins(a.id)["catch"](function(a){d("WALogger").ERROR(j(),a).sendLogs("use-open-chat-delete-expired-pins-from-db-error")}).then(function(){void d("WAWebAddonHydrationUtils").hydrateAddons({ids:[a.id],hydrationType:d("WAWebMsgType").MSG_TYPE.PIN_MESSAGE})})["catch"](function(a){d("WALogger").ERROR(i(),a).sendLogs("use-open-chat-read-pins-from-db-error")});if(a.attachMediaContents){k=a.attachMediaContents.isStickerMaker;d("WAWebCmd").Cmd.attachMediaDrawer({chat:a,animationName:"noop",sendAsSticker:k})}d("WAWebChatGroupUtils").isIntegrityDeactivatedCommunityAnnouncementGroup(a)?d("WAWebSuspendedCommunityUtils").openTerminatedCommunityModal():d("WAWebChatGroupUtils").isDeactivatedCommunityAnnouncementGroup(a)||(d("WAWebChatGroupUtils").isSuspendedCommunityAnnouncementGroup(a)?d("WAWebSuspendedCommunityUtils").openSuspendedCommunityModal(a):d("WAWebChatGroupUtils").isTerminatedGroupOrNotMember(a)?d("WAWebChatGroupUtils").isSupportGroup(a)||(d("WAWebMiscGatingUtils").isGroupSuspendV2Enabled()?d("WAWebSuspendedGroupUtils").openSuspendedGroupModalV2(a):d("WAWebSuspendedGroupUtils").openTerminatedGroupOrNotMemberModal()):d("WAWebChatGroupUtils").isSuspendedGroup(a)?d("WAWebMiscGatingUtils").isGroupSuspendV2Enabled()?d("WAWebSuspendedGroupUtils").openSuspendedGroupModalV2(a):d("WAWebSuspendedGroupUtils").openSuspendedGroupModal(d("WAWebChatGroupUtils").shouldIncludeEntityIdInAppealRequest()===!0?a.id.user.toString():null):d("WAWebGroupSafetyCheckUtils").shouldShowGroupSafetyCheckUI(a)&&d("WAWebGroupSafetyCheckUtils").openGroupSafetyCheckModal(a));return function(){a.urlText&&(a.urlText=void 0),a.urlNumber&&(a.urlNumber=void 0),b(!1)}},[])}g["default"]=a}),98); __d("WAWebNewsletterPrivacyMsgBar.react",["fbt","WAWebCopyPasteSelectable.react","WAWebFbtCommon","WAWebFlex.react","WAWebModalManager","WAWebNewsletterPhoneNumberPrivacyNux.react","WAWebRoundXInvIcon.react","WAWebUnstyledButton.react","fbs","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useCallback,m={dismissButton:{display:"x78zum5",$$css:!0}};function a(a){a=a.onDismiss;var b=l(function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebNewsletterPhoneNumberPrivacyNux.react").NewsletterPhoneNumberNux,{}))},[]);b=k.jsx(d("WAWebCopyPasteSelectable.react").SelectableLink,{className:"x1ypdohk",id:"data-sharing-learn-more-link",selectable:!0,onClick:b,children:c("WAWebFbtCommon")("Learn more")});return k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",gap:8,children:[k.jsx(d("WAWebFlex.react").FlexItem,{children:k.jsxs("span",babelHelpers["extends"]({className:"x126k92a"},{"data-testid":void 0,children:[h._(/*BTDS*/"__JHASH__09i60qQLQnl__JHASH__")," ",b]}))}),k.jsx(d("WAWebFlex.react").FlexItem,{grow:0,align:"center",children:k.jsx(c("WAWebUnstyledButton.react"),{onClick:a,xstyle:m.dismissButton,"aria-label":c("fbs")._(/*BTDS*/"__JHASH__KLIXtuaqQR0__JHASH__"),children:k.jsx(d("WAWebRoundXInvIcon.react").RoundXInvIcon,{height:15})})})]})}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterPrivacyMsgBar=a}),226); __d("useWAWebNewsletterPrivacyBanner",["WAWebChatGetters","WAWebNewsletterPrivacyMsgBar.react","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useCallback,l=b.useState;function m(a){var b;return d("WAWebChatGetters").getIsNewsletter(a)&&((b=a.newsletterMetadata)==null?void 0:b.isPreview)===!0&&!a.isSuspendedOrTerminated()}function a(a){var b=l(m(a)),c=b[0],e=b[1];d("useWAWebListener").useListener(a.newsletterMetadata,["change:isPreview"],function(){return e(m(a))});b=k(function(){e(!1)},[]);return c?j.jsx(d("WAWebNewsletterPrivacyMsgBar.react").NewsletterPrivacyMsgBar,{onDismiss:b}):null}g["default"]=a}),98); __d("WAWebConversationPanel.react",["WAWebAnimationGroupItem.react","WAWebChatGetters","WAWebChatGroupUtils","WAWebComposeBox.react","WAWebCongratulationsAnimationConversation.react","WAWebCongratulationsAnimationsGatingUtils","WAWebConversationBackground.react","WAWebConversationDeprecatedLidChatBanner.react","WAWebConversationDeprecatedLidChatUtils","WAWebConversationMsgs.react","WAWebConversationPanel.scss","WAWebConversationPanelBanner.react","WAWebConversationSpam.react","WAWebConversationSpamUtils","WAWebFrontendChatGetters","WAWebGroupType","WAWebHeader.react","WAWebMultiSelectBar.react","WAWebNewsletterMembershipUtil","WAWebNewsletterSuspendedConversationPanelBody.react","WAWebTimeSpentLoggingNavigation","WAWebUISpacing","WAWebUimUie.react","WAWebUseBizBotTos","WAWebUseMaybeRequestWelcomeMessage","WAWebVelocityTransitionGroup","react","stylex","useWAWebChatOpenMetrics","useWAWebCommunityNux","useWAWebConversationPanelActionListeners","useWAWebConversationPanelCanCompose","useWAWebConversationPanelChatActionListeners","useWAWebConversationPanelDragHandlers","useWAWebConversationPanelEphemeralNux","useWAWebConversationPanelFiller.react","useWAWebConversationPanelMessageSelection","useWAWebConversationPanelMetrics","useWAWebConversationPanelOpenChat","useWAWebEventTargetValue","useWAWebModelValues","useWAWebNewsletterOpenMetrics","useWAWebNewsletterPrivacyBanner","useWAWebShowCommunitySubjectSyncIssue"],(function(a,b,c,d,e,f,g){var h,i,j;b=j||d("react");var k=h||(h=c("react")),l=b.useCallback,m=b.useMemo,n=b.useRef,o=b.useState,p={footerMessage:{boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",minHeight:"x122xwht",fontSize:"x1f6kntn",lineHeight:"x1fc57z9",color:"x16cd2qt",textAlign:"x2b8uid",backgroundColor:"x1pl83jw",$$css:!0}};function a(a){var b,e=a.chat,f=a.chatEntryPoint,g=a.msgCollection,h=a.focusCtx,j=a.groupMetadata,q=n(null),r=o(!1),s=r[0],t=r[1];r=l(function(a){a!==s&&t(a)},[s]);var u=m(function(){return d("WAWebConversationDeprecatedLidChatUtils").getLidDeprecatedInfo(e)},[e]);c("useWAWebShowCommunitySubjectSyncIssue")(e);c("useWAWebConversationPanelOpenChat")(e);c("useWAWebCommunityNux")(e);c("useWAWebConversationPanelEphemeralNux")(e);d("WAWebTimeSpentLoggingNavigation").useTsNavigation({surface:d("WAWebChatGetters").getIsNewsletter(e)?"channel-thread":"chat",extras:{groupSize:d("WAWebChatGetters").getIsNewsletter(e)?(b=e.newsletterMetadata)==null?void 0:b.size:(b=e.groupMetadata)==null?void 0:b.participants.length,channelWid:d("WAWebChatGetters").getIsNewsletter(e)?e.id:void 0,typeOfGroup:e.groupMetadata==null?void 0:d("WAWebGroupType").groupTypeToWamEnum(d("WAWebGroupType").getGroupTypeFromGroupMetadata(e.groupMetadata))}});c("useWAWebConversationPanelMetrics")(e,function(){var a;return(a=q.current)==null?void 0:a.getRenderedMessageCount()});d("useWAWebNewsletterOpenMetrics").useNewsletterOpenMetrics({chat:e,chatEntryPoint:f});d("useWAWebChatOpenMetrics").useChatOpenMetrics(e);c("useWAWebConversationPanelChatActionListeners")();d("useWAWebModelValues").useModelValues(e,["isReadOnly","isAnnounceGrpRestrict","isDeprecated","newsletterMetadata"]);b=c("useWAWebNewsletterPrivacyBanner")(e);f=c("useWAWebConversationPanelCanCompose")(e);var v=f[0];f=f[1];var w=o(function(){return!v&&d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(e)&&d("WAWebConversationSpamUtils").shouldShowSpamPanel(e)}),x=w[0],y=w[1];w=c("useWAWebConversationPanelMessageSelection")(e.msgs);var z=w.selectable,A=w.selectedMessages,B=w.handleSelectMessages,C=w.handleMessageSelect,D=w.handleCancelSelection;w=w.selectionMode;var E=c("useWAWebConversationPanelDragHandlers")(e,{canCompose:v,onDragEnter:D}),F=E[0];E=E[1];var G=c("useWAWebConversationPanelFiller.react")({canCompose:v,selectable:z,setScrollBottom:function(a){var b;return(b=q.current)==null?void 0:b.setScrollBottom(a)},getScrollBottom:function(){var a;return(a=q.current)==null?void 0:a.getScrollBottom()},onComposeHeightChange:function(a){var b;return(b=q.current)==null?void 0:b.onComposeHeightChange(a)}}),H=G.msgPanelRef,I=G.filler;G=G.handleComposeHeightChange;var J=function(){var a;(a=q.current)==null?void 0:a.focus()};c("useWAWebConversationPanelActionListeners")({onFocus:J});d("WAWebUseBizBotTos").useBizBot3pTos(e);d("WAWebUseMaybeRequestWelcomeMessage").useMaybeRequestWelcomeMessage(e);J=c("useWAWebEventTargetValue")(e.newsletterMetadata,["change:suspended"],function(){var a;return d("WAWebChatGetters").getIsNewsletter(e)&&((a=e.newsletterMetadata)==null?void 0:a.suspended)===!0});var K=c("useWAWebEventTargetValue")(e.newsletterMetadata,["change:geosuspended"],function(){var a;return d("WAWebChatGetters").getIsNewsletter(e)&&((a=e.newsletterMetadata)==null?void 0:a.geosuspended)===!0}),L=function(a){var b;(b=q.current)==null?void 0:b.onPageUpDown(a)},M,N=null;d("WAWebCongratulationsAnimationsGatingUtils").isCongratulationsAnimationsEnabled()&&(N=k.jsx(d("WAWebCongratulationsAnimationConversation.react").CongratulationsAnimationConversation,{chat:e}));if(z)M=k.jsx(d("WAWebUimUie.react").UIE,{displayName:"MultiSelect",escapable:!0,requestDismiss:D,children:k.jsx(d("WAWebMultiSelectBar.react").MultiSelectBar,{chat:e,selectedMessages:A,noSortOnForward:!1,onCancel:D,entryPoint:d("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.CONVERSATION_PANEL,mode:w})}),D=k.jsx("footer",{className:c("WAWebConversationPanel.scss").footer+" x1n2onr6 x1vjfegm x9f619 x1okw0bk xo1ph6p x122xwht"});else if(v)D=k.jsx(d("WAWebComposeBox.react").ComposeBox,{chat:e,ref:F,canShowSpamPanel:s,onComposeHeightChange:G,onPageUpDown:L});else{F=(w=f)!=null?w:b;G=null;s&&x&&d("WAWebFrontendChatGetters").getShouldAppearInList(e)&&e.msgs.length>0&&(G=k.jsx(c("WAWebAnimationGroupItem.react"),{children:k.jsx(c("WAWebConversationSpam.react"),{chat:e,contact:e.contact,onClickNotSpam:function(){y(!1),d("WAWebConversationSpamUtils").acknowledgeGroupAsNotSpam(e)},onClickDismissSpam:function(){return y(!1)}})}));D=F!=null&&k.jsxs("footer",{"data-testid":void 0,className:c("WAWebConversationPanel.scss").footer+" x1n2onr6 x1vjfegm x9f619 x1okw0bk xo1ph6p x122xwht",children:[G,k.jsx("div",babelHelpers["extends"]({"data-testid":void 0},(i||(i=c("stylex"))).props(p.footerMessage,d("WAWebUISpacing").uiPadding.vert14,d("WAWebUISpacing").uiPadding.horiz18),{children:F}))]})}var O;v||(O=k.jsx(d("WAWebComposeBox.react").PlaceholderComposeBox,{chat:e,handleFocus:function(){var a;q==null?void 0:(a=q.current)==null?void 0:a.focus()}}));L=u.isLidDeprecated?k.jsx(c("WAWebConversationDeprecatedLidChatBanner.react"),{latestLid:u.latestLid}):null;f=[L];w=J?k.jsx(c("WAWebNewsletterSuspendedConversationPanelBody.react"),{isGeosuspended:K,isAdminOrOwner:d("WAWebNewsletterMembershipUtil").iAmOwner(e.newsletterMetadata)||d("WAWebNewsletterMembershipUtil").iAmAdmin(e.newsletterMetadata)}):k.jsx(c("WAWebConversationMsgs.react"),{ref:q,chat:e,selectable:z,onMessageSelect:C,msgCollection:g,onSelectMessages:B,focusCtx:h,selectedMessages:A,notifyChatRendered:a.notifyChatRendered,updateOpenedChatInfo:a.updateOpenedChatInfo,updateCanShowSpamPanel:r,bottomBanners:f});return k.jsxs(k.Fragment,{children:[k.jsx(c("WAWebConversationBackground.react"),{wallpaper:a.wallpaper,showDoodle:a.showDoodle}),k.jsx(d("WAWebHeader.react").ConversationHeader,{chat:e,contact:e.contact,onSelectMessages:B}),k.jsx(c("WAWebConversationPanelBanner.react"),{chat:e,groupMetadata:j}),k.jsxs("div",babelHelpers["extends"]({className:"x1n2onr6 x1vjfegm x1cqoux5 x14yy4lh",ref:H},E,{"data-testid":void 0,children:[N,w]})),I,D,O,k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"slide-up",children:M})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebConversationPanelWrapper.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={pane:"_ajx_",previewPane:"_ajy0",header:"_ajy1",title:"_ajy2"};b=a;g["default"]=b}),98); __d("WAWebHeader.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={chatHeader:"_amid",chatHeaderStylesOverride:"_as5b",chatHeaderMaterial:"_aqy6",chatTitle:"_amig"};b=a;g["default"]=b}),98); __d("WAWebConversationPanelWrapper.react",["fbt","WAWebABProps","WAWebChatPreferenceCollection","WAWebClassnames","WAWebConversationBackground.react","WAWebConversationPanel.react","WAWebConversationPanel.scss","WAWebConversationPanelAnimations","WAWebConversationPanelWrapper.scss","WAWebErrorBoundary.react","WAWebHeader.scss","WAWebUIRefreshGatingUtils","WAWebUim","WAWebUimUie.react","WAWebWallpaper","react","useWAWebListener","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useImperativeHandle,m=b.useRef,n=b.useState;function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.chat,f=a.chatEntryPoint,g=a.msgCollection,i=a.focusCtx,j=a.notifyChatRendered,o=a.updateOpenedChatInfo,p=a.showPreview,q=m(null),r=d("useWAWebModelValues").useModelValues(a.chatPreference,["wallpaper","showDoodle"]),s=d("useWAWebModelValues").useOptionalModelValues(a.chat,["wallpaper","showDoodle"]);function t(){var a;return!p&&d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")?(a=s==null?void 0:s.wallpaper)!=null?a:r.wallpaper:r.wallpaper}var u=n(t()),v=u[0],w=u[1];u=n(t());var x=u[0];u=u[1];d("useWAWebListener").useListener(c("WAWebChatPreferenceCollection"),"wallpaper_preview",function(a){if(d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")){var b;w((b=(b=a)!=null?b:s==null?void 0:s.wallpaper)!=null?b:r.wallpaper)}else{w((b=a)!=null?b:r.wallpaper)}});t=t();x!==t&&(w(t),u(t));var y=function(a,b,c,e){var f;f=(f=q.current)==null?void 0:f.clientWidth;if(f==null||a===b)return!1;var g=f/(a-b);if(e===!0&&c!=null&&c>0){e=a-b-c;g=f/e}return d("WAWebConversationPanelAnimations").animateConversationPanel(q.current,g)},z=function(a){return!q.current?!1:q.current.contains(a)};l(b,function(){return{animatePanel:y,containsDOMNode:z}});x={};v!==d("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER&&(x.backgroundColor=v);u=p?k.jsxs(k.Fragment,{children:[k.jsx("header",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease(c("WAWebHeader.scss").chatHeader,d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&c("WAWebHeader.scss").chatHeaderMaterial,c("WAWebConversationPanelWrapper.scss").header),children:k.jsx("span",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease(c("WAWebConversationPanelWrapper.scss").title,c("WAWebHeader.scss").chatTitle),children:h._(/*BTDS*/"__JHASH__noDPub80SFt__JHASH__")})}),k.jsx(c("WAWebConversationBackground.react"),{wallpaper:v,showDoodle:r.showDoodle}),k.jsx("footer",{className:c("WAWebConversationPanel.scss").footer})]}):null;b=e&&g?k.jsx(c("WAWebConversationPanel.react"),{chat:e,chatEntryPoint:f,groupMetadata:e.groupMetadata,focusCtx:i,msgCollection:g,notifyChatRendered:j,updateOpenedChatInfo:o,wallpaper:v,showDoodle:d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")?(t=s==null?void 0:s.showDoodle)!=null?t:r.showDoodle:r.showDoodle},e.id.toString()):null;if(d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")){i=(f=u)!=null?f:b}else{i=(g=b)!=null?g:u}return k.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"conversation-panel",type:"fatal",children:k.jsx(d("WAWebUimUie.react").UIE,{displayName:"ConversationPanel",uimState:d("WAWebUim").UIMState.INACTIVE,children:k.jsx("div",{id:"main",className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((j={},j[c("WAWebConversationPanelWrapper.scss").previewPane]=a.showPreview,j[c("WAWebConversationPanelWrapper.scss").pane]=!0,j)),style:x,ref:q,"data-testid":void 0,children:i})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebResetLastActiveSideNavStateAction",["WAWebChatGetters","WAWebDrawerManager","WAWebGroupType","WAWebIntroPanel.react","WAWebNavBarEmptyState.react","WAWebNavBarTypes","WAWebSideNavButtonsActivityModel","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j=function(){d("WAWebDrawerManager").DrawerManager.openDrawerMid(i.jsx(c("WAWebIntroPanel.react"),{animate:!1}),{transition:"none"})},k=function(){d("WAWebDrawerManager").DrawerManager.openDrawerMid(i.jsx(d("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:d("WAWebNavBarTypes").NavBarItems.Communities}),{transition:"none"})},l=function(){d("WAWebDrawerManager").DrawerManager.openDrawerMid(i.jsx(d("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:d("WAWebNavBarTypes").NavBarItems.Newsletters}),{transition:"none"})};a=function(a){var b=d("WAWebSideNavButtonsActivityModel").getLastActiveButton();if(b==null)return;switch(b){case d("WAWebNavBarTypes").NavBarItems.Chats:d("WAWebSideNavButtonsActivityModel").setLastActiveChat(null);j();break;case d("WAWebNavBarTypes").NavBarItems.Newsletters:d("WAWebChatGetters").getIsNewsletter(a)&&(d("WAWebSideNavButtonsActivityModel").setLastActiveNewsletter(null),l());break;case d("WAWebNavBarTypes").NavBarItems.Communities:if(a.groupType!=null)switch(a.groupType){case d("WAWebGroupType").GroupType.COMMUNITY:case d("WAWebGroupType").GroupType.LINKED_SUBGROUP:case d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP:case d("WAWebGroupType").GroupType.LINKED_GENERAL_GROUP:d("WAWebSideNavButtonsActivityModel").setLastActiveCommunity(null);k();break;case d("WAWebGroupType").GroupType.DEFAULT:d("WAWebSideNavButtonsActivityModel").setLastActiveChat(null);j();break}break;case d("WAWebNavBarTypes").NavBarItems.Archived:case d("WAWebNavBarTypes").NavBarItems.Beta:case d("WAWebNavBarTypes").NavBarItems.BizTools:case d("WAWebNavBarTypes").NavBarItems.Calls:case d("WAWebNavBarTypes").NavBarItems.Orders:case d("WAWebNavBarTypes").NavBarItems.Labels:case d("WAWebNavBarTypes").NavBarItems.LockedChats:case d("WAWebNavBarTypes").NavBarItems.Starred:case d("WAWebNavBarTypes").NavBarItems.Settings:case d("WAWebNavBarTypes").NavBarItems.Profile:case d("WAWebNavBarTypes").NavBarItems.Status:case d("WAWebNavBarTypes").NavBarItems.MediaHub:break}};g.resetLastActiveSideNavStateForChat=a}),98); __d("WAWebConversation.react",["Promise","WALogger","WAWebABProps","WAWebBizAiAgentGating","WAWebBizAiAgentStatusUtils","WAWebBotFeatureNotAvailable.react","WAWebBotFrontendUtils","WAWebBotGating","WAWebBotLogging","WAWebBotNux.react","WAWebBotTosIds","WAWebBusinessProfileCollection","WAWebCAPIGroupAboutModal.react","WAWebChatEntryPoint","WAWebChatEphemerality","WAWebChatGetters","WAWebChatGroupUtils","WAWebChatLockCodeModal.react","WAWebChatLockUtils","WAWebChatLockWAMUtils","WAWebChatPreferenceCollection","WAWebCmd","WAWebConversationPanelWrapper.react","WAWebDesktopUpsellEvents","WAWebFrontendMsgGetters","WAWebGetOrQueryUsyncInfoContactAction","WAWebHostedGroupUtils","WAWebIntroPanel.react","WAWebModalManager","WAWebMsgCollection","WAWebNoop","WAWebNux","WAWebQueryGroupAction","WAWebResetLastActiveSideNavStateAction","WAWebStreamModel","WAWebTosGating","WAWebUpdateEphemeralSettingChatAction","WAWebWamEnumActionEntryPoint","WAWebWamEnumLandingSurface","WAWebWid","asyncToGeneratorRuntime","err","gkx","react","useWAWebChatLockRestriction","useWAWebListener","useWAWebNux","useWAWebPrevious"],(function(a,b,c,d,e,f,g){var h,i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[DM] auto-disabling DM due to chat being with CAPI account"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["chat.msgs length: ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["msgContext.collection length: ",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["[usync] Getting usync info for contact while opening the chat"]);n=function(){return a};return a}e=j||d("react");var o=i||(i=c("react")),p=e.useEffect,q=e.useImperativeHandle,r=e.useRef,s=e.useState;function t(a){switch(a){case d("WAWebChatEntryPoint").ChatEntryPoint.Chatlist:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST;case d("WAWebChatEntryPoint").ChatEntryPoint.Notification:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.NOTIFICATIONS;case d("WAWebChatEntryPoint").ChatEntryPoint.PrivateReply:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.PRIVATE_REPLY;case d("WAWebChatEntryPoint").ChatEntryPoint.DirectMessage:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.DIRECT_MESSAGE;case d("WAWebChatEntryPoint").ChatEntryPoint.ContactInfo:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_INFO;case d("WAWebChatEntryPoint").ChatEntryPoint.Mention:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.DIRECT_MESSAGE;case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterIntegrity:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterChatlist:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectory:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectorySearch:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectoryCategory:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectoryCategorySearch:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsLetterRecommendation:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterUpdatesTab:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterUpdatesTabSearch:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterCreationFlow:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterAdminInviteAcceptModal:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterPostLinkCard:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterLinkCard:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterLinkCardButton:case d("WAWebChatEntryPoint").ChatEntryPoint.ForwardedNewsletterMessage:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterCTAOnStatus:case d("WAWebChatEntryPoint").ChatEntryPoint.SimilarNewsletters:case d("WAWebChatEntryPoint").ChatEntryPoint.Link:case d("WAWebChatEntryPoint").ChatEntryPoint.Deeplink:case d("WAWebChatEntryPoint").ChatEntryPoint.Vcard:case d("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut:case d("WAWebChatEntryPoint").ChatEntryPoint.ChatsTab:case d("WAWebChatEntryPoint").ChatEntryPoint.NewslettersTab:case d("WAWebChatEntryPoint").ChatEntryPoint.CommunitiesTab:case d("WAWebChatEntryPoint").ChatEntryPoint.VoipWindow:case d("WAWebChatEntryPoint").ChatEntryPoint.Unknown:break}return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.UNKNOWN}function a(a){var e=a.animate;a=a.ref;var f=r(),g=r(),i=r(0),j=r(c("WAWebNoop")),u=j.current,v=r(c("WAWebNoop")),w=v.current,x=r(d("WAWebChatEntryPoint").ChatEntryPoint.Unknown),y=s(),z=y[0],A=y[1];y=s();var B=y[0],C=y[1];y=s();var D=y[0],E=y[1];y=s(!1);var F=y[0],G=y[1];d("useWAWebChatLockRestriction").useChatLockRestriction({id:z!=null?"locked-thread-"+z.id.toString():"chat-homescreen",condition:(y=z)!=null?y:"bypass",entryPoint:t(x.current),landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.THREAD,unlockEntryPoint:d("WAWebChatLockWAMUtils").actionEntryPointToUnlockEntryPoint(t(x.current))});y=s(e);e=y[0];y=y[1];var H=c("useWAWebPrevious")(e);H!==!1&&e!==!1&&y(!1);var I=function(a,b){var c=b?b.msg||d("WAWebMsgCollection").MsgCollection.get(b.key):void 0;if(b&&c&&a){b=a.chat;var e=a.renderedMsgsInfo;a=a.visibleMsgOrder;if(b&&e&&a&&Object.keys(e).length>0&&a.length>0){a=e[a[0].toString()];var f=c.id.toString();e=Object.entries(e).find(function(a){return a===f});e=e?e[1]:null;if(e)return{wasVisible:!0,offset:e.offset};else if(b===d("WAWebFrontendMsgGetters").getChat(c))return a&&c.t<a.t?{wasVisible:!1,alignAt:"top"}:{wasVisible:!1,alignAt:"bottom"}}}return{wasVisible:!1,alignAt:"center"}};q(a,function(){return{containsDOMNode:function(a){return!f.current?!1:f.current.containsDOMNode(a)},animatePanel:function(a,b,c,d){return!f.current?!1:f.current.animatePanel(a,b,c,d)}}});H=function(){d("WAWebStreamModel").Stream.markUnavailable(15*1e3)};y=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f,p){if(!d("WAWebChatLockUtils").chatIsAccessible(a)){var q=(yield d("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.THREAD,unlockEntryPoint:d("WAWebChatLockWAMUtils").actionEntryPointToUnlockEntryPoint(t(f)),entryPoint:t(f)}));if(!q)return}a.contact.isEnterprise==null&&d("WAWebChatGetters").getIsUser(a)&&!c("WAWebWid").isPSA(a.contact.id)&&!a.id.isBot()&&(d("WALogger").LOG(n()),d("WAWebGetOrQueryUsyncInfoContactAction").queryUsyncBusiness(a.id));if(a.id.isBot()){if(!d("WAWebBotGating").isBotEnabled()){d("WAWebModalManager").ModalManager.open(o.jsx(c("WAWebBotFeatureNotAvailable.react"),{}));return}var r=f===d("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut?d("WAWebBotLogging").BotEntryPointType.Shortcut:d("WAWebBotLogging").BotEntryPointType.Agent;d("WAWebBotLogging").logAiChatClickBotJourneyEvent(r);if(d("WAWebTosGating").shouldBlockByBotTos(a.contact)){q=a.id.equals(d("WAWebBotFrontendUtils").MetaBotWid)?d("WAWebBotTosIds").getBotShortcutTosId():d("WAWebBotTosIds").getBotAgentTosId();if(d("WAWebBotTosIds").supportedTosNoticeIds.has(q))try{yield new(h||(h=b("Promise")))(function(b,e){d("WAWebBotLogging").logAiTosBotJourneyEvent(r,d("WAWebBotLogging").BotTosActionType.View),d("WAWebModalManager").ModalManager.open(o.jsx(c("WAWebBotNux.react"),{origin:a.id.equals(d("WAWebBotFrontendUtils").MetaBotWid)?"shortcut":"agent",onOK:function(){d("WAWebBotLogging").logAiTosBotJourneyEvent(r,d("WAWebBotLogging").BotTosActionType.Accept),b()},onCancel:function(){d("WAWebBotLogging").logAiTosBotJourneyEvent(r,d("WAWebBotLogging").BotTosActionType.Dismiss),e(c("err")(""))}}))})}catch(a){return}else d("WAWebChatGroupUtils").updateCanSend(a)}}z!==a&&d("WAWebCmd").Cmd.updateChatlistSelection(a);var s=g.current,u={};g.current=u;v.current=function(a){Object.assign(u,a)};c("gkx")("26258")||(e?d("WALogger").LOG(m(),e.collection.length):d("WALogger").LOG(l(),a.msgs.length));q=e?e.collection:a.msgs;i.current++;var w=i.current,y=function(){return w===i.current};x.current=f;var B=!1,D=function(){if(!y())return;B=!0;p(I(s,e))},F=(e==null?void 0:(f=e.msg)==null?void 0:f.id)||(e==null?void 0:e.key);j.current=function(a){if(B||!y())return;if(!F){D();return}a=a.some(function(a){return a.id.equals(F)});if(!a)return;D()};A(a);C(q);E(e);a.contact.isEnterprise&&d("WAWebChatEphemerality").isEphemeralSettingOn(a)&&(d("WALogger").LOG(k()).devConsole({chat:a,ephemeralDuration:a.ephemeralDuration}),d("WAWebUpdateEphemeralSettingChatAction").setChatAsEphemeralityUnsupported(a));d("WAWebBizAiAgentGating").isAiAgentAutoReplyEnabled()&&d("WAWebBizAiAgentStatusUtils").isChatAiEnabled(a)&&a.setForceDismissAiAgentBlockingBar(!1)});return function(b,c,d,e){return a.apply(this,arguments)}}();var J=function(){A(void 0),C(void 0),E(void 0)};a=function(a){d("WAWebResetLastActiveSideNavStateAction").resetLastActiveSideNavStateForChat(a),a===z&&(J(),a.setForceDismissAiAgentBlockingBar(!1))};var K=function(){d("WAWebStreamModel").Stream.markAvailable(),z!=null&&d("WAWebChatGetters").getIsUser(z)&&z.presence.subscribe()};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"open_chat",y);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"close_chat",a);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"close_active_chat",J);d("useWAWebListener").useListener(window,"focus",K);d("useWAWebListener").useListener(window,"blur",H);d("useWAWebListener").useListener(c("WAWebChatPreferenceCollection"),"wallpaper_drawer_open",function(a){(!d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||a)&&G(!0)});d("useWAWebListener").useListener(c("WAWebChatPreferenceCollection"),"wallpaper_drawer_close",function(a){(!d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||a)&&G(!1)});y=c("useWAWebNux")(d("WAWebNux").NUX.CAPI_GROUP_ABOUT_MODAL);var L=y[0],M=y[1];a=function(a,b,c,d){var e=B;(e===a||e===b)&&(C(c),E(d&&(!!d.msg||!!d.collection)?d:D))};d("useWAWebListener").useListener(z,"change:cmc:merge",a);p(function(){z&&(z.contact.isBusiness&&!z.id.isBot()&&d("WAWebBusinessProfileCollection").BusinessProfileCollection.find(z.id),z.groupMetadata&&d("WAWebQueryGroupAction").maybeQueryGroupDevice(z.groupMetadata))},[z]);p(function(){var a;(z==null?void 0:(a=z.groupMetadata)==null?void 0:a.hasCapi)===!0&&d("WAWebHostedGroupUtils").isWAHostedGroupEnabled()&&L&&(d("WAWebModalManager").ModalManager.open(o.jsx(d("WAWebCAPIGroupAboutModal.react").CAPIGroupAboutModal,{})),M())},[z,L,M]);var N=z&&B||F;p(function(){d("WAWebDesktopUpsellEvents").WAWebDesktopUpsellEvents.trigger("conversation_panel_ui_change",{conversationPanelVisible:!!N})},[N]);return N?o.jsx(c("WAWebConversationPanelWrapper.react"),{chat:z,chatEntryPoint:x.current,groupMetadata:z==null?void 0:z.groupMetadata,chatPreference:c("WAWebChatPreferenceCollection").assertGet("defaultPreference"),focusCtx:D,msgCollection:B,notifyChatRendered:u,updateOpenedChatInfo:w,ref:f,showPreview:F},z==null?void 0:z.id.toString()):o.jsx(c("WAWebIntroPanel.react"),{animate:e,ref:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebCreateOrUpdateGroupMetadataAction",["WAWebGroupMetadataCollection","WAWebGroupQueryBridge"],(function(a,b,c,d,e,f,g){function a(a){var b;d("WAWebGroupQueryBridge").updateSubject(a.id,a.subject);c("WAWebGroupMetadataCollection").gadd(babelHelpers["extends"]({id:a.id,owner:a.owner,subject:a.subject,creation:a.creation,desc:a.desc,descId:a.descId,descOwner:a.descOwner,descTime:a.descTime,restrict:a.restrict||!1,announce:a.announce||!1,noFrequentlyForwarded:a.noFrequentlyForwarded||!1,ephemeralDuration:a.ephemeralDuration||0,growthLockExpiration:a.growthLockExpiration,growthLockType:a.growthLockType,membershipApprovalMode:a.membershipApprovalMode,memberAddMode:a.memberAddMode,participants:a.participants,pastParticipants:a.pastParticipants,support:(b=a.support)!=null?b:!1,suspended:(b=a.suspended)!=null?b:!1,terminated:(b=a.terminated)!=null?b:!1,isParentGroup:(b=a.isParentGroup)!=null?b:!1,isParentGroupClosed:(b=a.isParentGroupClosed)!=null?b:!1,parentGroup:a.parentGroup,defaultSubgroup:(b=a.defaultSubgroup)!=null?b:!1,generalSubgroup:(b=a.generalSubgroup)!=null?b:!1,deviceStale:!0,size:a.size,incognito:a.incognito,isLidAddressingMode:a.isLidAddressingMode,reportToAdminMode:a.reportToAdminMode},a.reportToAdminMode===!1&&{lastReportToAdminTimestamp:null},{allowNonAdminSubGroupCreation:a.allowNonAdminSubGroupCreation,generalChatAutoAddDisabled:a.generalChatAutoAddDisabled,hasCapi:a.hasCapi,hiddenSubgroup:(b=a.hiddenSubgroup)!=null?b:!1,groupSafetyCheck:(b=a.groupSafetyCheck)!=null?b:!1}))}g.createOrUpdateGroupMetadataModelFromQuery=a}),98); __d("WAWebCreateSendMsgRecord",["WALogger","WAWebAddonDBTable","WAWebDBMessageSerialization","WAWebMsgKey","WAWebMsgModel","WAWebSchemaMessage","WAWebSendMsgTypes","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["resendUserMsgJob didn't find an addonMsgData in the db"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["resendUserMsgJob didn't find a msg in the db"]);i=function(){return a};return a}function a(a,b,c){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){if(e===d("WAWebSendMsgTypes").SendMessageRecordType.Message){var f=(yield d("WAWebSchemaMessage").getMessageTable().get(a));if(f==null){d("WALogger").WARN(i());return null}f=new(d("WAWebMsgModel").Msg)(d("WAWebDBMessageSerialization").messageFromDbRow(f));return{type:d("WAWebSendMsgTypes").SendMessageRecordType.Message,data:f}}else if(e===d("WAWebSendMsgTypes").SendMessageRecordType.Addon){f=c("WAWebMsgKey").from(a);a=(yield d("WAWebAddonDBTable").addonDBTable.getByMsgKey(b,f));if(a==null){d("WALogger").WARN(h());return null}return{type:d("WAWebSendMsgTypes").SendMessageRecordType.Addon,data:a}}throw c("err")("unexpected msgRecordType: "+e)});return j.apply(this,arguments)}g.createMsgRecord=a}),98); __d("WAWebCustomPaymentMethodsSyncBridgeApi",["WAWebCustomPaymentMethods"],(function(a,b,c,d,e,f,g){a={setCustomPaymentMethods:function(a){a=a.customPaymentMethods;d("WAWebCustomPaymentMethods").CustomPaymentMethods.setCustomPaymentMethods(a)}};g.CustomPaymentMethodsSyncBridgeApi=a}),98); __d("WAWebDownloadWebLogs",["Promise","WAWebCompression","WAWebFileSaver","WAWebFileSaverTypes","WAWebLid1X1MigrationGating","WAWebLoggerImpl","WAWebPrimaryVersion","WAWebToast.react","WAWebToastManager","WAWebUserPrefsGeneral","WAWebUserPrefsMeUser","asyncToGeneratorRuntime","gkx","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=1e6;function l(){return(h||(h=b("Promise"))).all([d("WAWebLoggerImpl").Logger.getLogs(),d("WAWebPrimaryVersion").getPrimaryCurrentVersion()]).then(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a[0];a=a[1];if(a!=null){a="Primary app version: "+a;b.unshift(a)}b.unshift("Lid migrated: "+d("WAWebLid1X1MigrationGating").Lid1X1MigrationUtils.isLidMigrated().toString());a="Web log for device : "+((a=(a=d("WAWebUserPrefsMeUser").getMe())==null?void 0:a.toString())!=null?a:"")+", lid : "+((a=(a=d("WAWebUserPrefsMeUser").getMaybeMeLid())==null?void 0:a.toString())!=null?a:"")+", time: "+new Date().toString();var e=(yield d("WAWebUserPrefsGeneral").getWhatsAppWebExternalBetaJoinedIdb()),f;c("gkx")("26259")?f="Environment : INTERN "+(e?", AB Props : DEBUG (joined beta)":""):f="Environment : DEV "+(e?", AB Props : RELEASE (joined beta)":"");b.unshift(a,f);e=b.join("\n");return e});return function(b){return a.apply(this,arguments)}}())}function a(){d("WAWebToastManager").ToastManager.open(j.jsx(d("WAWebToast.react").Toast,{msg:"The download process has started. It might take longer for larger web log files."}));var a=new Date().toISOString().replace(/:/g,"-"),c="web_client_log_"+a;(h||(h=b("Promise"))).all([d("WAWebCompression").createDeflate(),l()]).then(function(a){var b=a[0];a=a[1];var c=new Blob([a],{type:"text/plain"});if(c.size>10*k){b.push(a,!0);a=new Blob([b.result()],{type:"application/zip"});return a}return c}).then(function(a){d("WAWebFileSaver").FileSaver.downloadData(a,a.type==="text/plain"?c:c+".txt",a.type==="text/plain"?d("WAWebFileSaverTypes").AllowedFileExtensions.TXT:d("WAWebFileSaverTypes").AllowedFileExtensions.ZIP)})}g.getWebLogs=l;g.createDownloadDataForMdWebLogs=a}),98); __d("WAWebDebugBridgeApi",["WAWebDownloadWebLogs"],(function(a,b,c,d,e,f,g){"use strict";a={createDownloadDataForMdWebLogs:function(){d("WAWebDownloadWebLogs").createDownloadDataForMdWebLogs()},getWebLogs:function(){return d("WAWebDownloadWebLogs").getWebLogs()}};g.DebugBridgeApi=a}),98); __d("WAWebDebugHotPink",[],(function(a,b,c,d,e,f){"use strict";var g="hotpink";b=["active-tab-marker","app-background","app-background-deeper","app-background-stripe","attach-media-drop-border","attach-media-drop-overlay","attachment-type-audio-color","attachment-type-photos-color","attachment-type-camera-color","attachment-type-documents-color","attachment-type-catalog-color","attachment-type-quick-replies-color","attachment-type-orders-color","attachment-type-contacts-color","attachment-type-polls-color","attachment-type-stickers-color","audio-control-incoming","audio-control-outgoing","audio-progress-incoming","audio-progress-outgoing","audio-progress-played-incoming","audio-progress-played-outgoing","audio-progress-metadata","audio-track-incoming","audio-track-outgoing","avatar-background","avatar-border","avatar-circle-gray-light","avatar-circle-gray","avatar-placeholder-background","avatar-placeholder-primary","archived-chat-marker","archived-chat-marker-border","archived-chat-marker-background","background-default","background-document-with-captions","background-default-active","background-default-hover","background-lighter","background-lighter-content","background-lighter-active","background-lighter-hover","background-lightest-active","background-lightest-hover","text-primary","text-secondary-emphasized","text-secondary","text-teal","text-success","text-critical","badge-icon","badge-pending","border-bubble","border-deeper","border-default","border-list","border-panel","border-strong","border-stronger","bubble-meta","bubble-meta-icon","business-name-subtitle","butterbar-battery-background","butterbar-battery-icon","butterbar-battery-primary","butterbar-battery-secondary","butterbar-connection-background","butterbar-connection-primary","butterbar-connection-secondary","butterbar-connection-icon","butterbar-desktop-upsell-icon","butterbar-phone-icon-shape","butterbar-default-background","butterbar-fatal-background","butterbar-fatal-primary","butterbar-fatal-secondary","butterbar-fatal-icon","butterbar-icon","butterbar-icon-dismiss","butterbar-notice-background","butterbar-notice-circle","butterbar-notice-icon","butterbar-notice-smb-background","butterbar-notice-smb-circle","butterbar-notice-smb-icon","butterbar-notification-icon","butterbar-primary","butterbar-secondary","butterbar-update-background","butterbar-update-icon","butterbar-green-nux-primary","butterbar-green-nux-secondary","butterbar-green-nux-background","butterbar-green-nux-icon","butterbar-green-nux-icon-background","butterbar-green-nux-icon-dismiss","butterbar-blue-nux-primary","butterbar-blue-nux-secondary","butterbar-blue-nux-background","butterbar-blue-nux-icon","butterbar-blue-nux-icon-background","butterbar-blue-nux-icon-dismiss","butterbar-ad-action-info-primary","butterbar-ad-action-info-secondary","butterbar-ad-action-info-background","butterbar-ad-action-info-icon","butterbar-ad-action-info-icon-background","butterbar-ad-action-info-icon-dismiss","butterbar-ad-action-warning-primary","butterbar-ad-action-warning-secondary","butterbar-ad-action-warning-background","butterbar-ad-action-warning-icon","butterbar-ad-action-warning-icon-background","butterbar-ad-action-warning-icon-dismiss","butterbar-order-expansion-icon","butterbar-order-expansion-banner-background","butterbar-order-expansion-icon-background","button-alternative","button-alternative-background","button-background-disabled","button-bubble","button-plain-background","button-plain-background-hover","button-plain","button-plain-hover","button-plain-disabled-background","button-primary","button-primary-background","button-primary-background-hover","button-round-background","button-round-background-inverted","button-disabled","button-secondary","button-secondary-border","button-secondary-background","button-secondary-hover","button-secondary-disabled-background","button-primary-destructive-color","button-primary-destructive-background","button-primary-destructive-background-hover","button-primary-destructive-outline","button-primary-destructive-spinner-color","button-secondary-destructive-color","button-secondary-destructive-hover-color","button-secondary-destructive-outline","button-secondary-destructive-spinner-color","button-focus-outline","button-approve","button-approve-background","button-approve-hover","button-approve-background-hover","button-approve-hover-strong","button-approve-background-hover-strong","button-reject","button-reject-background","button-reject-hover","button-reject-background-hover","button-reject-hover-strong","button-reject-background-hover-strong","chat-info-drawer-thumb-background","chat-marker","chat-marker-border","chat-marker-background","chat-meta","chatlist-icon","checkbox-background","checkbox-mark","chevron-button-background","chip-button-background","chip-button-foreground","compose-input-background","compose-input-background-focused","compose-input-border","compose-panel-background-hover","conversation-panel-background","conversation-panel-border","cover-image-background","danger","disabled-round-button-background-color","document-meta","drawer-background","drawer-background-deep","drawer-gallery-background","drawer-gallery-background-active","drawer-gallery-background-hover","drawer-header-title","drawer-section-background","dropdown-background","dropdown-background-hover","empty-state-background","empty-state-icon","expressions-panel-active-icon-color","expressions-panel-active-icon-tab-background","expressions-panel-icon-tab-border","sender-superpower-title","filters-container-background","filters-item-color","filters-item-background","filters-item-background-hover","filters-item-active-color","filters-item-active-background","focus","focus-animation-deeper","focus-lighter","forwarded-indicator-text","highlight","icon","icon-ack","icon-disabled","icon-fixed","icon-lighter","icon-strong","icon-search-back","icon-secondary","icon-bright-highlight","round-icon-background","icon-header-illustration-main","icon-header-illustration-background","icon-primary","incoming-background","incoming-background-deeper","incoming-background-highlight","incoming-primary","input-border-active","input-border","input-placeholder","input-button-more","input-floating-toolbar-background","input-floating-toolbar-icon","input-floating-toolbar-icon-active","input-floating-toolbar-button-hover","input-floating-toolbar-button-active","intro-background","intro-logo","intro-secondary","inverse","label-disabled-text","label-secondary-text","labels-icon","labels-plus-icon-color","labels-plus-icon-background","link","link-alt","link-preview-light","link-preview-shimmer-start","link-preview-shimmer-end","link-preview-placeholder-image","map-overlay-background","map-overlay-foreground","media-editor-control","media-editor-image-caption-input-background","media-editor-video-caption-input-background","media-editor-document-caption-input-background","media-editor-icon-color","media-editor-icon-secondary-color","media-editor-thumb-border","media-editor-thumb-border-active","media-gallery-thumb-background","media-gallery-thumb-icon","media-viewer-background","media-inner-border","menu-bar-item-background-active","menu-context-transparent-icon","menu-context-transparent-icon-inverse","message-background-deep","message-placeholder-icon","message-primary","message-selection-highlight","modal-backdrop","modal-backdrop-solid","modal-background","modal-title","beta-tag-background","notification-biz-background","notification-biz-text","notification-e2e-background","notification-e2e-icon","notification-e2e-text","notification-info-icon","notification-non-e2e-background","notification-non-e2e-text","outgoing-background","outgoing-background-highlight","overlay","panel-background","panel-background-colored","panel-background-colored-deeper","panel-background-deep","panel-background-deeper","panel-background-hover","panel-background-lighter","panel-header-background","panel-header-icon","conversation-header-border","panel-input-background","panel-primary","payment-status-failed","payment-status-pending","payment-status-success","photopicker-overlay-background","picker-background","pin-indicator","pip-drag-bar","pip-player-background","pip-manager-content","popup-panel-background","primary-muted","primary","primary-strong","primary-stronger","primary-strongest","primary-title","product-image-button-background","product-thumb-background","product-thumb-background-deeper","product-thumb-overlay-background","product-thumb-overlay-text","product-placeholder-background","progress-background","progress-primary","poll-bar-container-receiver","poll-bar-fill-receiver","poll-bar-container-sender","poll-bar-fill-sender","poll-button-disabled-receiver","poll-button-disabled-sender","poll-checkmark-receiver","poll-checkmark-sender","poll-disabled-checked-checkbox-receiver","poll-disabled-checked-checkbox-sender","poll-invalid-warning-background","poll-invalid-warning-border-receiver","poll-invalid-warning-border-sender","poll-invalid-warning-icon-color","poll-invalid-warning-icon-container-background","poll-modal-background-color","poll-modal-footer-background-color","poll-checkbox-default-border-color-sender","poll-selectable-options-icon-hint-color","ptt-blue","ptt-draft-button-cancel","ptt-draft-button-cancel-hover","ptt-draft-button-play-pause","ptt-draft-button-play-pause-hover","ptt-draft-button-play-pause-out-of-chat","ptt-draft-button-stop","ptt-draft-button-stop-hover","ptt-draft-button-send","ptt-draft-button-send-hover","ptt-draft-waveform-background","ptt-draft-waveform-background-border","ptt-ooc-background","ptt-ooc-mic-border-color","ptt-ooc-mic-fill-color","ptt-ooc-avatar-background","ptt-gray","ptt-gray-badge","ptt-green","ptt-text","quick-action-button","quick-action-button-background","reaction-button","round-entry-point-background-color","quoted-message-text","rich-text-panel-background","search-container-background","search-input-background","search-input-container-background","search-input-container-background-active","secondary","secondary-light","secondary-lighter","secondary-stronger","security-icon-background","security-icon-lock","security-icon-shield","shadow","shadow-light","spinner-default","spinner-highlight","spinner-incoming","spinner-outgoing","startup-background","startup-icon","status-background","status-background-hover","status-primary","status-secondary","status-ring-read","status-ring-unread","status-thumbnail-background","status-link-preview-title","status-link-preview-secondary","sticker-button-background","success","suspicious-background","system-message-background","system-message-text","teal-pale","text-action","text-muted","thumb-border-active","thumb-border-viewer-active","toast-background","tooltip-text","tooltip-background","unread-background","unread-bar-background","unread-timestamp","unread-marker-background","unread-marker-text","vcard-placeholder-background","vcard-placeholder-background-deeper","video-player-background","video-primary","voip-primary","voip-disabled-background","wallpaper-background","wallpaper-thumb-border-active","wallpaper-thumb-border-hover","reactions-bubble-border","reactions-bubble-counter","reactions-details-background","reactions-tray-background","reactions-details-background-hover","reactions-tray-active-round-background","reactions-picker-bg","svg-gray-button","reactions-panel-background-color","reactions-panel-search-background-color","reactions-search-color","reactions-menu-tab-separator","text-primary-strong","text-secondary-lighter","text-medium-emphasis","icon-high-emphasis","switch-button-color","switch-button-checked-color","switch-button-disabled-color","switch-track-color","switch-track-checked-color","switch-track-disabled-color","announcement-speaker-background","communities-green","qc-button-border","qc-button-border-active","qc-quantity-label-highlighted-background","drawer-loading-background","multi-skin-tone-picker-emoji-selected-background","pnh-nux","forward-caption-preview-background","forward-caption-preview-content","bot-typing-indicator-background-color","bot-suggestion-background-color","bot-command-pill-background-color","bot-command-text","icon-in-cell-frame-background","block-quote-text","desktop-upsell-call-btn","date-picker-background-color","date-picker-today-background-color","date-picker-header-background-color","date-picker-text-color","date-picker-today-text-color","date-picker-nav-text-color","carousel-button-background-color","carousel-button-border-color","carousel-button-shadow-color","carousel-button-chevron-color","carousel-button-background-color-active","carousel-button-background-color-hover","carousel-button-shadow-color-hover","navbar-background","navbar-separator","navbar-border","pill-background","pill-text","comments-modal-background","text-disabled"];c=["active-tab-marker","app-background","app-background-deeper","app-background-stripe","attach-media-drop-border","attach-media-drop-overlay","attachment-type-audio-color","attachment-type-photos-color","attachment-type-camera-color","attachment-type-documents-color","attachment-type-catalog-color","attachment-type-quick-replies-color","attachment-type-orders-color","attachment-type-contacts-color","attachment-type-polls-color","attachment-type-stickers-color","audio-control-incoming","audio-control-outgoing","audio-progress-incoming","audio-progress-outgoing","audio-progress-played-incoming","audio-progress-played-outgoing","audio-progress-metadata","audio-track-incoming","audio-track-outgoing","avatar-background","avatar-border","avatar-circle-gray-light","avatar-circle-gray","avatar-placeholder-background","avatar-placeholder-primary","archived-chat-marker","archived-chat-marker-border","archived-chat-marker-background","background-default","background-document-with-captions","background-default-active","background-default-hover","background-lighter","background-lighter-content","background-lighter-active","background-lighter-hover","background-lightest-active","background-lightest-hover","text-primary","text-secondary-emphasized","text-secondary","text-teal","text-success","text-critical","badge-border","badge-pending","beta-tag-background","border-bubble","border-deeper","border-default","border-list","border-panel","border-strong","border-stronger","bubble-meta","bubble-meta-icon","business-name-subtitle","butterbar-default-background","butterbar-icon","butterbar-icon-dismiss","butterbar-primary","butterbar-secondary","butterbar-battery-background","butterbar-battery-icon","butterbar-battery-primary","butterbar-battery-secondary","butterbar-connection-background","butterbar-connection-primary","butterbar-connection-secondary","butterbar-connection-icon","butterbar-desktop-upsell-icon","butterbar-phone-icon-shape","butterbar-fatal-background","butterbar-fatal-primary","butterbar-fatal-secondary","butterbar-fatal-icon","butterbar-notice-background","butterbar-notice-circle","butterbar-notice-icon","butterbar-notice-smb-background","butterbar-notice-smb-circle","butterbar-notice-smb-icon","butterbar-notification-icon","butterbar-update-background","butterbar-update-icon","butterbar-green-nux-primary","butterbar-green-nux-secondary","butterbar-green-nux-background","butterbar-green-nux-icon","butterbar-green-nux-icon-background","butterbar-green-nux-icon-dismiss","butterbar-blue-nux-primary","butterbar-blue-nux-secondary","butterbar-blue-nux-background","butterbar-blue-nux-icon","butterbar-blue-nux-icon-background","butterbar-blue-nux-icon-dismiss","butterbar-ad-action-info-primary","butterbar-ad-action-info-secondary","butterbar-ad-action-info-background","butterbar-ad-action-info-icon","butterbar-ad-action-info-icon-background","butterbar-ad-action-info-icon-dismiss","butterbar-ad-action-warning-primary","butterbar-ad-action-warning-secondary","butterbar-ad-action-warning-background","butterbar-ad-action-warning-icon","butterbar-ad-action-warning-icon-background","butterbar-ad-action-warning-icon-dismiss","butterbar-order-expansion-banner-background","button-alternative","button-alternative-background","button-background-disabled","button-bubble","button-plain-background","button-plain-background-hover","button-plain","button-plain-hover","button-plain-disabled-background","button-primary","button-primary-background","button-primary-background-hover","button-round-background","button-round-background-inverted","button-disabled","button-secondary","button-secondary-border","button-secondary-background","button-secondary-hover","button-secondary-disabled-background","button-focus-outline","button-primary-destructive-color","button-primary-destructive-background","button-primary-destructive-background-hover","button-primary-destructive-outline","button-primary-destructive-spinner-color","button-secondary-destructive-color","button-secondary-destructive-hover-color","button-secondary-destructive-outline","button-secondary-destructive-spinner-color","button-approve","button-approve-background","button-approve-hover","button-approve-background-hover","button-approve-hover-strong","button-approve-background-hover-strong","button-reject","button-reject-background","button-reject-hover","button-reject-background-hover","button-reject-hover-strong","button-reject-background-hover-strong","chat-info-drawer-thumb-background","chat-marker","chat-marker-border","chat-marker-background","chat-meta","chatlist-icon","checkbox-background","checkbox-mark","chevron-button-background","chip-button-background","chip-button-foreground","compose-input-background","compose-input-background-focused","compose-input-border","compose-panel-background-hover","conversation-panel-background","conversation-panel-border","cover-image-background","danger","disabled-round-button-background-color","document-meta","drawer-background","drawer-background-deep","drawer-gallery-background","drawer-gallery-background-active","drawer-gallery-background-hover","drawer-header-title","drawer-section-background","dropdown-background","dropdown-background-hover","empty-state-background","empty-state-icon","expressions-panel-active-icon-color","expressions-panel-active-icon-tab-background","expressions-panel-icon-tab-border","sender-superpower-title","filters-container-background","filters-item-color","filters-item-background","filters-item-background-hover","filters-item-active-color","filters-item-active-background","focus","focus-animation-deeper","focus-lighter","forwarded-indicator-text","highlight","icon","icon-ack","icon-disabled","icon-fixed","icon-lighter","icon-search-back","icon-strong","icon-bright-highlight","round-icon-background","incoming-background","incoming-background-deeper","incoming-background-highlight","incoming-primary","input-border-active","input-border","input-placeholder","input-button-more","intro-background","intro-logo","intro-secondary","inverse","label-secondary-text","labels-icon","labels-plus-icon-color","labels-plus-icon-background","label-disabled-text","link","link-alt","link-preview-light","link-preview-shimmer-start","link-preview-shimmer-end","link-preview-placeholder-image","map-overlay-background","map-overlay-foreground","media-editor-control","media-editor-image-caption-input-background","media-editor-video-caption-input-background","media-editor-document-caption-input-background","media-editor-icon-color","media-editor-icon-secondary-color","media-editor-thumb-border","media-editor-thumb-border-active","media-gallery-thumb-background","media-gallery-thumb-icon","media-inner-border","media-viewer-background","menu-bar-item-background-active","menu-context-transparent-icon","menu-context-transparent-icon-inverse","message-background-deep","message-placeholder-icon","message-primary","message-selection-highlight","modal-backdrop","modal-backdrop-solid","modal-background","modal-title","notification-biz-background","notification-biz-text","notification-e2e-background","notification-e2e-icon","notification-e2e-text","notification-info-icon","notification-non-e2e-background","notification-non-e2e-text","outgoing-background","outgoing-background-deeper","outgoing-background-highlight","overlay","panel-background","panel-background-colored","panel-background-colored-deeper","panel-background-deep","panel-background-deeper","panel-background-hover","panel-background-lighter","panel-header-background","panel-header-icon","conversation-header-border","panel-input-background","panel-primary","payment-status-failed","payment-status-pending","payment-status-success","photopicker-overlay-background","picker-background","pin-indicator","pip-drag-bar","pip-manager-content","popup-panel-background","primary-muted","primary","primary-strong","primary-stronger","primary-strongest","primary-title","product-image-button-background","product-placeholder-background","product-thumb-background","product-thumb-background-deeper","product-thumb-overlay-background","product-thumb-overlay-text","progress-background","progress-primary","poll-bar-container-receiver","poll-bar-fill-receiver","poll-bar-container-sender","poll-bar-fill-sender","poll-button-disabled-receiver","poll-button-disabled-sender","poll-checkmark-receiver","poll-checkmark-sender","poll-disabled-checked-checkbox-receiver","poll-disabled-checked-checkbox-sender","poll-invalid-warning-background","poll-invalid-warning-border-receiver","poll-invalid-warning-border-sender","poll-invalid-warning-icon-color","poll-invalid-warning-icon-container-background","poll-modal-background-color","poll-modal-footer-background-color","poll-checkbox-default-border-color-sender","poll-selectable-options-icon-hint-color","ptt-blue","ptt-draft-button-cancel","ptt-draft-button-cancel-hover","ptt-draft-button-play-pause","ptt-draft-button-play-pause-hover","ptt-draft-button-play-pause-out-of-chat","ptt-draft-button-stop","ptt-draft-button-stop-hover","ptt-draft-button-send","ptt-draft-button-send-hover","ptt-draft-waveform-background","ptt-draft-waveform-background-border","ptt-ooc-background","ptt-ooc-mic-border-color","ptt-ooc-mic-fill-color","ptt-ooc-avatar-background","ptt-gray","ptt-gray-badge","ptt-green","ptt-text","quick-action-button","quick-action-button-background","reaction-button","round-entry-point-background-color","quoted-message-text","rich-text-panel-background","search-container-background","search-input-background","search-input-container-background","search-input-container-background-active","secondary","secondary-light","secondary-lighter","secondary-stronger","security-icon-background","security-icon-lock","security-icon-shield","shadow","shadow-light","spinner-default","spinner-highlight","spinner-incoming","spinner-outgoing","startup-background","startup-icon","status-background","status-background-hover","status-primary","status-secondary","status-ring-read","status-ring-unread","status-thumbnail-background","status-link-preview-title","status-link-preview-secondary","sticker-button-background","success","suspicious-background","system-message-background","system-message-text","teal-pale","text-action","text-muted","thumb-border-active","thumb-border-viewer-active","toast-background","tooltip-text","tooltip-background","unread-background","unread-bar-background","unread-timestamp","unread-marker-background","unread-marker-text","vcard-placeholder-background","vcard-placeholder-background-deeper","video-player-background","pip-player-background","video-primary","voip-primary","voip-disabled-background","wallpaper-background","wallpaper-thumb-border-active","wallpaper-thumb-border-hover","reactions-bubble-border","reactions-bubble-counter","reactions-details-background","reactions-tray-background","reactions-details-background-hover","reactions-tray-active-round-background","reactions-picker-bg","svg-gray-button","reactions-panel-background-color","reactions-panel-search-background-color","reactions-search-color","reactions-menu-tab-separator","text-primary-strong","text-secondary-lighter","text-medium-emphasis","icon-high-emphasis","switch-button-color","switch-button-checked-color","switch-button-disabled-color","switch-track-color","switch-track-checked-color","switch-track-disabled-color","announcement-speaker-background","communities-green","qc-button-border","qc-button-border-active","qc-quantity-label-highlighted-background","drawer-loading-background","multi-skin-tone-picker-emoji-selected-background","pnh-nux","forward-caption-preview-background","forward-caption-preview-content","bot-typing-indicator-background-color","bot-suggestion-background-color","bot-command-pill-background-color","bot-command-text","icon-in-cell-frame-background","block-quote-text","desktop-upsell-call-btn","date-picker-background-color","date-picker-today-background-color","date-picker-header-background-color","date-picker-text-color","date-picker-today-text-color","date-picker-nav-text-color","carousel-button-background-color","carousel-button-border-color","carousel-button-shadow-color","carousel-button-chevron-color","carousel-button-background-color-active","carousel-button-background-color-hover","carousel-button-shadow-color-hover","navbar-background","navbar-separator","navbar-border","pill-background","pill-text","comments-modal-background","text-disabled"];d=[].concat(b,c,["beige","black","blue-light","blue-ocean","blue-sky","blue-sky-light","blue","dark","green-deep","green","green-accent","orange","pale-blue-green","pale-green","pale-yellow","red-light","red","teal-light","teal-lighter","teal","white","yellow","gray-30","gray-60","gray-70","gray-100","gray-150","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-850","gray-900","wds-pink-50","wds-pink-75","wds-pink-100","wds-pink-200","wds-pink-300","wds-pink-400","wds-pink-500","wds-pink-600","wds-pink-700","wds-pink-800","wds-red-50","wds-red-75","wds-red-100","wds-red-200","wds-red-300","wds-red-400","wds-red-500","wds-red-600","wds-red-700","wds-red-800","wds-orange-50","wds-orange-75","wds-orange-100","wds-orange-200","wds-orange-300","wds-orange-400","wds-orange-500","wds-orange-600","wds-orange-700","wds-orange-800","wds-yellow-50","wds-yellow-75","wds-yellow-100","wds-yellow-200","wds-yellow-300","wds-yellow-400","wds-yellow-500","wds-yellow-600","wds-yellow-700","wds-yellow-800","wds-green-50","wds-green-75","wds-green-100","wds-green-200","wds-green-300","wds-green-400","wds-green-500","wds-green-600","wds-green-700","wds-green-800","wds-emerald-50","wds-emerald-75","wds-emerald-100","wds-emerald-200","wds-emerald-300","wds-emerald-400","wds-emerald-500","wds-emerald-600","wds-emerald-700","wds-emerald-800","wds-teal-50","wds-teal-75","wds-teal-100","wds-teal-200","wds-teal-300","wds-teal-400","wds-teal-500","wds-teal-600","wds-teal-700","wds-teal-800","wds-sky-blue-50","wds-sky-blue-75","wds-sky-blue-100","wds-sky-blue-200","wds-sky-blue-300","wds-sky-blue-400","wds-sky-blue-500","wds-sky-blue-600","wds-sky-blue-700","wds-sky-blue-800","wds-cobalt-50","wds-cobalt-75","wds-cobalt-100","wds-cobalt-200","wds-cobalt-300","wds-cobalt-400","wds-cobalt-500","wds-cobalt-600","wds-cobalt-700","wds-cobalt-800","wds-purple-50","wds-purple-75","wds-purple-100","wds-purple-200","wds-purple-300","wds-purple-400","wds-purple-500","wds-purple-600","wds-purple-700","wds-purple-800","wds-cool-gray-50","wds-cool-gray-75","wds-cool-gray-100","wds-cool-gray-200","wds-cool-gray-300","wds-cool-gray-400","wds-cool-gray-500","wds-cool-gray-600","wds-cool-gray-700","wds-cool-gray-800","wds-cool-gray-900","wds-cool-gray-1000","wds-white-alpha-05","wds-white-alpha-10","wds-white-alpha-20","wds-white-alpha-30","wds-white-alpha-40","wds-white-alpha-50","wds-white-alpha-60","wds-white-alpha-70","wds-white-alpha-80","wds-white-alpha-90","wds-cool-gray-alpha-05","wds-cool-gray-alpha-10","wds-cool-gray-alpha-20","wds-cool-gray-alpha-30","wds-cool-gray-alpha-40","wds-cool-gray-alpha-50","wds-cool-gray-alpha-60","wds-cool-gray-alpha-70","wds-cool-gray-alpha-80","wds-cool-gray-alpha-90","wds-cool-gray-200-alpha-60","wds-cool-gray-600-alpha-50","wds-cool-gray-600-alpha-85","wds-transparent","wds-black","wds-white"]);var h=Array.from(new Set(d));function i(a){var b=document.createElement("style");b.textContent=a;(a=document.head)==null?void 0:a.prepend(b)}function a(){var a="\n .hotpink, .hotpink.dark, .hotpink.light{\n "+h.map(function(a){return"--"+a+": "+g+";"}).join("\n")+"\n }\n ";i(a)}f.enableHotPink=a}),66); __d("WAWebDesktopUpsellQRCodeLargeBanner.react",["WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellUtils","WAWebFlex.react","WAWebNativeAppDownloadButton.react","WAWebStreamModel","WAWebUserPrefsKeys","WAWebUserPrefsStore","WAWebWamEnumWebcNativeUpsellCtaSourceType","bx","react","stylex","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={iconWrapperMacos:{minWidth:"x1gvwcb",display:"x1lliihq x1y0vd2r",$$css:!0},iconWrapperWindows:{minWidth:"xz1xa0y",display:"x1lliihq x1y0vd2r",$$css:!0},bannerBtn:{$$css:!0}};function a(){var a,b=d("WAWebDesktopUpsellUtils").getUserDesktopOs();d("useWAWebListener").useListener(d("WAWebStreamModel").Stream,"change:mode",function(){c("WAWebUserPrefsStore").set(d("WAWebUserPrefsKeys").KEYS.DESKTOP_UPSELL_USER_HAS_SEEN_LARGE_BANNER,!0)},{once:!0});return j.jsx((a=d("WAWebFlex.react")).FlexItem,{align:"center",justify:"center",className:"x1lxuw3u xp8fpb xjcfk4l x10zrdz0 xp22k0r x178xt8z xm81vs4 xso031l xy80clv x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xpypsur xvi2zh2 x249io5 x1es969t x12peec7 x4i7bpe x1qb7uk6 x1sgudl8 x3hkoc4 xui2vq6 x9y6a88 x12nadjy x17dzqc7 x1yfuvwo",children:j.jsxs(a.FlexRow,{align:"center",justify:"center",className:"x5r5g8c",children:[j.jsxs(a.FlexColumn,{alignSelf:"stretch",grow:1,justify:"all",className:"xxbr6pl x1qv5ay6",children:[j.jsxs(a.FlexColumn,{children:[j.jsx(a.FlexItem,{className:"x579bpy xo1l8bm xcgk4ki x1hql6x6 xod5an3 x1sscgiv",children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellDownloadWhatsAppTitle()}),j.jsx(a.FlexItem,{className:"x1hql6x6 x1c3i2sq x1o2sk6j x1lbr73m",children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellIntroPanelText()})]}),j.jsx(a.FlexItem,{className:(i||(i=c("stylex")))([k.bannerBtn]),align:"start",justify:"end",children:j.jsx(c("WAWebNativeAppDownloadButton.react"),{sourceType:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.QR_LARGE_BANNER})})]}),j.jsx(d("WAWebFlex.react").FlexItem,{xstyle:b===d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS?k.iconWrapperMacos:k.iconWrapperWindows,children:b===d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS?j.jsx("img",{src:c("bx").getURL(c("bx")("31843")),width:360,height:207,alt:""}):j.jsx("img",{src:c("bx").getURL(c("bx")("31844")),width:412,height:206,alt:""})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebWebLoginDesktopUpsellIllustrationIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="web-login-desktop-upsell-illustration";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=54;m=72;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 72 54",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsxs("g",{clipPath:"url(#a)",children:[j.jsx("path",{fill:"#fff",style:{fill:"#fff"},d:"M0 0h72v54H0z"}),j.jsx("path",{d:"M8.75 15A6.25 6.25 0 0 1 15 8.75h42A6.25 6.25 0 0 1 63.25 15v37.25H8.75z",fill:"#E6FFDA",stroke:"#111B21",style:{fill:"color(display-p3 .902 1 .8549)",stroke:"color(display-p3 .0667 .1059 .1294)"},strokeWidth:1.5,strokeMiterlimit:10}),j.jsx("path",{d:"M71.22 44.75a9.25 9.25 0 0 1-9.22 8.5H10a9.25 9.25 0 0 1-9.22-8.5z",fill:"#E6FFDA",stroke:"#111B21",style:{fill:"color(display-p3 .902 1 .8549)",stroke:"color(display-p3 .0667 .1059 .1294)"},strokeWidth:1.5,strokeMiterlimit:10}),j.jsx("rect",{x:21.75,y:.75,width:49.5,height:34.5,rx:6.25,fill:"#FCF5EB",stroke:"#111B21",style:{fill:"color(display-p3 .9882 .9608 .9216)",stroke:"color(display-p3 .0667 .1059 .1294)"},strokeWidth:1.5,strokeMiterlimit:10}),j.jsx("path",{d:"M43.39 14.955c-.654-1.334 2.328-2.92 2.505-3.648l-.007-.01c.041-.16 0-.318-.047-.476a10.55 10.55 0 0 0-2.25-4.09c-.26-.286-.549-.572-.92-.683-.245-.069-.507-.055-.755-.014-2.124.335-3.598 2.363-3.86 4.438-.263 2.076.445 4.166 1.3 6.11 1.838 4.176 4.592 8.235 8.728 10.376 1.474.766 3.176 1.266 4.786.942 1.083-.218 2.183-1.007 2.128-2.08-.03-.51-.31-.976-.582-1.42-.616-.986-1.226-1.973-1.842-2.955-.31-.497-.68-1.038-1.266-1.156-1.215-.241-2.036 1.545-3.265 1.383-.483-.065-4.256-5.806-4.653-6.717",fill:"#25D366",stroke:"#111B21",style:{fill:"color(display-p3 .1451 .8275 .4)",stroke:"color(display-p3 .0667 .1059 .1294)"},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),j.jsx("defs",{children:j.jsx("clipPath",{id:"a",children:j.jsx("path",{fill:"#fff",style:{fill:"#fff"},d:"M0 0h72v54H0z"})})})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.WebLoginDesktopUpsellIllustrationIcon=a}),98); __d("WAWebDesktopUpsellQRCodeSlimBanner.react",["WAWebDesktopUpsellCommonStrings","WAWebFlex.react","WAWebNativeAppDownloadButton.react","WAWebWamEnumWebcNativeUpsellCtaSourceType","WAWebWebLoginDesktopUpsellIllustrationIcon.react","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={icon:{width:"xni59qk",$$css:!0},iconContainer:{minWidth:"x187xtus",$$css:!0},bannerAltBtn:{display:"x1s85apg","@media screen and (max-width: 980px)_display":"x1a8s9u4","@media screen and (max-width: 980px)_width":"xbm95ob",$$css:!0},bannerAltBtnTestVariant:{display:"x1s85apg","@media screen and (max-width: 900px)_display":"xe8os0b","@media screen and (max-width: 900px)_width":"xd80u2d",$$css:!0},bannerBtn:{"@media screen and (max-width: 980px)_display":"x1y0vd2r",$$css:!0},bannerBtnTestVariant:{"@media screen and (max-width: 900px)_display":"x1qh72ku",$$css:!0}};function a(a){a=a.testVariant;return a?j.jsx(l,{}):j.jsx(d("WAWebFlex.react").FlexItem,{align:"center",justify:"center",className:"x1lxuw3u xp8fpb xjcfk4l x10zrdz0 xp22k0r x178xt8z xm81vs4 xso031l xy80clv x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xpypsur xvi2zh2 x249io5 x1es969t x12peec7 xui2vq6 xga622f x12nadjy xzyqfp1 x1yfuvwo x1p5oq8j x1qb7uk6 xwxc41k x3hkoc4",children:j.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:[j.jsx(d("WAWebFlex.react").FlexItem,{shrink:0,xstyle:k.iconContainer,children:j.jsx(d("WAWebWebLoginDesktopUpsellIllustrationIcon.react").WebLoginDesktopUpsellIllustrationIcon,{xstyle:k.icon})}),j.jsxs(d("WAWebFlex.react").FlexColumn,{grow:1,className:"xbbxn1n xxbr6pl xaoenhb x1qv5ay6",children:[j.jsx(d("WAWebFlex.react").FlexItem,{className:"xngnso2 xo1l8bm xggjnk3 x1hql6x6 x1e56ztr",children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellDownloadWhatsAppTitle()}),j.jsx(d("WAWebFlex.react").FlexItem,{className:"x1hql6x6 x1jchvi3 x19v9tvf x1y0vd2r",children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellIntroPanelText()}),j.jsx(d("WAWebFlex.react").FlexItem,{shrink:0,className:(i||(i=c("stylex")))([k.bannerAltBtn]),align:"center",justify:"center",children:j.jsx(c("WAWebNativeAppDownloadButton.react"),{sourceType:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.QR_SLIM_BANNER,inline:!0})})]}),j.jsx(d("WAWebFlex.react").FlexItem,{shrink:0,className:i([k.bannerBtn]),children:j.jsx(c("WAWebNativeAppDownloadButton.react"),{sourceType:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.QR_SLIM_BANNER})})]})})}a.displayName=a.name+" [from "+f.id+"]";function l(){var a;return j.jsx((a=d("WAWebFlex.react")).FlexItem,{align:"center",justify:"center",className:"xy296fx x1p5oq8j xs022h5 xwxc41k x8aayfw xp8fpb xjcfk4l x10zrdz0 xp22k0r x178xt8z xm81vs4 xso031l xy80clv x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xpypsur xvi2zh2 x249io5 x1es969t x12peec7 x91od0 xcigqdy xk7ajd6 x15jxszr x1a9o7r2",children:j.jsxs(a.FlexRow,{align:"center",justify:"center",columnGap:24,children:[j.jsx(a.FlexColumn,{shrink:0,children:j.jsx(d("WAWebWebLoginDesktopUpsellIllustrationIcon.react").WebLoginDesktopUpsellIllustrationIcon,{width:64})}),j.jsxs(a.FlexColumn,{grow:1,rowGap:4,children:[j.jsx(a.FlexRow,{className:"x1c3i2sq xk50ysn x1o2sk6j x1hql6x6",children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellDownloadWhatsAppTitle()}),j.jsx(a.FlexRow,{className:"x1hql6x6 x1jchvi3 xo1l8bm x1fc57z9 x1qh72ku",children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellIntroPanelText()}),j.jsx(a.FlexItem,{shrink:0,className:(i||(i=c("stylex")))([k.bannerAltBtnTestVariant]),align:"center",justify:"start",children:j.jsx(c("WAWebNativeAppDownloadButton.react"),{sourceType:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.QR_SLIM_BANNER,inline:!0})})]}),j.jsx(d("WAWebFlex.react").FlexItem,{shrink:0,className:i([k.bannerBtnTestVariant]),children:j.jsx(c("WAWebNativeAppDownloadButton.react"),{sourceType:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.QR_SLIM_BANNER})})]})})}l.displayName=l.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebUserPrefsDeviceCapabilities",["WAProtobufsDeviceCapabilities.pb","WAWebUserPrefsKeys","WAWebUserPrefsStore"],(function(a,b,c,d,e,f,g){var h={chatLockSupportLevel:d("WAProtobufsDeviceCapabilities.pb").DeviceCapabilities$ChatLockSupportLevel.NONE};function i(a){a={chatLockSupportLevel:a.chatLockSupportLevel!=null?a.chatLockSupportLevel:h.chatLockSupportLevel};return a}function j(a){a=(a=typeof a==="object"&&a!=null&&typeof a.chatLockSupportLevel==="number"?d("WAProtobufsDeviceCapabilities.pb").DeviceCapabilities$ChatLockSupportLevel.cast(a.chatLockSupportLevel):null)!=null?a:h.chatLockSupportLevel;return{chatLockSupportLevel:a}}function k(a){a=i(a);c("WAWebUserPrefsStore").setUser(d("WAWebUserPrefsKeys").UserPrefs.DeviceCapabilities,a,{shouldWriteToIdb:!1})}function l(){var a=c("WAWebUserPrefsStore").getUser(d("WAWebUserPrefsKeys").UserPrefs.DeviceCapabilities);return j(a)}function a(a){var b=l();b=babelHelpers["extends"]({},b,a);k(b);return b}g.mergeDeviceCapabilitiesToStorage=a}),98); __d("WAWebDeviceCapabilitiesBootstrap",["WAProtobufsDeviceCapabilities.pb","WAWebDeviceCapabilitiesSync","WAWebUserPrefsDeviceCapabilities","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h=!1;function a(){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(h)return;h=!0;var a={chatLockSupportLevel:d("WAProtobufsDeviceCapabilities.pb").DeviceCapabilities$ChatLockSupportLevel.FULL};a=d("WAWebUserPrefsDeviceCapabilities").mergeDeviceCapabilitiesToStorage(a);return c("WAWebDeviceCapabilitiesSync").sendMutation(a)});return i.apply(this,arguments)}g.bootstrapDeviceCapabilities=a}),98); __d("WAWebWdsPictoMovePhoneIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="wds-picto-move-phone";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=88;m=131;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 131 88",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M55.4 46.8c1.5 0 2.8-1.2 2.8-2.8s-1.2-2.8-2.8-2.8-2.8 1.2-2.8 2.8 1.3 2.8 2.8 2.8zm10.2 0c1.5 0 2.8-1.2 2.8-2.8s-1.2-2.8-2.8-2.8c-1.5 0-2.8 1.2-2.8 2.8s1.3 2.8 2.8 2.8zm10.2 0c1.5 0 2.8-1.2 2.8-2.8s-1.2-2.8-2.8-2.8S73 42.5 73 44s1.3 2.8 2.8 2.8zm36.1-34.1H87.5c-2.6 0-4.6 2.1-4.6 4.7v53.2c0 2.6 2.1 4.7 4.6 4.7h24.4c2.6 0 4.6-2.1 4.6-4.7V17.4c.1-2.6-2-4.7-4.6-4.7z",style:{fill:"#e6ffda",stroke:"#111b21",strokeWidth:1.5,strokeMiterlimit:10}}),j.jsx("path",{d:"M43 12.7H18.6c-2.6 0-4.6 2.1-4.6 4.7v53.2c0 2.6 2.1 4.7 4.6 4.7H43c2.6 0 4.6-2.1 4.6-4.7V17.4c.1-2.6-2-4.7-4.6-4.7z",style:{fill:"#25d366",stroke:"#111b21",strokeWidth:1.5,strokeLinecap:"round",strokeMiterlimit:10}}),j.jsx("path",{d:"M43 19.8H18.7c-.8 0-1.5.7-1.5 1.5V66c0 .8.7 1.5 1.5 1.5H43c.8 0 1.5-.7 1.5-1.5V21.3c0-.8-.7-1.5-1.5-1.5zm-16.9 51h9.5M95 17.1h9.4",style:{strokeLinecap:"round",fill:"none",stroke:"#111b21",strokeWidth:1.5,strokeMiterlimit:10}}),j.jsx("path",{d:"M83.3 21.3h32.9M83.3 63.9h32.9m-16.5 7.9c1.2 0 2.1-1 2.1-2.2s-1-2.2-2.1-2.2c-1.2 0-2.1 1-2.1 2.2s.9 2.2 2.1 2.2z",style:{fill:"none",stroke:"#111b21",strokeWidth:1.5,strokeMiterlimit:10}})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.WdsPictoMovePhoneIcon=a}),98); __d("WAWebDeviceSwitchingPopup.react",["fbt","WAWebChangePhoneIcon.react","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebFlex.react","WAWebModal.react","WAWebModalManager","WAWebText.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebWdsPictoMovePhoneIcon.react","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={hyphen:{textAlign:"x2b8uid",fontWeight:"xk50ysn",fontSize:"x579bpy",color:"xzwifym",$$css:!0}};function a(a){a=a.otpCode;var b=function(){d("WAWebModalManager").ModalManager.close()};a=a.split("");var e=a.slice(0,3);a=a.slice(3);var f=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?k.jsx(d("WAWebWdsPictoMovePhoneIcon.react").WdsPictoMovePhoneIcon,{}):k.jsx(d("WAWebChangePhoneIcon.react").ChangePhoneIcon,{});e=k.jsx("div",{dir:"ltr",children:k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:[e.map(function(a,b){return k.jsx(m,{content:a},b+":"+a)}),k.jsx("span",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(l.hyphen,d("WAWebUISpacing").uiPadding.top20,d("WAWebUISpacing").uiPadding.horiz8),{"aria-hidden":"true",children:"-"})),a.map(function(a,b){return k.jsx(m,{content:a},b+3+":"+a)})]})});return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:b,okText:c("WAWebFbtCommon")("OK"),type:d("WAWebModal.react").ModalTheme.InviteNew,buttonAlign:"center",children:k.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:d("WAWebUISpacing").uiPadding.all24,children:[f,k.jsx(d("WAWebText.react").WAWebTextLarge,{paddingTop:24,paddingBottom:24,weight:"medium",children:h._(/*BTDS*/"__JHASH__esyUrtJoMLK__JHASH__")}),k.jsx("div",babelHelpers["extends"]({className:"x1jchvi3"},{children:h._(/*BTDS*/"__JHASH__aiJRoJzlrT6__JHASH__")})),e]})})}a.displayName=a.name+" [from "+f.id+"]";function m(a){a=a.content;return k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[d("WAWebUISpacing").uiMargin.horiz14,d("WAWebUISpacing").uiPadding.top20],children:k.jsx("span",babelHelpers["extends"]({className:"x2b8uid xk50ysn x1q74xe4 x1jzgpr8 xzwifym"},{children:a}))})}m.displayName=m.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebDeviceSwitchAction",["WAWebDeviceSwitchingPopup.react","WAWebModalManager","WAWebNotificationBackend","WAWebUserPrefsMeUser","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=d("WAWebUserPrefsMeUser").getMeUser();b={wid:b,otpCode:a};void d("WAWebNotificationBackend").showDeviceSwitchNotification(b);d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebDeviceSwitchingPopup.react"),{otpCode:a}))}g.handleOpenDeviceSwitchCode=a}),98); __d("WAWebDeviceSwitchingBridgeApi",["WAWebDeviceSwitchAction"],(function(a,b,c,d,e,f,g){a={showDeviceSwitchOtp:function(a){a=a.otpCode;d("WAWebDeviceSwitchAction").handleOpenDeviceSwitchCode(a)}};g.DeviceSwitchingBridgeApi=a}),98); __d("WAWebKeyboardRotateFocus.react",["WAWebFocusIndicator","WAWebFocusTracer","WAWebKeyboardConstants","WAWebKeyboardTabUtils","WAWebUseIsKeyboardUser","react","useMergeRefs"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useRef;function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.focusType,f=k(null);b=c("useMergeRefs")(b,f);var g=c("WAWebUseIsKeyboardUser")(),h=g.setIsKeyboardUser;g=function(a){if(a.metaKey||a.ctrlKey)return;var b=f.current,g;a.key===d("WAWebKeyboardConstants").KEYBOARD_EVENT_KEY_VALUE.TAB?(a.stopPropagation(),a.preventDefault(),h(!0),c("WAWebFocusIndicator").shouldIndicateFocus(),b!=null&&(g=d("WAWebKeyboardTabUtils").getNextTabbableElement(b,a.shiftKey?d("WAWebKeyboardTabUtils").TabDirection.BACKWARD:d("WAWebKeyboardTabUtils").TabDirection.FORWARD,e))):b!=null&&b===document.activeElement&&(g=d("WAWebKeyboardTabUtils").getNextTabbableElement(b,d("WAWebKeyboardTabUtils").TabDirection.FORWARD,e,function(a){return a.nodeName.toLowerCase()==="input"}));if(g==null)return;c("WAWebFocusIndicator").shouldIndicateFocus();l(g)};return j.jsx("div",{ref:b,style:a.style,className:"x10l6tqk x13vifvy xds687c x1ey2m1c x17qophe",onKeyDown:g,tabIndex:-1,children:a.children})}a.displayName=a.name+" [from "+f.id+"]";b=a;function l(a){c("WAWebFocusTracer").focus(a)}g.RotateFocus=b}),98); __d("WAWebDrawerManager.react",["WATypeUtils","WAUpperFirst","WAWebDrawerContext","WAWebDrawerManager","WAWebErrorBoundary.react","WAWebFocusTracer","WAWebKeyboardRotateFocus.react","WAWebKeyboardTabUtils","WAWebNonEmptyString","WAWebUimContext","WAWebUimUie.react","WAWebVelocityTransitionGroup","lodash","react","uniqueID","useWAWebListener","useWAWebUiIdle"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useCallback,l=b.useRef,m=b.useState,n={container:{position:"x10l6tqk",top:"x13vifvy",end:"xds687c",bottom:"x1ey2m1c",start:"x17qophe",left:null,right:null,$$css:!0},leftBorder:{borderStartWidth:"xy80clv",borderStartStyle:"x26u7qi",borderStartColor:"x1ux35ld",$$css:!0}},o={LEFT:"drawer-left",MID:"slide-up",NONE:"none",RIGHT:"slide-left"},p={LEFT:"left",MID:"mid",RIGHT:"right"},q=function(a){switch(a){case"left":return o.LEFT;case"mid":return o.MID;default:a;return o.RIGHT}};function a(a){var b,e,f=a.direction,g=a.onDrawerIn,h=a.onDrawerOut,i=a.onDrawerAnimationComplete,r=c("useWAWebUiIdle")(),s=l(null),t=l(null),u=l(null),v=l(!1),w=m(void 0),x=w[0],y=w[1];w=m(!1);var z=w[0],A=w[1];w=m(null);var B=w[0],C=w[1];w=m(function(){return q(a.direction)});var D=w[0],E=w[1];w=m(void 0);var F=w[0],G=w[1];w=m(void 0);var H=w[0],I=w[1];w=m(!1);var J=w[0],K=w[1];w=m(void 0);var L=w[0],M=w[1];w=m(d("WAWebDrawerContext").undefinedDrawerContext);var N=w[0],O=w[1];w=m(d("WAWebKeyboardTabUtils").FocusType.CUSTOM);var P=w[0],Q=w[1];w=function(a){O(a)};var R=function(b,e){e=e===void 0?{}:e;var h=e.transition,i=h===void 0?q(f):h;h=e.uim;var j=e.noFocus,k=e.onEnterAnimationComplete,l=e.newDrawerContext;l=l===void 0?d("WAWebDrawerContext").undefinedDrawerContext:l;var m=e.focusType,a=e.disableRotateFocus;e=e.focusOnUnMount;e=e===void 0?!1:e;var n=d("WAWebNonEmptyString").asMaybeNonEmptyString(c("uniqueID")("DrawerManager"+f)),p=null;e&&(p=document.activeElement);t.current=p;if(!v.current&&x){if(x.key!=null&&c("lodash").isEqual(x.key,b.key))return;u.current=o.NONE;y(b);C(n);E(i);G(h);I(j);M(k);O(l);Q(m);K(a);r(function(){u.current=i});A(e)}else g&&g(),y(b),C(n),E(i),G(h),I(j),M(k),O(l),Q(m),K(a),A(e)},S=function(a){a(v.current===!0?!1:!!x)},T=function(a){if(a!=null&&B!==a)return;if(!x)return;h&&h();v.current=!0;y(void 0);O(d("WAWebDrawerContext").undefinedDrawerContext);r(function(){v.current=!1});if(z){a=t==null?void 0:t.current;a&&c("WAWebFocusTracer").focus(a)}d("WAWebDrawerManager").DrawerManager.trigger("drawer_"+f+"_closed")},U=function(){if(!s.current)return;var a=s.current.getElement();if(!a||a.contains(document.activeElement))return;c("WAWebFocusTracer").focus(a)},V=function(a){var b=i;b&&b();if(L===void 0&&H===void 0)return;x&&a===B&&d("WATypeUtils").isFunction(L)&&L()},W=function(){var a;a=(a=s.current)==null?void 0:a.getElement();if(!a)return;a=d("WAWebKeyboardTabUtils").getNextTabbableElement(a);a&&c("WAWebFocusTracer").focus(a)};(b=d("useWAWebListener")).useListener((e=d("WAWebDrawerManager")).DrawerManager,"open_drawer_"+f,R);b.useListener(e.DrawerManager,"exists_drawer_"+f,S);b.useListener(e.DrawerManager,"close_drawer_"+f,T);b.useListener(e.DrawerManager,"update_context_"+f,w);b.useListener(e.DrawerManager,"focus_drawer_"+f,W);var X=function(){return a.animationDisabled===!0?"none":u.current||D},Y;R=k(function(){T(B)},[T,B]);if(x){S=J===!0?"div":d("WAWebKeyboardRotateFocus.react").RotateFocus;Y=j.jsx(d("WAWebUimUie.react").UIE,{displayName:"Drawer"+c("WAUpperFirst")(f),escapable:!0,ref:s,requestFocus:H===!0?null:U,requestDismiss:R,children:j.jsx(S,{style:{height:"100%"},focusType:P,children:j.jsx(d("WAWebDrawerContext").DrawerContext.Provider,{value:N,children:j.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"drawer-manager-"+f,type:"fatal",children:x})})})},B)}var Z=Y!=null&&f===p.MID;return j.jsx(c("WAWebUimContext").Consumer,{children:function(a){return j.jsx(c("WAWebUimContext").Provider,{value:F||a,children:j.jsx(c("WAWebVelocityTransitionGroup"),{xstyle:[n.container,Z&&n.leftBorder],transitionName:X(),onAnimationComplete:function(){return V(B)},displayName:"DrawerManager",children:Y})})}})}a.displayName=a.name+" [from "+f.id+"]";g.Dir=p;g.DrawerManagerComponent=a}),98); __d("WAWebHamburgerIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="hamburger";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M4 18C3.44772 18 3 17.5523 3 17C3 16.4477 3.44772 16 4 16H20C20.5523 16 21 16.4477 21 17C21 17.5523 20.5523 18 20 18H4ZM4 13C3.44772 13 3 12.5523 3 12C3 11.4477 3.44772 11 4 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H4ZM4 8C3.44772 8 3 7.55228 3 7C3 6.44772 3.44772 6 4 6H20C20.5523 6 21 6.44772 21 7C21 7.55228 20.5523 8 20 8H4Z",fill:"currentColor",fillOpacity:.7})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.HamburgerIcon=a}),98); __d("WAWebExpandNavbarToggleNavBarItem.react",["fbt","WAWebHamburgerIcon.react","WAWebNavBarItem.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.isNavBarExpanded;a=a.onToggleNavBarExpansion;b=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:j.jsx(d("WAWebHamburgerIcon.react").HamburgerIcon,{}),title:h._(/*BTDS*/"__JHASH__IhBr9UzMknz__JHASH__"),testid:void 0,isExpanded:b,isActive:!1,onClick:a});return b}a.displayName=a.name+" [from "+f.id+"]";g.ExpandNavbarToggleNavBarItem=a}),226); __d("WAWebMetaBotNavBarItem.react",["fbt","WAWebBotFrontendUtils","WAWebBotGating","WAWebChatEntryPoint","WAWebDrawerManager","WAWebFlex.react","WAWebImg.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebUISpacing","WAWebWamEnumWebcNavbarItemLabel","bx","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={iconWrapper:{width:"x17z2i9w",height:"x17rw0jw",$$css:!0}};function a(a){var b=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=function(){void d("WAWebBotFrontendUtils").openMetaBotChat(d("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut),d("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),e(d("WAWebNavBarTypes").NavBarItems.Chats),d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.CHATS)};var f=h._(/*BTDS*/"__JHASH__SHQfr2Qd8JF__JHASH__");f=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:j.jsx(d("WAWebFlex.react").FlexColumn,{grow:1,align:"center",justify:"center",xstyle:k.iconWrapper,children:j.jsx(c("WAWebImg.react"),{src:c("bx").getURL(c("bx")("14943")),style:{width:20,height:20},draggable:!1})}),spacingXstyle:d("WAWebUISpacing").uiPadding.all9,text:f,title:f,testid:void 0,isExpanded:b,isActive:!1,onClick:a});return d("WAWebBotGating").isBotShortcutEntryPointEnabled()&&f}a.displayName=a.name+" [from "+f.id+"]";g.MetaBotNavBarItem=a}),226); __d("WAWebOpenLastActiveNewsletterAction",["Promise","WALogger","WAWebCmd","WAWebDrawerManager","WAWebNavBarEmptyState.react","WAWebNavBarTypes","WAWebNewsletterCollection","WAWebSideNavButtonsActivityModel","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[debug] openLastActiveNewsletter: unknown error"]);j=function(){return a};return a}var k=i||c("react"),l=function(){d("WAWebDrawerManager").DrawerManager.openDrawerMid(k.jsx(d("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:d("WAWebNavBarTypes").NavBarItems.Newsletters}),{transition:"none",disableRotateFocus:!0})};a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=d("WAWebSideNavButtonsActivityModel").getLastActiveNewsletter();if(a==null){l();return(h||(h=b("Promise"))).resolve(!1)}try{a=c("WAWebNewsletterCollection").get(a);if(a==null){l();return(h||(h=b("Promise"))).resolve(!1)}d("WAWebDrawerManager").DrawerManager.closeDrawerMid();return d("WAWebCmd").Cmd.openChatFromUnread(a,d("WAWebSideNavButtonsActivityModel").getLastActiveNewsletterEntryPoint())}catch(a){d("WALogger").DEV(j()).devConsole(a);return(h||(h=b("Promise"))).resolve(!1)}});return function(){return a.apply(this,arguments)}}();g.openLastActiveNewsletter=a}),98); __d("useWAWebIsNewsletterUiEnabled",["WAWebCmd","WAWebNewsletterGatingUtils","WAWebPrimaryFeaturesModel","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g){function a(){return c("useWAWebEventTargetValue")([d("WAWebPrimaryFeaturesModel").PrimaryFeatures,d("WAWebCmd").Cmd],["change:newsletter","on_ab_props_update"],function(){return d("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&d("WAWebNewsletterGatingUtils").isNewsletterEnabledOnPrimary()})}g["default"]=a}),98); __d("WAWebNewslettersNavBarItem.react",["fbt","WATimeUtils","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebNewsletterCollection","WAWebNewsletterOutlineIcon.react","WAWebNewsletterTabIcon.react","WAWebOpenLastActiveNewsletterAction","WAWebOpenNewsletterTab","WAWebSideNavButtonsActivityModel","WAWebUIRefreshGatingUtils","WAWebUnreadActivityIndicator.react","WAWebUserPrefsNewsletter","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebEventTargetValue","useWAWebIsNewsletterUiEnabled"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,e=a.isNavBarExpanded,f=a.updateActiveNavBarItem;a=c("useWAWebIsNewsletterUiEnabled")();var g=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Newsletters)return;f(d("WAWebNavBarTypes").NavBarItems.Newsletters);d("WAWebOpenNewsletterTab").openNewsletterTab();d("WAWebUserPrefsNewsletter").setNewsletterTabLastSeenTimestamp(d("WATimeUtils").unixTime());c("WAWebNewsletterCollection").trigger("newsletter_tab_close");d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.NEWSLETTERS);d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&(d("WAWebSideNavButtonsActivityModel").setLastActiveButton(d("WAWebNavBarTypes").NavBarItems.Newsletters),void d("WAWebOpenLastActiveNewsletterAction").openLastActiveNewsletter())},i=b===d("WAWebNavBarTypes").NavBarItems.Newsletters?j.jsx(d("WAWebNewsletterTabIcon.react").NewsletterTabIcon,{directional:!0}):j.jsx(d("WAWebNewsletterOutlineIcon.react").NewsletterOutlineIcon,{directional:!0}),k=c("useWAWebEventTargetValue")(c("WAWebNewsletterCollection"),"add change remove newsletter_tab_close",function(){return c("WAWebNewsletterCollection").hasAnyUnreadSinceGivenTimestamp(d("WAWebUserPrefsNewsletter").getNewsletterTabLastSeenTimestamp())});k=k?j.jsx(d("WAWebUnreadActivityIndicator.react").UnreadActivityIndicator,{}):null;var l=h._(/*BTDS*/"__JHASH__fuYpEH3JPqz__JHASH__");i=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:i,text:l,inlineActivityIndicator:k,inlineActivityIndicatorType:d("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:l,testid:void 0,isExpanded:e,isActive:b===d("WAWebNavBarTypes").NavBarItems.Newsletters,onClick:g});return a&&i}a.displayName=a.name+" [from "+f.id+"]";g.NewslettersNavBarItem=a}),226); __d("WAWebProfileNavBarItem.react",["fbt","WAWebConnModel","WAWebContactCollection","WAWebDetailImage.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNavBarEmptyState.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebTextStatusCollection","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebWamEnumWebcNavbarItemLabel","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useMemo;function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem,f=l(function(){return d("WAWebUserPrefsMeUser").getMeUser()},[]);a=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Profile)return;var a=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(f),c=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(f),g=d("WAWebContactCollection").ContactCollection.assertGet(f);e(d("WAWebNavBarTypes").NavBarItems.Profile);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:a,profilePicThumb:c,contact:g,conn:d("WAWebConnModel").Conn,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},isInitialStep:!0}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.PROFILE);d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&d("WAWebDrawerManager").DrawerManager.openDrawerMid(k.jsx(d("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:d("WAWebNavBarTypes").NavBarItems.Profile}),{transition:"none",disableRotateFocus:!0})};var g=l(function(){return k.jsx(d("WAWebDetailImage.react").DetailImage,{ariaLabel:h._(/*BTDS*/"__JHASH__dhIyISolv4D__JHASH__"),testId:"navbar-item-profile-photo",theme:"chatlist_header_profile_photo",tabIndex:-1,id:f,size:28})},[f]);g=k.jsx(d("WAWebNavBarItem.react").NavBarItem,{testid:void 0,icon:g,spacingXstyle:d("WAWebUISpacing").uiPadding.all6,text:d("WAWebConnModel").Conn.pushname,title:h._(/*BTDS*/"__JHASH__fxoQBgk5NP0__JHASH__"),onClick:a,isActive:b===d("WAWebNavBarTypes").NavBarItems.Profile,isExpanded:c});return g}a.displayName=a.name+" [from "+f.id+"]";g.ProfileNavBarItem=a}),226); __d("WAWebSettingsNavBarItem.react",["fbt","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNavBarEmptyState.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebSettingsFilledRefreshedIcon.react","WAWebSettingsFlow.react","WAWebSettingsRefreshedIcon.react","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcNavbarItemLabel","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeAccountInfo,c=a.activeNavBarItem,e=a.isNavBarExpanded,f=a.updateActiveNavBarItem;a=function(){if(c===d("WAWebNavBarTypes").NavBarItems.Settings)return;f(d("WAWebNavBarTypes").NavBarItems.Settings);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebSettingsFlow.react").SettingsFlow,{activeAccountInfo:b,onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS);d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&self.setTimeout(function(){d("WAWebDrawerManager").DrawerManager.openDrawerMid(j.jsx(d("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:d("WAWebNavBarTypes").NavBarItems.Settings}),{transition:"none",disableRotateFocus:!0,noFocus:!0})},0)};var g=c===d("WAWebNavBarTypes").NavBarItems.Settings?j.jsx(d("WAWebSettingsFilledRefreshedIcon.react").SettingsFilledRefreshedIcon,{}):j.jsx(d("WAWebSettingsRefreshedIcon.react").SettingsRefreshedIcon,{}),i=h._(/*BTDS*/"__JHASH__GppBl6wcTbk__JHASH__");g=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{testid:void 0,icon:g,text:i,title:i,onClick:a,isActive:c===d("WAWebNavBarTypes").NavBarItems.Settings,isExpanded:e});return g}a.displayName=a.name+" [from "+f.id+"]";g.SettingsNavBarItem=a}),226); __d("useWAWebStatusActivityIndicator",["WAWebCollectionConstants","WAWebContactCollection","WAWebStatusCollection","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h;b=h||d("react");var i=b.useRef,j=b.useState;function a(){var a=j(function(){return d("WAWebStatusCollection").StatusCollection.getUnexpired(!0).some(function(a){return a.unreadCount>0&&!a.contact.statusMute})}),b=a[0],c=a[1],e=i({});a=function(){var a=d("WAWebStatusCollection").StatusCollection.getUnexpired(!0).some(function(a){var b=e.current[a.id.toString()];b=!b||a.t>b;return!a.contact.statusMute&&a.unreadCount>0&&b});a!==b&&c(a)};d("useWAWebListener").useListener(d("WAWebContactCollection").ContactCollection,d("WAWebCollectionConstants").COLLECTION_HAS_SYNCED,a);d("useWAWebListener").useListener(d("WAWebStatusCollection").StatusCollection,"add remove change:unreadCount change:t",a);var f=function(){d("WAWebStatusCollection").StatusCollection.getUnexpired(!0).forEach(function(a){e.current[a.id.toString()]=a.t})};a=function(){f(),c(!1)};return{hasUnread:b,clearUnreadActivity:a}}g.useWAWebStatusActivityIndicator=a}),98); __d("WAWebStatusNavBarItem.react",["fbt","WAWebDrawerManager","WAWebNavBarEmptyState.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebStatusFilledRefreshedIcon.react","WAWebStatusNavigateTo","WAWebStatusRefreshedIcon.react","WAWebUIRefreshGatingUtils","WAWebUnreadActivityIndicator.react","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebStatusActivityIndicator"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=d("useWAWebStatusActivityIndicator").useWAWebStatusActivityIndicator();var f=a.hasUnread,g=a.clearUnreadActivity;a=f?j.jsx(d("WAWebUnreadActivityIndicator.react").UnreadActivityIndicator,{}):null;f=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Status)return;e(d("WAWebNavBarTypes").NavBarItems.Status);d("WAWebStatusNavigateTo").navigateToStatus({openTab:!0,clearUnreadActivity:g});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.STATUS);d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&d("WAWebDrawerManager").DrawerManager.openDrawerMid(j.jsx(d("WAWebNavBarEmptyState.react").NavBarEmptyState,{type:d("WAWebNavBarTypes").NavBarItems.Status}),{transition:"none",disableRotateFocus:!0})};var i=b===d("WAWebNavBarTypes").NavBarItems.Status?j.jsx(d("WAWebStatusFilledRefreshedIcon.react").StatusFilledRefreshedIcon,{}):j.jsx(d("WAWebStatusRefreshedIcon.react").StatusRefreshedIcon,{}),k=h._(/*BTDS*/"__JHASH__52qipdNXs4c__JHASH__");i=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:i,text:k,inlineActivityIndicator:a,inlineActivityIndicatorType:d("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:k,testid:void 0,isExpanded:c,isActive:b===d("WAWebNavBarTypes").NavBarItems.Status,onClick:f});return i}a.displayName=a.name+" [from "+f.id+"]";g.StatusNavBarItem=a}),226); __d("WAWebUseArrowKeyNavigation",["react"],(function(a,b,c,d,e,f,g){var h;b=h||d("react");var i=b.useEffect,j=b.useRef;function k(a){var b=a.prefix;i(function(){var a=Array.from(document.querySelectorAll("[data-"+b+"-item]"));a.forEach(function(a,c){a.setAttribute("data-"+b+"-item-index",c.toString())})})}function a(a){var b=a.prefix,c=j(null),d=j(0);k({prefix:b});var e=function(){var a=c.current;return a==null?[]:Array.from(a.querySelectorAll("[data-"+b+"-item]"))},f=function(){var a;a=(a=c.current)==null?void 0:a.querySelector("[data-"+b+'-item-selected="true"]');if(a){var e=parseInt(a.getAttribute("data-"+b+"-item-index"),10);d.current=e;a.focus()}},g=function(a){var b={next:1,prev:-1},c=e();b=d.current+b[a];if(b<0||b>=c.length)return;h(b)},h=function(a){var b=e();b=b[a];b==null?void 0:b.focus();d.current=a};a=function(a){a=a.target===c.current;a&&f()};return{ref:c,onFocus:a,up:function(){return g("prev")},down:function(){return g("next")},focusItemIndex:h}}g.useArrowKeyNavigation=a}),98); __d("WAWebWindowsArchivedChatsNavBarItem.react",["fbt","WAWebArchiveFilledRefreshedIcon.react","WAWebArchiveRefreshedIcon.react","WAWebArchivedFlowLoadable","WAWebChatUnreadCount.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebArchivedChatsActivityIndicator"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=d("useWAWebArchivedChatsActivityIndicator").useArchivedChatsActivityIndicator();a=a.unreadCount;a=a>0?j.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:a},"icon-count"):null;var f=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Archived)return;e(d("WAWebNavBarTypes").NavBarItems.Archived);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebArchivedFlowLoadable").ArchivedFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.ARCHIVED)},g=h._(/*BTDS*/"__JHASH__YxzkOPj0W7W__JHASH__"),i=b===d("WAWebNavBarTypes").NavBarItems.Archived?j.jsx(d("WAWebArchiveFilledRefreshedIcon.react").ArchiveFilledRefreshedIcon,{}):j.jsx(d("WAWebArchiveRefreshedIcon.react").ArchiveRefreshedIcon,{});i=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:i,title:g,text:g,inlineActivityIndicator:a,inlineActivityIndicatorType:d("WAWebNavBarItem.react").InlineActivityIndicatorType.Counter,testid:void 0,isExpanded:c,isActive:b===d("WAWebNavBarTypes").NavBarItems.Archived,onClick:f});return i}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebWindowsLockedChatsNavBarItem.react",["fbt","WAWebChatLockCodeModal.react","WAWebChatlockFilledRefreshedIcon.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebLockChatRefreshedIcon.react","WAWebLockedChatsDrawer.react","WAWebNavBarItem.react","WAWebNavBarTypes","WAWebWamEnumActionEntryPoint","WAWebWamEnumLandingSurface","WAWebWamEnumUnlockEntryPoint","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var e=a.activeNavBarItem,f=a.isNavBarExpanded,g=a.updateActiveNavBarItem;a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(e===d("WAWebNavBarTypes").NavBarItems.LockedChats)return;var a=(yield d("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,entryPoint:d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST,unlockEntryPoint:d("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST,landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER}));a&&(g(d("WAWebNavBarTypes").NavBarItems.LockedChats),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(c("WAWebLockedChatsDrawer.react"),{onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},entryPoint:d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST,unlockEntryPoint:d("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"}))});return function(){return a.apply(this,arguments)}}();var i=h._(/*BTDS*/"__JHASH__ya-4UD0wJ7r__JHASH__"),k=e===d("WAWebNavBarTypes").NavBarItems.LockedChats?j.jsx(d("WAWebChatlockFilledRefreshedIcon.react").ChatlockFilledRefreshedIcon,{height:24,width:24}):j.jsx(d("WAWebLockChatRefreshedIcon.react").LockChatRefreshedIcon,{});k=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:k,title:i,text:i,testid:void 0,isExpanded:f,isActive:e===d("WAWebNavBarTypes").NavBarItems.LockedChats,onClick:a});return k}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebExpandableNavBar.react",["WAWebBetaNavBarItem.react","WAWebBizAdCreationNavBarItem.react","WAWebBizToolsNavBarItem.react","WAWebBotGating","WAWebBugnubNavBarItem.react","WAWebChatCollection","WAWebChatLockUtils","WAWebChatsNavBarItem.react","WAWebCommunitiesNavBarItem.react","WAWebCurrentUser","WAWebDrawerManager","WAWebExpandNavbarToggleNavBarItem.react","WAWebFlex.react","WAWebFrontendChatGetters","WAWebKeyboardHotKeys.react","WAWebMediaHubGating","WAWebMediaHubNavBarItem.react","WAWebMetaBotNavBarItem.react","WAWebMobilePlatforms","WAWebNewslettersNavBarItem.react","WAWebProfileNavBarItem.react","WAWebSettingsGetters","WAWebSettingsNavBarItem.react","WAWebStatusNavBarItem.react","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUseArrowKeyNavigation","WAWebWindowsArchivedChatsNavBarItem.react","WAWebWindowsLockedChatsNavBarItem.react","cr:12093","cr:13381","react","useMergeRefs","useWAWebListener","useWAWebSettingsValues"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState,l=(e=b("cr:13381"))==null?void 0:e.WAWebWindowsFeedbackNavBarItem,m=(e=b("cr:12093"))==null?void 0:e.CallsNavBarItem,n={header:{zIndex:"xa1v5g2",position:"x1n2onr6",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",minWidth:"xq3y45c",width:"xbyj736",height:"x5yr21d",backgroundColor:"x1acz5yr",$$css:!0},expandedHeader:{minWidth:"x147832w",width:"x1dj96wl",$$css:!0},fullWidth:{width:"xh8yej3",$$css:!0},fullHeight:{height:"x5yr21d",$$css:!0},wrapper:{":hover_cursor":"x1277o0a",$$css:!0}};function o(){return j.jsx("hr",{className:"xh8yej3 xjm9jq1 x178xt8z x13fuv20 xxdxl9i xd10rxx x1sy0etr x17r0tee"})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.activeAccountInfo,e=a.activeNavBarItem,f=a.headerRef,g=a.isNavBarExpanded,h=a.onToggleNavBarExpansion;a=a.updateActiveNavBarItem;var i=d("WAWebUseArrowKeyNavigation").useArrowKeyNavigation({prefix:"navbar"}),p=i.ref,q=i.up,r=i.down,s=i.onFocus,t=i.focusItemIndex;i=function(){t(0)};q={up:q,down:r,escape:i};r=c("useMergeRefs")(f,p);var u=function(){return d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled()&&d("WAWebChatCollection").ChatCollection.some(function(a){return a.archive&&d("WAWebFrontendChatGetters").getShouldAppearInList(a)})},v=function(){return d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled()&&d("WAWebChatLockUtils").shouldShowChatLockEntryPoints()};i=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2]);f=i[0];p=k(u());i=p[0];var w=p[1];p=k(v());var x=p[0],y=p[1];d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"change:archive",function(a){if(!d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled())return;if(a.archive===!0)w(!0);else{a=u();a||d("WAWebDrawerManager").DrawerManager.closeDrawerLeft();w(a)}});d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"change:isLocked",function(a){if(!d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled())return;if(a.isLocked===!0)y(!0);else{a=v();a||d("WAWebDrawerManager").DrawerManager.closeDrawerLeft();y(a)}});p={isNavBarExpanded:g,activeNavBarItem:e,updateActiveNavBarItem:a};e=f&&i&&j.createElement(c("WAWebWindowsArchivedChatsNavBarItem.react"),babelHelpers["extends"]({},p,{key:"navbar-item-archived-chats"}));f=x&&j.createElement(c("WAWebWindowsLockedChatsNavBarItem.react"),babelHelpers["extends"]({},p,{key:"navbar-item-locked-chats"}));i=d("WAWebBotGating").isBotShortcutEntryPointEnabled()&&j.jsx(d("WAWebMetaBotNavBarItem.react").MetaBotNavBarItem,{isNavBarExpanded:g,updateActiveNavBarItem:a},"navbar-item-metabot");x=d("WAWebMediaHubGating").isFilesMediaHubEnabled()&&j.jsx(d("WAWebMediaHubNavBarItem.react").WAWebMediaHubNavBarItem,{isNavBarExpanded:g});a=d("WAWebMobilePlatforms").isSMB()&&j.createElement(d("WAWebBizToolsNavBarItem.react").BizToolsNavBarItem,babelHelpers["extends"]({},p,{activeAccountInfo:b,key:"navbar-item-biz-tools"}));var z=d("WAWebMobilePlatforms").isSMB()&&j.jsx(d("WAWebBizAdCreationNavBarItem.react").BizAdCreationNavBarItem,{isNavBarExpanded:g,activeAccountInfo:b},"navbar-item-ads-creation");e=[e,f,i,a,z];e.filter(Boolean).length>0&&e.unshift(j.jsx(o,{},"separator"));f=l!=null?j.jsx(l,{isNavBarExpanded:g}):null;i=d("WAWebCurrentUser").isEmployee()&&j.jsx(d("WAWebBugnubNavBarItem.react").BugnubNavBarItem,{isNavBarExpanded:g});a=f||i?j.jsxs(j.Fragment,{children:[i,f]}):null;return j.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:r,"data-testid":void 0,component:"header",tabIndex:0,"data-tab":d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,handlers:q,onFocus:s,xstyle:[n.header,d("WAWebUISpacing").uiPadding.horiz12,d("WAWebUISpacing").uiPadding.vert10,g&&n.expandedHeader],children:j.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:[n.fullWidth,n.fullHeight],children:[j.jsx(d("WAWebFlex.react").FlexItem,{grow:1,xstyle:n.fullWidth,children:j.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:n.wrapper,children:[d("WAWebUIRefreshGatingUtils").expandableSideNavEnabled()&&j.jsx(d("WAWebExpandNavbarToggleNavBarItem.react").ExpandNavbarToggleNavBarItem,{isNavBarExpanded:g,onToggleNavBarExpansion:h}),j.jsx(d("WAWebChatsNavBarItem.react").ChatsNavBarItem,babelHelpers["extends"]({},p)),m?j.jsx(m,babelHelpers["extends"]({},p)):null,j.jsx(d("WAWebStatusNavBarItem.react").StatusNavBarItem,babelHelpers["extends"]({},p)),j.jsx(d("WAWebNewslettersNavBarItem.react").NewslettersNavBarItem,babelHelpers["extends"]({},p)),j.jsx(d("WAWebCommunitiesNavBarItem.react").CommunitiesNavBarItem,babelHelpers["extends"]({},p)),e]})}),j.jsx(d("WAWebFlex.react").FlexItem,{grow:0,xstyle:n.fullWidth,children:j.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:n.wrapper,children:[a,x,a==null&&x==null?null:j.jsx(o,{}),j.jsx(d("WAWebBetaNavBarItem.react").BetaNavBarItem,babelHelpers["extends"]({},p)),j.jsx(d("WAWebSettingsNavBarItem.react").SettingsNavBarItem,babelHelpers["extends"]({},p,{activeAccountInfo:b})),j.jsx(d("WAWebProfileNavBarItem.react").ProfileNavBarItem,babelHelpers["extends"]({},p))]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g.ExpandableNavBar=a}),98); __d("WAWebPipFloatingMsgVideoPlayer.react",["WAWebMediaOpaqueData","WAWebPipConst","WAWebPipFloatingVideoPlayer.react","WAWebPipMsgVideoPlayer.react","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=d("useWAWebModelValues").useModelValues(a.mediaData,["preview","aspectRatio"]),f=e.preview instanceof c("WAWebMediaOpaqueData")?"url("+e.preview.url()+")":void 0;return i.jsx(d("WAWebPipFloatingVideoPlayer.react").FloatingVideoPlayer,{ref:b,aspectRatio:e.aspectRatio,previewUrl:f,animationStartStyle:a.animationStartStyle,bottomContent:a.bottomContent,topContent:a.topContent,enableDragBar:a.enableDragBar,children:i.jsx(d("WAWebPipMsgVideoPlayer.react").WrappedMsgVideoPlayer,{msg:a.msg,mediaData:e,startTime:a.startTime,onClose:a.onClose,onError:a.onError,onOpenMediaViewer:a.onOpenMediaViewer,onMissingMedia:a.onMissingMedia,onUnsupportedMedia:a.onUnsupportedMedia,autoPlay:a.autoPlay,type:d("WAWebPipConst").PlayerType.FLOATER,disablePiPControls:a.disablePiPControls,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebFloatingMsgVideoPlayerRenderer.react",["WAWebPipFloatingMsgVideoPlayer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.ref,d=a.msg;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref","msg"]);return d==null?null:i.jsx(c("WAWebPipFloatingMsgVideoPlayer.react"),{ref:b,msg:d,mediaData:d.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})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebPipGetImageDimensionsByUrl",[],(function(a,b,c,d,e,f){function a(a){var b=document.createElement("img");b.src=a;return{width:b.naturalWidth,height:b.naturalHeight}}f["default"]=a}),66); __d("WAWebPipFloatingOgVideoPlayer.react",["WAWebPipFloatingVideoPlayer.react","WAWebPipGetImageDimensionsByUrl","WAWebPipOgVideoPlayer.react","isNonZeroNumber","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState;function l(a){a=c("WAWebPipGetImageDimensionsByUrl")(a);var b=a.width;a=a.height;return d("isNonZeroNumber").isNonZeroNumber(b)&&d("isNonZeroNumber").isNonZeroNumber(a)?b/a:void 0}function a(a){var b=a.ref,e=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);a=k(function(){return l(e.ogVideoInfo.previewUrl)});var f=a[0],g=a[1];a=function(a){if(!a)return;(f==null||f===0||Math.abs(a-f)>.01)&&g(a)};return j.jsx(d("WAWebPipFloatingVideoPlayer.react").FloatingVideoPlayer,{ref:b,aspectRatio:f,previewUrl:e.ogVideoInfo.previewUrl,animationStartStyle:e.animationStartStyle,bottomContent:e.bottomContent,topContent:e.topContent,enableDragBar:e.enableDragBar,children:j.jsx(c("WAWebPipOgVideoPlayer.react"),{ogVideoInfo:e.ogVideoInfo,startTime:e.startTime,onClose:e.onClose,onError:e.onError,onAspectRatio:a,autoPlay:!0,disablePiPControls:e.disablePiPControls,onRefSet:e.onRefSet,onVideoMetadataChange:e.onVideoMetadataChange,onSetFullscreenToggleCallback:e.onSetFullscreenToggleCallback})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebFloatingOgVideoPlayerRenderer.react",["WAWebPipFloatingOgVideoPlayer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.ref,d=a.msg,e=a.videoSrc,f=a.previewUrl;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref","msg","videoSrc","previewUrl"]);return d==null||e==null||f==null?null:i.jsx(c("WAWebPipFloatingOgVideoPlayer.react"),{ref:b,ogVideoInfo:{videoMsg:d,videoUrl:e,previewUrl:f},startTime:a.startTime,onClose:a.onClose,onError:a.onError,animationStartStyle:a.animationStartStyle,autoPlay:a.autoPlay,enableDragBar:a.enableDragBar,topContent:a.topContent,bottomContent:a.bottomContent,disablePiPControls:a.enableDragBar,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebRestoreGroupParticipantsAction",["Promise","WALogger","WAWebChatCollection","WAWebDBParticipantTypes","WAWebGroupMetadataCollection","WAWebGroupParticipantModel","WAWebGroupQueryBridge","WAWebSchemaParticipant","WAWebWamGroupMetricCache","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreGroupParticipantsForChats: complete restoring participants for chats ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreGroupParticipantsForChats: skip sync stale participant for read only chat ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreGroupParticipantsForChats: sync stale participant for ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreGroupParticipantsForChats: skip for chat - ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreGroupParticipantsForChats: start restoring participants for chats ",""]);m=function(){return a};return a}function a(a){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){d("WALogger").DEV(m(),a);var e=new Map();a.forEach(function(a){var f=c("WAWebGroupMetadataCollection").get(a);if(!f||f.participantQueryPromise||!f.stale){d("WALogger").LOG(l(),a);return}f.participantQueryPromise=new(h||(h=b("Promise")))(function(b){e.set(a,b)})});var f=Array.from(e.keys());try{var g=(yield d("WAWebSchemaParticipant").getParticipantTable().bulkGet(f));g.forEach(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var g,h=c("WAWebGroupMetadataCollection").get(f[b]);g=!!((g=d("WAWebChatCollection").ChatCollection.get(f[b]))==null?void 0:g.isReadOnly);if(!h)return;try{var i=[],l=[];if(a==null||a.deviceSyncComplete!=null&&!a.deviceSyncComplete||a.staleType===d("WAWebDBParticipantTypes").STALE_TYPES.PARTICIPANT)if(!g){d("WALogger").LOG(k(),f[b]);g=(yield d("WAWebGroupQueryBridge").sendQueryGroup(d("WAWebWidFactory").createWid(f[b])));i=((g=g==null?void 0:g.participants)!=null?g:[]).map(function(a){var b=a.id,d=a.isAdmin;a=a.isSuperAdmin;return new(c("WAWebGroupParticipantModel"))({id:b,isAdmin:d,isSuperAdmin:a})})}else d("WALogger").LOG(j(),f[b]);else{var m=new Set(a.admins),n=a.superAdmins!=null?new Set(a.superAdmins):void 0;i=(g=(g=a.participants)==null?void 0:g.map(function(a){if(n===void 0){var b;b=((b=h.owner)==null?void 0:b.toString())===a}else b=n.has(a);return new(c("WAWebGroupParticipantModel"))({id:d("WAWebWidFactory").createUserWid(a),isAdmin:m.has(a),isSuperAdmin:b})}))!=null?g:[]}if(a==null)l=[];else{l=(g=a.pastParticipants)==null?void 0:g.map(function(a){var b=a.jid,e=a.leaveTs;a=a.leaveReason;return new(c("WAWebGroupParticipantModel"))({id:d("WAWebWidFactory").createWid(b),leaveTs:e,leaveReason:a})})}h.participants.add(i,{merge:!0});h.pastParticipants.add(l,{merge:!0});h.stale=!1;h.deviceStale=(a==null?void 0:a.staleType)===d("WAWebDBParticipantTypes").STALE_TYPES.DEVICE;a!=null&&d("WAWebWamGroupMetricCache").cacheGroupMetrics(a)}finally{g=e.get(f[b]);g==null?void 0:g();h.participantQueryPromise=null}});return function(b,c){return a.apply(this,arguments)}}())}catch(a){f.forEach(function(a){var b=e.get(a);b==null?void 0:b();b=c("WAWebGroupMetadataCollection").get(a);b&&(b.participantQueryPromise=null)});return}d("WALogger").DEV(i(),a)});return n.apply(this,arguments)}g.restoreGroupParticipantsForChats=a}),98); __d("WAWebUpdateModelForGroupAction",["Promise","WALogger","WANullthrows","WATimeUtils","WAWebABProps","WAWebChatCollection","WAWebCommunityActivityCollection","WAWebCommunityActivityModel","WAWebCommunityGatingUtils","WAWebCommunitySubgroupSuggestionsUtils","WAWebEphemeralityUtils","WAWebGroupGetMembershipApprovalRequestsJob","WAWebGroupMetadataCollection","WAWebGroupSafetyCheckGatingUtils","WAWebGroupType","WAWebInvalidateEventsAction","WAWebLeaveReasonType","WAWebNux","WAWebNuxAction","WAWebPollsInvalidateChatPollMsgsAction","WAWebRemoveFromFavoritesAction","WAWebUpdateModelsForCommunityAction","WAWebUserPrefsMeUser"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["unhandled group notif action in handleGroupAction"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["model:chat:handleGroupAction:invalid invite code: "," for ",""]);j=function(){return a};return a}function a(a,e){var f=a.chatId,g=d("WAWebChatCollection").ChatCollection.get(f);if(!g)return(h||(h=b("Promise"))).resolve();var k=c("WANullthrows")(g.groupMetadata),l=a.author,m=a.ts;switch(e.actionType){case d("WAWebGroupType").GROUP_ACTIONS.SUBJECT:var n={name:e.subject};g.contact.set(n);k.set("subject",e.subject);break;case d("WAWebGroupType").GROUP_ACTIONS.LINKED_GROUP_DEMOTE:if(!e.jid)break;n=c("WAWebGroupMetadataCollection").assertGet(e.jid);if(n.participants.iAmAdmin()){var o=e.participants.map(function(a){a=a.id;return{id:a,isAdmin:!1}});n.participants.add(o,{merge:!0})}else n.participants.remove(e.participants.map(function(a){return a.id}));if(e.participants.find(function(a){return d("WAWebUserPrefsMeUser").isMeAccount(a.id)})){o=n.participants.filter(function(a){return!a.isAdmin}).map(function(a){return a.id});n.participants.remove(o)}break;case d("WAWebGroupType").GROUP_ACTIONS.LINKED_GROUP_PROMOTE:if(!e.jid)break;n=c("WAWebGroupMetadataCollection").assertGet(e.jid);o=e.participants.map(function(a){a=a.id;return{id:a,isAdmin:!0}});n.participants.add(o,{merge:!0});break;case d("WAWebGroupType").GROUP_ACTIONS.ADD:case d("WAWebGroupType").GROUP_ACTIONS.PROMOTE:case d("WAWebGroupType").GROUP_ACTIONS.DEMOTE:if(e.actionType===d("WAWebGroupType").GROUP_ACTIONS.ADD){k.groupAdder==null&&d("WAWebGroupSafetyCheckGatingUtils").groupSafetyCheckM2Enabled()&&k.set("groupAdder",a.author);n=e.participants.some(function(a){return a.id.isLid()});o=k.isCag;var p=Boolean(k.isLidAddressingMode);if(n&&!o&&!p)break}n=[];var q=new Set();k.participants.iAmAdmin()||e.actionType===d("WAWebGroupType").GROUP_ACTIONS.ADD||e.actionType===d("WAWebGroupType").GROUP_ACTIONS.PROMOTE?(n=e.participants.map(function(a){a=a.id;return a}),e.participants.forEach(function(a){var b=a.lid,c=a.id;a=a.isAdmin;a&&q.add(c.toString());if(b==null||c.isLid())return;k.participants.remove(b)})):e.actionType===d("WAWebGroupType").GROUP_ACTIONS.DEMOTE&&(n=e.participants.map(function(a){var b=a.lid;a=a.id;return b==null||a.isLid()?a:b}),e.participants.forEach(function(a){var b=a.lid;a=a.id;if(b==null||a.isLid())return;k.participants.remove(a)}));o=n.map(function(a){return{id:a,isAdmin:e.actionType===d("WAWebGroupType").GROUP_ACTIONS.PROMOTE||e.actionType===d("WAWebGroupType").GROUP_ACTIONS.ADD&&q.has(a.toString())}});k.participants.add(o,{merge:!0});if(e.actionType===d("WAWebGroupType").GROUP_ACTIONS.ADD){n.forEach(function(a){k.pastParticipants.remove(a),d("WAWebUserPrefsMeUser").isMeAccount(a)&&k.pastParticipants.reset()});k.membershipApprovalMode&&d("WAWebABProps").getABPropConfigValue("group_join_request_m2")&&n.forEach(function(a){k.membershipApprovalRequests.remove(a)});n.forEach(function(a){c("WAWebGroupMetadataCollection").trigger("group_participant_change_"+a.toString(),g.id)});if(e.isParentGroup===!0){c("WAWebCommunityActivityCollection").add({id:f.toString(),communityId:f,type:d("WAWebCommunityActivityModel").ActivityTypeType.NEW_COMMUNITY,timestamp:(p=m)!=null?p:d("WATimeUtils").unixTime()})}}if(n.find(function(a){return d("WAWebUserPrefsMeUser").isMeAccount(a)}))if(e.actionType===d("WAWebGroupType").GROUP_ACTIONS.PROMOTE){if(d("WAWebCommunityGatingUtils").communityAdminPromotionOneTimePromptEnabled()&&k.groupType===d("WAWebGroupType").GroupType.COMMUNITY){o=d("WAWebNux").getCommunityAdminPromotionNuxKey(k.id.toString());d("WAWebNuxAction").resetNux(o)}k.membershipApprovalMode&&d("WAWebABProps").getABPropConfigValue("group_join_request_m2")&&d("WAWebGroupGetMembershipApprovalRequestsJob").queryAndUpdateGroupMembershipApprovalRequests(g.id)}else e.actionType===d("WAWebGroupType").GROUP_ACTIONS.DEMOTE&&(d("WAWebABProps").getABPropConfigValue("group_join_request_m2")&&k.membershipApprovalRequests.reset());break;case d("WAWebGroupType").GROUP_ACTIONS.REMOVE:p=!1;var r=[],s=[];e.participants.forEach(function(b){var c=b.id,e=b.lid;b=b.isAdmin;var f=d("WAWebUserPrefsMeUser").isMeAccount(c);e!=null&&f&&b===!0?(r.push(e),r.push(c)):r.push(c);s.push({id:c,leaveTs:m,leaveReason:c.equals(a.author)?d("WAWebLeaveReasonType").LeaveReason.Left:d("WAWebLeaveReasonType").LeaveReason.Removed});f&&(p=!0)});k.participants.remove(r);k.pastParticipants.add(s);e.reason===d("WAWebGroupType").REMOVE_REASON.DEFAULT_SUBGROUP_DEMOTE&&k.participants.add(e.participants.map(function(a){var b=a.lid;a=a.id;return b==null||a.isLid()?{id:a}:{id:b}}),{merge:!0});e.participants.forEach(function(a){c("WAWebGroupMetadataCollection").trigger("group_participant_change_"+a.id.toString(),g.id)});p&&(void d("WAWebPollsInvalidateChatPollMsgsAction").invalidateChatPollMsgs(g),void d("WAWebInvalidateEventsAction").invalidateEventMsgsForChat(g),void d("WAWebRemoveFromFavoritesAction").removeFromFavoritesAction(g.id,{suppressToast:!0}));o=(n=k.getParentGroupChat())==null?void 0:n.groupMetadata;k.isCag&&(o==null?void 0:o.participants.remove(r),o==null?void 0:o.pastParticipants.add(s));!k.isParentGroupParticipant()&&k.parentGroup&&(o==null?void 0:o.trigger("exitParentGroup"),d("WAWebUpdateModelsForCommunityAction").updateModelsForExitedCommunity(k.parentGroup));break;case d("WAWebGroupType").GROUP_ACTIONS.MODIFY:if(l&&e.participants&&e.participants.length>0){n=l;o=e.participants[0].id;n=k.participants.remove(n);var t=!1,u=!1;n.length&&n[0]&&(t=n[0].isAdmin,u=n[0].isSuperAdmin);n={id:o,isAdmin:t,isSuperAdmin:u};k.participants.add(n)}break;case d("WAWebGroupType").GROUP_ACTIONS.INVITE_CODE:e.code?k.inviteCode=e.code:d("WALogger").WARN(j(),e.code,g.id.toString());break;case d("WAWebGroupType").GROUP_ACTIONS.DESC_ADD:k.set({desc:e.desc,descId:e.descId,descTime:e.descTime,descOwner:l==null?void 0:l.toString()});break;case d("WAWebGroupType").GROUP_ACTIONS.DESC_REMOVE:if(k.descId===e.descId){k.set({desc:void 0,descId:void 0,descTime:void 0,descOwner:void 0});break}break;case d("WAWebGroupType").GROUP_ACTIONS.RESTRICT:k.restrict=!!e.value;break;case d("WAWebGroupType").GROUP_ACTIONS.SUSPEND:o=!!e.value;k.suspended=o;d("WAWebUpdateModelsForCommunityAction").maybeUpdateModelsForCommunitySuspendedStatus(f,o);break;case d("WAWebGroupType").GROUP_ACTIONS.ANNOUNCE:k.announce=!!e.value;break;case d("WAWebGroupType").GROUP_ACTIONS.NO_FORWARD:k.noFrequentlyForwarded=!!e.value;break;case d("WAWebGroupType").GROUP_ACTIONS.EPHEMERAL:k.ephemeralDuration=e.duration;k.disappearingModeTrigger=d("WAWebEphemeralityUtils").getDisappearingModeTrigger(e.trigger);k.disappearingModeInitiatedByMe=e.initiatedByMe;break;case d("WAWebGroupType").GROUP_ACTIONS.REVOKE_INVITE:var v=[];e.participants.forEach(function(a){a=a.id;k.pendingParticipants.get(a)&&v.push(a)});k.pendingParticipants.remove(v);break;case d("WAWebGroupType").GROUP_ACTIONS.DELETE:e.reason===d("WAWebGroupType").DELETE_REASON.INTEGRITY_DELETE_PARENT?d("WAWebUpdateModelsForCommunityAction").updateModelsForIntegrityDeactivateCommunity(f):e.reason===d("WAWebGroupType").DELETE_REASON.DELETE_PARENT?d("WAWebUpdateModelsForCommunityAction").updateModelsForDeactivateCommunity(f):k.terminated=!0;break;case d("WAWebGroupType").GROUP_ACTIONS.GROWTH_UNLOCKED:k.growthLockExpiration=void 0;k.growthLockType=void 0;break;case d("WAWebGroupType").GROUP_ACTIONS.GROWTH_LOCKED:e.type==="invite"&&(k.growthLockExpiration=e.expiration,k.growthLockType=e.type);break;case d("WAWebGroupType").GROUP_ACTIONS.PARENT_GROUP_LINK:k.parentGroup=e.groupDatas[0].id;break;case d("WAWebGroupType").GROUP_ACTIONS.SUB_GROUP_LINK:d("WAWebUpdateModelsForCommunityAction").updateModelsForSubgroupLink({parentGroupId:g.id,subgroups:e.groupDatas,timestamp:m,author:a.author});break;case d("WAWebGroupType").GROUP_ACTIONS.SIBLING_GROUP_LINK:k.parentGroup&&d("WAWebUpdateModelsForCommunityAction").updateModelsForSubgroupLink({parentGroupId:k.parentGroup,subgroups:e.groupDatas,timestamp:m,author:a.author});break;case d("WAWebGroupType").GROUP_ACTIONS.PARENT_GROUP_UNLINK:k.parentGroup=void 0;break;case d("WAWebGroupType").GROUP_ACTIONS.SUB_GROUP_UNLINK:d("WAWebUpdateModelsForCommunityAction").updateModelsForSubgroupUnlink(g.id,e.groupDatas);break;case d("WAWebGroupType").GROUP_ACTIONS.SIBLING_GROUP_UNLINK:k.parentGroup&&d("WAWebUpdateModelsForCommunityAction").updateModelsForSubgroupUnlink(k.parentGroup,e.groupDatas);break;case d("WAWebGroupType").GROUP_ACTIONS.MEMBERSHIP_APPROVAL_MODE:d("WAWebABProps").getABPropConfigValue("group_join_request_m2")&&(k.membershipApprovalMode=!!e.value,e.value||k.membershipApprovalRequests.reset());break;case d("WAWebGroupType").GROUP_ACTIONS.ALLOW_ADMIN_REPORTS:k.set("reportToAdminMode",e.value);e.value||k.set("lastReportToAdminTimestamp",null);break;case d("WAWebGroupType").GROUP_ACTIONS.ADMIN_REPORT_RECIEVED:k.set("lastReportToAdminTimestamp",e.value);break;case d("WAWebGroupType").GROUP_ACTIONS.MEMBERSHIP_APPROVAL_REQUEST:if(d("WAWebABProps").getABPropConfigValue("group_join_request_m2")&&!d("WAWebABProps").getABPropConfigValue("group_join_request_m3")){t=c("WANullthrows")(l);k.membershipApprovalRequests.add({id:t,t:m,addedBy:t,requestMethod:e.requestMethod,parentGroupId:e.parentGroupId})}break;case d("WAWebGroupType").GROUP_ACTIONS.CREATED_MEMBERSHIP_REQUESTS:if(d("WAWebABProps").getABPropConfigValue("group_join_request_m2")&&d("WAWebABProps").getABPropConfigValue("group_join_request_m3")){u=e.requests.map(function(a){return{id:a,t:m,addedBy:c("WANullthrows")(l),requestMethod:e.requestMethod,parentGroupId:e.parentGroupId}});k.membershipApprovalRequests.add(u)}break;case d("WAWebGroupType").GROUP_ACTIONS.REVOKED_MEMBERSHIP_REQUESTS:d("WAWebABProps").getABPropConfigValue("group_join_request_m2")&&e.requests.forEach(function(a){k.membershipApprovalRequests.remove(a)});break;case d("WAWebGroupType").GROUP_ACTIONS.ALLOW_NON_ADMIN_SUB_GROUP_CREATION:k.allowNonAdminSubGroupCreation=!!e.value;break;case d("WAWebGroupType").GROUP_ACTIONS.CREATED_SUBGROUP_SUGGESTION:k.subgroupSuggestions.add({id:d("WAWebCommunitySubgroupSuggestionsUtils").getSubgroupSuggestionId(e.id,e.owner),groupId:e.id,parentGroupId:e.parentGroupId,subject:e.subject,desc:e.description,owner:e.owner,t:e.t,isExistingGroup:e.isExistingGroup,participantCount:e.participantCount},{merge:!0});break;case d("WAWebGroupType").GROUP_ACTIONS.REVOKED_SUB_GROUP_SUGGESTIONS:k.subgroupSuggestions.remove(e.subgroupSuggestions.map(function(a){var b=a.id;a=a.owner;return d("WAWebCommunitySubgroupSuggestionsUtils").getSubgroupSuggestionId(b,a)}));break;case d("WAWebGroupType").GROUP_ACTIONS.SUBGROUP_SUGGESTIONS_CHANGE_NUMBER:n=e.subgroupSuggestions.map(function(a){return k.subgroupSuggestions.get(d("WAWebCommunitySubgroupSuggestionsUtils").getSubgroupSuggestionId(a,e.oldOwner))}).filter(Boolean);k.subgroupSuggestions.remove(n);k.subgroupSuggestions.add(n.map(function(a){return{id:d("WAWebCommunitySubgroupSuggestionsUtils").getSubgroupSuggestionId(a.groupId,e.newOwner),groupId:a.groupId,parentGroupId:a.parentGroupId,subject:a.subject,desc:a.desc,owner:e.newOwner,t:a.t,isExistingGroup:a.isExistingGroup,participantCount:a.participantCount}}),{merge:!0});break;case d("WAWebGroupType").GROUP_ACTIONS.MEMBER_ADD_MODE:d("WAWebABProps").getABPropConfigValue("web_anyone_can_add_group_setting_enabled")&&(k.memberAddMode=e.memberAddMode);break;case d("WAWebGroupType").GROUP_ACTIONS.GENERAL_CHAT_AUTO_ADD_DISABLED:k.generalChatAutoAddDisabled=!0;break;case d("WAWebGroupType").GROUP_ACTIONS.COMMUNITY_OWNER_UPDATE:o=[{id:e.newOwner,isAdmin:!0,isSuperAdmin:!0}];if(e.oldOwner!=null){o.push({id:e.oldOwner,isAdmin:!0,isSuperAdmin:!1});if(d("WAWebUserPrefsMeUser").isMeAccount(e.oldOwner)){f=d("WAWebNux").getCommunityAdminPromotionNuxKey(k.id.toString());void d("WAWebNuxAction").dismissNux(f)}}k.owner=e.newOwner;k.participants.add(o,{merge:!0});break;case d("WAWebGroupType").GROUP_ACTIONS.HIDDEN_GROUP:k.hiddenSubgroup=!!e.value;break;case d("WAWebGroupType").GROUP_ACTIONS.GROUP_SAFETY_CHECK:k.groupSafetyCheck=!!e.value;break;default:d("WALogger").ERROR(i()).tags("groups");break}return(h||(h=b("Promise"))).resolve()}g.updateModelForGroupAction=a}),98); __d("WAWebGroupBridgeApi",["WAWebChatCollection","WAWebCommunitySubgroupSuggestionsUtils","WAWebContactCollection","WAWebCreateOrUpdateGroupMetadataAction","WAWebGroupMetadataCollection","WAWebMsgCollection","WAWebRestoreGroupParticipantsAction","WAWebUpdateModelForGroupAction"],(function(a,b,c,d,e,f,g){a={updateModelForGroupAction:function(a){var b=a.groupMeta;a=a.groupAction;d("WAWebUpdateModelForGroupAction").updateModelForGroupAction(b,a)},restoreGroupParticipantsForChats:function(a){a=a.chatIds;d("WAWebRestoreGroupParticipantsAction").restoreGroupParticipantsForChats(a)},expireGroupInviteV4:function(a){a=a.inviteMsgId;(a=d("WAWebMsgCollection").MsgCollection.get(a))==null?void 0:a.set({inviteCodeExp:"0"})},updateGroupSubject:function(a){var b=a.id;a=a.subject;d("WAWebContactCollection").ContactCollection.add({id:b,name:a},{merge:!0})},updateGroupAddressingMode:function(a){var b=a.id,d=a.isLidAddressingMode;a=a.groupInfoUpdate;(b=c("WAWebGroupMetadataCollection").get(b))==null?void 0:b.set(babelHelpers["extends"]({isLidAddressingMode:d},a))},notAlreadyInGroup:function(a){var b=a.groupId;a=a.participants;var c=(b=d("WAWebChatCollection").ChatCollection.get(b))==null?void 0:b.groupMetadata;return!c?a:a.filter(function(a){a=a.id;return!c.participants.get(a)})},createOrUpdateGroupMetadataFromQuery:function(a){a=a.groupInfo;d("WAWebCreateOrUpdateGroupMetadataAction").createOrUpdateGroupMetadataModelFromQuery(a)},createOrUpdateSubgroupSuggestions:function(a){var b=a.parentGroupId;a=a.subgroupSuggestions;b=c("WAWebGroupMetadataCollection").gadd(b);b.subgroupSuggestions.set(a.map(function(a){return babelHelpers["extends"]({},a,{id:d("WAWebCommunitySubgroupSuggestionsUtils").getSubgroupSuggestionId(a.id,a.owner),groupId:a.id})}))}};g.GroupBridgeApi=a}),98); __d("WAWebSendKeyDistributionMsgAction",["Promise","WAWebGroupMetadataCollection","WAWebMsgKey","WAWebSendMsgJob","WAWebUserPrefsMeUser","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){var h;function a(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(!a.isGroup())return(h||(h=b("Promise"))).reject(c("err")("[messaging] sendKeyDistributionMsg: only group chats are supported`"));var e=d("WAWebUserPrefsMeUser").getMeUser();e=new(c("WAWebMsgKey"))({from:e,to:a,id:yield c("WAWebMsgKey").newId(),participant:d("WAWebWidFactory").toUserWid(e),selfDir:"out"});yield c("WAWebGroupMetadataCollection").find(a);return d("WAWebSendMsgJob").encryptAndSendKeyDistributionMsg(e)});return i.apply(this,arguments)}g.sendKeyDistributionMsg=a}),98); __d("WAWebGroupCreationKeyDistribution",["WALogger","WAWebDBGroupsGroupMetadata","WAWebGroupsParticipantsApi","WAWebMessagingGatingUtils","WAWebSendKeyDistributionMsgAction","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["handleGroupCreation: sending key distribution message failed: ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["handleGroupCreation: sending key distribution message: done"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["handleGroupCreation: sending key distribution message"]);j=function(){return a};return a}function a(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b,c;b=(b=(b=(yield d("WAWebGroupsParticipantsApi").getParticipants(a)))==null?void 0:b.participants.length)!=null?b:0;c=(c=(c=(yield d("WAWebDBGroupsGroupMetadata").getGroupMetadata(a)))==null?void 0:c.announce)!=null?c:!1;!c&&b&&d("WAWebMessagingGatingUtils").sendKeyDistributionMsgToNewGroups()&&b>=d("WAWebMessagingGatingUtils").sendKeyDistributionMsgMinGroupSize()&&b<=d("WAWebMessagingGatingUtils").sendKeyDistributionMsgMaxGroupSize()&&(d("WALogger").LOG(j()).tags("groups"),d("WAWebSendKeyDistributionMsgAction").sendKeyDistributionMsg(a).then(function(){d("WALogger").LOG(i()).tags("groups")})["catch"](function(a){d("WALogger").WARN(h(),a).tags("groups")}))});return k.apply(this,arguments)}g.maybeSendKeyDistributionMsgToNewGroup=a}),98); __d("WAWebGroupMetadataBridgeApi",["Promise","WAWebChatCollection","WAWebGroupMetadataCollection","WAWebWamNumberToSizeBucket","nullthrows"],(function(a,b,c,d,e,f,g){var h;a={getGroupMetadata:function(a){a=a.groupWid;return c("WAWebGroupMetadataCollection").get(a)},updateCachedDeviceCount:function(a){var b=a.groupWid;a=a.deviceCount;b=c("WAWebGroupMetadataCollection").get(b);b!=null&&(b.cachedDeviceCount=a,b.cachedDeviceSizeBucket=c("WAWebWamNumberToSizeBucket")(a))},setGroupMetadata:function(a){var b;(b=c("WAWebGroupMetadataCollection").get(a.id))==null?void 0:b.set(a)},removeMembershipApprovalRequests:function(a){var b=a.groupId;a=a.requestIds;(b=c("WAWebGroupMetadataCollection").get(b))==null?void 0:b.membershipApprovalRequests.remove(a)},addMembershipApprovalRequests:function(a){var b=a.groupId;a=a.requests;(b=c("WAWebGroupMetadataCollection").get(b))==null?void 0:b.membershipApprovalRequests.add(a,{merge:!0})},syncEphemeralTriggerCollectionForGroup:function(a){var e=a.chatId;a=a.trigger;e=d("WAWebChatCollection").ChatCollection.get(e);if(!e)return(h||(h=b("Promise"))).resolve();e=c("nullthrows")(e.groupMetadata);e!=null&&(e.disappearingModeTrigger=a);return(h||(h=b("Promise"))).resolve()}};g.GroupMetadataBridgeApi=a}),98); __d("WAWebMdBootstrapHistoryDataReceivedWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumMdBootstrapHistoryPayloadType","WAWebWamEnumMdBootstrapPayloadType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({MdBootstrapHistoryDataReceived:[2998,{historySyncChunkOrder:[6,a.TYPES.INTEGER],historySyncStageProgress:[5,a.TYPES.INTEGER],mdBootstrapHistoryPayloadType:[3,d("WAWebWamEnumMdBootstrapHistoryPayloadType").MD_BOOTSTRAP_HISTORY_PAYLOAD_TYPE],mdBootstrapPayloadType:[2,d("WAWebWamEnumMdBootstrapPayloadType").MD_BOOTSTRAP_PAYLOAD_TYPE],mdSessionId:[1,a.TYPES.STRING],mdTimestamp:[4,a.TYPES.INTEGER]},[1,1,1],"regular"]},{MdBootstrapHistoryDataReceived:[]});g.MdBootstrapHistoryDataReceivedWamEvent=b}),98); __d("WAWebHandleHistorySyncNotification",["WALogger","WATimeUtils","WAWebABProps","WAWebApiHistorySyncNotification","WAWebDownloadManager","WAWebGetMetricHistorySyncPayloadType","WAWebHandleHistorySyncChunk","WAWebHistorySyncNotificationUtils","WAWebHistorySyncProgress","WAWebHttpErrors","WAWebJestE2ELogUtils","WAWebMdBootstrapHistoryDataReceivedWamEvent","WAWebMsgKey","WAWebNonMessageDataRequestHistorySyncOnDemandUtils","WAWebProtobufsE2E.pb","WAWebProtobufsHistorySync.pb","WAWebSendHistSyncServerErrorReceiptJob","WAWebSyncBootstrap","WAWebSyncGatingUtils","WAWebSyncdMdSyncFieldstatMeta","WAWebUserPrefsHistorySync","WAWebUserPrefsMeUser","WAWebUserPrefsTypes","WAWebWamEnumMdBootstrapPayloadType","WAWebWid","asyncToGeneratorRuntime","gkx"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync][continueProgressiveHistorySyncProcessingV2] trigger notification processing after receiving ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync][recent sync] history sync download failed"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] start downloading chunk when receiving notification, ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] setHistorySyncEarliestDate: ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] setting estimated total chunk count: ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] recent or full chunk received, adding chunk info to db: ",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync][rdu] clean history sync on demand rdu request as it is received without timeout with key ","."]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync][rdu] drop on demand history sync notification as it's timeout with key ","."]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync][rdu] on demand history sync chunk does not have requested session id."]);p=function(){return a};return a}function q(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] on demand history sync received ",""]);q=function(){return a};return a}function r(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] initial pushname received ",""]);r=function(){return a};return a}function s(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] initial sync received ",""]);s=function(){return a};return a}function t(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] setting total chunk count when receiving: ",""]);t=function(){return a};return a}function u(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] Dropping full history sync for ",""]);u=function(){return a};return a}function v(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] History sync payload wid error"]);v=function(){return a};return a}function w(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] History sync empty wid error"]);w=function(){return a};return a}function x(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] Assert get me is empty during history sync"]);x=function(){return a};return a}var y=11;function a(a,b,c){return z.apply(this,arguments)}function z(){z=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){d("WAWebJestE2ELogUtils").maybeLogToJestE2eJSConsole("received history sync notif");if(!a)return;try{d("WAWebUserPrefsMeUser").getMeUser()}catch(a){d("WALogger").ERROR(x()).sendLogs("Assert get me is empty during history sync");return}if(!d("WAWebUserPrefsMeUser").isMePrimaryNonLid(b)){if(b==null||!(b instanceof c("WAWebWid"))){d("WALogger").ERROR(w()).sendLogs("History sync empty wid error");return}d("WALogger").ERROR(v()).sendLogs("History sync payload wid error");return}var f=a.downloadOptions;if(!f)return;if(!c("gkx")("26258")&&(d("WAWebABProps").getABPropConfigValue("web_abprop_drop_full_history_sync")&&a.historySyncNotification.syncType===d("WAWebProtobufsE2E.pb").Message$HistorySyncNotification$HistorySyncType.FULL)){d("WALogger").DEV(u(),d("WAWebUserPrefsMeUser").getMeUser().user).tags("history-sync");return}var g=!!a.historySyncNotification.originalMessageId;e=g?a.historySyncNotification.originalMessageId:e;b=new(c("WAWebMsgKey"))({remote:b,fromMe:!0,id:e}).toString();e=(e=a.historySyncNotification.progress)!=null?e:0;b={msgKey:b,processed:0,downloadOptions:f,isReupload:1,historySyncStepStartedTs:d("WATimeUtils").unixTimeMs(),reuploadPending:!1,historySyncPayloadSize:a.historySyncNotification.fileLength,oldestMsgInChunkTimestampSec:a.historySyncNotification.oldestMsgInChunkTimestampSec,initialHistBootstrapInlinePayload:a.historySyncNotification.initialHistBootstrapInlinePayload,peerDataRequestSessionId:a.historySyncNotification.peerDataRequestSessionId,progress:e,encHandle:a.historySyncNotification.encHandle};(!g||a.historySyncNotification.syncType===d("WAWebProtobufsHistorySync.pb").HistorySync$HistorySyncType.INITIAL_BOOTSTRAP)&&(b.syncType=a.historySyncNotification.syncType,b.chunkOrder=a.historySyncNotification.chunkOrder||0,b.isReupload=0);f=b;if(f.syncType===d("WAWebProtobufsHistorySync.pb").HistorySync$HistorySyncType.RECENT&&e===100){g=f.chunkOrder;d("WALogger").LOG(t(),g);yield d("WAWebUserPrefsHistorySync").setChunkCountForEndOfRecentHistorySync((g=g)!=null?g:1);void d("WAWebHistorySyncProgress").updateHistorySyncProgressModel()}g=new(d("WAWebMdBootstrapHistoryDataReceivedWamEvent").MdBootstrapHistoryDataReceivedWamEvent)({mdBootstrapPayloadType:f.syncType===d("WAWebProtobufsHistorySync.pb").HistorySync$HistorySyncType.INITIAL_BOOTSTRAP?d("WAWebWamEnumMdBootstrapPayloadType").MD_BOOTSTRAP_PAYLOAD_TYPE.CRITICAL:d("WAWebWamEnumMdBootstrapPayloadType").MD_BOOTSTRAP_PAYLOAD_TYPE.NON_CRITICAL,mdBootstrapHistoryPayloadType:d("WAWebGetMetricHistorySyncPayloadType").getMetricHistorySyncPayloadType(f.syncType),mdTimestamp:d("WATimeUtils").unixTimeMs(),mdSessionId:yield d("WAWebSyncdMdSyncFieldstatMeta").MdSyncFieldStatsMeta.getMdSessionId(),historySyncStageProgress:e});f.chunkOrder!=null&&(g.historySyncChunkOrder=f.chunkOrder);g.commit();switch(f.syncType){case d("WAWebProtobufsHistorySync.pb").HistorySync$HistorySyncType.INITIAL_BOOTSTRAP:case d("WAWebProtobufsHistorySync.pb").HistorySync$HistorySyncType.INITIAL_STATUS_V3:case d("WAWebProtobufsHistorySync.pb").HistorySync$HistorySyncType.NON_BLOCKING_DATA:d("WALogger").LOG(s(),d("WAWebHistorySyncNotificationUtils").getHistorySyncLogDetailsString(f));d("WAWebHandleHistorySyncChunk").handleHistorySyncChunk(f);return;case d("WAWebProtobufsHistorySync.pb").HistorySync$HistorySyncType.PUSH_NAME:d("WALogger").LOG(r(),d("WAWebHistorySyncNotificationUtils").getHistorySyncLogDetailsString(f));yield d("WAWebApiHistorySyncNotification").enqueueNotification(babelHelpers["extends"]({},f,{downloadOptions:babelHelpers["extends"]({},f.downloadOptions)}),!0);d("WAWebHandleHistorySyncChunk").handleHistorySyncChunk(f);return;case d("WAWebProtobufsHistorySync.pb").HistorySync$HistorySyncType.ON_DEMAND:if(d("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()){d("WALogger").LOG(q(),d("WAWebHistorySyncNotificationUtils").getHistorySyncLogDetailsString(f));f.peerDataRequestSessionId==null&&d("WALogger").LOG(p());if(!d("WAWebNonMessageDataRequestHistorySyncOnDemandUtils").inFlightHistorySyncOnDemandRequests.has((e=f.peerDataRequestSessionId)!=null?e:"")){d("WALogger").LOG(o(),c("gkx")("26258")?"":f.peerDataRequestSessionId);return}d("WALogger").LOG(n(),c("gkx")("26258")?"":f.peerDataRequestSessionId);f.peerDataRequestChatId=d("WAWebNonMessageDataRequestHistorySyncOnDemandUtils").inFlightHistorySyncOnDemandRequests.get((g=f.peerDataRequestSessionId)!=null?g:"");d("WAWebNonMessageDataRequestHistorySyncOnDemandUtils").inFlightHistorySyncOnDemandRequests["delete"]((e=f.peerDataRequestSessionId)!=null?e:"");yield d("WAWebApiHistorySyncNotification").enqueueNotification(f)}break;default:d("WALogger").LOG(m(),d("WAWebHistorySyncNotificationUtils").getHistorySyncLogDetailsString(f));if(f.syncType===d("WAWebProtobufsHistorySync.pb").HistorySync$HistorySyncType.RECENT){if(b.chunkOrder!=null&&a.progress!=null&&a.progress!==0){g=Math.ceil(b.chunkOrder/(a.progress/100));d("WALogger").LOG(l(),g);d("WAWebUserPrefsHistorySync").setEstimatedChunkCountForEndOfRecentHistorySync(g)}if(b.oldestMsgInChunkTimestampSec!=null){e=d("WAWebUserPrefsHistorySync").getHistorySyncEarliestDate();e&&b.oldestMsgInChunkTimestampSec<e&&(d("WALogger").DEV(k(),b.oldestMsgInChunkTimestampSec),d("WAWebUserPrefsHistorySync").setHistorySyncEarliestDate(b.oldestMsgInChunkTimestampSec))}void d("WAWebUserPrefsHistorySync").setRecentSyncSingleChunkStatus(f.syncType,d("WAWebUserPrefsTypes").HistorySyncSingleChunkStatusType.RECEIVED,f.chunkOrder);a=f.chunkOrder!=null&&f.chunkOrder<=y;if(d("WAWebSyncGatingUtils").isRecentSyncDownloadOptimizationEnabled()&&a){g=(yield d("WAWebHistorySyncNotificationUtils").getHistorySyncMetrics(f,!0));e=g.historySyncStartDownloadingMetric;b=g.historySyncDownloadedMetric;try{void d("WAWebUserPrefsHistorySync").setRecentSyncSingleChunkStatus(f.syncType,d("WAWebUserPrefsTypes").HistorySyncSingleChunkStatusType.DOWNLOADING,f.chunkOrder);d("WAWebHistorySyncNotificationUtils").commitHistoryStartDownloadingMetric(e,f.historySyncStepStartedTs,d("WATimeUtils").unixTimeMs());d("WALogger").LOG(j(),d("WAWebHistorySyncNotificationUtils").getHistorySyncLogDetailsString(f)).tags("history-sync");a=f.chunkOrder!==1;g=(yield d("WAWebDownloadManager").downloadManager.downloadAndMaybeDecrypt(babelHelpers["extends"]({signal:new AbortController().signal},f.downloadOptions,{isPreload:a})));f.downloadedHistorySyncPayload=g;void d("WAWebUserPrefsHistorySync").setRecentSyncSingleChunkStatus(f.syncType,d("WAWebUserPrefsTypes").HistorySyncSingleChunkStatusType.DOWNLOADED,f.chunkOrder);f.downloadOptions.mediaKey="";d("WAWebHistorySyncNotificationUtils").commitHistoryDownloadedMetric(b,f.historySyncStepStartedTs,!0,d("WATimeUtils").unixTimeMs())}catch(a){d("WALogger").WARN(i()).devConsole(a);if(!(a instanceof d("WAWebHttpErrors").HttpNetworkError)){e=c("WAWebMsgKey").fromString(f.msgKey);d("WAWebHistorySyncNotificationUtils").commitHistoryDownloadedMetric(b,f.historySyncStepStartedTs,!1,d("WATimeUtils").unixTimeMs());void c("WAWebSendHistSyncServerErrorReceiptJob")(e.remote,e.id,f.downloadOptions.mediaKey);return}}}}yield d("WAWebApiHistorySyncNotification").enqueueNotification(f)}d("WALogger").LOG(h(),d("WAWebHistorySyncNotificationUtils").getHistorySyncLogDetailsString(f));void c("WAWebSyncBootstrap").continueProgressiveHistorySyncProcessingV2(d("WAWebHistorySyncNotificationUtils").HistorySyncScheduleSource.NewRecentSyncNotification)});return z.apply(this,arguments)}g.handleHistorySyncNotification=a}),98); __d("WAWebSyncdHandleKeyRequest",["Promise","WAWebGetSyncKey","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=[],e=[];yield (h||(h=b("Promise"))).all(a.map(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=(yield d("WAWebGetSyncKey").getSyncKeyInTransaction_DO_NOT_USE(a));b?c.push(b):e.push(a)});return function(b){return a.apply(this,arguments)}}()));return{keys:c,orphanKeys:e}});return i.apply(this,arguments)}g.getKeysForKeyRequest=a}),98); __d("WAWebKeyManagementHandleKeyRequestApi",["WALogger","WASyncdKeyTypes","WAWebPersistedJobDefinitions","WAWebPersistedJobManager","WAWebSyncdCryptoUtils","WAWebSyncdHandleKeyRequest","WAWebUserPrefsMeUser","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: handleAppStateSyncKeyRequest from device ",": about to send key share\n \t keys with keydata: [","]\n \t keys without keydata: [","]"],["syncd: handleAppStateSyncKeyRequest from device ",": about to send key share\n \\t keys with keydata: [","]\n \\t keys without keydata: [","]"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: handleAppStateSyncKeyRequest from device ","\n \t for keyIds: [","]"],["syncd: handleAppStateSyncKeyRequest from device ","\n \\t for keyIds: [","]"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: key request wid error"]);j=function(){return a};return a}function a(a,b){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){if(!d("WAWebUserPrefsMeUser").isMeAccountNonLid(b)){d("WALogger").ERROR(j()).sendLogs("syncd: key request wid error");return}a=a.keyIds;if(a){a=a.map(function(a){return a.keyId}).filter(Boolean).map(d("WASyncdKeyTypes").toSyncKeyId);d("WALogger").LOG(i(),b.getDeviceId(),a.map(d("WAWebSyncdCryptoUtils").syncKeyIdToHex));if(a){a=(yield d("WAWebSyncdHandleKeyRequest").getKeysForKeyRequest(a));var c=a.keys;a=a.orphanKeys;d("WALogger").LOG(h(),b.getDeviceId(),c.map(function(a){return d("WAWebSyncdCryptoUtils").syncKeyIdToHex(a.keyId)}),a.map(function(a){return d("WAWebSyncdCryptoUtils").syncKeyIdToHex(a)}));return d("WAWebPersistedJobManager").getJobManager().waitUntilPersisted(d("WAWebPersistedJobDefinitions").jobSerializers.sendRequestedKeyShare(c,a,b))}}});return k.apply(this,arguments)}g.handleAppStateSyncKeyRequest=a}),98); __d("WAWebSyncdHandleKeyShare",["Promise","WACryptoUtils","WALogger","WASyncdConst","WASyncdKeyManagementUtils","WAWebGetSyncKey","WAWebSyncd","WAWebSyncdCryptoUtils","WAWebSyncdDbCallbacksApi","WAWebSyncdStoreMissingKeys","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: got key share for existing key with different key data\n (timestampMismatch: ",", epochMismatch: ",", keyDataMismatch: ",",\n currentIndexMismatch: ",", rowIdMismatch: ",", fingerprintMismatch: ",",\n keyDataLengthMismatch: ",")"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: no previous in memory key for ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: details from previous in memory key for ",":\n memory key id: ","\n memory key device id: ","\n memory key device epoch: ","\n memory key timestamp: ","\n memory key fingerprint device indexes: ","\n memory key binary equal incoming binary? ","\n memory key binary equal existing key binary? ","\n memory key sharing device id: ","\n "]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: all shared keys in payload: ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: key share mismatch extra details:\n existing timestamp: ",", new key timestamp: ","\n existing fingerprint device indexes: ",", new key fingerprint device indexes: ","\n existing key length: ",", new key length: ",",\n sending client id: ",",\n existing key device id: ","\n new key device id: ","\n existing key device epoch: ","\n new key device epoch: ","\n existing key id: ","\n new key id: ","\n index key id: ","\n "]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: comparing fingerprint element "," index "," to ","\n result: ",""]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: stored key share key id "," from device ",". payload key id: ",".\n timestamp raw: ",". timestamp: ",". device from key id: ",". epoch ",""]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: already have in memory key "," from device ","."]);p=function(){return a};return a}function q(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: key share from device "," has no keys with keydata."]);q=function(){return a};return a}var r={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3},s=new Map();function a(a,b){return t.apply(this,arguments)}function t(){t=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c){c.some(function(a){return a.fullKey!=null})||d("WALogger").LOG(q(),a);yield (h||(h=b("Promise"))).all(c.map(function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var e=b.keyId,f=b.fullKey;if(f==null)return;b=d("WAWebSyncdCryptoUtils").syncKeyIdToHex(e);var g=(yield d("WAWebGetSyncKey").getSyncKeyInTransaction_DO_NOT_USE(e));if(!g)yield d("WAWebGetSyncKey").setSyncKeyInTransaction(f),s.has(b)&&d("WALogger").WARN(p(),b,a),s.set(b,{keyId:e,fullKey:f,sharingDeviceId:a}),d("WALogger").LOG(o(),d("WAWebSyncdCryptoUtils").syncKeyIdToHex(e),a,d("WAWebSyncdCryptoUtils").syncKeyIdToHex(f.keyId),f.timestamp,new Date(f.timestamp).toLocaleString(void 0,r),d("WASyncdKeyManagementUtils").getKeyDeviceId(f.keyId),d("WASyncdKeyManagementUtils").getKeyEpoch(f.keyId));else{var h=g.timestamp!==f.timestamp,q=g.keyEpoch!==f.keyEpoch,t=!d("WACryptoUtils").arrayBuffersEqual(g.keyData,f.keyData),u=g.keyData.byteLength!==f.keyData.byteLength,v=g.fingerprint.currentIndex!==f.fingerprint.currentIndex,w=g.fingerprint.rawId!==f.fingerprint.rawId,x=g.fingerprint.deviceIndexes.every(function(a,b){return a===f.fingerprint.deviceIndexes[b]});x&&g.fingerprint.deviceIndexes.every(function(a,b){d("WALogger").LOG(n(),a,b,f.fingerprint.deviceIndexes[b],a===f.fingerprint.deviceIndexes[b])});if(t){var y,z;yield d("WAWebSyncdDbCallbacksApi").writeSyncdLog(d("WASyncdConst").CollectionName.CriticalBlock,"incoming shared key has mismatch with an existing key:\n key id: "+(y=d("WAWebSyncdCryptoUtils")).syncKeyIdToHex(f.keyId)+"\n sending client id: "+a.toString()+"\n timestamp: "+new Date(f.timestamp).toLocaleString(void 0,r));d("WALogger").LOG(m(),new Date(g.timestamp).toLocaleString(void 0,r),new Date(f.timestamp).toLocaleString(void 0,r),g.fingerprint.deviceIndexes,f.fingerprint.deviceIndexes,g.keyData.byteLength,f.keyData.byteLength,a,(z=d("WASyncdKeyManagementUtils")).getKeyDeviceId(g.keyId),z.getKeyDeviceId(f.keyId),z.getKeyEpoch(g.keyId),z.getKeyEpoch(f.keyId),y.syncKeyIdToHex(g.keyId),y.syncKeyIdToHex(f.keyId),y.syncKeyIdToHex(e));d("WALogger").LOG(l(),c.map(function(a){return d("WAWebSyncdCryptoUtils").syncKeyIdToHex(a.keyId)}));z=s.get(b);if(z){y=z.fullKey;y?d("WALogger").WARN(k(),b,d("WAWebSyncdCryptoUtils").syncKeyIdToHex(z.keyId),d("WASyncdKeyManagementUtils").getKeyDeviceId(z.keyId),d("WASyncdKeyManagementUtils").getKeyEpoch(z.keyId),new Date(y.timestamp).toLocaleString(void 0,r),y.fingerprint.deviceIndexes,d("WACryptoUtils").arrayBuffersEqual(y.keyData,f.keyData),d("WACryptoUtils").arrayBuffersEqual(y.keyData,g.keyData),z.sharingDeviceId):d("WALogger").LOG(j(),b)}d("WALogger").ERROR(i(),h,q,t,v,w,x,u).sendLogs("syncd: got key share for existing key with different key data")}}});return function(a){return e.apply(this,arguments)}}()));yield d("WAWebSyncdStoreMissingKeys").updateMissingKeys(c.map(function(a){var b=a.keyId;a=a.fullKey;return{keyId:b,keyData:a==null?void 0:a.keyData}}),a);return d("WAWebSyncd").syncBlockedCollections()});return t.apply(this,arguments)}g.handleKeyShare=a}),98); __d("WAWebKeyManagementHandleKeyShareApi",["Promise","WAJids","WALogger","WALongInt","WASyncdKeyManagementUtils","WASyncdKeyTypes","WAWebSyncdCriticalBootstrapProcessingApi","WAWebSyncdCryptoUtils","WAWebSyncdFatal","WAWebSyncdHandleKeyShare","WAWebSyncdUploadFatalErrorMetric","WAWebUserPrefsMeUser","WAWebWamEnumBootstrapAppStateDataStageCode","WAWebWamEnumMdSyncdFatalErrorCode","asyncToGeneratorRuntime","gkx"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: key share wid error"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: fatal error: invalid key share key data"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: fatal error: invalid key share key data (from companion)"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: fatal error: key share key id has invalid bytelength of ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: incoming key info\n \tkeyId: ",""],["syncd: incoming key info\n \\tkeyId: ",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: received key share key id "," from device "," "," keyData"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: received key with missing keyID from device ",""]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["syncd: handling key share from device "," with "," keys"]);p=function(){return a};return a}var q=0,r=6,s=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c){d("WAWebSyncdCriticalBootstrapProcessingApi").logCriticalBootstrapStageIfNecessary(d("WAWebWamEnumBootstrapAppStateDataStageCode").BOOTSTRAP_APP_STATE_DATA_STAGE_CODE.MISSING_KEYS_RECEIVED);var e=c.getDeviceId();d("WALogger").LOG(p(),e,a.keys.length);var f=[];c=a.keys;if(!c)return(h||(h=b("Promise"))).resolve();yield (h||(h=b("Promise"))).all(c.map(function(a){var b;b=(b=a.keyId)==null?void 0:b.keyId;a=a.keyData;var c=a==null?void 0:a.keyData,g=c==null?null:d("WASyncdKeyTypes").toSyncKeyData(c);if(!b){d("WALogger").LOG(o(),e);return}var h=d("WASyncdKeyTypes").toSyncKeyId(b),i=d("WAWebSyncdCryptoUtils").syncKeyIdToHex(h);d("WALogger").LOG(n(),i,e,c!=null?"with":"without");c&&d("WALogger").DEV(m(),i);if(b.byteLength!==r){d("WAWebSyncdUploadFatalErrorMetric").uploadFatalErrorMetric(d("WAWebWamEnumMdSyncdFatalErrorCode").MD_SYNCD_FATAL_ERROR_CODE.INVALID_KEY_SHARE_KEY_ID,null);d("WALogger").ERROR(l(),b.byteLength).sendLogs("syncd: fatal error: key share key id has invalid bytelength of "+b.byteLength);return d("WAWebSyncdFatal").handleFatalError()}if(a){c=a.timestamp;b=(i=a.fingerprint)==null?void 0:i.currentIndex;i=(i=a.fingerprint)==null?void 0:i.rawId;a=(a=a.fingerprint)==null?void 0:a.deviceIndexes;if(!g||c==null||b==null||i==null||!a){if(e!==q){d("WALogger").ERROR(k()).sendLogs("syncd: fatal error: invalid key share key data (from companion)");return}d("WAWebSyncdUploadFatalErrorMetric").uploadFatalErrorMetric(d("WAWebWamEnumMdSyncdFatalErrorCode").MD_SYNCD_FATAL_ERROR_CODE.INVALID_KEY_SHARE_KEY_DATA,null);d("WALogger").ERROR(j()).sendLogs("syncd: fatal error: invalid key share key data");return d("WAWebSyncdFatal").handleFatalError()}g={keyId:h,keyEpoch:d("WASyncdKeyManagementUtils").getKeyEpoch(h),keyData:g,timestamp:d("WALongInt").numberOrThrowIfTooLarge(c),fingerprint:{rawId:i,currentIndex:b,deviceIndexes:a}};f.push({keyId:h,fullKey:g})}else f.push({keyId:h,fullKey:null})}));return d("WAWebSyncdHandleKeyShare").handleKeyShare(d("WAJids").interpretAsDeviceId(e),f)});return function(b,c){return a.apply(this,arguments)}}();function a(a,c){if(!d("WAWebUserPrefsMeUser").isMeAccountNonLid(c)){d("WALogger").ERROR(i()).sendLogs("syncd: key share wid error");return(h||(h=b("Promise"))).resolve()}return s(a,c)}function e(a){if(c("gkx")("26258"))return;s=a(s)}g.handleAppStateSyncKeyShare=a;g.setAppStateSyncKeyShareHandler=e}),98); __d("WAWebNonMessageDataRequestHandlerPlaceholderResend",["Promise","WALogger","WATimeUtils","WAWebABProps","WAWebCurrentUser","WAWebE2EProtoUtils","WAWebHandleMsgProcess","WAWebHandleMsgTypes.flow","WAWebLid1X1MigrationGating","WAWebLidMigrationUtils","WAWebMsgKey","WAWebMsgProcessingApiUtils","WAWebNonMessageDataRequestLoggingUtils","WAWebParseWebMessageInfoApi","WAWebProtobufsE2E.pb","WAWebProtobufsWeb.pb","WAWebSchemaMessage","WAWebSyncGatingUtils","WAWebUserPrefsMeUser","WAWebWamEnumPeerDataResponseApplyResultType","WAWebWidFactory","asyncToGeneratorRuntime","decodeProtobuf","err"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] error: ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: got web message info. count: ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: got null as web message info in result"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: got null as placeholder message resend response in result"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: got empty response in result"]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: Handle placeholder resend response results with length ",""]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: failed to recognize message type"]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: failed to get message info as status message with no participant"]);p=function(){return a};return a}function q(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: failed to get message info as broadcast message with no participant"]);q=function(){return a};return a}function r(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: failed to get message info as group message with no participant"]);r=function(){return a};return a}function s(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Placeholder resend: failed to get message info as the message is not from me"]);s=function(){return a};return a}function a(a,b){return t.apply(this,arguments)}function t(){t=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c){if(!d("WAWebSyncGatingUtils").isPlaceholderMessageResendEnabled())return;var e=c.length;d("WALogger").LOG(n(),e);if(e===0){d("WALogger").LOG(m());d("WAWebNonMessageDataRequestLoggingUtils").logPlaceholderMessageResendResponse(d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.PLACEHOLDER_MESSAGE_RESEND,a,d("WAWebWamEnumPeerDataResponseApplyResultType").PEER_DATA_RESPONSE_APPLY_RESULT_TYPE.INVALID_RESPONSE,0,0,0);return}var f=0,g=0;c.forEach(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{a=a.placeholderMessageResendResponse;if(a==null){d("WALogger").LOG(l());g++;return}a=a.webMessageInfoBytes;if(a==null){d("WALogger").LOG(k());g++;return}a=d("decodeProtobuf").decodeProtobuf(d("WAWebProtobufsWeb.pb").WebMessageInfoSpec,a);var b={verifiedNameSerial:null,verifiedLevel:null,verifiedNameCert:null,privacyMode:null,nativeFlowName:null,campaignId:null},c=[d("WAWebParseWebMessageInfoApi").parseWebMessageInfo(a)],e=(yield u(c));d("WAWebCurrentUser").isEmployee()&&d("WAWebABProps").getABPropConfigValue("wa_web_debug_color_code_retry_messages")&&e.map(function(a){a.backgroundColor=8388736});var h=w(a);if(d("WAWebLid1X1MigrationGating").Lid1X1MigrationUtils.isLidMigrated()&&h.chat.isRegularUser()){var m=d("WAWebLidMigrationUtils").toUserLid(h.chat);m&&(h.accountLid=m)}m=d("WAWebMsgProcessingApiUtils").isRevokeInfo(h)?d("WAWebHandleMsgTypes.flow").MessageOverwriteOption.PEER_RETRY:d("WAWebHandleMsgTypes.flow").MessageOverwriteOption.NO_OVERWRITE;d("WAWebCurrentUser").isEmployee()&&d("WALogger").LOG(j(),c.entries().toArray().length);d("WAWebHandleMsgProcess").processMsgs({renderableMsgs:e,reparsing:!1,bizInfo:b,msgMeta:null,paymentInfo:a.paymentInfo,info:h,messageOverwriteOption:m})}catch(a){d("WALogger").ERROR(i(),a).sendLogs("placeholderResendResponse: error while handling response from placeholder resend request");g++;return}f++});return function(b){return a.apply(this,arguments)}}());d("WAWebNonMessageDataRequestLoggingUtils").logPlaceholderMessageResendResponse(d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.PLACEHOLDER_MESSAGE_RESEND,a,g===0?d("WAWebWamEnumPeerDataResponseApplyResultType").PEER_DATA_RESPONSE_APPLY_RESULT_TYPE.SUCCESS:d("WAWebWamEnumPeerDataResponseApplyResultType").PEER_DATA_RESPONSE_APPLY_RESULT_TYPE.OTHER_ERROR,e,f,g);return});return t.apply(this,arguments)}function u(a){return v.apply(this,arguments)}function v(){v=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=a.map(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b;b=(yield d("WAWebSchemaMessage").getMessageTable().bulkGet([a.id.toString(),(b=d("WAWebLidMigrationUtils").getAlternateMsgKey(a.id))==null?void 0:b.toString()])).find(Boolean);return b?babelHelpers["extends"]({},a,{id:c("WAWebMsgKey").from(b.id),from:d("WAWebWidFactory").createWid(b.from)}):a});return function(b){return a.apply(this,arguments)}}());return(h||(h=b("Promise"))).all(a)});return v.apply(this,arguments)}function w(a){var b=d("WAWebE2EProtoUtils").protobufToMsgKey(a.key),e={externalId:b.id,ts:a.messageTimestamp!=null?d("WATimeUtils").castLongIntToUnixTime(a.messageTimestamp):d("WATimeUtils").unixTime(),edit:-1,isHsm:!1,count:null,pushname:a.pushName,displayName:null,senderPn:null,senderLid:null,recipientLid:null,recipientPn:null,category:null,offline:null},f;b.remote.isGroup()?f=b.remote:b.fromMe?f=b.remote.isLid()?d("WAWebUserPrefsMeUser").getMeLidUser():d("WAWebUserPrefsMeUser").getMeUser():f=b.remote;var g;a.participant!=null?g=d("WAWebWidFactory").createWid(a.participant):b.participant!=null&&(g=b.participant);b=a.userReceipt.map(function(a){return d("WAWebWidFactory").createUserWid(a.userJid)});if(f.isUser()){if(b!=null&&b.length>0){if(!d("WAWebUserPrefsMeUser").isMeAccount(f)){d("WALogger").LOG(s());throw c("err")("recipient on non peer chat message")}return babelHelpers["extends"]({type:d("WAWebHandleMsgTypes.flow").MESSAGE_TYPE.CHAT},e,{chat:b[0],author:f})}return babelHelpers["extends"]({type:d("WAWebHandleMsgTypes.flow").MESSAGE_TYPE.CHAT},e,{chat:d("WAWebWidFactory").toUserWid(f),author:f})}else if(f.isGroup()){if(g==null){d("WALogger").LOG(r());throw c("err")("group message with no participant")}return babelHelpers["extends"]({type:d("WAWebHandleMsgTypes.flow").MESSAGE_TYPE.GROUP},e,{chat:f,author:g,isDirect:!1})}else if(f.isBroadcast()&&!f.isStatus()){if(g==null){d("WALogger").LOG(q());throw c("err")("broadcast message with no participant")}return d("WAWebUserPrefsMeUser").isMeAccount(g)?babelHelpers["extends"]({type:d("WAWebHandleMsgTypes.flow").MESSAGE_TYPE.PEER_BROADCAST},e,{chat:f,author:g,isDirect:!1,bclParticipants:[],bclHashValidated:!1}):babelHelpers["extends"]({type:d("WAWebHandleMsgTypes.flow").MESSAGE_TYPE.OTHER_BROADCAST},e,{chat:f,author:g,isDirect:!1,ephSetting:null})}else if(f.isBroadcast()&&f.isStatus()){if(g==null){d("WALogger").LOG(p());throw c("err")("status message with no participant")}return babelHelpers["extends"]({type:d("WAWebHandleMsgTypes.flow").MESSAGE_TYPE.OTHER_STATUS},e,{chat:f,author:g,isDirect:!1})}d("WALogger").LOG(o());throw c("err")("Unrecognized message type")}g.handlePlaceholderResendOperationRequestResponse=a;g.applyMatOnBackfillMessages=u}),98); __d("WAWebSendNonMessageDataRequestResponse",["Promise","WALogger","WAWebApiPeerMessageStore","WAWebMsgKey","WAWebMsgType","WAWebProtobufsE2E.pb","WAWebSendAppStateSyncMsgJob","WAWebUserPrefsMeUser","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["peer message: the constructed peer data operation request response message is null"]);i=function(){return a};return a}function a(a,b,c){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e){a=(yield k(a,c,e));if(a==null){d("WALogger").WARN(i());return(h||(h=b("Promise"))).resolve()}yield d("WAWebApiPeerMessageStore").storePeerMessages([a]);return d("WAWebSendAppStateSyncMsgJob").encryptAndSendKeyMsg(a)});return j.apply(this,arguments)}function k(a,b,c){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){var f=null;switch(b){case d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER:f=m(a,e);break;default:break}if(f==null)return null;b=new(c("WAWebMsgKey"))({fromMe:!0,remote:d("WAWebUserPrefsMeUser").getMeUser(),id:yield c("WAWebMsgKey").newId()});return{id:b,to:d("WAWebWidFactory").createDeviceWidFromUserAndDevice(d("WAWebUserPrefsMeUser").assertGetMe().user,d("WAWebUserPrefsMeUser").assertGetMe().server,0),type:"protocol",subtype:"peer_data_operation_request_response_message",kind:d("WAWebMsgType").MsgKind.PeerMessage,peerDataOperationRequestResponseMessage:f}});return l.apply(this,arguments)}function m(a,b){return b==null?null:{stanzaId:a,peerDataOperationRequestType:d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER,peerDataOperationResult:b}}g.sendPeerDataOperationRequestResponseMessage=a}),98); __d("WAWebNonMessageDataRequestHandlerUploadSticker",["Promise","WABase64","WALogger","WANullthrows","WATimeUtils","WAWebCryptoRandomMediaKey","WAWebFavoriteStickerCollection","WAWebMediaEntry","WAWebMediaMmsV4Upload","WAWebNonMessageDataRequestLoggingUtils","WAWebNonMessageDataRequestMediaHandlingUtils","WAWebProtobufsE2E.pb","WAWebProtobufsMmsRetry.pb","WAWebRecentStickerCollectionMd","WAWebSendNonMessageDataRequestResponse","WAWebStickerModel","WAWebWamEnumUploadOriginType","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[sticker-upload] Unexpected unencrypted upload entry"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["RDU: update favorite sticker with response of RDU with filehash ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["RDU: update recent sticker with response of RDU with filehash ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["Sticker RDU: get null as media fields in result"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["Sticker RDU: the mediaUploadResult "," is not success"]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["Sticker RDU: get null as fileSha256 in result"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["Sticker RDU: get null as stickerMessage in result"]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["Sticker RDU: Handle reupload sticker response results with length ",""]);p=function(){return a};return a}function a(a,b){d("WALogger").LOG(p(),b.length);if(b.length===0){d("WAWebNonMessageDataRequestLoggingUtils").logNonMessagePeerDataResponse(d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER,a,0,0,0,0,0);return}var e=b.length,f=0,g=0,h=0,i=0,q=new Map();b.forEach(function(a){a.mediaUploadResult===d("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.SUCCESS?f++:a.mediaUploadResult===d("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.NOT_FOUND?i++:h++;var b=a.stickerMessage;if(b==null){d("WALogger").LOG(o());return}var e=b.fileSha256,p=b.fileEncSha256,r=b.mediaKey,s=b.directPath;b=b.mediaKeyTimestamp;if(e==null){d("WALogger").LOG(n());return}e=d("WABase64").encodeB64(e);if(a.mediaUploadResult!==d("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.SUCCESS){d("WALogger").LOG(m(),a.mediaUploadResult);a.mediaUploadResult!==d("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.NOT_FOUND&&q.set(e,c("WANullthrows")(a.mediaUploadResult));return}if(p==null||r==null){d("WALogger").LOG(l());return}g++;a=d("WAWebRecentStickerCollectionMd").RecentStickerCollectionMd.get(e);var t=d("WAWebFavoriteStickerCollection").FavoriteStickerCollection.get(e);d("WAWebNonMessageDataRequestMediaHandlingUtils").inFlightStickerRequests.has(e)&&d("WAWebNonMessageDataRequestMediaHandlingUtils").inFlightStickerRequests["delete"](e);if(a||t){var u,v=a!=null?a.sticker:c("WANullthrows")(t).sticker;if(s===v.directPath&&d("WABase64").encodeB64(p)===v.encFilehash&&d("WABase64").encodeB64(r)===v.mediaKey)return;if((u=v.mediaObject)==null?void 0:u.entries.entries){(u=v.mediaObject)==null?void 0:(u=u.entries)==null?void 0:u.clearEntries()}s=new(d("WAWebStickerModel").StickerModel)({id:v.filehash,directPath:(u=s)!=null?u:v.directPath,filehash:v.filehash,encFilehash:d("WABase64").encodeB64(p),mediaKey:d("WABase64").encodeB64(r),mediaKeyTimestamp:b!=null?Number(b):v.mediaKeyTimestamp,width:v.width,height:v.height,size:v.size,mimetype:v.mimetype,type:v.type,index:0});a&&(d("WALogger").DEV(k(),e),d("WAWebRecentStickerCollectionMd").RecentStickerCollectionMd.updateRecentStickerWithNewSticker(e,s));t&&(d("WALogger").DEV(j(),e),d("WAWebFavoriteStickerCollection").FavoriteStickerCollection.updateFavoriteStickerWithNewSticker(e,s))}});d("WAWebNonMessageDataRequestMediaHandlingUtils").insertResponseError(q,d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER);d("WAWebNonMessageDataRequestLoggingUtils").logNonMessagePeerDataResponse(d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER,a,e,f,g,h,i)}function e(a,b){return q.apply(this,arguments)}function q(){q=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e){var f=e.length,g=0,j=0,k=0,l=0,m=d("WATimeUtils").unixTime(),n=[];e=e.map(function(b){b=b.fileSha256;if(b==null){k++;n.push({mediaUploadResult:d("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.GENERAL_ERROR});return}var a=d("WAWebFavoriteStickerCollection").FavoriteStickerCollection.get(b);if(a==null){l++;n.push({mediaUploadResult:d("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.NOT_FOUND,stickerMessage:{fileSha256:d("WABase64").decodeB64(b)}});return}return a}).filter(function(a){return a!=null});var o=new Set(),p=e.map(function(a){a=c("WANullthrows")(a==null?void 0:a.sticker);var b=a.mediaObject;if(b==null)return{kind:d("WAWebMediaMmsV4Upload").UploadMediaResultKind.ERROR};if(d("WAWebNonMessageDataRequestMediaHandlingUtils").shouldSkipMediaUploadWithSuccess(a.filehash,d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER,m)){var e=b.entries.getDownloadEntry(!0);if(e instanceof d("WAWebMediaEntry").EncryptedMediaEntry){j++;o.add(a.filehash);return{kind:d("WAWebMediaMmsV4Upload").UploadMediaResultKind.SUCCESS,mediaEntry:e}}}if(d("WAWebNonMessageDataRequestMediaHandlingUtils").shouldSkipMediaUploadWithCancellation(a.filehash,d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER,m)){o.add(a.filehash);return{kind:d("WAWebMediaMmsV4Upload").UploadMediaResultKind.CANCELLATION}}e=b.entries.getUploadEntry(!0);if(e instanceof d("WAWebMediaEntry").UnencryptedMediaEntry){d("WALogger").ERROR(i()).devConsole(e).sendLogs("sticker-upload-unexpected-unencrypted-entry");return{kind:d("WAWebMediaMmsV4Upload").UploadMediaResultKind.ERROR}}e=e instanceof d("WAWebMediaEntry").EncryptedMediaEntry?{key:e.mediaKey,timestamp:e.mediaKeyTimestamp}:c("WAWebCryptoRandomMediaKey")();return d("WAWebMediaMmsV4Upload").uploadMedia({mimetype:a.mimetype,mediaObject:b,mediaType:"sticker",forwardedFromWeb:!1,uploadOrigin:d("WAWebWamEnumUploadOriginType").UPLOAD_ORIGIN_TYPE.STICKER_WEB,mediaKeyInfo:e,isViewOnce:!0})});p=(yield (h||(h=b("Promise"))).all(p));var q=new Map();for(var r=0;r<p.length;r++){var s=p[r],t=s.kind;s=s.mediaEntry;var u=c("WANullthrows")(e[r]);u=c("WANullthrows")(u==null?void 0:u.sticker);if(t!==d("WAWebMediaMmsV4Upload").UploadMediaResultKind.SUCCESS||s==null){k++;n.push({mediaUploadResult:d("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.GENERAL_ERROR,stickerMessage:{fileSha256:d("WABase64").decodeB64(u.filehash)}});o.has(u.filehash)||q.set(u.filehash,t);continue}g++;if(!o.has(u.filehash)){var v;if((v=u.mediaObject)==null?void 0:v.entries.entries){(v=u.mediaObject)==null?void 0:(v=v.entries)==null?void 0:v.clearEntries()}v=new(d("WAWebStickerModel").StickerModel)({id:u.filehash,directPath:s.directPath,filehash:u.filehash,encFilehash:s.encFilehash,mediaKey:s.mediaKey,mediaKeyTimestamp:s.mediaKeyTimestamp,width:u.width,height:u.height,size:u.size,mimetype:u.mimetype,type:u.type,index:0});d("WAWebFavoriteStickerCollection").FavoriteStickerCollection.updateFavoriteStickerWithNewSticker(u.filehash,v);q.set(u.filehash,t)}n.push({mediaUploadResult:d("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.SUCCESS,stickerMessage:{fileSha256:d("WABase64").decodeB64(u.filehash),fileEncSha256:d("WABase64").decodeB64((v=s.encFilehash)!=null?v:""),mediaKey:d("WABase64").decodeB64(s.mediaKey),mimetype:u.mimetype,height:u.height,width:u.width,directPath:(t=s.directPath)!=null?t:"",mediaKeyTimestamp:s.mediaKeyTimestamp}})}d("WAWebSendNonMessageDataRequestResponse").sendPeerDataOperationRequestResponseMessage(a,d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER,n);d("WAWebNonMessageDataRequestMediaHandlingUtils").insertMediaUploadResult(q,m);d("WAWebNonMessageDataRequestLoggingUtils").logMediaUpload(d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER,a,f,g,j,k,l)});return q.apply(this,arguments)}g.handleUploadStickerPeerDataOperationRequestResponse=a;g.handleUploadStickerPeerDataOperationRequest=e}),98); __d("WAWebNonMessageDataRequestHandlerWaffleLinkingNonceFetch",["WALogger"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu]",", ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[rdu] Waffle nonce fetch: got null as waffle nonce fetch response in result"]);i=function(){return a};return a}function a(a){a.forEach(function(a){a=a.waffleNonceFetchRequestResponse;if(a==null){d("WALogger").LOG(i());return}var b=a.nonce;a=a.waEntFbid;d("WALogger").DEV(h(),b,a)})}g.handleWaffleLinkingNonceFetchOperationRequestResponse=a}),98); __d("WAWebNonMessageDataRequestHandler",["WAWebNonMessageDataRequestHandlerGenLinkPreview","WAWebNonMessageDataRequestHandlerPlaceholderResend","WAWebNonMessageDataRequestHandlerUploadSticker","WAWebNonMessageDataRequestHandlerWaffleLinkingNonceFetch","WAWebProtobufsE2E.pb"],(function(a,b,c,d,e,f,g){function a(a,b){if(b.peerDataOperationRequestType==null)return;switch(b.peerDataOperationRequestType){case d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER:d("WAWebNonMessageDataRequestHandlerUploadSticker").handleUploadStickerPeerDataOperationRequest(a,b.requestStickerReupload);return;default:return}}function b(a,b){if(b.peerDataOperationRequestType==null)return;switch(b.peerDataOperationRequestType){case d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.UPLOAD_STICKER:d("WAWebNonMessageDataRequestHandlerUploadSticker").handleUploadStickerPeerDataOperationRequestResponse(a,b.peerDataOperationResult);return;case d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.GENERATE_LINK_PREVIEW:d("WAWebNonMessageDataRequestHandlerGenLinkPreview").handleGenerateLinkPreviewOperationRequestResponse(b);return;case d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.PLACEHOLDER_MESSAGE_RESEND:void d("WAWebNonMessageDataRequestHandlerPlaceholderResend").handlePlaceholderResendOperationRequestResponse(a,b.peerDataOperationResult);return;case d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.WAFFLE_LINKING_NONCE_FETCH:d("WAWebNonMessageDataRequestHandlerWaffleLinkingNonceFetch").handleWaffleLinkingNonceFetchOperationRequestResponse(b.peerDataOperationResult);return;default:return}}g.handlePeerDataOperationRequest=a;g.handlePeerDataOperationRequestResponse=b}),98); __d("WAWebHandleDeferredMessages",["WALogger","WANullthrows","WAPromiseEach","WAWebApiDeferredMessagesStorage","WAWebApiHydrateWidsUtil","WAWebHandleHistorySyncNotification","WAWebKeyManagementHandleKeyRequestApi","WAWebKeyManagementHandleKeyShareApi","WAWebMsgProcessingApiUtils","WAWebNonMessageDataRequestHandler","WAWebParsedProtocolMsgType","WAWebProtobufsE2E.pb","asyncToGeneratorRuntime","decodeProtobuf","err"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[push-notification] Failed to handle deferred messages: parseProtocolMessage failed"]);h=function(){return a};return a}function a(){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("WAWebApiDeferredMessagesStorage").getDeferredMessages());yield d("WAPromiseEach").promiseEach(a,function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(!a)return;var b=a.type,e=a.plaintext,f=a.info,g=a.paymentInfo,i=a.bizInfo;f=d("WAWebApiHydrateWidsUtil").hydrateWids(f);e=d("decodeProtobuf").decodeProtobuf(d("WAWebProtobufsE2E.pb").MessageSpec,e);var j=d("WAWebMsgProcessingApiUtils").getFrom(f);e=(yield d("WAWebMsgProcessingApiUtils").parseProtocolMessage({info:f,msgProtobuf:e,paymentInfo:g,bizInfo:i,hsmInfo:null}));if(e==null){d("WALogger").ERROR(h());return}switch(b){case d("WAWebParsedProtocolMsgType").PARSED_PROTOCOL_MESSAGE_TYPE.HISTORY:yield d("WAWebHandleHistorySyncNotification").handleHistorySyncNotification(c("WANullthrows")(e==null?void 0:e.history),j,f.externalId);break;case d("WAWebParsedProtocolMsgType").PARSED_PROTOCOL_MESSAGE_TYPE.APP_STATE_SYNC_KEY_SHARE:yield d("WAWebKeyManagementHandleKeyShareApi").handleAppStateSyncKeyShare(c("WANullthrows")(e==null?void 0:e.appStateSyncKeyShare),j);break;case d("WAWebParsedProtocolMsgType").PARSED_PROTOCOL_MESSAGE_TYPE.APP_STATE_SYNC_KEY_REQUEST:yield d("WAWebKeyManagementHandleKeyRequestApi").handleAppStateSyncKeyRequest(c("WANullthrows")(e==null?void 0:e.appStateSyncKeyRequest),j);break;case d("WAWebParsedProtocolMsgType").PARSED_PROTOCOL_MESSAGE_TYPE.PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE:yield d("WAWebNonMessageDataRequestHandler").handlePeerDataOperationRequestResponse(f.externalId,c("WANullthrows")(e==null?void 0:e.peerDataOperationRequestResponseMessage));break;case d("WAWebParsedProtocolMsgType").PARSED_PROTOCOL_MESSAGE_TYPE.PEER_DATA_OPERATION_REQUEST_MESSAGE:yield d("WAWebNonMessageDataRequestHandler").handlePeerDataOperationRequest(f.externalId,c("WANullthrows")(e==null?void 0:e.peerDataOperationRequestMessage));break;default:throw c("err")("[worker] Invalid messages stored in deferred messages table")}yield c("WAWebApiDeferredMessagesStorage").deleteDeferredMessage(a.id)});return function(b){return a.apply(this,arguments)}}())});return i.apply(this,arguments)}g["default"]=a}),98); __d("WAWebHistorySyncApi",["WAWebHistorySyncProgressModel"],(function(a,b,c,d,e,f,g){a={setHistorySyncPaused:function(a){a=a.paused;d("WAWebHistorySyncProgressModel").getHistorySyncProgressModel().setPaused(a)},setHistorySyncProgress:function(a){var b=a.progress;a=a.incomplete;b!=null&&d("WAWebHistorySyncProgressModel").getHistorySyncProgressModel().setProgress(b);a!=null&&d("WAWebHistorySyncProgressModel").getHistorySyncProgressModel().setIncomplete(a)}};g.HistorySyncBridgeApi=a}),98); __d("WAWebHistorySyncOnDemandAction",["WAWebHistorySyncOnDemandEvents"],(function(a,b,c,d,e,f,g){function a(a){d("WAWebHistorySyncOnDemandEvents").WAWebHistorySyncOnDemandEvents.trigger("history_sync_on_demand_events:success_history_sync_od",a)}function b(a){d("WAWebHistorySyncOnDemandEvents").WAWebHistorySyncOnDemandEvents.trigger("history_sync_on_demand_events:error_history_sync_od",a)}g.successHistorySyncOd=a;g.errorHistorySyncOd=b}),98); __d("WAWebSelfPrimaryIdentityChangeAction",["WALogger","WAWebLogoutReasonConstants","WAWebSocketModel","gkx"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["handleNewIdentity: ignore identity change for your own primary device"]);h=function(){return a};return a}function a(){d("WALogger").ERROR(h()).sendLogs("self-identity-change"),c("gkx")("26258")?d("WAWebSocketModel").Socket.logout(d("WAWebLogoutReasonConstants").LogoutReason.PrimaryIdentityKeyChange):self.setTimeout(function(){d("WAWebSocketModel").Socket.logout(d("WAWebLogoutReasonConstants").LogoutReason.PrimaryIdentityKeyChange)},1e4)}g.handleSelfPrimaryIdentityChange=a}),98); __d("WAWebIdentityBridgeApi",["WAWebSelfPrimaryIdentityChangeAction"],(function(a,b,c,d,e,f,g){a={handleSelfPrimaryIdentityChange:function(){return d("WAWebSelfPrimaryIdentityChangeAction").handleSelfPrimaryIdentityChange()}};g.IdentityBridgeApi=a}),98); __d("WAWebWamEnumInlineVideoCtaClick",[],(function(a,b,c,d,e,f){a=Object.freeze({LOGO:1,MUSIC:2,AUTHOR:3,WATCH_MORE_END:4});f.INLINE_VIDEO_CTA_CLICK=a}),66); __d("WAWebInlineVideoPlaybackClosedWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumInlineVideoCtaClick","WAWebWamEnumInlineVideoType","WAWebWamEnumMessageType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({InlineVideoPlaybackClosed:[2032,{inlineVideoCancelBeforePlayStateT:[7,a.TYPES.TIMER],inlineVideoComplete:[8,a.TYPES.BOOLEAN],inlineVideoCompletionRate:[9,a.TYPES.INTEGER],inlineVideoCtaClick:[10,d("WAWebWamEnumInlineVideoCtaClick").INLINE_VIDEO_CTA_CLICK],inlineVideoDurationT:[2,a.TYPES.TIMER],inlineVideoError:[11,a.TYPES.STRING],inlineVideoHasRcat:[13,a.TYPES.BOOLEAN],inlineVideoPlayStartT:[6,a.TYPES.TIMER],inlineVideoPlayed:[3,a.TYPES.BOOLEAN],inlineVideoStallT:[4,a.TYPES.TIMER],inlineVideoType:[1,d("WAWebWamEnumInlineVideoType").INLINE_VIDEO_TYPE],inlineVideoWatchT:[5,a.TYPES.TIMER],messageType:[12,d("WAWebWamEnumMessageType").MESSAGE_TYPE]},[1,1,1],"regular"]},{InlineVideoPlaybackClosed:[]});g.InlineVideoPlaybackClosedWamEvent=b}),98); __d("WAWebInternDogfoodingModal.react",["WANullthrows","WATimeUtils","WAWebABProps","WAWebAnnouncementSpeakerIcon.react","WAWebConfirmPopup.react","WAWebEnvironment","WAWebExternalLink.react","WAWebLocalStorage","WAWebUISpacing","WAWebUserPrefsKeys","asyncToGeneratorRuntime","gkx","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j,k=j||c("react"),l=(h||(h=d("react"))).useState,m={title:{fontSize:"x1603h9y",fontWeight:"xjs9k72",lineHeight:"x1fc57z9",textAlign:"x2b8uid",$$css:!0},body:{width:"xh8yej3",height:"xpyat2d",fontSize:"x1f6kntn",lineHeight:"x1fc57z9",textAlign:"x1yc453h",$$css:!0},chatIcon:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0}};function a(){var a=l(!0),e=a[0],f=a[1];if(!e)return;if(!c("gkx")("26258")||!d("WAWebABProps").getABPropConfigValue("web_intern_dogfooding_upsell_enabled")||c("WAWebEnvironment").isWindows)return;a=j();if(a!=null&&a>d("WATimeUtils").unixTime())return;e=d("WAWebABProps").getABPropConfigValue("web_intern_dogfooding_upsell_content");var g=JSON.parse(e);if(g.title==null||g.web_link==null||g.ok_text==null||g.cancel_text==null)return;j=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){window.location.replace(g.web_link)});return function(){return a.apply(this,arguments)}}();a=function(){var a=d("WAWebABProps").getABPropConfigValue("web_intern_dogfooding_upsell_snooze_duration");h(d("WATimeUtils").unixTime()+a);f(!1)};e=k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(m.body,d("WAWebUISpacing").uiMargin.horiz16),{children:k.jsxs("div",{children:["Help us with dogfooding by moving to the ",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:g.web_link,className:"x117nqv4",children:"internal version"})," ","of the web client. Share your feedback/bugs on the ",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:g.group_link,className:"x117nqv4",children:"WhatsApp Web/Electron Feedback"})," on Workplace."]})}));return k.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:j,onOverlayClick:a,okText:g.ok_text,onCancel:a,cancelText:g.cancel_text,children:[k.jsx(d("WAWebAnnouncementSpeakerIcon.react").AnnouncementSpeakerIcon,{width:120,height:120,xstyle:m.chatIcon}),k.jsxs("div",babelHelpers["extends"]({className:"xh8yej3"},{children:[k.jsx("div",babelHelpers["extends"]({},i.props(m.title,d("WAWebUISpacing").uiPadding.all16),{children:k.jsx("b",{children:g.title})})),e]}))]});function h(a){c("WANullthrows")(c("WAWebLocalStorage")).setItem(d("WAWebUserPrefsKeys").KEYS.WA_WEB_ID_UPSELL_SNOOZE_UNTIL,String(a))}function j(){var a=c("WANullthrows")(c("WAWebLocalStorage")).getItem(d("WAWebUserPrefsKeys").KEYS.WA_WEB_ID_UPSELL_SNOOZE_UNTIL);return a==null?null:Number.parseInt(a,10)}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebKeyboardEventConstants",[],(function(a,b,c,d,e,f){a={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"}};f["default"]=a}),66); __d("WAWebKeyboardManager",["WAWebKeyboardRun","WAWebKeyboardShortcuts"],(function(a,b,c,d,e,f,g){a=function(){function a(){document.addEventListener("keydown",function(a){a=d("WAWebKeyboardShortcuts").getAction(a);a&&c("WAWebKeyboardRun")(a)})}var b=a.prototype;b.trigger=function(a){};b.menuBatchRenderWith=function(a){};return a}();b=new a();g["default"]=b}),98); __d("WAWebKeyboardTopLevelHotKeys.react",["WAWebFocusIndicator","WAWebFocusTracer","WAWebKeyboardHotKeys.react","WAWebKeyboardTabUtils","react","useMergeRefs"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useRef;function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.className,f=a.children,g=a.onBlur,h=a.skipNode,i=l(null);b=c("useMergeRefs")(b,i);k(function(){c("WAWebFocusTracer").focus(i.current)},[]);var m=function(a){var b=i.current;if(!b)return;var e=d("WAWebKeyboardTabUtils").TabDirection.FORWARD;a&&(a.preventDefault(),e=a.shiftKey?d("WAWebKeyboardTabUtils").TabDirection.BACKWARD:d("WAWebKeyboardTabUtils").TabDirection.FORWARD,c("WAWebFocusIndicator").shouldIndicateFocus());a=d("WAWebKeyboardTabUtils").getNextTabbableElement(b,e,d("WAWebKeyboardTabUtils").FocusType.CUSTOM,function(a){return!h(a)});if(a==null)return;c("WAWebFocusIndicator").shouldIndicateFocus();c("WAWebFocusTracer").focus(a)};m={tab:m,"shift+tab":m,"shift+?":a.onShowKeyboardShortcuts};return j.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{handlers:m,className:e,onBlur:g,ref:b,children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebL10nHelpersBridgeApi",["WAWebFrontendL10nHelpers","WAWebL10N"],(function(a,b,c,d,e,f,g){a={setLocalePrefCookie:function(a){a=a.locale;d("WAWebFrontendL10nHelpers").setWAWebLocalePrefCookie(a)},mungeLocaleOverrideFromUrlIfNecessary:function(){d("WAWebFrontendL10nHelpers").mungeWAWebLocaleOverrideFromUrlIfNecessary()},extendLocalePrefCookieTtl:function(){d("WAWebFrontendL10nHelpers").extendWAWebLocalePrefCookieTtl()},getUserLocale:function(){return c("WAWebL10N").getLocale()}};g.L10nHelpersBridgeApi=a}),98); __d("WAWebLabelsBridgeApi",["WAWebBIzLabelReorderAction"],(function(a,b,c,d,e,f,g){a={reorderLabels:function(a){a=a.sortedLabelIds;d("WAWebBIzLabelReorderAction").reorderLabelsAction(a)}};g.LabelsBridgeApi=a}),98); __d("WAWebLandingFooter.react",["fbt","WAWebFlex.react","WAWebLinkDeviceCommonInstructions.react","WAWebLinkDeviceQplLinkClick","WAWebLockOutlineIcon.react","WAWebUISpacing","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={footer:{display:"x1rg5ohu",fontSize:"x1f6kntn",color:"x14ug900",opacity:"x1us6l5c",$$css:!0},noWaAccountText:{fontSize:"x1c3i2sq",lineHeight:"x1a6qonq",$$css:!0},noWaAccountLink:{fontSize:"x1jchvi3",fontWeight:"xk50ysn",lineHeight:"x1ud3kw6",$$css:!0},e2ee:{color:"xhslqc4",lineHeight:"x9d7mpn",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};function a(a){a=a.testVariant;return a?j.jsx(l,{}):j.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:d("WAWebUISpacing").uiMargin.top30,children:[j.jsx(d("WAWebFlex.react").FlexItem,{xstyle:[k.footer,d("WAWebUISpacing").uiPadding.end4],children:j.jsx(d("WAWebLockOutlineIcon.react").LockOutlineIcon,{width:18})}),j.jsx(d("WAWebFlex.react").FlexItem,{xstyle:k.footer,children:h._(/*BTDS*/"__JHASH__GMfu13XXaee__JHASH__")})]})}a.displayName=a.name+" [from "+f.id+"]";function l(){var a,c=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebLinkDeviceQplLinkClick").WAWebLinkDeviceQplLinkClick(d("WAWebLinkDeviceQplLinkClick").WebcPairingScreenLinkType.GET_STARTED)});return function(){return a.apply(this,arguments)}}();return j.jsxs((a=d("WAWebFlex.react")).FlexColumn,{align:"center",xstyle:d("WAWebUISpacing").uiPadding.top8,rowGap:24,children:[j.jsxs(a.FlexRow,{columnGap:8,children:[j.jsx(a.FlexColumn,{paddingTop:8,xstyle:k.noWaAccountText,children:h._(/*BTDS*/"__JHASH__RysvS7-Qpou__JHASH__")}),j.jsx(a.FlexColumn,{paddingTop:12,xstyle:k.noWaAccountLink,children:j.jsx(d("WAWebLinkDeviceCommonInstructions.react").ExternalHelpLink,{text:h._(/*BTDS*/"__JHASH__hzOCGGU4OII__JHASH__"),url:"https://faq.whatsapp.com/497209988909970",onClick:c})})]}),j.jsxs(a.FlexRow,{columnGap:4,align:"center",children:[j.jsx(a.FlexItem,{children:j.jsx(d("WAWebLockOutlineIcon.react").LockOutlineIcon,{width:20,iconXstyle:k.e2ee})}),j.jsx(a.FlexItem,{xstyle:k.e2ee,children:h._(/*BTDS*/"__JHASH__GMfu13XXaee__JHASH__")})]})]})}l.displayName=l.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebLinkDeviceAutoLogoutIFrame.react",["WAWebAutoLogoutGating","react","useWAWebTimeout"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState,l=30*1e3;function a(a){var b=a.autoLogoutEnabled,c=a.onTimeout;a=a.visible;var e=k(!1),f=e[0],g=e[1];e=d("useWAWebTimeout").useTimeout(c,l);c=e[0];var h=e[1];if(!d("WAWebAutoLogoutGating").isRunningInAutoLgoutIframe()&&b){f||c();e=function(){h(),g(!0)};return j.jsx("iframe",{src:d("WAWebAutoLogoutGating").getAutoLogoutIframeUrl(),title:"autologout",onLoad:e,credentialless:"1",style:{position:"fixed",top:0,left:0,bottom:0,right:0,width:"100%",height:"100%",zIndex:1e4,display:""+(a?"block":"none")}})}f&&g(!1);h();return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebLinkDevicePhoneNumberCodeCells.react",["WAWebFlex.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={codeCellWrapper:{display:"x78zum5",width:"x10h3iyq",backgroundColor:"x12peec7",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x10i7gwu",borderEndColor:"xx4fpnl",borderBottomColor:"x157r7a7",borderStartColor:"xkuhyp4",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0},hyphen:{textAlign:"x2b8uid",fontWeight:"xk50ysn",fontSize:"x579bpy",color:"xzwifym",$$css:!0}};function a(a){var b=a["aria-details"];a=a.code;a=String(a).split("");var e=a.slice(0,4),f=a.slice(4);return j.jsx("div",{"aria-details":b,"data-testid":void 0,"data-link-code":a,children:j.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",className:"light",children:[e.map(function(a,b){return j.jsx(l,{content:a},b+":"+a)}),j.jsx("span",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(k.hyphen,d("WAWebUISpacing").uiPadding.all3),{"aria-hidden":"true",children:"-"})),f.map(function(a,b){return j.jsx(l,{content:a},b+4+":"+a)})]})})}a.displayName=a.name+" [from "+f.id+"]";function l(a){a=a.content;return j.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[k.codeCellWrapper,d("WAWebUISpacing").uiMargin.horiz4,d("WAWebUISpacing").uiPadding.vert13],children:j.jsx("span",babelHelpers["extends"]({className:"x2b8uid xk50ysn x1aueamr x1jzgpr8 xzwifym"},{children:a}))})}l.displayName=l.name+" [from "+f.id+"]";g.LinkDevicePhoneNumberCodeCells=a}),98); __d("WAWebRefreshLargeIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="refresh-large";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=48;m=48;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 48 48",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),version:"1.1",children:[j.jsx("title",{children:"refresh-l-light"}),j.jsx("desc",{children:"Created with Sketch."}),j.jsx("defs",{}),j.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:j.jsx("g",{id:"ic_refresh_black_24px",fill:"currentColor",fillRule:"nonzero",children:j.jsx("path",{d:"M35.3,12.7 C32.4,9.8 28.42,8 24,8 C15.16,8 8.02,15.16 8.02,24 C8.02,32.84 15.16,40 24,40 C31.46,40 37.68,34.9 39.46,28 L35.3,28 C33.66,32.66 29.22,36 24,36 C17.38,36 12,30.62 12,24 C12,17.38 17.38,12 24,12 C27.32,12 30.28,13.38 32.44,15.56 L26,22 L40,22 L40,8 L35.3,12.7 Z",id:"Shape"})})})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.RefreshLargeIcon=a}),98); __d("WAWebLinkDevicePhoneNumberCodeScreen.react",["fbt","WALogger","WANullthrows","WAPhoneUtils","WATimeUtils","WAWebAltDeviceLinkingApi","WAWebAlternateDeviceLinkingLink.react","WAWebClickableLink.react","WAWebCmd","WAWebFlex.react","WAWebLinkDeviceAction","WAWebLinkDeviceCodeView.react","WAWebLinkDeviceEvents","WAWebLinkDevicePhoneNumberCodeCells.react","WAWebRefreshLargeIcon.react","WAWebSpinner.react","WAWebUISpacing","WAWebUnstyledButton.react","react","useWAWebListener","useWAWebOnUnmount","useWAWebStableCallback","useWAWebTimeout"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["alt pairing: canceling link code timers"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["alt pairing: regenerating link code because 6-minute-TTL expired"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["alt pairing: force manual refresh received"]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["alt pairing: primary hello received, starting 1 minute timer for link code regeneration"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["alt pairing: regenerating link code..."]);o=function(){return a};return a}b=j||d("react");var p=i||(i=c("react")),q=b.useEffect,r=b.useState,s=5,t="link-device-phone-number-code-screen-instructions",u={phoneCodeWarning:{backgroundColor:"x1l6jbk0",color:"xbkck4w",borderTopStartRadius:"x1ykpwxx",borderTopEndRadius:"x118zf8b",borderBottomEndRadius:"xnwxkdh",borderBottomStartRadius:"xfocsrx",height:"xng8ra",width:"xdzyupr",marginTop:"x1rdy4ex",$$css:!0},phoneCodeWarningIcon:{color:"xbkck4w",$$css:!0},errorTitle:{lineHeight:"x1u7k74",$$css:!0},errorAction:{fontWeight:"x1ny7uwr",fontSize:"x1f6kntn",$$css:!0}};function a(a){var b=a.code,e=r(0),f=e[0],g=e[1];e=r(!0);var i=e[0],j=e[1];e=r(!1);var u=e[0],w=e[1];q(function(){j(!1),d("WAWebCmd").Cmd.initialLoadReady()},[]);var x=b==null||f>s;e=r(!1);b=e[0];var y=e[1],z=c("useWAWebStableCallback")(function(a){var b=f+1;(a==null?void 0:a.resetRefreshCount)?b=0:b=f+1;g(b);w(!1);y(!1);b<=s&&(d("WALogger").LOG(o()),d("WAWebLinkDeviceAction").refreshAltLinkingCode())});e=d("useWAWebTimeout").useTimeout(function(){var a;(a=d("WAWebAltDeviceLinkingApi").getCurrentMarker())==null?void 0:a.addPoint("primary_hello_expire");z()},1*d("WATimeUtils").MINUTE_MILLISECONDS);var A=e[0],B=e[1];d("useWAWebListener").useListener(d("WAWebLinkDeviceEvents").WAWebLinkDeviceEvents,"link_device_events:primary_hello_received",function(){d("WALogger").LOG(n()),A()});d("useWAWebListener").useListener(d("WAWebLinkDeviceEvents").WAWebLinkDeviceEvents,"link_device_events:force_manual_refresh",function(){var a;d("WALogger").LOG(m());(a=d("WAWebAltDeviceLinkingApi").getCurrentMarker())==null?void 0:a.addPoint("force_manual_refresh");w(!0);d("WAWebAltDeviceLinkingApi").initializeAltDeviceLinking()});e=d("useWAWebTimeout").useTimeout(function(){var a;d("WALogger").LOG(l());(a=d("WAWebAltDeviceLinkingApi").getCurrentMarker())==null?void 0:a.addPoint("code_ttl_expire");z()},3.25*d("WATimeUtils").MINUTE_MILLISECONDS);var C=e[0],D=e[1];q(function(){x||C()},[C,x]);var E=c("useWAWebStableCallback")(function(){B(),D()});q(function(){if(f>s||u){E();y(!0);return}},[f,u,z,E]);c("useWAWebOnUnmount")(function(){d("WALogger").LOG(k()),E()});i||x?e=p.jsx("div",babelHelpers["extends"]({className:"x78zum5 x6s0dn4 xl56j7k x10wjd1d"},{children:p.jsx(d("WAWebSpinner.react").Spinner,{})})):b?e=p.jsx(v,{onClick:function(){z({resetRefreshCount:!0})}}):e=p.jsx(d("WAWebLinkDevicePhoneNumberCodeCells.react").LinkDevicePhoneNumberCodeCells,{code:c("WANullthrows")(a.code),"aria-details":t});return p.jsx(d("WAWebLinkDeviceCodeView.react").LinkDeviceCodeView,{codeType:d("WAWebLinkDeviceCodeView.react").LinkDeviceCodeViewCodeType.PHONE_NUMBER_LINK_CODE,testid:void 0,apiCmd:a.apiCmd,title:h._(/*BTDS*/"__JHASH__50_ZuogVJ1A__JHASH__"),subtitle:h._(/*BTDS*/"__JHASH__NglCQvmNCUW__JHASH__",[h._implicitParam("=m2",p.jsx("strong",{dir:"ltr",children:h._(/*BTDS*/"__JHASH__cNiCK8lfiQQ__JHASH__",[h._param("phone-number",d("WAPhoneUtils").formatPhone(a.phoneNumber))])})),h._implicitParam("=m5",p.jsx(c("WAWebClickableLink.react"),{className:"x1n68mz9",onClick:a.onClickEditPhoneNumber,children:h._(/*BTDS*/"__JHASH__r8AmPULLPs-__JHASH__")}))]),alternativeLinkDeviceMethodHint:p.jsx(d("WAWebAlternateDeviceLinkingLink.react").AlternateDeviceLinkingLink,{codeType:d("WAWebLinkDeviceCodeView.react").LinkDeviceCodeViewCodeType.PHONE_NUMBER_LINK_CODE,onClick:a.onClickLinkWithQr}),children:p.jsx("div",babelHelpers["extends"]({},{0:{className:"x1n2onr6 x78zum5 x1okw0bk x6s0dn4 xl56j7k"},1:{className:"x1n2onr6 x78zum5 x1okw0bk x6s0dn4 xl56j7k x14atkfc"}}[!!!x<<0],{dir:"ltr","aria-live":"polite","aria-atomic":"true","aria-label":h._(/*BTDS*/"__JHASH__6eGVgqfJ2Uv__JHASH__"),children:e}))})}a.displayName=a.name+" [from "+f.id+"]";function v(a){return p.jsx(c("WAWebUnstyledButton.react"),{xstyle:[u.phoneCodeWarning,d("WAWebUISpacing").uiMargin.horizAuto,d("WAWebUISpacing").uiPadding.horiz20],onClick:a.onClick,children:p.jsxs((a=d("WAWebFlex.react")).FlexRow,{children:[p.jsx(a.FlexItem,{align:"center",xstyle:d("WAWebUISpacing").uiMargin.end10,children:p.jsx(d("WAWebRefreshLargeIcon.react").RefreshLargeIcon,{width:32,height:32,iconXstyle:u.phoneCodeWarningIcon})}),p.jsxs(a.FlexColumn,{align:"start",justify:"start",children:[p.jsx(a.FlexItem,{xstyle:u.errorTitle,children:h._(/*BTDS*/"__JHASH__4aKY9mN2v0x__JHASH__")}),p.jsx(a.FlexItem,{xstyle:u.errorAction,children:h._(/*BTDS*/"__JHASH__GRoucT-er10__JHASH__")})]})]})},"expiry")}v.displayName=v.name+" [from "+f.id+"]";g.LinkWithPhoneNumberCodeScreen=a}),226); __d("WAWebLinkDevicePhoneNumber.react",["fbt","$InternalEnum","WALogger","WANullthrows","WAWebAltDeviceLinkingApi","WAWebAltDeviceLinkingIq","WAWebLinkDeviceAction","WAWebLinkDeviceEvents","WAWebLinkDevicePhoneNumberCodeScreen.react","WAWebLinkDevicePhoneNumberEntryScreen.react","WAWebModalSingleActionOpener","WAWebNetworkStatus","asyncToGeneratorRuntime","react","useWAWebListener","useWAWebStableCallback"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["alt pairing: Invalid state while linking phone number, phone number was null but tried to display code screen"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["alt pairing: unexpected error happened while starting flow: ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["alt pairing: a companion-hello error happened while starting flow: ",""]);m=function(){return a};return a}var n=j||c("react"),o=(i||(i=d("react"))).useState,p=b("$InternalEnum").Mirrored(["STEP1_PHONE_NUMBER_ENTRY","STEP2_DISPLAY_CODE"]);function a(a){var e=o(p.STEP1_PHONE_NUMBER_ENTRY),f=e[0],g=e[1];e=o(null);var i=e[0],j=e[1];e=o(null);var q=e[0],r=e[1];e=o(!1);var s=e[0],t=e[1],u=function(){return d("WAWebModalSingleActionOpener").openSingleActionModal({title:h._(/*BTDS*/"__JHASH__QUpJir4HRxk__JHASH__"),body:h._(/*BTDS*/"__JHASH__tgBcoFJ6Q6P__JHASH__"),onDismiss:function(){g(p.STEP1_PHONE_NUMBER_ENTRY)}})},v=function(){return d("WAWebModalSingleActionOpener").openSingleActionModal({title:h._(/*BTDS*/"__JHASH__zXJT295zSlT__JHASH__"),body:h._(/*BTDS*/"__JHASH__DbQxgkiA0fU__JHASH__"),buttonText:h._(/*BTDS*/"__JHASH__ScAqMdKkbaw__JHASH__"),onDismiss:function(){return a.onClickLinkWithQr()}})},w=function(){return d("WAWebModalSingleActionOpener").openSingleActionModal({title:h._(/*BTDS*/"__JHASH__rch_ch6Ihp1__JHASH__"),body:h._(/*BTDS*/"__JHASH__MLzSe-PR4lG__JHASH__"),onDismiss:function(){return a.onClickLinkWithQr()}})},x=c("useWAWebStableCallback")(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){j(a);t(!1);g(p.STEP2_DISPLAY_CODE);try{if(c("WAWebNetworkStatus").online){a=(yield d("WAWebLinkDeviceAction").genLinkDeviceCodeForPhoneNumber(a,b));r(a)}}catch(c){(b=d("WAWebAltDeviceLinkingApi").getCurrentMarker())==null?void 0:b.addPoint("gen_code_exception");yield d("WAWebLinkDeviceAction").resetLinkDeviceState({linkDeviceMethod:d("WAWebAltDeviceLinkingApi").PairingType.ALT_DEVICE_LINKING});if(c instanceof d("WAWebAltDeviceLinkingIq").CompanionHelloError){d("WALogger").WARN(m(),c);switch((a=c.type)==null?void 0:a.name){case"IQErrorFeatureNotAvailable":g(p.STEP1_PHONE_NUMBER_ENTRY);v();return;case"IQErrorRateOverlimit":g(p.STEP1_PHONE_NUMBER_ENTRY);w();return}}d("WALogger").ERROR(l(),c).sendLogs("alt pairing: unexpected error happened while starting flow");u()}});return function(b,c){return a.apply(this,arguments)}}()),y=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;if(f!==p.STEP2_DISPLAY_CODE||i==null)return;r(null);(a=d("WAWebAltDeviceLinkingApi").getCurrentMarker())==null?void 0:a.addPoint("refresh_code");yield d("WAWebLinkDeviceAction").resetLinkDeviceState({linkDeviceMethod:d("WAWebAltDeviceLinkingApi").PairingType.ALT_DEVICE_LINKING});yield x(i,!1)});return function(){return a.apply(this,arguments)}}();d("useWAWebListener").useListener(d("WAWebLinkDeviceEvents").WAWebLinkDeviceEvents,"link_device_events:refresh_alt_linking_code",y);d("useWAWebListener").useListener(c("WAWebNetworkStatus"),"change:online",function(){c("WAWebNetworkStatus").online?void y():r(null)});d("useWAWebListener").useListener(d("WAWebLinkDeviceEvents").WAWebLinkDeviceEvents,"link_device_events:error_alt_linking",u);i==null&&f!==p.STEP1_PHONE_NUMBER_ENTRY&&(d("WALogger").ERROR(k()).sendLogs("alt pairing: invalid ui state: null phone number in code screen"),g(p.STEP1_PHONE_NUMBER_ENTRY));switch(f){case p.STEP1_PHONE_NUMBER_ENTRY:return n.jsx(d("WAWebLinkDevicePhoneNumberEntryScreen.react").LinkWithPhoneNumberEntryScreen,babelHelpers["extends"]({initialPhoneNumber:i,showUpdatePrimaryAppBanner:s,onSubmitPhoneNumber:function(a){return x(a,!0)}},a));case p.STEP2_DISPLAY_CODE:return n.jsx(d("WAWebLinkDevicePhoneNumberCodeScreen.react").LinkWithPhoneNumberCodeScreen,{code:q,phoneNumber:c("WANullthrows")(i),onClickEditPhoneNumber:b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebLinkDeviceAction").resetLinkDeviceState({linkDeviceMethod:d("WAWebAltDeviceLinkingApi").PairingType.ALT_DEVICE_LINKING}),g(p.STEP1_PHONE_NUMBER_ENTRY),r(null)}),onClickLinkWithQr:a.onClickLinkWithQr,apiCmd:a.apiCmd})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebLinkDeviceQrcode.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={landing:"_ao39",headline:"_ak20",listItem:"_ak21",text:"_ak22",hint:"_ak23",qr:"_ak24",toggle:"_ak25",qrcode:"_akau",codeLogo:"_akaz",idle:"_akay",qrButton:"_akas",desktopUpsellBanner:"_akaw"};b=a;g["default"]=b}),98); __d("WAWebLogoutReasonBanner.react",["fbt","WAWebFaqUrl","WAWebLoggedOutBanner.react","WAWebLogoutReason","WAWebLogoutReasonConstants","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b;b=(b=d("WAWebLogoutReason").getPrevLogoutReasonCode())!=null?b:a.reason;if(b==null)return null;a=k(b);if(a==null)return null;b=a.header;var e=a.text,f=a.link;a=a.category;return j.jsx(c("WAWebLoggedOutBanner.react"),{header:b,text:e,link:f,category:a})}a.displayName=a.name+" [from "+f.id+"]";function k(a){var b=d("WAWebLogoutReason").getPrevCustomLogoutMessage();switch(a){case d("WAWebLogoutReasonConstants").LOGOUT_REASON_CODE.CLIENT_FATAL:a=d("WAWebUIRefreshGatingUtils").checkIfShouldBeEnabledInWindowsEnv()?h._(/*BTDS*/"__JHASH__gkhQFh1-JwG__JHASH__"):h._(/*BTDS*/"__JHASH__4wX4qvNgSTd__JHASH__");return{text:a,link:d("WAWebFaqUrl").getDBErrorFaqUrl(),category:"error"};case d("WAWebLogoutReasonConstants").LOGOUT_REASON_CODE.SYNC_FAIL:return{text:h._(/*BTDS*/"__JHASH__JfPa9WYB6PJ__JHASH__"),link:d("WAWebFaqUrl").getLinkDeviceFaqUrl(),category:"warning"};case d("WAWebLogoutReasonConstants").LOGOUT_REASON_CODE.INITIAL_HISTORY_SYNC_TIMEOUT:return{text:h._(/*BTDS*/"__JHASH__K5rJ9qiSPJP__JHASH__"),link:d("WAWebFaqUrl").getLinkDeviceFaqUrl(),category:"warning"};case d("WAWebLogoutReasonConstants").LOGOUT_REASON_CODE.ACCOUNT_LOCKED:if(b!=null){a=b.logoutMessageHeader;b=b.logoutMessageSubtext;if(a!=null&&b!=null)return{header:a,text:b,category:"warning"}}return{text:h._(/*BTDS*/"__JHASH__b5A7QgdC8FN__JHASH__"),category:"warning"}}return null}g["default"]=a}),226); __d("WAWebWamQrCodeCount",[],(function(a,b,c,d,e,f){a=function(){function a(){this.$1=!1,this.$2=0}var b=a.prototype;b.get=function(){return this.$2};b.$3=function(){this.$1&&(this.$1=!1,this.$2=0,this.initialDisplayDate=null)};b.inc=function(){this.$3();return this.set(this.$2+1)};b.set=function(a){this.$3();if(this.$2===a)return;a===1&&(this.initialDisplayDate=g());this.$2=a;return this.get()};b.reset=function(){this.$1=!0};return a}();b=new a();function g(){return Math.floor(window.performance.now())}f["default"]=b}),66); __d("WAWebLinkDeviceQrcode.react",["fbt","Promise","WABase64","WALogger","WAWebAdvSignatureApi","WAWebAlternateDeviceLinkingLink.react","WAWebAutoLogoutGating","WAWebClassnames","WAWebCmd","WAWebCompanionRegClientUtils","WAWebConfirmPopup.react","WAWebConnModel","WAWebConnectionIcon.react","WAWebCopyPasteSelectable.react","WAWebEnvironment","WAWebFlex.react","WAWebFrontendConstants","WAWebLinkDeviceAutoLogoutToggle.react","WAWebLinkDeviceCodeView.react","WAWebLinkDeviceQrcode.scss","WAWebLinkDeviceScreenGatedUtils","WAWebLogoutReasonBanner.react","WAWebModalManager","WAWebNetworkStatus","WAWebQRCode.react","WAWebRefreshLargeIcon.react","WAWebSignalStoreApi","WAWebSocketConstants","WAWebSocketModel","WAWebSpinner.react","WAWebUISpacing","WAWebUnstyledButton.react","WAWebUserPrefsInfoStore","WAWebVelocityTransitionGroup","WAWebWamQrCodeCount","asyncToGeneratorRuntime","gkx","justknobx","react","useWAWebDebouncedCallback","useWAWebListener","useWAWebRenderCallbacks"],(function(a,b,c,d,e,f,g,h){var i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["Assertion failed!"]);l=function(){return a};return a}e=k||d("react");var m=j||(j=c("react")),n=e.useCallback,o=e.useRef,p=e.useState,q="https://faq.whatsapp.com/r/ld",r="https://wa.me/settings/linked_devices#",s=228,t={qrCodeWarning:{backgroundColor:"x1l6jbk0",color:"xbkck4w",position:"x10l6tqk",top:"x13vifvy",start:"x17qophe",end:"xds687c",left:null,right:null,bottom:"x1ey2m1c",borderTopStartRadius:"x1ykpwxx",borderTopEndRadius:"x118zf8b",borderBottomEndRadius:"xnwxkdh",borderBottomStartRadius:"xfocsrx",zIndex:"x11uqc5h",height:"x1m3v4wt",width:"x1oysuqx",$$css:!0},qrCodeOfflineWarning:{cursor:"x1ypdohk",$$css:!0},qrCodeWarningIcon:{color:"xbkck4w",$$css:!0}};function a(a){var b=a.apiCmd,e=a.autoLogoutEnabled;a.children;var f=a.enabedAlternateDeviceLinking,g=a.onAutoLogoutToggle;a=a.onClickLinkWithPhoneNumber;var i=p(d("WAWebSocketModel").Socket.state===d("WAWebSocketConstants").SOCKET_STATE.UNPAIRED_IDLE),j=i[0],k=i[1];i=p(!c("WAWebNetworkStatus").online);var l=i[0],n=i[1];i=p(d("WAWebSocketModel").Socket.state===d("WAWebSocketConstants").SOCKET_STATE.UNPAIRED);var o=i[0],q=i[1];i=function(){g&&void g()};var r=function(){k(d("WAWebSocketModel").Socket.state===d("WAWebSocketConstants").SOCKET_STATE.UNPAIRED_IDLE),n(!c("WAWebNetworkStatus").online),q(d("WAWebSocketModel").Socket.state===d("WAWebSocketConstants").SOCKET_STATE.UNPAIRED),d("WAWebAutoLogoutGating").isAutoLogoutEnabled()&&d("WAWebAutoLogoutGating").isRunningInAutoLgoutIframe()&&d("WAWebSocketModel").Socket.state===d("WAWebSocketConstants").SOCKET_STATE.UNPAIRED&&self.parent.postMessage("QR_CODE_LOADED_FOR_AUTO_LOGOUT")};d("useWAWebListener").useListener(d("WAWebSocketModel").Socket,"change:state change:online",r);l?r=m.jsx(w,{}):j?r=m.jsx(x,{}):o?r=m.jsx(u,{}):r=m.jsx(v,{});e&&!d("WAWebAutoLogoutGating").isRunningInAutoLgoutIframe()&&(r=m.jsx(v,{}));l=null;d("WAWebAutoLogoutGating").isAutoLogoutEnabled()&&(l=m.jsx(d("WAWebLinkDeviceAutoLogoutToggle.react").LinkDeviceAutoLogoutToggle,{autoLogoutEnabled:e,onAutoLogoutToggle:i}));j=z();o=A();return m.jsxs(d("WAWebLinkDeviceCodeView.react").LinkDeviceCodeView,{codeType:d("WAWebLinkDeviceCodeView.react").LinkDeviceCodeViewCodeType.QR,apiCmd:b,banners:m.jsx(c("WAWebLogoutReasonBanner.react"),{}),title:j,subtitle:o,autoLogoutEnabled:e,onAutoLogoutToggle:g,screenReaderSubtitleConfig:{onClick:a,shouldShow:f,text:h._(/*BTDS*/"__JHASH__BKDJEU1W7F9__JHASH__")},alternativeLinkDeviceMethodHint:m.jsx(d("WAWebAlternateDeviceLinkingLink.react").AlternateDeviceLinkingLink,{codeType:d("WAWebLinkDeviceCodeView.react").LinkDeviceCodeViewCodeType.QR,onClick:a,enabled:f}),children:[m.jsx("div",babelHelpers["extends"]({},{0:{},1:{className:"x13zrc24 xbxaen2 x1t1ogtf x1u72gb5"}}[!!c("WAWebEnvironment").isWindows<<0],{children:r})),!d("WAWebLinkDeviceScreenGatedUtils").isLinkDeviceScreenTestVariant()&&l]})}a.displayName=a.name+" [from "+f.id+"]";function u(a){var e;a=a.children;var f=a,g=o();a=p(!1);var h=a[0],j=a[1];a=p(null);var k=a[0],t=a[1],u=c("useWAWebDebouncedCallback")(function(){j(!0)},100),w=function(){if(d("WAWebConnModel").Conn.connected)return(i||(i=b("Promise"))).resolve(void 0);var a=d("WAWebConnModel").Conn.ref;return d("WAWebSignalStoreApi").waSignalStore.getRegistrationInfo().then(function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var e=(yield d("WAWebUserPrefsInfoStore").waNoiseInfo.get());if(!e||!b){d("WALogger").ERROR(l()).sendLogs("Empty noiseInfo or empty regInfo");return null}e=d("WABase64").encodeB64(e.staticKeyPair.pubKey);b=d("WABase64").encodeB64(b.identityKeyPair.pubKey);var f=(yield d("WAWebAdvSignatureApi").getADVSecretKey());e=a+","+e+","+b+","+f+","+d("WAWebCompanionRegClientUtils").DEVICE_PLATFORM;c("gkx")("14464")?e=r+e:c("justknobx")._("770")&&(e+=","+q);return e});return function(a){return e.apply(this,arguments)}}())},x=n(function(){void w().then(function(a){if(a==null||a==="")return;t(a);c("WAWebWamQrCodeCount").inc()})},[t]);a=n(function(a){k!=null&&a!=null&&a.removeAttribute("title")},[k]);d("useWAWebListener").useListener(d("WAWebConnModel").Conn,"change:ref",x);c("useWAWebRenderCallbacks")({onMount:function(){void x(),d("WAWebCmd").Cmd.initialLoadReady()},onUnmount:function(){c("WAWebWamQrCodeCount").reset()}});var z=function(){var a=window.getSelection(),b=g.current;b&&(a==null?void 0:a.selectAllChildren(b),document.execCommand("copy"));d("WAWebModalManager").ModalManager.close()},A=function(){h&&j(!1),u()},B=function(a){u.cancel(),j(!1)},C=function(a){a.stopPropagation(),a.preventDefault(),void w().then(function(a){d("WAWebModalManager").ModalManager.open(m.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:z,okText:"Copy to Clipboard",children:m.jsx(d("WAWebCopyPasteSelectable.react").SelectableSpan,{ref:g,className:"x1mzt3pk x1hx0egp",selectable:!0,children:a})}))})},D=d("WAWebClassnames").classnamesConvertMeToStylexPlease((e={},e[c("WAWebLinkDeviceQrcode.scss").qrcode]=!0,e[c("WAWebLinkDeviceQrcode.scss").idle]=!!f,e),"x1n2onr6 x78zum5 x1okw0bk x6s0dn4 xl56j7k x1tdqgrh x1l76qip x6ikm8r x10wlt62 xm3z3ea x1x8b98j x131883w x16mih1h",d("WAWebLinkDeviceScreenGatedUtils").isLinkDeviceScreenTestVariant()&&"x9r4l05 x8idabb"),E=h&&f==null?{cursor:"none"}:null,F=null;c("gkx")("26258")||(F=C);return k==null?m.jsx(v,{}):m.jsx(d("WAWebQRCode.react").WAWebQRCode,{data:k,size:d("WAWebLinkDeviceScreenGatedUtils").isLinkDeviceScreenTestVariant()?s:d("WAWebFrontendConstants").QR_EDGE,colorDark:"#122e31",onChange:a,children:function(a){return m.jsxs("div",{ref:a,"data-testid":void 0,className:D,"data-ref":k,onContextMenu:F,style:E,onMouseMove:A,onMouseLeave:B,children:[m.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"scale",children:f}),m.jsx("div",{className:c("WAWebLinkDeviceQrcode.scss").codeLogo,children:m.jsx(y,{})})]})}})}u.displayName=u.name+" [from "+f.id+"]";function v(){var a;return m.jsx("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((a={},a[c("WAWebLinkDeviceQrcode.scss").qrcode]=!0,a),"x1n2onr6 x78zum5 x1okw0bk x6s0dn4 xl56j7k x1tdqgrh x1l76qip x6ikm8r x10wlt62 xm3z3ea x1x8b98j x131883w x16mih1h",d("WAWebLinkDeviceScreenGatedUtils").isLinkDeviceScreenTestVariant()&&"x9r4l05 x8idabb"),children:m.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",className:"x1ndca9r xh8yej3 x5yr21d x1a2cdl4 xnhgr82 x1qt0ttw xgk8upj",children:m.jsx(d("WAWebSpinner.react").Spinner,{})})})}v.displayName=v.name+" [from "+f.id+"]";function w(){return m.jsx(u,{children:m.jsx(c("WAWebUnstyledButton.react"),{xstyle:[t.qrCodeWarning,t.qrCodeOfflineWarning,d("WAWebUISpacing").uiMargin.allAuto,d("WAWebUISpacing").uiPadding.horiz30],onClick:function(){d("WAWebCmd").Cmd.refreshQR()},children:m.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",children:[m.jsx(d("WAWebFlex.react").FlexItem,{xstyle:d("WAWebUISpacing").uiMargin.bottom10,children:m.jsx(d("WAWebConnectionIcon.react").ConnectionIcon,{width:48,height:48,iconXstyle:t.qrCodeWarningIcon})}),m.jsx(d("WAWebFlex.react").FlexItem,{justify:"center",align:"center",children:h._(/*BTDS*/"__JHASH__OnvUeCP02Rm__JHASH__")})]})},"offline")})}w.displayName=w.name+" [from "+f.id+"]";function x(){var a=function(){d("WAWebCmd").Cmd.refreshQR()};return m.jsx(u,{children:m.jsx(c("WAWebUnstyledButton.react"),{xstyle:[t.qrCodeWarning,d("WAWebUISpacing").uiMargin.allAuto,d("WAWebUISpacing").uiPadding.horiz30],onClick:a,children:m.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",children:[m.jsx(d("WAWebFlex.react").FlexItem,{xstyle:d("WAWebUISpacing").uiMargin.bottom10,children:m.jsx(d("WAWebRefreshLargeIcon.react").RefreshLargeIcon,{iconXstyle:t.qrCodeWarningIcon})}),m.jsx(d("WAWebFlex.react").FlexItem,{children:h._(/*BTDS*/"__JHASH__E4wdB2IInzG__JHASH__")})]})},"expiry")})}x.displayName=x.name+" [from "+f.id+"]";function y(){return m.jsx("span",babelHelpers["extends"]({},{0:{className:"x1rg5ohu x16dsc37 x82xf8i"},1:{className:"x1rg5ohu x16dsc37 x8dwe99"}}[!!c("WAWebEnvironment").isWindows<<0],{children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",children:[m.jsx("path",{fill:"#FFF",d:"M6.525 43.936a29.596 29.596 0 0 1-3.039-13.075C3.494 14.568 16.755 1.313 33.05 1.313c7.904.004 15.328 3.082 20.91 8.666 5.581 5.586 8.653 13.01 8.65 20.907-.007 16.294-13.266 29.549-29.558 29.549a29.648 29.648 0 0 1-12.508-2.771L1.391 62.687l5.134-18.751z"}),m.jsx("path",{fill:"currentColor",d:"M50.801 13.135c-4.739-4.742-11.039-7.354-17.752-7.357-13.837 0-25.094 11.253-25.099 25.085a25.039 25.039 0 0 0 3.349 12.541l-3.56 12.999 13.304-3.488a25.084 25.084 0 0 0 11.996 3.054h.011c13.83 0 25.088-11.256 25.095-25.087.002-6.703-2.607-13.005-7.344-17.747zM33.05 51.733h-.008a20.866 20.866 0 0 1-10.62-2.906l-.762-.452-7.894 2.07 2.108-7.694-.497-.789a20.802 20.802 0 0 1-3.189-11.097c.004-11.496 9.361-20.85 20.87-20.85a20.73 20.73 0 0 1 14.746 6.115 20.733 20.733 0 0 1 6.104 14.752c-.006 11.497-9.363 20.851-20.858 20.851z"}),m.jsx("path",{fill:"currentColor",d:"M25.429 19.26a8.65 8.65 0 0 0-1.028.011 2.352 2.352 0 0 0-.95.255c-.221.114-.427.277-.75.582-.305.288-.481.54-.668.782a6.974 6.974 0 0 0-1.443 4.291l.001.003a8.243 8.243 0 0 0 .844 3.607c1.043 2.307 2.763 4.746 5.035 7.008a24.676 24.676 0 0 0 1.657 1.6 24.145 24.145 0 0 0 9.814 5.229s.751.179 1.391.218c.021.001.04.003.061.003a9.207 9.207 0 0 0 1.422-.033 5.086 5.086 0 0 0 2.129-.59c.423-.225.623-.337.978-.561 0 0 .11-.072.319-.23.345-.257.558-.438.845-.736.211-.22.394-.479.534-.772.2-.417.401-1.213.481-1.874.061-.505.042-.781.036-.952-.011-.275-.238-.558-.487-.678l-1.486-.668s-2.222-.967-3.581-1.587a1.278 1.278 0 0 0-.452-.104c-.341-.021-.723.068-.966.324v-.004c-.013-.001-.182.145-2.031 2.385-.102.122-.341.387-.754.362a1.086 1.086 0 0 1-.185-.029 3.402 3.402 0 0 1-.49-.17c-.316-.134-.427-.185-.643-.278l-.013-.006a15.361 15.361 0 0 1-4.013-2.556 15.88 15.88 0 0 1-.927-.885c-1.074-1.041-1.953-2.148-2.607-3.24-.035-.06-.09-.146-.15-.242-.107-.174-.225-.381-.262-.523-.095-.376.157-.678.157-.678s.622-.68.911-1.05c.278-.356.518-.704.671-.952.301-.484.39-.982.238-1.37a216.767 216.767 0 0 0-2.219-5.215c-.156-.339-.598-.589-1.005-.636a6.284 6.284 0 0 0-.414-.041"})]})}))}y.displayName=y.name+" [from "+f.id+"]";function z(){if(c("WAWebEnvironment").isWindows)return h._(/*BTDS*/"__JHASH__gWXieCq4jgl__JHASH__");switch(d("WAWebLinkDeviceScreenGatedUtils").getLinkDeviceScreenVariant()){case d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.TEST1:case d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.TEST2:return h._(/*BTDS*/"__JHASH__jypn0POnddx__JHASH__");case d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.CONTROL:case d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.NONE:return h._(/*BTDS*/"__JHASH__WJOODex4B-6__JHASH__")}}function A(){if(c("WAWebEnvironment").isWindows)return null;switch(d("WAWebLinkDeviceScreenGatedUtils").getLinkDeviceScreenVariant()){case d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.TEST1:case d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.TEST2:return null;case d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.CONTROL:case d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.NONE:return h._(/*BTDS*/"__JHASH__WPKXeg2McUH__JHASH__")}}g["default"]=a}),226); __d("WAWebLinkDeviceMethod.react",["WAWebAltDeviceLinkingApi","WAWebAutoLogoutGating","WAWebConnModel","WAWebLinkDeviceAction","WAWebLinkDevicePhoneNumber.react","WAWebLinkDeviceQrcode.react","WAWebUA","asyncToGeneratorRuntime","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState;function a(a){var e=a.apiCmd,f=a.autoLogoutEnabled;a=a.onAutoLogoutToggle;var g=d("WAWebUA").UA.isOculusBroswer,h=k(g),i=h[0],l=h[1];h=k(g);var m=h[0],n=h[1],o=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield d("WAWebLinkDeviceAction").resetLinkDeviceState({linkDeviceMethod:a?d("WAWebAltDeviceLinkingApi").PairingType.ALT_DEVICE_LINKING:d("WAWebAltDeviceLinkingApi").PairingType.QR_CODE}),n(a)});return function(b){return a.apply(this,arguments)}}();g=k(null);h=g[0];var p=g[1];d("useWAWebListener").useListener(d("WAWebConnModel").Conn,"change:ref",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(i&&m){void d("WAWebLinkDeviceAction").resetLinkDeviceState({linkDeviceMethod:d("WAWebAltDeviceLinkingApi").PairingType.ALT_DEVICE_LINKING}).then(function(){return l(!1)});return}var a=(yield d("WAWebLinkDeviceAction").getPreselectedCountryCodeIso());p(a)}),{once:!0});if(m)return j.jsx(c("WAWebLinkDevicePhoneNumber.react"),{apiCmd:e,initialCountryId:h,isLinkingPageLoading:i,onClickLinkWithQr:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a==null?void 0:a.preventDefault(),a==null?void 0:a.stopPropagation(),yield o(!1)});return function(b){return a.apply(this,arguments)}}()});g=!f||d("WAWebAutoLogoutGating").isRunningInAutoLgoutIframe();return j.jsx(c("WAWebLinkDeviceQrcode.react"),{apiCmd:e,enabedAlternateDeviceLinking:g,onAutoLogoutToggle:a,autoLogoutEnabled:f,onClickLinkWithPhoneNumber:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a==null?void 0:a.preventDefault(),a==null?void 0:a.stopPropagation(),yield o(!0)});return function(b){return a.apply(this,arguments)}}()})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useWAWebDesktopUpsellQRCodeBannerType",["$InternalEnum","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellQRCodeBannerExperiment","WAWebUserPrefsKeys","WAWebUserPrefsStore","WAWebWamEnumWebcNativeUpsellCtaQrScreenExperimentGroup"],(function(a,b,c,d,e,f,g){var h=b("$InternalEnum")({NONE:"none",SLIM:"slim",LARGE:"large"});function a(){var a=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformAwareOsVersionCheck();if(!a)return h.NONE;a=d("WAWebDesktopUpsellQRCodeBannerExperiment").getWAWebDesktopUpsellQRCodeBannerExperiment();switch(a){case d("WAWebWamEnumWebcNativeUpsellCtaQrScreenExperimentGroup").WEBC_NATIVE_UPSELL_CTA_QR_SCREEN_EXPERIMENT_GROUP.NONE:case d("WAWebWamEnumWebcNativeUpsellCtaQrScreenExperimentGroup").WEBC_NATIVE_UPSELL_CTA_QR_SCREEN_EXPERIMENT_GROUP.CONTROL:return h.NONE;case d("WAWebWamEnumWebcNativeUpsellCtaQrScreenExperimentGroup").WEBC_NATIVE_UPSELL_CTA_QR_SCREEN_EXPERIMENT_GROUP.TEST_BANNER_SLIM:return h.SLIM;case d("WAWebWamEnumWebcNativeUpsellCtaQrScreenExperimentGroup").WEBC_NATIVE_UPSELL_CTA_QR_SCREEN_EXPERIMENT_GROUP.TEST_BANNER_LARGE:a=c("WAWebUserPrefsStore").get(d("WAWebUserPrefsKeys").KEYS.DESKTOP_UPSELL_USER_HAS_SEEN_LARGE_BANNER);return a===!0?h.NONE:h.LARGE}return h.NONE}g.WAWebDesktopUpsellQRCodeBannerType=h;g.useWAWebDesktopUpsellQRCodeBannerType=a}),98); __d("useWAWebLinkDeviceAutoLogout",["WALogger","WAWebAutoLogoutGating","WAWebCmd","WAWebConfirmPopup.react","WAWebLinkDeviceAutoLogoutIFrame.react","WAWebModalManager","gkx","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[auto-logout] iframe timeout"]);j=function(){return a};return a}b=i||d("react");var k=h||(h=c("react")),l=b.useCallback,m=b.useState;function a(){var a=m(function(){return d("WAWebAutoLogoutGating").isAutoLogoutEnabled()&&d("WAWebAutoLogoutGating").isRunningInAutoLgoutIframe()?!0:!1}),b=a[0],e=a[1];a=m(!1);var f=a[0],g=a[1],h=l(function(){if(!d("WAWebAutoLogoutGating").isAutoLogoutEnabled())return;if(c("gkx")("26259")){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:"Auto logout is not supported in intern. Please use the prod or debug app."}));return}if(b&&d("WAWebAutoLogoutGating").isRunningInAutoLgoutIframe()){self.parent.postMessage("AUTO_LOGOUT_DISABLED");return}var a=!b;e(a);a||d("WAWebCmd").Cmd.refreshQR()},[b]);a=function(a){if(!d("WAWebAutoLogoutGating").isAutoLogoutEnabled()&&d("WAWebAutoLogoutGating").isRunningInAutoLgoutIframe())return;switch(a.data){case"QR_CODE_LOADED_FOR_AUTO_LOGOUT":g(!0);break;case"AUTO_LOGOUT_DISABLED":g(!1),e(!1),d("WAWebCmd").Cmd.refreshQR()}};var i=function(){d("WALogger").WARN(j()),b&&h()};d("useWAWebListener").useListener(d("WAWebAutoLogoutGating").isAutoLogoutEnabled()?window:null,"message",a);a=k.jsx(c("WAWebLinkDeviceAutoLogoutIFrame.react"),{autoLogoutEnabled:b,visible:f,onTimeout:i});return{autoLogoutEnabled:b,handleAutoLogoutToggle:h,autoLogoutIframe:a,autoLogoutIframeLoaded:f}}g["default"]=a}),98); __d("WAWebLinkDeviceScreen.react",["WAWebAutoLogoutGating","WAWebDesktopUpsellQRCodeLargeBanner.react","WAWebDesktopUpsellQRCodeSlimBanner.react","WAWebEnvironment","WAWebFlex.react","WAWebLandingFooter.react","WAWebLandingHeader.react","WAWebLinkDeviceExperience","WAWebLinkDeviceMethod.react","WAWebLinkDeviceScreenGatedUtils","WAWebPageLoadLogging","WAWebUISpacing","react","stylex","useWAWebDesktopUpsellQRCodeBannerType","useWAWebLinkDeviceAutoLogout"],(function(a,b,c,d,e,f,g){var h,i,j,k=j||c("react"),l=(h||(h=d("react"))).useEffect,m={wrapper:{height:"x1dr59a3",minHeight:"xp22266 xcnrxux",overflowX:"xw2csxc",overflowY:"x1odjw0f",paddingTop:"xyinxu5",paddingEnd:"xbxaen2",paddingBottom:"x1g2khh7",paddingStart:"x1u72gb5",minWidth:"xp9ttsr",alignItems:"x6s0dn4",boxSizing:"x9f619",fontFamily:"xdounpk",color:"x1hql6x6",$$css:!0},wrapperSlimBanner:{minHeight:"x1g96xxu x1t470q2",$$css:!0},wrapperLargeBanner:{minHeight:"x1s5afd xx5he6x",$$css:!0},headerFooterContainer:{width:"xh8yej3",height:"xwzfr38",$$css:!0},wrapperWeb:{background:"xe4h88v",$$css:!0},wrapperWindows:{background:"xp8kixx",$$css:!0},upsellBannerContainer:{display:"x1lliihq",width:"xh8yej3",$$css:!0}};function a(a){l(function(){d("WAWebPageLoadLogging").endPageLoadQpl(!0,d("WAWebLinkDeviceExperience").getWebCompanionLinkDeviceExperienceId())});var b=c("useWAWebLinkDeviceAutoLogout")(),e=b.autoLogoutEnabled,f=b.handleAutoLogoutToggle,g=b.autoLogoutIframe;b=b.autoLogoutIframeLoaded;e=d("WAWebAutoLogoutGating").isRunningInAutoLgoutIframe()||e;b=!d("WAWebAutoLogoutGating").isRunningInAutoLgoutIframe()&&b;var h=d("useWAWebDesktopUpsellQRCodeBannerType").useWAWebDesktopUpsellQRCodeBannerType();f=babelHelpers["extends"]({onAutoLogoutToggle:f,autoLogoutEnabled:e},a);if(b)return k.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",className:{0:"x1dr59a3 xp22266 xcnrxux xw2csxc x1odjw0f xyinxu5 xbxaen2 x1g2khh7 x1u72gb5 xp9ttsr x6s0dn4 x9f619 xdounpk x1hql6x6 xp8kixx",1:"x1dr59a3 xp22266 xcnrxux xw2csxc x1odjw0f xyinxu5 xbxaen2 x1g2khh7 x1u72gb5 xp9ttsr x6s0dn4 x9f619 xdounpk x1hql6x6 xe4h88v"}[!!c("WAWebEnvironment").isWeb<<0],children:g});e=k.jsx(n,{upsellBannerType:h});return k.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:[m.wrapper,c("WAWebEnvironment").isWeb?m.wrapperWeb:m.wrapperWindows,h===d("useWAWebDesktopUpsellQRCodeBannerType").WAWebDesktopUpsellQRCodeBannerType.SLIM&&m.wrapperSlimBanner,h===d("useWAWebDesktopUpsellQRCodeBannerType").WAWebDesktopUpsellQRCodeBannerType.LARGE&&m.wrapperLargeBanner],children:[g,k.jsx(d("WAWebFlex.react").FlexItem,{xstyle:m.headerFooterContainer,children:k.jsx(c("WAWebLandingHeader.react"),{showAppDownloadButton:h===d("useWAWebDesktopUpsellQRCodeBannerType").WAWebDesktopUpsellQRCodeBannerType.NONE,surface:"link-device-screen"})}),k.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",grow:1,rowGap:d("WAWebLinkDeviceScreenGatedUtils").isLinkDeviceScreenTestVariant()?16:void 0,children:[d("WAWebLinkDeviceScreenGatedUtils").getLinkDeviceScreenVariant()!==d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.TEST2&&e,k.jsx("div",babelHelpers["extends"]({className:"x1lliihq"},{children:k.jsx(d("WAWebFlex.react").FlexItem,{align:"center",justify:"center",className:{0:"x1lxuw3u x1ow4hk9 x1qb7uk6 xefzj8c x3hkoc4 xp8fpb xjcfk4l x10zrdz0 xp22k0r x178xt8z xm81vs4 xso031l xy80clv x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xpypsur xvi2zh2 x249io5 x1es969t x12peec7 xui2vq6 x9y6a88 x12nadjy x17dzqc7 x1yfuvwo",1:"xy296fx xbl0rts x4i7bpe xs022h5 x1sgudl8 x8aayfw xp8fpb xjcfk4l x10zrdz0 xp22k0r x178xt8z xm81vs4 xso031l xy80clv x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xpypsur xvi2zh2 x249io5 x1es969t x12peec7 x91od0 xvl3i4w xk7ajd6 xzg3blf x1a9o7r2"}[!!d("WAWebLinkDeviceScreenGatedUtils").isLinkDeviceScreenTestVariant()<<0],children:k.jsx(c("WAWebLinkDeviceMethod.react"),babelHelpers["extends"]({},f))})})),d("WAWebLinkDeviceScreenGatedUtils").getLinkDeviceScreenVariant()===d("WAWebLinkDeviceScreenGatedUtils").LinkDeviceScreenVariantType.TEST2&&e,k.jsx(d("WAWebFlex.react").FlexItem,{children:k.jsx(c("WAWebLandingFooter.react"),{testVariant:d("WAWebLinkDeviceScreenGatedUtils").isLinkDeviceScreenTestVariant()})})]}),k.jsx(d("WAWebFlex.react").FlexItem,{xstyle:m.headerFooterContainer})]})}a.displayName=a.name+" [from "+f.id+"]";function n(a){a=a.upsellBannerType;var b=[m.upsellBannerContainer,!d("WAWebLinkDeviceScreenGatedUtils").isLinkDeviceScreenTestVariant()&&d("WAWebUISpacing").uiMargin.bottom20];return k.jsxs(k.Fragment,{children:[a===d("useWAWebDesktopUpsellQRCodeBannerType").WAWebDesktopUpsellQRCodeBannerType.SLIM&&k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(b),{children:k.jsx(c("WAWebDesktopUpsellQRCodeSlimBanner.react"),{testVariant:d("WAWebLinkDeviceScreenGatedUtils").isLinkDeviceScreenTestVariant()})})),a===d("useWAWebDesktopUpsellQRCodeBannerType").WAWebDesktopUpsellQRCodeBannerType.LARGE&&k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(b),{children:k.jsx(c("WAWebDesktopUpsellQRCodeLargeBanner.react"),{})}))]})}n.displayName=n.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebLinkedAccountsJob",["WAPromiseRetryLoop","WASmaxBizLinkingGetLinkedAccountsRPC","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h=3,i=250,j=1e3,k=function(){var a=h,c=function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var c=(yield d("WASmaxBizLinkingGetLinkedAccountsRPC").sendGetLinkedAccountsRPC({})),e=[];switch(c.name){case"GetLinkedAccountsResponseForbidden":b(null);return;case"GetLinkedAccountsResponseError":break;default:c.name;if(c.value.linkedAccountsFbPage){var f;e.push({type:"facebook",id:(f=c.value.linkedAccountsFbPage)==null?void 0:f.id,hasActiveLinkedAd:((f=c.value.linkedAccountsFbPage)==null?void 0:f.adStatusHasActiveCtwaAd)==="true",hasCreatedAd:((f=c.value.linkedAccountsFbPage)==null?void 0:f.adStatusHasCreatedAd)==="true"})}if(c.value.linkedAccountsWhatsappAdIdentity){e.push({type:"whatsapp",id:(f=c.value.linkedAccountsWhatsappAdIdentity)==null?void 0:f.id,hasActiveLinkedAd:((f=c.value.linkedAccountsWhatsappAdIdentity)==null?void 0:f.adStatusHasActiveCtwaAd)==="true",hasCreatedAd:((f=c.value.linkedAccountsWhatsappAdIdentity)==null?void 0:f.adStatusHasCreatedAd)==="true"})}b({accounts:e});return}--a===0&&b(null)});return function(a){return c.apply(this,arguments)}}();c=new(d("WAPromiseRetryLoop").PromiseRetryLoop)({name:"queryLinkedAccounts",timer:{algo:{type:"exponential",first:i},max:j},code:c});c.start();return c.promise()};a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield k());if(!a)return null;if(a.accounts.length===0)return"not-linked";var b=a.accounts.find(function(a){return a.type==="whatsapp"});a=a.accounts.find(function(a){return a.type==="facebook"});if(b)return{id:b.id,hasCreatedAd:b.hasCreatedAd,hasFacebookPage:a!=null,type:b.type};return a?{id:a.id,hasCreatedAd:a.hasCreatedAd,hasFacebookPage:!0,type:a.type}:"not-linked"});return function(){return a.apply(this,arguments)}}();g.queryActiveLinkedAccountInfo=a}),98); __d("WAWebLinkedAccountsAction",["WAWebLinkedAccountsJob"],(function(a,b,c,d,e,f,g){function a(){return d("WAWebLinkedAccountsJob").queryActiveLinkedAccountInfo()}g.getActiveLinkedAccountInfo=a}),98); __d("WAWebMetaBotMenuBarItem.react",["fbt","WAWebBotFrontendUtils","WAWebChatEntryPoint","WAWebFlex.react","WAWebImg.react","WAWebMenuBar.react","WAWebTabOrder","bx","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={iconWrapper:{width:"x17z2i9w",height:"x17rw0jw",$$css:!0}};function a(a){var b=a.onClick,e=a.ref,f=a.showHoverTooltip;f=f===void 0?!1:f;a=a.vertical;var g=function(){void d("WAWebBotFrontendUtils").openMetaBotChat(d("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut),b==null?void 0:b()};return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{ref:e,testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:j.jsx(d("WAWebFlex.react").FlexColumn,{grow:1,align:"center",justify:"center",xstyle:k.iconWrapper,children:j.jsx(c("WAWebImg.react"),{src:c("bx").getURL(c("bx")("14943")),style:{width:20,height:20},draggable:!1})}),title:h._(/*BTDS*/"__JHASH__SHQfr2Qd8JF__JHASH__"),onClick:g,vertical:a,showHoverTooltip:f},"btn-meta-bot")}a.displayName=a.name+" [from "+f.id+"]";g.MetaBotMenuBarItem=a}),226); __d("WAWebNewsletterTabMenuBarItem.react",["fbt","WAWebMenuBar.react","WAWebNavBarTypes","WAWebNavBarUtils","WAWebNewsletterCollection","WAWebTabOrder","WAWebUserPrefsNewsletter","react","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.onClick,e=a.ref,f=a.selected;f=f===void 0?!1:f;a=a.vertical;var g=c("useWAWebEventTargetValue")(c("WAWebNewsletterCollection"),"add change remove newsletter_tab_close",function(){return c("WAWebNewsletterCollection").hasAnyUnreadSinceGivenTimestamp(d("WAWebUserPrefsNewsletter").getNewsletterTabLastSeenTimestamp())});g=d("WAWebNavBarUtils").getNavBarIcon(d("WAWebNavBarTypes").NavBarItems.Newsletters,f,g);return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{ref:e,testid:void 0,title:h._(/*BTDS*/"__JHASH__fuYpEH3JPqz__JHASH__"),tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:g,onClick:b,theme:"force-size",vertical:a,selected:f,showHoverTooltip:!0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebSettingsOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="settings-outline";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M11.75 14.5C13.1307 14.5 14.25 13.3807 14.25 12C14.25 10.6193 13.1307 9.5 11.75 9.5C10.3693 9.5 9.25 10.6193 9.25 12C9.25 13.3807 10.3693 14.5 11.75 14.5Z",stroke:"currentColor",strokeWidth:2}),j.jsx("mask",{id:"mask0_226_11",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:2,y:2,width:20,height:20,children:j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.87042 22H13.6204C13.8704 22 14.0871 21.9167 14.2704 21.75C14.4538 21.5833 14.5621 21.375 14.5954 21.125L14.8954 18.8C15.0954 18.7167 15.2954 18.6167 15.4954 18.5C15.6954 18.3833 15.8871 18.2583 16.0704 18.125L18.1954 19.025C18.4288 19.1083 18.6663 19.1125 18.9079 19.0375C19.1496 18.9625 19.3371 18.8167 19.4704 18.6L21.3204 15.4C21.4538 15.1833 21.4954 14.95 21.4454 14.7C21.3954 14.45 21.2704 14.25 21.0704 14.1L19.1954 12.675C19.2288 12.5583 19.2454 12.4458 19.2454 12.3375V11.6625C19.2454 11.5542 19.2371 11.4417 19.2204 11.325L21.0954 9.9C21.2954 9.75 21.4204 9.55 21.4704 9.3C21.5204 9.05 21.4788 8.81667 21.3454 8.6L19.4954 5.375C19.3621 5.15833 19.1788 5.01667 18.9454 4.95C18.7121 4.88333 18.4788 4.89167 18.2454 4.975L16.0704 5.875C15.8871 5.74167 15.6996 5.61667 15.5079 5.5C15.3163 5.38333 15.1121 5.28333 14.8954 5.2L14.5954 2.875C14.5621 2.625 14.4538 2.41667 14.2704 2.25C14.0871 2.08333 13.8704 2 13.6204 2H9.87042C9.62046 2 9.40379 2.08333 9.22046 2.25C9.03712 2.41667 8.92879 2.625 8.89546 2.875L8.59546 5.2C8.39546 5.28333 8.19546 5.38333 7.99546 5.5C7.79546 5.61667 7.60379 5.74167 7.42046 5.875L5.24546 4.975C5.01212 4.89167 4.77462 4.87917 4.53296 4.9375C4.29129 4.99583 4.11212 5.14167 3.99546 5.375L2.14546 8.6C2.01212 8.81667 1.97046 9.05 2.02046 9.3C2.07046 9.55 2.19546 9.75 2.39546 9.9L4.27046 11.325C4.25379 11.4417 4.24546 11.5542 4.24546 11.6625V12.3375C4.24546 12.4458 4.25379 12.5583 4.27046 12.675L2.39546 14.1C2.19546 14.25 2.07046 14.45 2.02046 14.7C1.97046 14.95 2.01212 15.1833 2.14546 15.4L3.99546 18.625C4.12879 18.8417 4.31212 18.9833 4.54546 19.05C4.77879 19.1167 5.01212 19.1083 5.24546 19.025L7.42046 18.125C7.60379 18.2583 7.79129 18.3833 7.98296 18.5C8.17462 18.6167 8.37879 18.7167 8.59546 18.8L8.89546 21.125C8.92879 21.375 9.03712 21.5833 9.22046 21.75C9.40379 21.9167 9.62046 22 9.87042 22Z",fill:"white"})}),j.jsx("g",{mask:"url(#mask0_226_11)",children:j.jsx("path",{d:"M14.5954 21.125L16.5779 21.3893L16.579 21.3809L14.5954 21.125ZM14.8954 18.8L14.1262 16.9538L13.0597 17.3982L12.9119 18.5441L14.8954 18.8ZM16.0704 18.125L16.8504 16.2834L15.8089 15.8422L14.8941 16.5075L16.0704 18.125ZM18.1954 19.025L17.4155 20.8666L17.4685 20.8891L17.5228 20.9085L18.1954 19.025ZM19.4704 18.6L21.1738 19.6482L21.1882 19.6248L21.2019 19.601L19.4704 18.6ZM21.3204 15.4L19.6171 14.3518L19.6027 14.3752L19.589 14.399L21.3204 15.4ZM21.0704 14.1L19.8602 15.6924L19.8704 15.7L21.0704 14.1ZM19.1954 12.675L17.2724 12.1256L16.8968 13.4401L17.9853 14.2673L19.1954 12.675ZM19.2204 11.325L18.0103 9.73268L17.0743 10.444L17.2405 11.6078L19.2204 11.325ZM21.0954 9.9L19.8954 8.29997L19.8853 8.30768L21.0954 9.9ZM21.3454 8.6L19.6106 9.59517L19.626 9.62193L19.6421 9.64819L21.3454 8.6ZM19.4954 5.375L21.2303 4.37983L21.2149 4.35307L21.1988 4.32681L19.4954 5.375ZM18.2454 4.975L17.5728 3.09152L17.5263 3.10811L17.4807 3.12697L18.2454 4.975ZM16.0704 5.875L14.8941 7.49247L15.8 8.15135L16.8351 7.72303L16.0704 5.875ZM14.8954 5.2L12.9119 5.45594L13.0645 6.63862L14.1775 7.06669L14.8954 5.2ZM14.5954 2.875L16.579 2.61905L16.5779 2.61067L14.5954 2.875ZM8.89544 2.875L6.91296 2.61067L6.91188 2.61906L8.89544 2.875ZM8.59544 5.2L9.36467 7.04615L10.4311 6.60179L10.579 5.45594L8.59544 5.2ZM7.42044 5.875L6.65573 7.72303L7.69083 8.15135L8.59678 7.49247L7.42044 5.875ZM5.24544 4.975L6.01014 3.12697L5.96456 3.10811L5.91811 3.09152L5.24544 4.975ZM3.99544 5.375L5.73027 6.37017L5.75872 6.32057L5.78429 6.26943L3.99544 5.375ZM2.14544 8.6L3.84875 9.64819L3.86492 9.62193L3.88027 9.59517L2.14544 8.6ZM2.39544 9.9L3.60563 8.30764L3.59544 8.3L2.39544 9.9ZM4.27044 11.325L6.25034 11.6078L6.4166 10.444L5.4806 9.73268L4.27044 11.325ZM4.27044 12.675L5.4806 14.2673L6.4166 13.556L6.25034 12.3922L4.27044 12.675ZM2.39544 14.1L3.59546 15.7L3.6056 15.6923L2.39544 14.1ZM2.14544 15.4L3.88027 14.4048L3.86492 14.3781L3.84875 14.3518L2.14544 15.4ZM3.99544 18.625L2.26061 19.6202L2.27596 19.6469L2.29212 19.6732L3.99544 18.625ZM5.24544 19.025L5.91811 20.9085L5.96456 20.8919L6.01014 20.873L5.24544 19.025ZM7.42044 18.125L8.59678 16.5075L7.69083 15.8487L6.65573 16.277L7.42044 18.125ZM8.59544 18.8L10.579 18.5441L10.4264 17.3614L9.3134 16.9333L8.59544 18.8ZM8.89544 21.125L6.91186 21.3809L6.91298 21.3893L8.89544 21.125ZM13.6204 20H9.8704V24H13.6204V20ZM12.9251 20.2701C13.0043 20.1981 13.1143 20.1239 13.2525 20.0708C13.3903 20.0178 13.519 20 13.6204 20V24C14.363 24 15.0606 23.7345 15.6158 23.2299L12.9251 20.2701ZM12.613 20.8607C12.6247 20.7729 12.6543 20.6624 12.7148 20.546C12.7755 20.4292 12.8517 20.3369 12.9251 20.2701L15.6158 23.2299C16.155 22.7397 16.4834 22.0978 16.5779 21.3893L12.613 20.8607ZM12.9119 18.5441L12.6119 20.8691L16.579 21.3809L16.879 19.0559L12.9119 18.5441ZM14.4877 16.7724C14.3593 16.8474 14.2388 16.9069 14.1262 16.9538L15.6647 20.6462C15.9521 20.5264 16.2316 20.386 16.5032 20.2276L14.4877 16.7724ZM14.8941 16.5075C14.7662 16.6005 14.6309 16.6889 14.4877 16.7724L16.5032 20.2276C16.76 20.0778 17.008 19.9161 17.2468 19.7425L14.8941 16.5075ZM18.9754 17.1834L16.8504 16.2834L15.2905 19.9666L17.4155 20.8666L18.9754 17.1834ZM18.3151 17.1274C18.3842 17.1059 18.4762 17.089 18.5836 17.0909C18.6916 17.0928 18.7889 17.1132 18.8681 17.1415L17.5228 20.9085C18.1732 21.1408 18.855 21.148 19.5007 20.9476L18.3151 17.1274ZM17.7671 17.5518C17.8169 17.4708 17.8937 17.3774 18.0019 17.2932C18.1103 17.2089 18.2212 17.1565 18.3151 17.1274L19.5007 20.9476C20.2074 20.7283 20.7883 20.2746 21.1738 19.6482L17.7671 17.5518ZM19.589 14.399L17.739 17.599L21.2019 19.601L23.0519 16.401L19.589 14.399ZM19.4843 15.0922C19.464 14.9906 19.4565 14.8586 19.4828 14.7109C19.5092 14.5632 19.5621 14.4412 19.6171 14.3518L23.0238 16.4482C23.4225 15.8002 23.5555 15.0521 23.4066 14.3078L19.4843 15.0922ZM19.8704 15.7C19.7852 15.6361 19.694 15.5438 19.6182 15.4225C19.5427 15.3017 19.5028 15.1847 19.4843 15.0922L23.4066 14.3078C23.2622 13.5858 22.8726 12.9516 22.2704 12.5L19.8704 15.7ZM17.9853 14.2673L19.8602 15.6924L22.2806 12.5077L20.4056 11.0827L17.9853 14.2673ZM17.2454 12.3375C17.2454 12.2393 17.2607 12.1665 17.2724 12.1256L21.1185 13.2244C21.1968 12.9502 21.2454 12.6524 21.2454 12.3375H17.2454ZM17.2454 11.6625V12.3375H21.2454V11.6625H17.2454ZM17.2405 11.6078C17.245 11.6389 17.2454 11.6566 17.2454 11.6625H21.2454C21.2454 11.4517 21.2292 11.2444 21.2003 11.0422L17.2405 11.6078ZM19.8853 8.30768L18.0103 9.73268L20.4306 12.9173L22.3056 11.4923L19.8853 8.30768ZM19.5093 8.90777C19.5278 8.81526 19.5677 8.69828 19.6432 8.5775C19.719 8.45616 19.8102 8.3639 19.8954 8.29997L22.2954 11.5C22.8976 11.0484 23.2872 10.4142 23.4316 9.69223L19.5093 8.90777ZM19.6421 9.64819C19.5871 9.5588 19.5342 9.43682 19.5078 9.28908C19.4815 9.14142 19.489 9.00936 19.5093 8.90777L23.4316 9.69223C23.5805 8.94794 23.4475 8.19983 23.0488 7.55181L19.6421 9.64819ZM17.7606 6.37017L19.6106 9.59517L23.0803 7.60483L21.2303 4.37983L17.7606 6.37017ZM18.396 6.87305C18.2804 6.84001 18.1537 6.78048 18.035 6.68882C17.9177 6.59818 17.8396 6.50037 17.7921 6.42319L21.1988 4.32681C20.8175 3.70724 20.2335 3.238 19.4949 3.02695L18.396 6.87305ZM18.9181 6.85848C18.8533 6.88163 18.7675 6.90138 18.6668 6.90498C18.5657 6.90859 18.473 6.89505 18.396 6.87305L19.4949 3.02695C18.8511 2.84301 18.1905 2.8709 17.5728 3.09152L18.9181 6.85848ZM16.8351 7.72303L19.0101 6.82303L17.4807 3.12697L15.3057 4.02697L16.8351 7.72303ZM14.468 7.2084C14.6125 7.29634 14.7545 7.39097 14.8941 7.49247L17.2468 4.25753C17.0197 4.09236 16.7867 3.93699 16.5478 3.7916L14.468 7.2084ZM14.1775 7.06669C14.2862 7.10849 14.3822 7.15615 14.468 7.2084L16.5478 3.7916C16.2503 3.61052 15.938 3.45817 15.6134 3.33331L14.1775 7.06669ZM12.6119 3.13094L12.9119 5.45594L16.879 4.94406L16.579 2.61905L12.6119 3.13094ZM12.9251 3.72988C12.8517 3.66314 12.7755 3.57076 12.7148 3.45395C12.6543 3.33761 12.6247 3.22709 12.613 3.13933L16.5779 2.61067C16.4834 1.90221 16.155 1.26032 15.6158 0.77012L12.9251 3.72988ZM13.6204 4C13.519 4 13.3903 3.98222 13.2525 3.92919C13.1143 3.87605 13.0043 3.80191 12.9251 3.72988L15.6158 0.77012C15.0606 0.265451 14.363 0 13.6204 0V4ZM9.8704 4H13.6204V0H9.8704V4ZM10.5658 3.72988C10.4865 3.80191 10.3766 3.87605 10.2384 3.92919C10.1005 3.98222 9.9719 4 9.8704 4V0C9.12787 0 8.43023 0.265451 7.87509 0.77012L10.5658 3.72988ZM10.8779 3.13933C10.8662 3.22709 10.8366 3.33762 10.7761 3.45396C10.7154 3.57076 10.6392 3.66314 10.5658 3.72988L7.87509 0.77012C7.33588 1.26032 7.00742 1.9022 6.91296 2.61067L10.8779 3.13933ZM10.579 5.45594L10.879 3.13094L6.91188 2.61906L6.61188 4.94406L10.579 5.45594ZM9.00318 7.22756C9.1316 7.15265 9.25209 7.09306 9.36467 7.04615L7.82621 3.35385C7.53878 3.47361 7.25928 3.61402 6.9877 3.77244L9.00318 7.22756ZM8.59678 7.49247C8.72465 7.39947 8.85996 7.3111 9.00318 7.22756L6.9877 3.77244C6.73092 3.92223 6.48289 4.08386 6.24409 4.25753L8.59678 7.49247ZM4.48073 6.82303L6.65573 7.72303L8.18514 4.02697L6.01014 3.12697L4.48073 6.82303ZM5.00222 6.88166C4.94371 6.89579 4.87006 6.90472 4.78719 6.90036C4.70427 6.896 4.63109 6.87931 4.57277 6.85848L5.91811 3.09152C5.31682 2.87677 4.6824 2.84398 4.06366 2.99334L5.00222 6.88166ZM5.78429 6.26943C5.73217 6.37367 5.6371 6.51376 5.47986 6.64175C5.32037 6.77156 5.14931 6.84616 5.00222 6.88166L4.06366 2.99334C3.21731 3.19763 2.572 3.74974 2.20658 4.48057L5.78429 6.26943ZM3.88027 9.59517L5.73027 6.37017L2.26061 4.37983L0.410609 7.60483L3.88027 9.59517ZM3.9816 8.90777C4.00192 9.00936 4.00941 9.14142 3.98304 9.28908C3.95666 9.43682 3.90377 9.5588 3.84875 9.64819L0.442121 7.55181C0.0433362 8.19983 -0.0895818 8.94794 0.0592762 9.69223L3.9816 8.90777ZM3.59544 8.3C3.68068 8.36393 3.77185 8.45616 3.84768 8.5775C3.92317 8.69828 3.9631 8.81525 3.9816 8.90777L0.0592762 9.69223C0.203672 10.4142 0.593266 11.0484 1.19544 11.5L3.59544 8.3ZM5.4806 9.73268L3.60563 8.30764L1.18527 11.4923L3.06027 12.9173L5.4806 9.73268ZM6.24544 11.6625C6.24544 11.6566 6.2459 11.6389 6.25034 11.6078L2.29054 11.0422C2.26164 11.2444 2.24544 11.4517 2.24544 11.6625H6.24544ZM6.24544 12.3375V11.6625H2.24544V12.3375H6.24544ZM6.25034 12.3922C6.2459 12.3611 6.24544 12.3434 6.24544 12.3375H2.24544C2.24544 12.5483 2.26164 12.7556 2.29054 12.9578L6.25034 12.3922ZM3.6056 15.6923L5.4806 14.2673L3.06027 11.0827L1.18527 12.5077L3.6056 15.6923ZM3.9816 15.0922C3.9631 15.1847 3.92317 15.3017 3.84768 15.4225C3.77185 15.5438 3.6807 15.6361 3.59546 15.7L1.19544 12.5C0.593266 12.9516 0.203672 13.5858 0.0592762 14.3078L3.9816 15.0922ZM3.84875 14.3518C3.90377 14.4412 3.95666 14.5632 3.98304 14.7109C4.00941 14.8586 4.00192 14.9906 3.9816 15.0922L0.0592762 14.3078C-0.0895818 15.0521 0.0433353 15.8002 0.442122 16.4482L3.84875 14.3518ZM5.73027 17.6298L3.88027 14.4048L0.410609 16.3952L2.26061 19.6202L5.73027 17.6298ZM5.09489 17.127C5.21053 17.16 5.33721 17.2195 5.45583 17.3112C5.57313 17.4018 5.65126 17.4996 5.69876 17.5768L2.29212 19.6732C2.6734 20.2928 3.25734 20.762 3.99599 20.973L5.09489 17.127ZM4.57276 17.1415C4.63756 17.1184 4.72334 17.0986 4.82405 17.095C4.92518 17.0914 5.01786 17.1049 5.09489 17.127L3.99599 20.973C4.63979 21.157 5.30038 21.1291 5.91811 20.9085L4.57276 17.1415ZM6.65573 16.277L4.48073 17.177L6.01014 20.873L8.18514 19.973L6.65573 16.277ZM9.02283 16.7916C8.87835 16.7037 8.73635 16.609 8.59678 16.5075L6.24409 19.7425C6.47119 19.9076 6.70419 20.063 6.94304 20.2084L9.02283 16.7916ZM9.3134 16.9333C9.20471 16.8915 9.10868 16.8439 9.02283 16.7916L6.94304 20.2084C7.24053 20.3895 7.55283 20.5418 7.87747 20.6667L9.3134 16.9333ZM10.879 20.8691L10.579 18.5441L6.61188 19.0559L6.91186 21.3809L10.879 20.8691ZM10.5658 20.2701C10.6392 20.3369 10.7154 20.4292 10.7761 20.546C10.8366 20.6624 10.8662 20.7729 10.8779 20.8607L6.91298 21.3893C7.00744 22.0978 7.33587 22.7397 7.87509 23.2299L10.5658 20.2701ZM9.8704 20C9.9719 20 10.1005 20.0178 10.2384 20.0708C10.3766 20.1239 10.4865 20.1981 10.5658 20.2701L7.87509 23.2299C8.43023 23.7345 9.12787 24 9.8704 24V20Z",fill:"currentColor"})})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SettingsOutlineIcon=a}),98); __d("WAWebNavBar.react",["fbt","WATimeUtils","WAWebAdCreationMenuBarItem.react","WAWebArchivedFlow.react","WAWebBizGatingUtils","WAWebBizToolsFlowLoadable","WAWebBotGating","WAWebBusinessProfileCollection","WAWebBusinessToolsIcon.react","WAWebBusinessToolsOutlineIcon.react","WAWebChatLockCodeModal.react","WAWebChatLockGatingUtils","WAWebChatUnreadCount.react","WAWebChatlockFilledIcon.react","WAWebChatlockOutlineIcon.react","WAWebChatlockUnlockedOutlineIcon.react","WAWebChatsFilledIcon.react","WAWebChatsOutlineIcon.react","WAWebCommunityDailyUtils","WAWebCommunityFlowLoadable","WAWebCommunityTabMenuBarItem.react","WAWebConnModel","WAWebContactCollection","WAWebDetailImage.react","WAWebDrawerManager","WAWebFlex.react","WAWebKeyboardTabUtils","WAWebLockedChatsDrawer.react","WAWebMenuBar.react","WAWebMetaBotMenuBarItem.react","WAWebMobilePlatforms","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebNavBarUtils","WAWebNewsletterCollection","WAWebNewsletterTabMenuBarItem.react","WAWebOpenNewsletterTab","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebSettingsConst","WAWebSettingsFlowLoadable","WAWebSettingsGetters","WAWebSettingsIcon.react","WAWebSettingsOutlineIcon.react","WAWebStatusNavigateTo","WAWebTabOrder","WAWebTag.react","WAWebTextStatusCollection","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebUserPrefsNewsletter","WAWebVelocityTransitionGroup","WAWebWamEnumActionEntryPoint","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumLandingSurface","WAWebWamEnumUnlockEntryPoint","WAWebWamEnumWebcNavbarItemLabel","asyncToGeneratorRuntime","fbs","react","stylex","useWAWebArchivedChatsActivityIndicator","useWAWebChatLockEvents","useWAWebChatsActivityIndicator","useWAWebExternalBetaOptIn","useWAWebForceUpdate","useWAWebIsNewsletterUiEnabled","useWAWebListener","useWAWebServerGatedAdEntryPoint","useWAWebSettingsValues","useWAWebStatusActivityIndicator"],(function(a,b,c,d,e,f,g,h){var i,j,k;e=k||d("react");var l=i||(i=c("react")),m=e.useEffect,n=e.useMemo,o=e.useState,p={header:{zIndex:"xa1v5g2",position:"x1n2onr6",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",width:"xbyj736",height:"x5yr21d",backgroundColor:"x1acz5yr",borderEndWidth:"xm81vs4",borderEndStyle:"xu3j5b3",borderEndColor:"x1a0jr7w",$$css:!0},menuItems:{flexDirection:"xdt5ytf",alignItems:"x1cy8zhl",height:"x5yr21d",$$css:!0},menuItemSize24:{width:"xvy4d1p",height:"xxk0z11",$$css:!0},menuSectionSeparator:{width:"xvy4d1p",height:"xjm9jq1",borderTopWidth:"xamhcws",borderTopStyle:"x13fuv20",borderTopColor:"xxdxl9i",borderEndStyle:"xd10rxx",borderBottomStyle:"x1sy0etr",borderStartStyle:"x17r0tee",$$css:!0},betaMenuItem:{fontSize:"x1pg5gke",fontWeight:"x117nqv4",$$css:!0},commerceIconContainer:{zoom:"x1kyludp",$$css:!0}};function a(a){var e=a.headerRef,f=a.activeAccountInfo,g=a.activeNavBarItem,i=a.updateActiveNavBarItem;a=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2]);var k=a[0];a=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();var q=n(d("WAWebUserPrefsMeUser").getMeUser,[]),r=o(!1),s=r[0],t=r[1];r=d("useWAWebChatLockEvents").useChatLockEvents();m(function(){d("WAWebMobilePlatforms").isSMB()&&d("WAWebBusinessProfileCollection").BusinessProfileCollection.find(q).then(function(){t(!0)})},[q]);var u=n(function(){return d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(q)},[q]);d("useWAWebListener").useListener(u,"change:profileOptions",a);a=d("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_ad_creation_home_screen_icon",f);var v=a[0];a=a[1];var w=null,x=d("useWAWebExternalBetaOptIn").useExternalBetaOptIn();x=x[0];if(x){x=function(a){a.preventDefault();if(g===d("WAWebNavBarTypes").NavBarItems.Beta)return;i(d("WAWebNavBarTypes").NavBarItems.Beta);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},initialStep:d("WAWebSettingsConst").SettingsSteps.Help}),{transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS_HELP)};var y=h._(/*BTDS*/"__JHASH__qGmtwD0AtR2__JHASH__");y=g===d("WAWebNavBarTypes").NavBarItems.Beta?y:l.jsx(d("WAWebTag.react").Tag,{theme:d("WAWebTag.react").TagTheme.Secondary,children:y});w=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[p.menuItemSize24,p.betaMenuItem],children:y}),vertical:!0,onClick:x,title:c("fbs")._(/*BTDS*/"__JHASH__qGmtwD0AtR2__JHASH__"),selected:g===d("WAWebNavBarTypes").NavBarItems.Beta,showHoverTooltip:!0})}y=f!=null&&!v&&d("WAWebBizGatingUtils").shouldShowAdCreationIcon()?l.jsx(c("WAWebAdCreationMenuBarItem.react"),{activeAccountInfo:f,iconStyle:(j||(j=c("stylex")))(p.commerceIconContainer,d("WAWebUISpacing").uiMargin.top10),vertical:!0,ctaText:a==null?void 0:a.content}):null;x=function(){if(g===d("WAWebNavBarTypes").NavBarItems.BizTools)return;i(d("WAWebNavBarTypes").NavBarItems.BizTools);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebBizToolsFlowLoadable").BizToolsFlowLoadable,{adsAccountInfo:f,entryPoint:d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_BUSINESS_TOOLS_TAB}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.BUSINESS_TOOLS)};v=s&&!d("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(u);a=v&&d("WAWebBizGatingUtils").isBizToolsDrawerEnabled()&&l.jsx("div",babelHelpers["extends"]({className:"x1kyludp"},{children:l.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,testid:void 0,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:p.menuItemSize24,children:g===d("WAWebNavBarTypes").NavBarItems.BizTools?l.jsx(d("WAWebBusinessToolsIcon.react").BusinessToolsIcon,{directional:!0,width:26,height:26}):l.jsx(d("WAWebBusinessToolsOutlineIcon.react").BusinessToolsOutlineIcon,{directional:!0,width:26,height:26})}),title:h._(/*BTDS*/"__JHASH__Aowuf9H3z9F__JHASH__"),onClick:x,selected:g===d("WAWebNavBarTypes").NavBarItems.BizTools,showHoverTooltip:!0})}));s=function(){if(g===d("WAWebNavBarTypes").NavBarItems.Newsletters)return;i(d("WAWebNavBarTypes").NavBarItems.Newsletters);d("WAWebOpenNewsletterTab").openNewsletterTab();d("WAWebUserPrefsNewsletter").setNewsletterTabLastSeenTimestamp(d("WATimeUtils").unixTime());c("WAWebNewsletterCollection").trigger("newsletter_tab_close");d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.NEWSLETTERS)};u=c("useWAWebIsNewsletterUiEnabled")();v=u?l.jsx(c("WAWebNewsletterTabMenuBarItem.react"),{onClick:s,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Newsletters},"newsletters"):null;x=function(){if(g===d("WAWebNavBarTypes").NavBarItems.Communities)return;i(d("WAWebNavBarTypes").NavBarItems.Communities);d("WAWebCommunityDailyUtils").incrementCommunityTabEvent(d("WAWebCommunityDailyUtils").CommunityDailyTabMetricsType.TAB_VIEWS);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.COMMUNITIES)};u=l.jsx(c("WAWebCommunityTabMenuBarItem.react"),{onClick:x,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Communities},"communities");s=function(a){a==null?void 0:a.preventDefault();if(g===d("WAWebNavBarTypes").NavBarItems.Chats)return;i(d("WAWebNavBarTypes").NavBarItems.Chats);d("WAWebDrawerManager").DrawerManager.closeDrawerLeft();d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.CHATS)};x=g===d("WAWebNavBarTypes").NavBarItems.Chats?l.jsx(d("WAWebChatsFilledIcon.react").ChatsFilledIcon,{directional:!0}):l.jsx(d("WAWebChatsOutlineIcon.react").ChatsOutlineIcon,{directional:!0});var z=d("useWAWebChatsActivityIndicator").useChatsActivityIndicator();z=z.unreadChatCount;z=z>0&&l.jsx("div",babelHelpers["extends"]({className:"x10l6tqk x14ipxcb x1oozmrk"},{children:l.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:z})}));x=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsxs("div",babelHelpers["extends"]({className:"x1n2onr6"},{children:[x,z]})),title:h._(/*BTDS*/"__JHASH__hy-Qp8EeTRI__JHASH__"),onClick:s,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Chats,showHoverTooltip:!0},"chats");z=d("useWAWebStatusActivityIndicator").useWAWebStatusActivityIndicator();var A=z.hasUnread,B=z.clearUnreadActivity;z=function(a){a.preventDefault();if(g===d("WAWebNavBarTypes").NavBarItems.Status)return;i(d("WAWebNavBarTypes").NavBarItems.Status);d("WAWebStatusNavigateTo").navigateToStatus({openTab:!0,clearUnreadActivity:B});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.STATUS)};A=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{vertical:!0,testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:d("WAWebNavBarUtils").getNavBarIcon(d("WAWebNavBarTypes").NavBarItems.Status,g===d("WAWebNavBarTypes").NavBarItems.Status,A),title:h._(/*BTDS*/"__JHASH__52qipdNXs4c__JHASH__"),onClick:z,selected:g===d("WAWebNavBarTypes").NavBarItems.Status,showHoverTooltip:!0},"status");z=function(){if(g===d("WAWebNavBarTypes").NavBarItems.Settings)return;i(d("WAWebNavBarTypes").NavBarItems.Settings);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{activeAccountInfo:f,onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS)};var C=g===d("WAWebNavBarTypes").NavBarItems.Settings?l.jsx(d("WAWebSettingsIcon.react").SettingsIcon,{}):l.jsx(d("WAWebSettingsOutlineIcon.react").SettingsOutlineIcon,{});C=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:p.menuItemSize24,children:C}),title:h._(/*BTDS*/"__JHASH__GppBl6wcTbk__JHASH__"),onClick:z,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Settings,showHoverTooltip:!0},"navbar-item-settings");z=function(){if(g===d("WAWebNavBarTypes").NavBarItems.Profile)return;var a=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(q),b=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(q),c=d("WAWebContactCollection").ContactCollection.assertGet(q);i(d("WAWebNavBarTypes").NavBarItems.Profile);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:a,profilePicThumb:b,contact:c,conn:d("WAWebConnModel").Conn,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},isInitialStep:!0}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.PROFILE)};var D=l.jsx("div",babelHelpers["extends"]({className:"x1iyjqo2"},{children:l.jsx(d("WAWebDetailImage.react").DetailImage,{ariaLabel:h._(/*BTDS*/"__JHASH__dhIyISolv4D__JHASH__"),testId:"chatlist_header_profile_photo",theme:"chatlist_header_profile_photo",tabIndex:-1,id:q,size:32})}));D=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:p.menuItemSize24,children:D}),title:h._(/*BTDS*/"__JHASH__fxoQBgk5NP0__JHASH__"),vertical:!0,showHoverTooltip:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Profile,onClick:z});z=l.jsx("hr",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([p.menuSectionSeparator,d("WAWebUISpacing").uiMargin.top16])));a=d("WAWebMobilePlatforms").isSMB()?l.jsxs(d("WAWebFlex.react").FlexItem,{grow:1,children:[z,a,y]}):null;y=d("WAWebMobilePlatforms").isSMB()?0:1;var E=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(g===d("WAWebNavBarTypes").NavBarItems.LockedChats)return;var a=(yield d("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,entryPoint:d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST,unlockEntryPoint:d("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST,landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER}));a&&(i(d("WAWebNavBarTypes").NavBarItems.LockedChats),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(c("WAWebLockedChatsDrawer.react"),{onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},entryPoint:d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST,unlockEntryPoint:d("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"}))});return function(){return a.apply(this,arguments)}}();r?r=l.jsx(d("WAWebChatlockUnlockedOutlineIcon.react").ChatlockUnlockedOutlineIcon,{width:24,height:24}):g===d("WAWebNavBarTypes").NavBarItems.LockedChats?r=l.jsx(d("WAWebChatlockFilledIcon.react").ChatlockFilledIcon,{width:24,height:24}):r=l.jsx(d("WAWebChatlockOutlineIcon.react").ChatlockOutlineIcon,{width:24,height:24});var F=function(){return k},G=d("useWAWebArchivedChatsActivityIndicator").useArchivedChatsActivityIndicator(),H=G.unreadCount;G=G.showUnreadMentionIcon;G=d("WAWebNavBarUtils").getNavBarIcon(d("WAWebNavBarTypes").NavBarItems.Archived,g===d("WAWebNavBarTypes").NavBarItems.Archived,G||H>0);function I(){if(g===d("WAWebNavBarTypes").NavBarItems.Archived)return;i(d("WAWebNavBarTypes").NavBarItems.Archived);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(c("WAWebArchivedFlow.react"),{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.ARCHIVED)}H=F()?l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:p.menuItemSize24,children:G}),title:h._(/*BTDS*/"__JHASH__QKQ4BWr2oYn__JHASH__"),onClick:I,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Archived,showHoverTooltip:!0},"menu-bar-archived"):null;F=[x,A,v,u];if(d("WAWebBotGating").isBotShortcutEntryPointEnabled()){G=l.jsx(d("WAWebMetaBotMenuBarItem.react").MetaBotMenuBarItem,{vertical:!0,showHoverTooltip:!0,onClick:s},"menu-bar-meta-bot");F.push(G)}I=[];d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled()&&(d("WAWebChatLockGatingUtils").chatLockSideNavEnabled()&&I.push(l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,icon:r,title:"Locked Chats",onClick:E,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.LockedChats,showHoverTooltip:!0},"menu-bar-locked-chats")),I.push(H),I.push(z));return l.jsx("header",babelHelpers["extends"]({"data-testid":void 0,ref:e},j.props(p.header,d("WAWebUISpacing").uiPadding.horiz12),{children:l.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",style:{height:"100%"},children:l.jsx(d("WAWebFlex.react").FlexItem,{grow:1,children:l.jsx("div",{"data-js-navbar":!0,style:{height:"100%"},className:"x1okw0bk x6s6g2w",children:l.jsx(d("WAWebMenuBar.react").MenuBar,{theme:"nav-bar",children:l.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"btn",xstyle:p.menuItems,children:l.jsxs(d("WAWebFlex.react").FlexColumn,{style:{height:"100%"},children:[l.jsx(d("WAWebFlex.react").FlexItem,{grow:y,children:F}),a,l.jsxs(d("WAWebFlex.react").FlexItem,{grow:0,xstyle:d("WAWebUISpacing").uiMargin.bottom10,children:[I,w,C,D]})]})})},"chatlist-header")})})})}))}a.displayName=a.name+" [from "+f.id+"]";g.NavBar=a}),226); __d("WAWebNotificationsCallNotification",["WAWebBaseNotification","WAWebChatFlowTypes","WAWebContactCollection","WAWebFrontendContactGetters","WAWebLidMigrationUtils","WAWebMuteCollection","WAWebMuteGetters","WAWebNotificationController","WAWebNotificationIconUtils","WAWebNotificationMuteReason","WAWebWid","WAWebWidFormat","asyncToGeneratorRuntime","fbs"],(function(a,b,c,d,e,f,g){function a(a){return d("WAWebNotificationController").WANotificationController.triggerNotification(new h(a))}function e(a){a&&d("WAWebNotificationController").WANotificationController.closeOrCancelNotification(a.toString())}var h=function(e){babelHelpers.inheritsLoose(a,e);function a(a){var b,c=a.wid,d=a.msgId,f=a.isVideo,g=a.isGroup;a=a.isSilenced;b=e.call(this)||this;b.wid=c;b.msgId=d;b.isVideo=f;b.isGroup=g;b.isSilenced=a;return b}var f=a.prototype;f.shouldMute=function(a){return!this.wid||!this.msgId||d("WAWebMuteGetters").getIsMuted(d("WAWebMuteCollection").MuteCollection.globalMute())||this.isSilenced?c("WAWebNotificationMuteReason").GlobalMute:null};f.buildKey=function(){return"call:"+this.wid.toString()};f.matchesChat=function(a){return c("WAWebWid").equals.apply(c("WAWebWid"),d("WAWebLidMigrationUtils").toCommonAddressingMode(this.wid,a.id))};f.getChatKind=function(){return this.isGroup?d("WAWebChatFlowTypes").ChatKindType.Group:d("WAWebChatFlowTypes").ChatKindType.Chat};f.getIcon=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return d("WAWebNotificationIconUtils").getNotificationIconByWid(this.wid,this.abortController.signal,d("WAWebNotificationIconUtils").USER_DEFAULT_ICON)});function c(){return a.apply(this,arguments)}return c}();f.getBannerOptions=function(){var a=d("WAWebContactCollection").ContactCollection.get(this.wid);a=a?d("WAWebFrontendContactGetters").getFormattedName(a):d("WAWebWidFormat").widToFormattedUser(this.wid);var b;this.isGroup?b=this.isVideo?c("fbs")._(/*BTDS*/"__JHASH__RQBTNX-HdiW__JHASH__",[c("fbs")._param("name",a)]).toString():c("fbs")._(/*BTDS*/"__JHASH__Zk7d2XrvIhj__JHASH__",[c("fbs")._param("name",a)]).toString():b=this.isVideo?c("fbs")._(/*BTDS*/"__JHASH__RzRngOjqL6i__JHASH__",[c("fbs")._param("name",a)]).toString():c("fbs")._(/*BTDS*/"__JHASH__hm66-RoBY0V__JHASH__",[c("fbs")._param("name",a)]).toString();a=c("fbs")._(/*BTDS*/"__JHASH__kAWDCkdZsPY__JHASH__").toString();return{wid:this.wid,msgId:this.msgId,tag:this.msgId,title:b,body:a}};return a}(d("WAWebBaseNotification").WABaseNotification);g.showCallNotification=a;g.cancelCallNotification=e}),226); __d("WAWebNotificationManager.react",["WAWebAppContext.react","WAWebChatCollection","WAWebCmd","WAWebEnvironment","WAWebNavBarTypes","WAWebNotificationBackend","WAWebNotificationIcon","WAWebNotificationsCallNotification","WAWebStreamModel","cr:8852","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h;e=h||d("react");var i=e.useEffect,j=e.useRef;e=(f=b("cr:8852"))!=null?f:{};var k=e.WATaskbarController;function a(){var a,b=j(null),e=function(){var a;d("WAWebStreamModel").Stream.displayInfo===d("WAWebStreamModel").StreamInfo.OFFLINE&&!c("WAWebEnvironment").isWindows?a=-1:a=d("WAWebChatCollection").ChatCollection.getUnreadCount();b.current!==a&&(b.current=a,d("WAWebNotificationIcon").setTitleAndIcon(a),k==null?void 0:k.UpdateTaskbarBadge(a))};i(function(){e()},[]);(a=d("useWAWebListener")).useListener(d("WAWebCmd").Cmd,"alert_new_msg",function(a){return d("WAWebNotificationBackend").showMsgNotification(a)});a.useListener(d("WAWebCmd").Cmd,"alert_call",d("WAWebNotificationsCallNotification").showCallNotification);a.useListener(d("WAWebCmd").Cmd,"cancel_call",d("WAWebNotificationsCallNotification").cancelCallNotification);a.useListener(d("WAWebChatCollection").ChatCollection,"add remove reset change:showUnreadInTitle",e);a.useListener(d("WAWebChatCollection").ChatCollection,"change:unreadCount",d("WAWebNotificationBackend").closeNotifications);a.useListener(d("WAWebStreamModel").Stream,"change:displayInfo",e);var f=d("WAWebAppContext.react").useAppContext();d("WAWebNotificationBackend").setAppContext(function(){return{isChatsSurfaceActive:f.activeNavBarItem===d("WAWebNavBarTypes").NavBarItems.Chats}});return null}g["default"]=a}),98); __d("WAWebOpenNotificationsSetting",["WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNotificationsDrawer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){var a;a=new URLSearchParams(((a=window.location.search)!=null?a:"").toLowerCase());a=((a=a.get("ns"))!=null?a:"")==="1";a&&(d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(c("WAWebNotificationsDrawer.react"),{onCancel:function(){d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"}),window.history.pushState({},"",window.location.origin))}g.handleOpenNotificationsSettingDeeplink=a}),98); __d("WAWebPipYoutubeVideoPlayer.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={fullscreen:"_ah_a",container:"_ah_b",youtubeContainer:"_ah_c",redesign:"_ah_d",strippedVideoControls:"_ah_e",opacityTransition:"_ah_f",dimmed:"_ah_g"};b=a;g["default"]=b}),98); __d("WAWebYoutube.react",["Promise","WAWebNoop","WAWebTimeSpentLoggingNavigation","asyncToGeneratorRuntime","lodash","react","youtube-player"],(function(a,b,c,d,e,f,g){var h,i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useCallback,m=e.useEffect,n=e.useRef;function o(a,b){if(a.videoId!==b.videoId)return!0;a=((a=a.opts)==null?void 0:a.playerVars)||{};b=((b=b.opts)==null?void 0:b.playerVars)||{};return a.start!==b.start||a.end!==b.end}function p(a){return babelHelpers["extends"]({},a,{playerVars:babelHelpers["extends"]({},a==null?void 0:a.playerVars,{autoplay:0,start:0,end:0})})}function q(a,b){return!c("lodash").isEqual(p(a==null?void 0:a.opts),p(b==null?void 0:b.opts))}function r(a,b){return a.id===b.id||a.className===b.className}var s={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};function a(a){var e=a.onReady,f=e===void 0?c("WAWebNoop"):e;e=a.onError;var g=e===void 0?c("WAWebNoop"):e;e=a.onStateChange;var i=e===void 0?c("WAWebNoop"):e;e=a.onEnd;var j=e===void 0?c("WAWebNoop"):e;e=a.onPlay;var p=e===void 0?c("WAWebNoop"):e;e=a.onPause;var t=e===void 0?c("WAWebNoop"):e;e=a.onPlaybackRateChange;var u=e===void 0?c("WAWebNoop"):e;e=a.onPlaybackQualityChange;var v=e===void 0?c("WAWebNoop"):e;e=a.opts;var w=e===void 0?{playerVars:{}}:e,x=a.videoId;e=a.id;var y=e===void 0?null:e;e=a.className;var z=e===void 0?null:e;e=a.containerClassName;e=e===void 0?"":e;var A=n(null),B=n(null),C=n([]),D=n(a),E=l(function(a){return f(a)},[f]),F=l(function(a){return g(a)},[g]),G=l(function(a){i(a);switch(a.data){case s.ENDED:j(a);break;case s.PLAYING:p(a);break;case s.PAUSED:t(a);break;default:return}},[j,t,p,i]),H=l(function(a){return u(a)},[u]),I=l(function(a){return v(a)},[v]),J=l(function(){var a=babelHelpers["extends"]({},w,{videoId:x});B.current=c("youtube-player")(A.current,a);C.current.push(B.current.on("ready",E),(a=B.current)==null?void 0:a.on("error",F),(a=B.current)==null?void 0:a.on("stateChange",G),(a=B.current)==null?void 0:a.on("playbackRateChange",H),(a=B.current)==null?void 0:a.on("playbackQualityChange",I))},[F,I,H,E,G,w,x]);m(function(){J();return function(){var a;C.current.filter(Boolean).forEach(function(a){var b;(b=B.current)==null?void 0:b.off(a)});(a=B.current)==null?void 0:a.destroy()}},[]);var K=l(function(){var a;return(a=(a=B.current)==null?void 0:a.destroy().then(J))!=null?a:(h||(h=b("Promise"))).resolve()},[J]),L=l(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;a=(yield (a=B.current)==null?void 0:a.getIframe());y?a==null?void 0:a.setAttribute("id",y):a==null?void 0:a.removeAttribute("id");z?a==null?void 0:a.setAttribute("class",z):a==null?void 0:a.removeAttribute("class")}),[z,y]),M=l(function(){if(x==null){var a;(a=B.current)==null?void 0:a.stopVideo();return}a=!1;var b,c;"playerVars"in w&&(a=w.playerVars.autoplay===1,"start"in w.playerVars&&(b=w.playerVars.start),"end"in w.playerVars&&(c=w.playerVars.end));var d={videoId:x,startSeconds:b,endSeconds:c};if(a){(a=B.current)==null?void 0:a.loadVideoById(d);return}(a=B.current)==null?void 0:a.cueVideoById(d)},[w,x]);m(function(){var b=D.current;r(b,a)&&L();q(b,a)&&K();o(b,a)&&M();D.current=a},[a,K,L,M]);d("WAWebTimeSpentLoggingNavigation").useTsNavigation({surface:"youtube-player"});return k.jsx("span",{className:e,children:k.jsx("div",{id:y,className:z,ref:A})})}a.displayName=a.name+" [from "+f.id+"]";g.YouTube=a}),98); __d("WAWebPipYoutubeVideoTag.react",["WAWebABProps","WAWebPttAudioChannels","WAWebUserPrefsGeneral","WAWebYoutube.react","lodash","react","useLazyRef","useWAWebInterval","useWAWebOnUnmount","useWAWebStableCallback"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useImperativeHandle,m=b.useRef,n=c("lodash").debounce(function(a){d("WAWebUserPrefsGeneral").setMediaVolumeSetting(a)},500),o=c("lodash").debounce(function(a){d("WAWebUserPrefsGeneral").setMediaMutedSetting(a)},500),p={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},q={width:"100%",height:"100%",playerVars:{cc_load_policy:1,iv_load_policy:3,controls:0,playsinline:1,rel:0,modestbranding:0,autoplay:0}},r="https://whatsapp.com";function a(a){var b=a.ref,e=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]),f=m(null),g=m(null),h=m(0),i=m(0),s=c("useLazyRef")(function(){return Symbol("audio-channel")}),t=m(null),u=(a=c("useWAWebStableCallback"))(function(){var a;(a=f.current)==null?void 0:a.playVideo()}),v=a(function(){var a;(a=f.current)==null?void 0:a.pauseVideo()}),w=a(function(a){var b;(b=f.current)==null?void 0:b.seekTo(a,!0)}),x=a(function(){var a;return(a=(a=f.current)==null?void 0:a.getCurrentTime())!=null?a:0}),y=a(function(){var a;return((a=(a=f.current)==null?void 0:a.getVolume())!=null?a:0)*.01}),z=a(function(){var a;return(a=(a=f.current)==null?void 0:a.getDuration())!=null?a:0}),A=a(function(){var a;return(a=(a=f.current)==null?void 0:a.isMuted())!=null?a:!1}),B=function(){var a=f.current;if(a){var b=a.getCurrentTime();b!==h.current&&(h.current=b,e.onTimeUpdate(b));b=a.getVideoLoadedFraction();if(b!==i.current){i.current=b;b=g.current?g.current.duration*b:0;e.onProgress([[0,b]])}b=g.current;if(b){var c=a.getVolume()*.01;a=a.isMuted();(c!==b.volume||a!==b.muted)&&(g.current=babelHelpers["extends"]({},b,{volume:c,muted:a}),e.onVolumeChange({volume:c,muted:a}))}}};B=c("useWAWebInterval")(B,250);var C=B[0],D=function(){if(typeof e.startTime==="number"){var a;(a=f.current)==null?void 0:a.seekTo(e.startTime,!0)}},E=a(function(a){var b=f.current;b&&(a?b.mute():b.unMute(),o(a))}),F=a(function(a){f.current&&(f.current.setVolume(a*100),n(a))});B=function(a){f.current=a.target;a=f.current;var b=d("WAWebUserPrefsGeneral").getMediaVolumeSettings(),c=b.volume;b=b.muted;var i=a.getDuration(),j=c!=null?c:a.getVolume()*.01,k=b!=null?b:a.isMuted(),l=a.getIframe().getBoundingClientRect(),m=l.width;l=l.height;g.current={duration:i,volume:j,muted:k,videoWidth:m,videoHeight:l};e.onLoadedMetadata(g.current);h.current=a.getCurrentTime();C();e.startTime!=null&&D();c!=null&&F(c);b!=null&&E(b)};a=function(a){t.current=d("WAWebPttAudioChannels").MainAudioChannel.claim(s.current,v),e.onPlaying()};var G=function(a){t.current==null?void 0:t.current(),e.onPause()},H=function(a){e.onEnded()},I=function(a){a.target.getPlayerState()!==p.PLAYING&&e.onPause()};k(function(){D()},[e.startTime]);c("useWAWebOnUnmount")(function(){t.current==null?void 0:t.current()});l(b,function(){return{play:u,pause:v,setCurrentTime:w,getCurrentTime:x,setVolume:F,setMuted:E,getVolume:y,getDuration:z,getMuted:A}},[u,v,w,x,F,E,y,z,A]);b=e.counterAbuseData;b=c("lodash").merge({},q,{playerVars:{autoplay:e.autoPlay?1:0,widget_referrer:r,origin:window.location.origin}},b!=null&&d("WAWebABProps").getABPropConfigValue("web_youtube_rcat_consumption_enabled")?{playerVars:{rct:b.counterAbuseToken,rctn:b.nonce}}:{});return j.jsx(d("WAWebYoutube.react").YouTube,{videoId:e.youtubeVideoId,opts:b,onReady:B,onPlay:a,onPause:G,onEnd:H,onError:e.onEnded,onStateChange:I})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebPipYoutubeVideoPlayer.react",["WAWebDomFullscreen","WAWebPipCloseButton.react","WAWebPipFullscreenToggleButton.react","WAWebPipShade.react","WAWebPipSharedVideoPlayer.react","WAWebPipVideoRefControls.react","WAWebPipYoutubeVideoPlayer.scss","WAWebPipYoutubeVideoTag.react","WAWebUA","WAWebVelocityTransitionGroup","lodash","react","useWAWebDebouncedCallback","useWAWebListener","useWAWebPrevious","useWAWebStableCallback"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useRef,m=b.useState;function n(a){var b=a.isFullscreenMode,e=a.isVideoPlaying,f=a.mouseDownCoorRef,g=a.mouseMoveRecently,h=a.onClose,i=a.onExposeIframeInPiP,k=a.onFullScreenToggle,l=a.ref,m=a.videoMetadata,n=a.videoRef;a=function(a){if(n.current){var b=a;m&&a>=m.duration-1&&m.duration>1&&(b=m.duration-1);n.current.setCurrentTime(b)}};var o=null;if(m){var p,q="x1ey2m1c x78zum5 xvt47uu xtzzx4i xexx8yu x6x52a7 x18d9i69 xxpdul3 x10l6tqk xds687c x1hc1fzr x13dflua x19991ni xwji4o3";o=j.jsx("div",{ref:l,style:(p={},p[c("WAWebPipYoutubeVideoPlayer.scss").dimmed]=!g,p),children:j.jsx(d("WAWebPipVideoRefControls.react").VideoRefControls,{refVideo:n.current,videoMetadata:m,isFullscreenMode:b,isVideoPlaying:e,handleSetCurrentTimeByControls:a,controlsClassName:b?q:void 0,onFullscreenToggle:k,onClose:h,newPiPStyle:!0})});b||(o=j.jsx("div",babelHelpers["extends"]({ref:l},{className:"x5yr21d x10l6tqk xh8yej3"},{onMouseDown:function(a){f.current={x:a.clientX,y:a.clientY}},onMouseUp:function(a){var b=a.clientX;a=a.clientY;var c=f.current,d=c?c.x:void 0;c=c?c.y:void 0;d!=null&&c!=null&&Math.abs(b-d)+Math.abs(a-c)<4&&i(!0)},children:o})))}return o}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b,e=a.onSetFullscreenToggleCallback,f=a.onRefSet,g=a.onVideoEnded,h=a.onError,i=a.startTime,o=a.onVideoMetadataChange,p=a.onClose,q=l(null),r=l(null),s=l(!1),t=l(null),u=m(void 0),v=u[0],w=u[1];u=m(!1);var x=u[0],y=u[1];u=m(!1);var z=u[0],A=u[1];u=m(!1);var B=u[0],C=u[1];u=m(!1);var D=u[0],E=u[1];u=m(!1);var F=u[0],G=u[1],H=c("useWAWebPrevious")(x),I=c("useWAWebPrevious")(v);d("useWAWebListener").useListener(c("WAWebDomFullscreen"),"fullscreen_change",function(){c("WAWebDomFullscreen").isFullscreenMode()&&c("WAWebDomFullscreen").getFullscreenElement()===q.current?E(!0):c("WAWebDomFullscreen").isFullscreenMode()||E(!1)});var J=function(a){a.stopPropagation(),D?c("WAWebDomFullscreen").exitFullscreen():c("WAWebDomFullscreen").requestFullscreen(q.current)},K=c("useWAWebDebouncedCallback")(function(){C(!1)},d("WAWebPipSharedVideoPlayer.react").FULLSCREEN_CONTROLS_DISPLAY_TIMEOUT);k(function(){e==null?void 0:e(J)},[]);u=c("useWAWebStableCallback")(function(a){r.current=a,a!=null&&(f==null?void 0:f(a))});var L=function(){g&&g(),y(!1)},M=function(){h&&h()},N=function(){var a,b=(a=(a=r.current)==null?void 0:a.getCurrentTime())!=null?a:null;w(function(a){return a&&b!=null?babelHelpers["extends"]({},a,{currentTime:b}):a});y(!1);s.current=!0},O=function(){var a,b=(a=(a=r.current)==null?void 0:a.getCurrentTime())!=null?a:null;w(function(a){return a&&b!=null?babelHelpers["extends"]({},a,{currentTime:b}):a});y(!0);s.current=!0},P=function(a){var b=i!=null?i:0;w({duration:a.duration,currentTime:b,volume:a.volume,muted:a.muted,bufferedTime:0})},Q=function(a){w(function(b){return b?babelHelpers["extends"]({},b,{volume:a.volume,muted:a.muted}):b})},R=function(a){if(s.current){s.current=!1;return}w(function(b){return b?babelHelpers["extends"]({},b,{currentTime:a}):b})},S=function(a){a=a[0];var b=a[1];w(function(a){return a?babelHelpers["extends"]({},a,{bufferedTime:b}):a})};k(function(){(H!==x||!c("lodash").isEqual(I,v))&&(o==null?void 0:o(v,x))},[x,H,o,v,I]);var T=a.exposeIframeInPiP||F||D?null:j.jsx("div",{className:"xamhcws xol2nv xlxy82 x19p7ews x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x166i9x0 xku1vgj x1n7ce0x x7hhpp6 x5yr21d x17qophe x10l6tqk x13vifvy xh8yej3"});b=j.jsxs("div",{className:"x10l6tqk x13vifvy xds687c x1ey2m1c x17qophe",style:(b={},b[c("WAWebPipYoutubeVideoPlayer.scss").fullscreen]=D,b),children:[T,j.jsx(c("WAWebPipYoutubeVideoTag.react"),{ref:u,youtubeVideoId:a.youtubeVideoId,startTime:a.startTime,onEnded:L,onError:M,onLoadedMetadata:P,onPause:N,onPlaying:O,onProgress:S,onTimeUpdate:R,onVolumeChange:Q,autoPlay:a.autoPlay,counterAbuseData:a.counterAbuseData})]});T=a.disablePiPControls!==!0||D?j.jsx(n,{videoMetadata:v,videoRef:r,mouseDownCoorRef:t,mouseMoveRecently:B,isVideoPlaying:x,isFullscreenMode:D,onFullScreenToggle:J,onClose:p,onExposeIframeInPiP:G}):null;var U;d("WAWebUA").UA.isSafari||(U=j.jsx(c("WAWebPipFullscreenToggleButton.react"),{isFullscreenMode:D,onClick:J}));u=j.jsx(c("WAWebPipShade.react"),{theme:"full-rounded"});L=D?j.jsxs(j.Fragment,{children:[b,T]}):j.jsxs(j.Fragment,{children:[b,j.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"fade-fast",children:z&&B&&!F&&a.disablePiPControls!==!0?[u,T,U,j.jsx(c("WAWebPipCloseButton.react"),{isFullscreenMode:D,onClick:function(b){b.stopPropagation(),a.onClose()}},"close")]:null})]});return j.jsx("div",{ref:q,className:"xums3t4 x5yr21d xh8yej3",style:(M={},M[c("WAWebPipYoutubeVideoPlayer.scss").fullscreen]=D,M[c("WAWebPipYoutubeVideoPlayer.scss").redesign]=!0,M),onMouseEnter:function(a){if(F){if(d("WAWebUA").UA.isGecko&&z)return;G(!1)}A(!0)},onMouseLeave:function(a){A(!1)},onMouseDown:function(a){D&&a.stopPropagation()},onMouseMove:function(a){z||A(!0),B||C(!0),K()},children:L},"elementsWrapped")}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebYoutubeVideoPlayerRenderer.react",["WAWebPipConst","WAWebPipFloatingVideoPlayer.react","WAWebPipYoutubeVideoPlayer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.ref,e=a.videoSrc;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref","videoSrc"]);return e==null?null:i.jsx(d("WAWebPipFloatingVideoPlayer.react").FloatingVideoPlayer,{ref:b,aspectRatio:d("WAWebPipConst").YOUTUBE_VIDEO_DEFAULT_ASPECT_RATIO,animationStartStyle:a.animationStartStyle,enableDragBar:a.enableDragBar,topContent:a.topContent,bottomContent:a.bottomContent,children:i.jsx(c("WAWebPipYoutubeVideoPlayer.react"),{youtubeVideoId:e,startTime:a.startTime,onClose:a.onClose,disablePiPControls:a.enableDragBar,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,autoPlay:a.autoPlay,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback,exposeIframeInPiP:a.enableDragBar,counterAbuseData:a.counterAbuseData},e)},e)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebPipManager.react",["fbt","WAWebCmd","WAWebFloatingMsgVideoPlayerRenderer.react","WAWebFloatingOgVideoPlayerRenderer.react","WAWebFocusIndicator","WAWebFocusTracer","WAWebFrontendMsgGetters","WAWebInlineVideoPlaybackClosedWamEvent","WAWebKeyboardConstants","WAWebKeyboardTabUtils","WAWebMsgCollection","WAWebMsgType","WAWebPipCloseButton.react","WAWebPipConst","WAWebPipController","WAWebPipVideoRefControls.react","WAWebToast.react","WAWebToastManager","WAWebVelocityTransitionGroup","WAWebWamEnumInlineVideoType","WAWebWamEnumWebcRmrReasonCode","WAWebYoutubeVideoPlayerRenderer.react","react","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useEffect,m=b.useImperativeHandle,n=b.useRef,o=b.useState,p={msg:null,startTime:null,zoomRect:null,videoMetadata:null,videoRef:null,isVideoPlaying:!1,videoType:d("WAWebPipConst").PiPVideoType.MSG,previewUrl:null,videoSrc:null,counterAbuseData:null},q={playerWrapper:{position:"xixxii4",zIndex:"x16p50fe",width:"xnalus7",height:"xqtp20y",overflowX:"x1plvlek",overflowY:"xryxfnj",$$css:!0}},r=new Map();r.set(d("WAWebPipConst").PiPVideoType.MSG,c("WAWebFloatingMsgVideoPlayerRenderer.react"));r.set(d("WAWebPipConst").PiPVideoType.YOUTUBE,c("WAWebYoutubeVideoPlayerRenderer.react"));r.set(d("WAWebPipConst").PiPVideoType.OG,c("WAWebFloatingOgVideoPlayerRenderer.react"));function s(a){a=t(a);return a==null?null:new(d("WAWebInlineVideoPlaybackClosedWamEvent").InlineVideoPlaybackClosedWamEvent)({inlineVideoPlayed:!1,inlineVideoType:a})}function t(a){return a===d("WAWebPipConst").PiPVideoType.YOUTUBE?d("WAWebWamEnumInlineVideoType").INLINE_VIDEO_TYPE.YOUTUBE:null}function a(a){a=a.ref;var b=n(null),e=o(p.msg),f=e[0],g=e[1];e=o(p.startTime);var i=e[0],j=e[1];e=o(p.zoomRect);var t=e[0],u=e[1],v=n(null);e=o(p.videoMetadata);var w=e[0],x=e[1];e=o(p.videoRef);var y=e[0],z=e[1];e=o(p.isVideoPlaying);var A=e[0],B=e[1];e=o(p.videoType);var C=e[0],D=e[1];e=o(p.previewUrl);var E=e[0],F=e[1];e=o(p.videoSrc);var G=e[0],H=e[1];e=o(null);var I=e[0],J=e[1];e=o(p.counterAbuseData);var K=e[0],L=e[1];l(function(){var a=function a(){var c;(c=b.current)==null?void 0:c.commit();window.removeEventListener("unload",a)};window.addEventListener("unload",a);return a},[]);var M=function(a){J(function(){return a})},N=function(a,c){var d=b.current;d!=null&&((a==null?void 0:a.duration)!=null&&(d.inlineVideoDurationT=Math.floor(a==null?void 0:a.duration)),!d.inlineVideoPlayed&&c&&(d.markInlineVideoPlayStartT(),d.inlineVideoPlayed=c));x(a);B(c)},O=function(){var a;f&&c("WAWebPipController").didClose(f);(a=b.current)==null?void 0:a.commit();g(p.msg);j(p.startTime);u(p.zoomRect);x(p.videoMetadata);z(p.videoRef);B(p.isVideoPlaying);D(p.videoType);F(p.previewUrl);H(p.videoSrc);L(p.counterAbuseData)},P=function(a){a.id.equals(f==null?void 0:f.id)&&O()};l(function(){return function(){f&&c("WAWebPipController").didClose(f)}},[f]);e=function(a,e){var f;c("WAWebPipController").didOpen(e.msg);(f=b.current)==null?void 0:f.commit();b.current=s(a);(f=b.current)==null?void 0:f.startInlineVideoPlayStartT();a===d("WAWebPipConst").PiPVideoType.MSG&&e.msg.downloadMedia({downloadEvenIfExpensive:!0,rmrReason:d("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.PIP,isUserInitiated:!0});g(e.msg);j(e.startTime);u(e.zoomRect);x(p.videoMetadata);z(p.videoRef);B(p.isVideoPlaying);D(a);F(e.preview!=null?"data:image/jpeg;base64,"+e.preview:null);H(e.videoSrc);L(e.counterAbuseData)};var Q=function(){y==null?void 0:y.pause()},R=function(a){Q()},S=function(a){return(a=f==null?void 0:f.id.equals(a.id))!=null?a:!1},T=function(){f&&c("WAWebPipController").didError(f)},U=function(){var a;return{enableDragBar:!0,bottomContent:w!=null&&y!=null?k.jsx(d("WAWebPipVideoRefControls.react").VideoRefControls,{refVideo:y,videoMetadata:w,isFullscreenMode:!1,isVideoPlaying:A,newPiPStyle:!0,onFullscreenToggle:(a=I)!=null?a:void 0}):null,topContent:k.jsx(c("WAWebPipCloseButton.react"),{isFullscreenMode:!1,onClick:O})}},V=function(){return t?{height:t.bottom-t.top,width:t.right-t.left,left:t.left,bottom:window.innerHeight-t.bottom}:null},W=function(){return babelHelpers["extends"]({msg:f,startTime:i,zoomRect:t,videoMetadata:w,videoRef:y,isVideoPlaying:A,videoType:C,previewUrl:E,videoSrc:G,counterAbuseData:K},U(),{animationStartStyle:V(),onClose:O,onError:T,autoPlay:!0,onRefSet:z,onVideoMetadataChange:N,onSetFullscreenToggleCallback:M})};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,["media_viewer_modal"],R);d("useWAWebListener").useListener(d("WAWebMsgCollection").MsgCollection,["remove"],function(a){P(a)});R=f!=null?d("WAWebFrontendMsgGetters").getChat(f):null;d("useWAWebListener").useListener((R=R==null?void 0:R.msgs)!=null?R:d("WAWebMsgCollection").MsgCollection,"remove_msgs",function(a){a.forEach(P)});d("useWAWebListener").useListener(d("WAWebMsgCollection").MsgCollection,["change:type"],function(a){if(a.type!==d("WAWebMsgType").MSG_TYPE.REVOKED)return;!a.isSentByMe&&(f==null?void 0:f.id.equals(a.id))&&d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__8exGPb61fVf__JHASH__")}));P(a)});var X={isOpened:S,pausePiP:Q,openPiP:e,closePiP:O};m(a,function(){return X});l(function(){c("WAWebPipController").register(X);return function(){c("WAWebPipController").unregister()}},[]);R=function(a){if(a.key!==d("WAWebKeyboardConstants").KEYBOARD_EVENT_KEY_VALUE.TAB)return;var b=v.current;if(b==null)return;if(!b.contains(document.activeElement))return;b=d("WAWebKeyboardTabUtils").getNextTabbableElement(b,a.shiftKey?d("WAWebKeyboardTabUtils").TabDirection.BACKWARD:d("WAWebKeyboardTabUtils").TabDirection.FORWARD,d("WAWebKeyboardTabUtils").FocusType.TABBABLE);if(b==null)return;a.stopPropagation();a.preventDefault();c("WAWebFocusIndicator").shouldIndicateFocus();c("WAWebFocusTracer").focus(b)};S=r.get(C);return k.jsx("div",{ref:v,tabIndex:0,onKeyDown:R,children:k.jsx(c("WAWebVelocityTransitionGroup"),{ref:v,transitionName:"pip",xstyle:q.playerWrapper,component:"div",children:S!=null?k.jsx(S,babelHelpers["extends"]({},W())):null})})}a.displayName=a.name+" [from "+f.id+"]";e=a;g.PiPManager=e}),226); __d("WAWebTosModal.react",["fbt","WAWebConfirmPopup.react","WAWebConnModel","WAWebModalManager","WAWebSocketModel","react","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function k(){d("WAWebConnModel").Conn.tos===0&&d("WAWebModalManager").ModalManager.close()}function l(){d("WAWebModalManager").ModalManager.close(),d("WAWebSocketModel").Socket.logout()}function a(){var a,b,c;d("useWAWebListener").useListener(d("WAWebConnModel").Conn,"change:tos",k);switch(d("WAWebConnModel").Conn.tos){default:case 1:a=h._(/*BTDS*/"__JHASH__IzGnGAypMLF__JHASH__");b=h._(/*BTDS*/"__JHASH__On50MyzV-mK__JHASH__");c=function(){return d("WAWebModalManager").ModalManager.close()};break;case 2:a=h._(/*BTDS*/"__JHASH__zCMiXHvPR-N__JHASH__");b=h._(/*BTDS*/"__JHASH__3n1bF_cZdZK__JHASH__");c=l;break}return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:c,okText:b,children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebUiRefreshNuxBgIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="ui-refresh-nux-bg";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox,h=a.innerStyles;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox","innerStyles"]);var l;if(g){var m=g.x;m=m===void 0?0:m;var n=g.y;n=n===void 0?0:n;var o=g.width;o=o===void 0?0:o;g=g.height;g=g===void 0?0:g;l=[m,n,o,g].join(" ")}m=228;n=500;(e!=null||f!=null)&&(m=e,n=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(o=l)!=null?o:"0 0 500 228",height:m,width:n,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsxs("g",{clipPath:"url(#a)",children:[j.jsx("path",{d:"M-37.344 35.81C10.399 61.373 68.804 81.177 134.014 92.459c.587-1.417.055-3.23-1.596-3.93L-182.833-87.834l90.704-76L148.486 27.869c2.454 2.138 6.079-.614 4.679-3.552l-34.124-71.638 476.706-24.744-18.674 78.014-192.367 82.58c-1.692.718-2.208 2.603-1.55 4.034 70.751-12.043 134.222-33.9 185.114-62.159 0 56.558 15.703 115.204 26.6 145.627 23.836 66.548 25.971 72.508-202.597 26.372 2.049 6.677-4.107 13.187-11.017 11.275l-111.772-30.923c-37.116-2.404-168.762 12.682-168.762 12.682-98.186 14.583-135.399 20.109-146.903 5.454z",fill:"#E6FFDA",className:i(h==null?void 0:h.splash)}),j.jsxs("g",{clipPath:"url(#b)",children:[j.jsx("path",{d:"M302.398 105.275c-6.76-14.14-1.3-31.25 12.629-38.802 14.387-7.8 32.376-2.452 40.164 11.935 7.367 13.594 2.996 30.395-9.632 38.79l-35.274 17.147z",fill:"#AFE966",stroke:"#111B21",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("path",{d:"M348.997 74.186c1.844 9.509-4.817 18.807-14.882 20.763-10.066 1.956-19.723-4.172-21.568-13.681m5.255-4.408c-.446-2.537.706-4.853 2.587-5.187s3.764 1.449 4.21 3.987m11.24-1.993c-.446-2.538.706-4.853 2.588-5.188s3.763 1.449 4.209 3.987",stroke:"#111B21",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("path",{d:"m276.135 125.11-52.761 6.705m33.623 12.912-31.344 3.55",stroke:"#111B21",strokeWidth:1.5,strokeLinecap:"round"}),j.jsx("path",{d:"m228.753 86.668 106.562 17.193c5.112.825 8.615 5.645 7.791 10.746l-13.282 82.326c-.773 4.788-5.325 8.068-10.124 7.293l-107.126-17.284z",fill:"#fff",stroke:"#111B21",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("path",{d:"m226.646 142.812-7.294 45.208-42.421-6.844c-4.799-.775-8.091-5.304-7.316-10.108l13.369-82.857c.773-4.789 5.309-8.07 10.123-7.294l42.421 6.844z",fill:"#25D366",stroke:"#111B21",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("path",{d:"m188.894 127.764 29.969 4.835z",fill:"#25D366"}),j.jsx("path",{d:"m188.894 127.764 29.969 4.835",stroke:"#111B21",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("path",{d:"m190.798 115.96 29.969 4.836z",fill:"#25D366"}),j.jsx("path",{d:"m190.798 115.96 29.969 4.836",stroke:"#111B21",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),j.jsxs("mask",{id:"c",maskUnits:"userSpaceOnUse",x:240.737,y:104.233,width:83.218,height:80.734,fill:"#000",children:[j.jsx("path",{fill:"#fff",d:"M240.737 104.233h83.218v80.734h-83.218z"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M312.346 128.868c4.233 7.73 5.22 16.656 2.774 25.143-5.052 17.505-23.324 27.654-40.735 22.618l-.011-.002a32.8 32.8 0 0 1-13.985-8.232l-16.64-1.164 7.842-14.43a33.1 33.1 0 0 1 .354-17.095c5.052-17.506 23.324-27.655 40.736-22.618 8.446 2.451 15.426 8.055 19.665 15.78m-55.174 22.594.866 3.353-4.296 7.032 8.431.175 2.248 2.203a27 27 0 0 0 3.72 3.072 27 27 0 0 0 7.787 3.672c14.316 4.133 29.331-4.154 33.469-18.469 2.002-6.935 1.187-14.238-2.299-20.56-2.072-3.753-4.88-6.866-8.359-9.245a27.1 27.1 0 0 0-7.815-3.676c-14.316-4.127-29.331 4.155-33.469 18.469a26.97 26.97 0 0 0-.283 13.974"})]}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M312.346 128.868c4.233 7.73 5.22 16.656 2.774 25.143-5.052 17.505-23.324 27.654-40.735 22.618l-.011-.002a32.8 32.8 0 0 1-13.985-8.232l-16.64-1.164 7.842-14.43a33.1 33.1 0 0 1 .354-17.095c5.052-17.506 23.324-27.655 40.736-22.618 8.446 2.451 15.426 8.055 19.665 15.78m-55.174 22.594.866 3.353-4.296 7.032 8.431.175 2.248 2.203a27 27 0 0 0 3.72 3.072 27 27 0 0 0 7.787 3.672c14.316 4.133 29.331-4.154 33.469-18.469 2.002-6.935 1.187-14.238-2.299-20.56-2.072-3.753-4.88-6.866-8.359-9.245a27.1 27.1 0 0 0-7.815-3.676c-14.316-4.127-29.331 4.155-33.469 18.469a26.97 26.97 0 0 0-.283 13.974",fill:"#25D366"}),j.jsx("path",{d:"m257.298 154.69-.001.006 1.481.239.001-.006zm57.822-.679 1.441.416v-.001zm-2.774-25.143 1.316-.721-.001-.001zm-37.961 47.761.417-1.441-.088-.026-.09-.014zm-.011-.002-.417 1.441.087.025.091.015zm-13.985-8.232 1.057-1.065-.396-.393-.556-.039zm-16.64-1.164-1.318-.717a1.5 1.5 0 0 0 1.213 2.213zm7.842-14.43 1.318.717.277-.51-.138-.564zm.354-17.095 1.442.416zm40.736-22.618.418-1.441h-.002zm-34.643 41.727 1.28.782.331-.542-.159-.615zm-.866-3.353-1.456.361.001.007.002.008zm-3.43 10.385-1.28-.782-1.361 2.227 2.609.054zm8.431.175 1.05-1.071-.425-.416-.594-.013zm2.248 2.203 1.056-1.065-.006-.006zm3.72 3.072.848-1.237h-.001zm7.787 3.672.416-1.441zm33.469-18.469 1.441.417v-.001zm-2.299-20.56 1.313-.725zm-8.359-9.245-.848 1.238.002.001zm-7.815-3.676.416-1.441zm-33.469 18.469 1.441.418v-.001zm59.106 16.938c2.556-8.866 1.524-18.201-2.899-26.279l-2.631 1.441c4.042 7.382 4.984 15.901 2.648 24.007zm-42.593 23.643c18.215 5.27 37.314-5.348 42.593-23.642l-2.882-.832c-4.824 16.717-22.27 26.397-38.877 21.593zm.167.039.011.001.478-2.961-.011-.002zm-14.803-8.649a34.3 34.3 0 0 0 14.625 8.609l.834-2.882a31.3 31.3 0 0 1-13.345-7.856zm-15.688-.732 16.64 1.164.21-2.993-16.641-1.164zm6.629-16.642-7.842 14.429 2.636 1.433 7.842-14.429zm.231-16.795a34.6 34.6 0 0 0-.369 17.869l2.913-.715a31.6 31.6 0 0 1 .339-16.322zm42.593-23.643c-18.215-5.269-37.313 5.348-42.593 23.643l2.883.832c4.824-16.717 22.269-26.397 38.877-21.593zm20.564 16.499c-4.43-8.073-11.733-13.936-20.562-16.499l-.836 2.881c8.062 2.34 14.72 7.684 18.768 15.061zM259.49 154.44l-.866-3.353-2.905.751.866 3.352zm-4.468 8.189 4.296-7.032-2.56-1.564-4.296 7.032zm7.182-2.107-8.431-.175-.063 2.999 8.432.176zm3.267 2.632-2.248-2.203-2.1 2.143 2.248 2.202zm3.517 2.906a25.4 25.4 0 0 1-3.511-2.9l-2.112 2.13a28 28 0 0 0 3.929 3.245zm7.356 3.468a25.4 25.4 0 0 1-7.355-3.468l-1.696 2.475a28.5 28.5 0 0 0 8.22 3.876zm31.612-17.445c-3.908 13.52-18.092 21.348-31.612 17.445l-.832 2.883c15.112 4.362 30.958-4.384 35.326-19.494zm-2.172-19.419c3.294 5.973 4.064 12.867 2.172 19.42l2.882.832c2.113-7.316 1.251-15.03-2.427-21.701zm-7.891-8.73c3.28 2.242 5.93 5.178 7.892 8.731l2.626-1.45c-2.183-3.952-5.148-7.244-8.825-9.758zm-7.385-3.474a25.6 25.6 0 0 1 7.383 3.473l1.696-2.475a28.6 28.6 0 0 0-8.247-3.88zm-31.612 17.445c3.908-13.519 18.091-21.343 31.613-17.445l.831-2.882c-15.112-4.357-30.957 4.383-35.326 19.494zm-.268 13.197a25.46 25.46 0 0 1 .268-13.196l-2.881-.835a28.45 28.45 0 0 0-.299 14.752z",fill:"#111B21",mask:"url(#c)"}),j.jsx("path",{d:"M289.831 161.805s-4.73-.25-8.99-3.92c-3.58-2.94-6.27-6.87-8.19-11.06-1.81-3.98-3.77-9.07-2.49-13.47 1.09-3.76 4.73-5.92 4.79-5.95 1.41-.86 2.9-.48 4.36.02 0 0 .02 0 .04.01 1.25.32 1.63 1.45 1.82 2.59.24 1.49.9 7.1.03 8.16-.83 1-2.31 1.23-3.09 2.29 0 0 0 .01-.01.02v.03c-.24 1.7 3.15 6.7 3.15 6.7 1.25 1.85 4.56 5.38 4.82 5.42.02 0 3.34-2.84 4.78-2.83 1.04 0 6.2 4.82 6.3 4.97 1.17 1.66-.25 4.02-1.48 5.21-1.5 1.45-3.8 1.93-5.82 1.82z",fill:"#25D366",stroke:"#111B21",strokeWidth:1.5}),j.jsx("path",{d:"M341.656 197.07c1.461 1.892 4.948 6.389 6.438 8.31a1.15 1.15 0 0 0 1.603.213l5.741-4.289c.533-.398.624-1.16.196-1.67-1.583-1.888-5.13-6.135-6.619-8.027a.56.56 0 0 1 .298-.887c3.729-1.067 7.997-2.563 11.493-3.69.996-.321 1.124-1.71.194-2.19l-34.702-17.911a.868.868 0 0 0-1.252.926l6.937 38.23c.184 1.013 1.496 1.297 2.077.447 2.016-2.95 3.545-5.258 6.673-9.453a.58.58 0 0 1 .923-.009Z",fill:"#FCF5EB",stroke:"#111B21",strokeWidth:1.5,strokeMiterlimit:10}),j.jsx("path",{d:"M377.209 156.196c.737.136.929 1.18.288 1.568-2.973 1.804-4.127 3.464-4.76 6.892-.136.738-1.18.929-1.568.289-1.804-2.974-3.464-4.128-6.892-4.761-.737-.136-.929-1.179-.288-1.568 2.973-1.804 4.127-3.464 4.76-6.892.136-.737 1.179-.929 1.568-.288 1.804 2.973 3.464 4.127 6.892 4.76M215.394 63.933c.565.492.227 1.507-.521 1.56-2.365.17-3.748.855-5.307 2.648-.492.565-1.507.227-1.561-.52-.168-2.366-.854-3.749-2.647-5.308-.566-.492-.227-1.507.521-1.56 2.365-.17 3.747-.855 5.307-2.648.492-.566 1.507-.227 1.561.52.168 2.366.854 3.749 2.647 5.308m-71.188 78.098c.749-.03 1.199.941.692 1.493-1.605 1.745-2.141 3.192-2.046 5.567.03.749-.941 1.199-1.492.691-1.746-1.605-3.193-2.14-5.567-2.045-.749.03-1.199-.941-.692-1.493 1.605-1.745 2.141-3.193 2.046-5.567-.03-.749.941-1.199 1.492-.692 1.746 1.606 3.193 2.141 5.567 2.046",fill:"#FCF5EB",stroke:"#111B21",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("mask",{id:"d",fill:"#fff",children:j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m124.923 90.754 7.488-3.904 3.565 6.838-7.489 3.904a3.856 3.856 0 0 0-1.536 5.381l7.118 12.202a3.86 3.86 0 0 0 3.907 1.848l29.391-3.903a7.71 7.71 0 0 1 7.628 3.4l7.097 13.194-6.452 4.221-7.097-13.194-29.391 3.903a11.57 11.57 0 0 1-11.72-5.545l-7.118-12.202c-3.375-5.707-1.271-13.077 4.609-16.143"})}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m124.923 90.754 7.488-3.904 3.565 6.838-7.489 3.904a3.856 3.856 0 0 0-1.536 5.381l7.118 12.202a3.86 3.86 0 0 0 3.907 1.848l29.391-3.903a7.71 7.71 0 0 1 7.628 3.4l7.097 13.194-6.452 4.221-7.097-13.194-29.391 3.903a11.57 11.57 0 0 1-11.72-5.545l-7.118-12.202c-3.375-5.707-1.271-13.077 4.609-16.143",fill:"#fff"}),j.jsx("path",{d:"m132.411 86.85 1.33-.693-.694-1.33-1.33.693zm-7.488 3.904.693 1.33zm11.053 2.934.693 1.33 1.33-.694-.693-1.33zm-7.489 3.904.694 1.33zm-1.536 5.381 1.296-.756-.005-.008zm7.118 12.202-1.295.756.004.007zm3.907 1.848-.198-1.487-.015.002-.016.002zm29.391-3.903.197 1.487.016-.002.016-.002zm7.628 3.4 1.321-.711-.03-.057-.035-.054zm7.097 13.194.821 1.255 1.152-.753-.652-1.213zm-6.452 4.221-1.322.711.775 1.439 1.368-.895zm-7.097-13.194 1.321-.711a1.5 1.5 0 0 0-1.519-.776zm-29.391 3.903-.198-1.487-.015.002-.016.002zm-11.72-5.545-1.296.756.005.008zm-7.118-12.202 1.296-.756-.005-.007zm11.403-21.377-7.488 3.904 1.387 2.66 7.488-3.904zm5.589 7.474-3.565-6.837-2.66 1.387 3.564 6.837zm-8.125 5.928 7.488-3.904-1.387-2.66-7.488 3.904zm-.939 3.287a2.356 2.356 0 0 1 .939-3.287l-1.387-2.66a5.355 5.355 0 0 0-2.134 7.474zm7.123 12.21-7.118-12.202-2.591 1.511 7.118 12.203zm2.382 1.121a2.36 2.36 0 0 1-2.387-1.129l-2.582 1.527a5.35 5.35 0 0 0 5.427 2.567zm29.422-3.907-29.391 3.903.395 2.974 29.391-3.903zm9.082 4.065a9.21 9.21 0 0 0-9.113-4.06l.458 2.965a6.21 6.21 0 0 1 6.144 2.738zm7.162 13.305-7.097-13.194-2.642 1.421 7.097 13.194zm-6.952 6.187 6.452-4.221-1.642-2.51-6.453 4.221zm-9.239-13.739 7.096 13.195 2.643-1.421-7.097-13.195zm-27.873 4.679 29.391-3.902-.395-2.974-29.391 3.903zm-13.208-6.267a13.07 13.07 0 0 0 13.239 6.263l-.457-2.965a10.065 10.065 0 0 1-10.2-4.825zm-7.123-12.21 7.118 12.202 2.592-1.511-7.118-12.203zm5.211-18.229c-6.642 3.463-9.019 11.789-5.206 18.237l2.582-1.527c-2.937-4.967-1.106-11.382 4.011-14.05z",fill:"#111B21",mask:"url(#d)"}),j.jsx("path",{d:"M126.912 96.963c-2.383-4.955-.298-10.903 4.656-13.285l43.302-20.826c4.955-2.382 10.903-.298 13.285 4.657l4.161 8.65c2.383 4.955.298 10.903-4.656 13.286l-43.302 20.825c-4.955 2.383-10.903.298-13.285-4.656z",fill:"#FCF5EB",stroke:"#111B21",strokeWidth:1.5}),j.jsx("path",{d:"m174.926 74.762.734.156-.734-.156c-1.385 6.512-8.778 9.716-14.477 6.273-1.931-1.167-4.263.725-3.519 2.855l5.427 15.535a6.194 6.194 0 0 1-10.566 6.06l-6.639-7.798c-3.165-3.718-9.184-2.508-10.666 2.144l-.84 2.634a2.65 2.65 0 0 1-2.771 1.836l-.259-.024a.35.35 0 0 1-.28-.194l-3.424-7.12c-2.383-4.955-.298-10.903 4.656-13.285l43.302-20.826c4.955-2.382 10.903-.298 13.285 4.657l3.425 7.12a.35.35 0 0 1-.023.34l-.143.217a2.65 2.65 0 0 1-3.164 1.018l-9.904-3.791a2.472 2.472 0 0 0-3.302 1.794z",fill:"#25D366",stroke:"#111B21",strokeWidth:1.5}),j.jsx("path",{d:"M172.361 119.84a6.685 6.685 0 0 1 8.787 2.862l11.8 21.974a6.685 6.685 0 0 1-11.778 6.325l-11.801-21.974a6.686 6.686 0 0 1 2.992-9.187Z",fill:"#E6FFDA",stroke:"#111B21",strokeWidth:1.5}),j.jsx("path",{d:"M185.974 145.141a1.525 1.525 0 1 1 1.323 2.751 1.526 1.526 0 1 1-1.323-2.751",fill:"#111B21"})]})]}),j.jsxs("defs",{children:[j.jsx("clipPath",{id:"a",children:j.jsx("path",{fill:"#fff",d:"M0 .5h500v227H0z"})}),j.jsx("clipPath",{id:"b",children:j.jsx("path",{fill:"#fff",d:"M98 56h304v152H98z"})})]})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.UiRefreshNuxBgIcon=a}),98); __d("WAWebUiRefreshNuxModal.react",["fbt","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebFlex.react","WAWebModal.react","WAWebModalManager","WAWebNoop","WAWebText.react","WAWebThemeContext","WAWebUiRefreshNuxBgIcon.react","react","useWAWebFocusOnMount","useWAWebListener"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={container:{width:"xvue9z",backgroundColor:"x16w0wmm",$$css:!0},headerContainer:{paddingTop:"x109j2v6",paddingEnd:"x1iji9kk",paddingBottom:"x1hhzuzn",paddingStart:"x1sln4lm",$$css:!0},headerText:{fontSize:"x1603h9y",fontStyle:"x1j61x8r",fontWeight:"x1s688f",lineHeight:"xgif2c7",$$css:!0},descriptionContainer:{paddingTop:"xexx8yu",paddingEnd:"x6x52a7",paddingBottom:"x1l90r2v",paddingStart:"xxpdul3",$$css:!0},descriptionText:{fontSize:"x1f6kntn",textAlign:"x1yc453h",lineHeight:"x1o2sk6j",$$css:!0},buttonContainer:{paddingTop:"x1cnzs8",paddingEnd:"xc73u3c",paddingBottom:"xx6bls6",paddingStart:"x5ib6vp",backgroundColor:"x16w0wmm",$$css:!0},splashLight:{fill:"x1sryxtu",$$css:!0},splashDark:{fill:"x1wlj4pe",$$css:!0}},l=function(){return h._(/*BTDS*/"__JHASH__sQZVNBSzWub__JHASH__")},m=function(){return h._(/*BTDS*/"__JHASH__I9m-1aEPStl__JHASH__")};function a(a){var b=d("WAWebThemeContext").useIsDarkTheme(),e=c("useWAWebFocusOnMount")(),f=function(){d("WAWebModalManager").ModalManager.close()};d("useWAWebListener").useListener(d("WAWebModalManager").ModalManager,"close_modal",function(){a.onOkOrDismiss()});return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{ref:e,onOK:f,okText:c("WAWebFbtCommon")("Continue"),onOverlayClick:c("WAWebNoop"),type:d("WAWebModal.react").ModalTheme.Auto,buttonGroupStyle:k.buttonContainer,testid:void 0,children:j.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:k.container,children:[j.jsx(d("WAWebFlex.react").FlexRow,{children:j.jsx(d("WAWebUiRefreshNuxBgIcon.react").UiRefreshNuxBgIcon,{innerStyles:{splash:b?k.splashDark:k.splashLight}})}),j.jsx(d("WAWebFlex.react").FlexRow,{align:"center",alignSelf:"stretch",justify:"center",xstyle:k.headerContainer,children:j.jsx(d("WAWebText.react").WAWebTextLargeRefreshed,{xstyle:k.headerText,children:l()})}),j.jsx(d("WAWebFlex.react").FlexRow,{xstyle:k.descriptionContainer,children:j.jsx(d("WAWebText.react").WAWebTextMutedRefreshed,{xstyle:k.descriptionText,children:m()})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebUserNoticeModal.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={noticeSvgWrapper:"_alz7",noticeModalContentWrapper:"_alz8",noticeSmbContainer:"_alz9",noticeContainer:"_alza"};b=a;g["default"]=b}),98); __d("WAWebUserNoticeModal.react",["WALogger","WAWebAlertNoticeIcon.react","WAWebButton.react","WAWebConnModel","WAWebDomSanitize","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebModal.react","WAWebModalManager","WAWebNoticeModel","WAWebSocketModel","WAWebText.react","WAWebThemeContext","WAWebUserNoticeModal.scss","WAWebUserNoticeWamEvent","WAWebWamEnumUserNoticeEvent","react","useWAWebListener","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["user notice modal, user clicked logout"]);j=function(){return a};return a}b=i||d("react");var k=h||(h=c("react")),l=b.useContext,m=b.useEffect,n=b.useState,o=function(){};function p(a){var b=a.btn,c=a.onClick;a=a.primary;a=a===void 0?!1:a;if(b==null)return null;var e="UserNoticeModalPopup-"+b.action+"Btn",f="popup-controls-"+b.action;return k.jsx(d("WAWebButton.react").Button,{testid:void 0,type:a?"primary":"secondary",onClick:c,children:b.label},e)}p.displayName=p.name+" [from "+f.id+"]";function a(a){a=a.notice;a=d("useWAWebModelValues").useModelValues(a,["noticeId","blocking","blockingModal"]);var b=l(d("WAWebThemeContext").ThemeContext);a=a.blockingModal;var e=n(!1),f=e[0],g=e[1];e=function(){c("WAWebNoticeModel").blocking||d("WAWebModalManager").ModalManager.close()};d("useWAWebListener").useListener(c("WAWebNoticeModel"),"change:blocking",e);var h=function(){return c("WAWebNoticeModel").noticeId!=null&&c("WAWebNoticeModel").blockingModal!=null&&c("WAWebNoticeModel").blocking===!0},i=function(){if(h()&&!f){var a=new(d("WAWebUserNoticeWamEvent").UserNoticeWamEvent)({userNoticeId:c("WAWebNoticeModel").noticeId,userNoticeContentVersion:c("WAWebNoticeModel").policyVersion,userNoticeEvent:d("WAWebWamEnumUserNoticeEvent").USER_NOTICE_EVENT.BLOCKING_MODAL_APPEAR});a.commit();g(!0)}};e=function(){g(!1)};d("useWAWebListener").useListener(c("WAWebNoticeModel"),"change:noticeId",e);d("useWAWebListener").useListener(c("WAWebNoticeModel"),"change:blockingModal change:blocking",i);m(function(){i()},[]);var q=function(){d("WALogger").LOG(j()),d("WAWebModalManager").ModalManager.close(),d("WAWebSocketModel").Socket.logout()},r=function(){location.reload()};e=function(a){if(a)if(a.action==="logout")return q;else if(a.action==="refresh")return r;return o};if(!a||!h())return null;var s=a.iconSvg,t=a.iconDescription;t=t===void 0?"":t;var u=a.title,v=a.body,w=a.primaryButton;a=a.secondaryButton;var x;s&&(x=b.theme==="light"?s.light:s.dark);b=k.jsx(d("WAWebAlertNoticeIcon.react").AlertNoticeIcon,{"aria-label":t});s=x&&d("WAWebDomSanitize").sanitizeNoticeSVG(x);t=s?k.jsx("span",{"aria-label":t,dangerouslySetInnerHTML:{__html:s}}):b;s=k.jsx(p,{btn:a,onClick:e(a)});b=k.jsx(p,{btn:w,primary:!0,onClick:e(w)});a=[s,b];s={enter:e(w)};b=u?d("WAWebDomSanitize").sanitizeNoticeText(u):null;e=v?d("WAWebDomSanitize").sanitizeNoticeText(v):null;return k.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{handlers:s,children:k.jsx("div",{className:d("WAWebConnModel").Conn.isSMB?c("WAWebUserNoticeModal.scss").noticeSmbContainer:c("WAWebUserNoticeModal.scss").noticeContainer,children:k.jsx(d("WAWebModal.react").Modal,{actions:a,type:d("WAWebModal.react").ModalTheme.Flex,children:k.jsxs("div",{className:c("WAWebUserNoticeModal.scss").noticeModalContentWrapper,children:[k.jsx(d("WAWebFlex.react").FlexRow,{className:c("WAWebUserNoticeModal.scss").noticeSvgWrapper,align:"center",justify:"center",children:t}),k.jsx(d("WAWebText.react").WAWebTextLarge,{margin:[32,32,0,32],textAlign:"center",children:k.jsx("div",{dangerouslySetInnerHTML:{__html:b}})}),k.jsx(d("WAWebText.react").WAWebTextMuted,{color:"white",margin:32,children:k.jsx("div",{dangerouslySetInnerHTML:{__html:e}})})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebUseUnifiedSession",["WAWebUnifiedSession","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useEffect;function a(){i(function(){d("WAWebUnifiedSession").UnifiedSessionManager.generateSessionId(d("WAWebUnifiedSession").UnifiedSessionGenReason.InitialRender)},[]);var a=function(){d("WAWebUnifiedSession").UnifiedSessionManager.generateSessionId(d("WAWebUnifiedSession").UnifiedSessionGenReason.Foreground)};d("useWAWebListener").useListener(window,"focus",a)}g.useUnifiedSession=a}),98); __d("WAWebUserActivityWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({UserActivity:[1384,{userActivityBitmapHigh:[4,a.TYPES.INTEGER],userActivityBitmapLen:[5,a.TYPES.INTEGER],userActivityBitmapLow:[3,a.TYPES.INTEGER],userActivitySessionCum:[7,a.TYPES.INTEGER],userActivitySessionId:[1,a.TYPES.STRING],userActivitySessionSeq:[6,a.TYPES.INTEGER],userActivityStartTime:[2,a.TYPES.INTEGER]},[1,1,1],"regular"]},{UserActivity:[]});g.UserActivityWamEvent=b}),98); __d("WAWebWamTimeSpentLogger",["WAWebCmd","WAWebTimeSpentLoggingBitArray","WAWebTimeSpentLoggingNavigation","WAWebTimeSpentLoggingSession","WAWebUseUnifiedSession","WAWebUserActivityWamEvent","WAWebUserPrefsKeys","WAWebWamTimeSpentArray","react","useLazyRef","useWAWebListener"],(function(a,b,c,d,e,f,g){var h;b=h||d("react");var i=b.useEffect,j=b.useRef,k=-5,l=[{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"}],m=function(a){var b=new(d("WAWebUserActivityWamEvent").UserActivityWamEvent)({userActivitySessionId:a.sessionId,userActivityStartTime:a.startTime,userActivityBitmapLen:a.bitmapLen,userActivityBitmapLow:a.bitmap[0],userActivitySessionSeq:a.sessionSeq,userActivitySessionCum:a.sessionCum});a.bitmapLen>32&&(b.userActivityBitmapHigh=a.bitmap[1]);b.commit()};function a(){var a,b=c("useLazyRef")(function(){return Date.now()}),e=j(-1),f=j(-1),g=c("useLazyRef")(function(){return new(c("WAWebWamTimeSpentArray"))({loggingCallback:m})}),h=c("useLazyRef")(d("WAWebTimeSpentLoggingSession").createTimeSpentArray),n=function(a){var c=g.current,d=h.current;if(!c&&!d)return;if(a instanceof MouseEvent){if(a.pageX===e.current&&a.pageY===f.current&&a.type!=="click")return;e.current=a.pageX;f.current=a.pageY}a=Date.now();var i=a-b.current;i>0?(b.current=a,c==null?void 0:c.update(b.current),d==null?void 0:d.update(b.current)):i<k&&(b.current=a)},o=function(){g.current&&(g.current.ship(function(a){d("WAWebTimeSpentLoggingBitArray").stashBitarrayData(a,d("WAWebUserPrefsKeys").KEYS.USER_ACTIVITY_TIME_SPENT_EVENT)}),g.current=null),h.current&&(h.current.ship(function(a){d("WAWebTimeSpentLoggingBitArray").stashBitarrayData(d("WAWebTimeSpentLoggingSession").preprocessTsArrayData(a),d("WAWebUserPrefsKeys").KEYS.TIME_SPENT_BITARRAY_EVENT)}),g.current=null),d("WAWebTimeSpentLoggingNavigation").setPendingBackgroundNavigation()};i(function(){d("WAWebTimeSpentLoggingBitArray").flushBitarrays(d("WAWebUserPrefsKeys").KEYS.USER_ACTIVITY_TIME_SPENT_EVENT,m);return function(){g.current&&(g.current.ship(),g.current=null)}},[]);i(function(){d("WAWebTimeSpentLoggingBitArray").flushBitarrays(d("WAWebUserPrefsKeys").KEYS.TIME_SPENT_BITARRAY_EVENT,d("WAWebTimeSpentLoggingBitArray").postTsBitArrayEvent);return function(){h.current&&(h.current.ship(),h.current=null)}},[]);d("WAWebUseUnifiedSession").useUnifiedSession();(a=d("useWAWebListener")).useListener(window,"beforeunload",o);a.useListener(window,"blur",d("WAWebTimeSpentLoggingNavigation").logTsBackgroundNavigation);a.useListener(d("WAWebCmd").Cmd,"logout",function(){d("WAWebTimeSpentLoggingNavigation").logTsBackgroundNavigation()});a.useListener(window,"focus",d("WAWebTimeSpentLoggingNavigation").logTsForegroundNavigation);a.useListeners(l.map(function(a){var b=a.source;a=a.name;return{source:b,eventOrEvents:a,callback:n,opts:{passive:!0,capture:!0}}}));return null}g["default"]=a}),98); __d("WAWebMain.react",["fbt","Promise","WAAbortError","WAGetUserMedia","WALogger","WAPromiseDelays","WAPromiseLoop","WAShiftTimer","WAWebABProps","WAWebActionListener","WAWebActiveAccountInfoModel","WAWebAnimatedEmojiAssetLoader","WAWebAnimatedEmojiGatingUtils","WAWebAppContext.react","WAWebAssetLoader","WAWebAssetLoaderSingleton","WAWebBizGatingUtils","WAWebBizSmbTosModal.react","WAWebChatCollection","WAWebChatPreferenceCollection","WAWebChatPreferenceModel","WAWebChatlistHeaderV2.react","WAWebChatlistPanel.react","WAWebChatlistPanelMode","WAWebClassnames","WAWebClientFeatureFlags","WAWebCmd","WAWebComposeBoxHasUnsavedChangesInEditModal","WAWebConfirmPopup.react","WAWebConnModel","WAWebConversation.react","WAWebDebugHotPink","WAWebDeviceCapabilitiesBootstrap","WAWebDrawerManager","WAWebDrawerManager.react","WAWebEmojiAssetLoader","WAWebEmojiSetup","WAWebExpandableNavBar.react","WAWebInternDogfoodingModal.react","WAWebKeyboardEventConstants","WAWebKeyboardManager","WAWebKeyboardShortcutsPopup.react","WAWebKeyboardTopLevelHotKeys.react","WAWebLinkedAccountsAction","WAWebMain.scss","WAWebModalManager","WAWebMsgCollection","WAWebMultiSelectEntryPointConstants","WAWebMuteCollection","WAWebNavBar.react","WAWebNavBarTypes","WAWebNoticeModel","WAWebNotificationManager.react","WAWebNux","WAWebOpenNotificationsSetting","WAWebPageLoadLogging","WAWebPipManager.react","WAWebRobotoFlexFontLoadable","WAWebSafariLimited","WAWebSettingsGetters","WAWebSettingsModel","WAWebSocketModel","WAWebStreamModel","WAWebThemeContext","WAWebTosModal.react","WAWebUA","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebURLUtils","WAWebUiRefreshNuxModal.react","WAWebUim","WAWebUimUie.react","WAWebUserNoticeModal.react","WAWebUserPrefsNuxPreferences","WAWebUserPrefsUiRefresh","WAWebWallpaper","WAWebWamTimeSpentLogger","asyncToGeneratorRuntime","cr:13156","cr:1347","cr:17163","cr:17194","cr:17219","cr:1925","cr:593","cr:6018","gkx","isNonZeroNumber","react","stylex","useLazyRef","useWAWebABPropConfigValue","useWAWebChatLockSettings","useWAWebExternalBetaOptIn","useWAWebListener","useWAWebOnUnmount","useWAWebSettingsValues"],(function(a,b,c,d,e,f,g,aa){var h,i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["WAWebMain: could not fetch linked accounts"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["[UI Refresh] bg-chat-beige asset not found in lightRefreshed array"]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["TOS (terms of service) stage number 3, logging out"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ui-refresh] User should already be seeing new UI"]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ui-refresh] Showing nux to user"]);p=function(){return a};return a}function q(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ui-refresh] Marking the nux as visited on startup & showing nux"]);q=function(){return a};return a}function r(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ui-refresh] Nux already acknowledged by the user as per local storage, showing new UI"]);r=function(){return a};return a}function s(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ui-refresh] Nux acknowledged by the user"]);s=function(){return a};return a}function t(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ui-refresh] Opening UI Refresh Nux modal for the user"]);t=function(){return a};return a}var u=k||d("react"),v=j||(j=c("react")),ba=u.useContext,w=u.useEffect,x=u.useRef,y=u.useState;u=(u=b("cr:17219"))==null?void 0:(u=u.getWindowsBridge())==null?void 0:u.touchpadFix;u==null?void 0:u.init();function z(){window.history.pushState({},"",window.location.href)}function a(){return d("WAWebComposeBoxHasUnsavedChangesInEditModal").hasUnsavedChangesInEditModal()||d("WAWebChatCollection").ChatCollection.some(function(a){return a.isComposingWithUnsavedChanges()})||d("WAWebMsgCollection").MsgCollection.hasUnsentMessages()||d("WAWebMsgCollection").MsgCollection.some(function(a){return a.pendingDeleteForMe})}var A=6e4,B={app:{position:"x1n2onr6",top:"x13vifvy",start:"x17qophe",display:"x78zum5",width:"xh8yej3",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",backgroundColor:"x1iek97a",backgroundRepeat:"x1w3jsh0",backgroundPosition:"xf8xn22",borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x5pf9jr",borderBottomStartRadius:"xo71vjh",transformOrigin:"x1g0ag68",animationName:"xcgwb2z",animationDuration:"x4afe7t",animationTimingFunction:"x1alahoq","::after_position":"x1j6awrg","::after_top":"x1m1drc7","::after_end":"x1n449xj","::after_start":"x162n7g1","::after_zIndex":"xitxdhh","::after_height":"x134s4mn","::after_content":"x1s928wv","::after_backgroundColor":"x1setqd9",$$css:!0},appNoAnimation:{animationName:"x10886xy",$$css:!0},pane:{boxSizing:"x9f619",position:"x1n2onr6",zIndex:"xyw6214",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",transform:"x17dzmu4","@media (display-mode: standalone)_borderTopWidth":"x1i1dayz","@media (display-mode: standalone)_borderTopStyle":"x2ipvbc","@media (display-mode: standalone)_borderTopColor":"x1w8yi2h",$$css:!0},paneWindowsHybrid:{borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"x10vq5hr",$$css:!0},navbarBorder:{borderStartWidth:"xy80clv",borderStartStyle:"x26u7qi",borderStartColor:"x1ux35ld",$$css:!0},paneOne:{display:"x78zum5",flexDirection:"xdt5ytf",zIndex:"xa1v5g2",overflowX:"x1plvlek",overflowY:"xryxfnj","@media (display-mode: standalone)_borderTopStartRadius":"xd32934",$$css:!0},paneOneWindowsHybrid:{borderTopStartRadius:"x1lq5wgf",$$css:!0},paneOneDrawer:{overflowX:"x6ikm8r",overflowY:"x10wlt62",zIndex:"x1ks9yow",$$css:!0},paneOneDrawerWithNavBar:{marginStart:"xxpasqj",$$css:!0},paneOneDrawerWithNavBarExpanded:{marginStart:"x6cik5j",$$css:!0},paneBorderLeft:{borderStartWidth:"xy80clv",borderStartStyle:"x26u7qi",borderStartColor:"x1ux35ld",$$css:!0},sidePaneMaxWidth:{flex:"x18dvir5",width:"xxljpkc",maxWidth:"x1tm2t65",$$css:!0},sidePaneWidthWindowsHybrid:{flex:"x1dgx9ea",width:"xnnhin0",maxWidth:"x1dt7z5j",minWidth:"x1ugzxio",$$css:!0},sidePane3WidthWindowsHybrid:{flex:"x18dvir5",maxWidth:"xbgkxdc","@media screen and (max-width: 1300px)_position":"x1xz51pm","@media screen and (max-width: 1300px)_end":"x1k2hche","@media screen and (max-width: 1300px)_width":"xlyzgzq","@media screen and (max-width: 1300px)_maxWidth":"x1roq002","@media screen and (max-width: 1300px)_height":"x1ma46kl",$$css:!0},sidePane3WidthWindowsHybridWithNavBarExpanded:{"@media screen and (max-width: 1300px)_maxWidth":"xqhed7l",$$css:!0}};function e(a){a=a.animate;var e=ba(d("WAWebThemeContext").ThemeContext),f=d("useWAWebABPropConfigValue").useABPropConfigValue("web_ui_refresh_m1")===!0||d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),g=d("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_roboto_flex_font")===!0,j=y(!1),k=j[0],u=j[1],C=function(){d("WALogger").LOG(t()),d("WAWebModalManager").ModalManager.open(v.jsx(c("WAWebUiRefreshNuxModal.react"),{onOkOrDismiss:function(){d("WALogger").LOG(s()),d("WAWebUserPrefsUiRefresh").incrementNuxViewCount(),d("WAWebUserPrefsUiRefresh").setUiRefreshNuxAcked(!0)}}))};w(function(){if(b("cr:17163")==null?void 0:b("cr:17163").shouldShowHybridNux()){b("cr:17163")==null?void 0:b("cr:17163").showHybridNux();return}if(b("cr:17194")!=null&&(b("cr:17163")==null?void 0:b("cr:17163").shouldShowHybridRateTheAppPrompt())){d("WAWebModalManager").ModalManager.open(v.jsx(b("cr:17194"),{}));return}if(d("WAWebUIRefreshGatingUtils").isFirstPairedDevice())return;if(d("WAWebUIRefreshGatingUtils").checkIfShouldBeEnabledInWindowsEnv()||!f||!d("WAWebUIRefreshGatingUtils").isUiRefreshNuxEnabledOnPlatform())return;var a=d("WAWebUserPrefsUiRefresh").getUiRefreshNuxAcked();if(a){d("WALogger").LOG(r());u(!0);return}if(!k){a=d("WAWebUserPrefsUiRefresh").getNuxViewCount();if(a===0)d("WALogger").LOG(q()),d("WAWebUserPrefsUiRefresh").incrementNuxViewCount(),u(!0),C();else if(a===1)d("WALogger").LOG(p()),u(!0),C();else if(a>0){d("WALogger").LOG(o());return}}},[k]);var D=f&&d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),E=d("WAWebUIRefreshGatingUtils").expandableSideNavEnabled(),F=x(null),G=x(null),H=x(null),I=x(null),J=x(null),K=x(null),L=x(!1),M=x(null),ca=c("useLazyRef")(function(){return new(d("WAShiftTimer").ShiftTimer)(function(){if(document.activeElement!==document.body)return;var a=d("WAWebUim").UIM.Manager.getTop();a==null?void 0:a.requestFocus()})});j=y(!1);var N=j[0],O=j[1];j=y(!1);var P=j[0],Q=j[1];j=function(){ca.current.debounce(10)};var da=function(a){var b,c,d;b=(b=G.current)==null?void 0:b.clientWidth;if(b==null)return!1;c=(c=F.current)==null?void 0:c.clientWidth;if(c==null)return!1;if(!J.current)return!1;d=(d=I.current)==null?void 0:d.clientWidth;return J.current.animatePanel(c,b,d,a)},R=y(!1),S=R[0],ea=R[1];R=y();var T=R[0],fa=R[1];R=y(d("WAWebNavBarTypes").NavBarItems.Chats);var ga=R[0],U=R[1];R=y(!1);var V=R[0],ha=R[1];R=function(){if(!E)return;ha(!V)};var W=function(){U(d("WAWebNavBarTypes").NavBarItems.Chats)},X=function(){return ea(!0)},Y=function(){return ea(!1)};d("useWAWebListener").useListener(d("WAWebDrawerManager").DrawerManager,"drawer_left_closed",W);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"set_active_nav_bar",function(a){U(a)});W=y(0);var ia=W[0];W=W[1];d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"rerender_app",function(){});W=function(){L.current=!1,d("WAWebCmd").Cmd.onPanesWillChange(3),O(!0),Q(!0),d("WAWebCmd").Cmd.onPanesDidChange(3),da(!0)};var ja=function(){L.current=!0;Q(!0);var a=da(!1);a?(d("WAWebCmd").Cmd.onPanesWillChange(2),O(!1),d("WAWebCmd").Cmd.onPanesDidChange(2)):O(!1)},ka=function(){Q(!1),N&&L.current&&O(!1)},la=function(a){var b=!1;d("WAWebDrawerManager").DrawerManager.existsDrawerLeft(function(c){var d=H.current;b=b||c&&Boolean(d==null?void 0:d.containsDOMNode(a))});d("WAWebDrawerManager").DrawerManager.existsDrawerMid(function(c){var d=J.current;b=b||c&&Boolean(d==null?void 0:d.containsDOMNode(a))});return b},ma=function(){switch(d("WAWebConnModel").Conn.tos){case 1:case 2:d("WAWebModalManager").ModalManager.open(v.jsx(c("WAWebTosModal.react"),{}),{blockClose:!0});break;case 3:d("WALogger").LOG(n());d("WAWebSocketModel").Socket.logout();break;default:break}},na=function(){d("WAWebConnModel").Conn.smbTos&&d("WAWebModalManager").ModalManager.open(v.jsx(c("WAWebBizSmbTosModal.react"),{}),{blockClose:!0})},oa=function(){d("isNonZeroNumber").isNonZeroNumber(c("WAWebNoticeModel").noticeId)&&c("WAWebNoticeModel").blocking===!0&&d("WAWebModalManager").ModalManager.open(v.jsx(c("WAWebUserNoticeModal.react"),{notice:c("WAWebNoticeModel")}),{blockClose:!0})},pa=function(a){var b=a.target,e=function(a){return a instanceof HTMLElement&&a.getAttribute("contentEditable")||a instanceof HTMLInputElement};for(var f=0;f<5;f++){if(e(b))return;b=b.parentNode}c("WAWebKeyboardShortcutsPopup.react")&&d("WAWebModalManager").ModalManager.open(v.jsx(c("WAWebKeyboardShortcutsPopup.react"),{}));a.preventDefault()},qa=function(a){var c=a?A:0;K.current=new AbortController();var e=K.current.signal;d("WAPromiseLoop").promiseLoop(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{yield d("WAPromiseDelays").delayMs(c);if(e.aborted)throw new(d("WAAbortError").AbortError)();d("WAWebStreamModel").Stream.markUnavailable(30*1e3);yield new(h||(h=b("Promise")))(function(a){M.current=a});if(e.aborted)throw new(d("WAAbortError").AbortError)();document.hasFocus()&&d("WAWebStreamModel").Stream.markAvailable();c=A}catch(b){if(b.name===d("WAAbortError").ABORT_ERROR)a();else throw b}});return function(b){return a.apply(this,arguments)}}())["finally"](function(){K.current=null})},ra=function(){var a;(a=K.current)==null?void 0:a.abort()};w(function(){var a=["color-refresh"];d("WAWebConnModel").Conn.isSMB&&a.push("smb-colors");if(D){var b;(b=document.body)==null?void 0:(b=b.classList).add.apply(b,a);if(!d("WAWebAssetLoaderSingleton").AssetLoader.isAssetLoaded("bg-chat-beige")){b=d("WAWebThemeContext").THEME_ASSETS.lightRefreshed.find(function(a){a=a.id;return a==="bg-chat-beige"});if(b==null){d("WALogger").DEV(m());return}void d("WAWebAssetLoaderSingleton").AssetLoader.loadAsset(b,d("WAWebAssetLoader").LOAD_PRIORITY.THEME_ASSET_LOAD,!1)}}else{(b=document.body)==null?void 0:(b=b.classList).remove.apply(b,a)}d("WAWebThemeContext").resetPwaTitlebarColor()},[D]);if(!c("gkx")("26258")){var sa=D&&d("WAWebABProps").getABPropConfigValue("web_design_refresh_hotpink");w(function(){var a="hotpink";if(sa){var b;d("WAWebDebugHotPink").enableHotPink();(b=document.body)==null?void 0:b.classList.add(a)}},[sa])}w(function(){if(g){var a;void d("WAWebRobotoFlexFontLoadable").requireRobotoFlexFont();(a=document.body)==null?void 0:a.classList.add("roboto-flex-font")}else{(a=document.body)==null?void 0:a.classList.remove("roboto-flex-font")}},[g]);w(function(){d("WAWebStreamModel").Stream.uiActive=!0;document.visibilityState!=="hidden"&&d("WAWebStreamModel").Stream.markAvailable();var a=d("WAWebConnModel").Conn.platform;c("WAWebEmojiSetup")(d("WAWebEmojiAssetLoader").getEmojiTypeFromPlatform(a));d("WAWebAssetLoaderSingleton").AssetLoader.setPlatform(a);c("WAWebKeyboardManager").menuBatchRenderWith(function(){c("WAWebKeyboardManager").trigger(c("WAWebKeyboardEventConstants").Event+":"+c("WAWebKeyboardEventConstants").Events.LOGGED_IN)});qa(!0);d("WAWebAnimatedEmojiGatingUtils").isAnimatedEmojiEnabled()&&void d("WAWebAnimatedEmojiAssetLoader").initAnimatedEmojiAssets(a);d("WAWebConnModel").Conn.isSMB&&na();ma();oa();d("WAWebUA").UA.isSafari&&!d("WAGetUserMedia").getUserMedia&&(d("WAWebUserPrefsNuxPreferences").shouldShowNUX(d("WAWebNux").NUX.SAFARI_LIMITED_SUPPORT)&&(self.setTimeout(function(){d("WAWebModalManager").ModalManager.open(v.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},okText:aa._(/*BTDS*/"__JHASH__On50MyzV-mK__JHASH__"),children:v.jsx(d("WAWebSafariLimited").SafariLimitedText,{})}))},250),d("WAWebUserPrefsNuxPreferences").setNUX(d("WAWebNux").NUX.SAFARI_LIMITED_SUPPORT,{views:1})));a=c("WAWebChatPreferenceCollection").get(d("WAWebChatPreferenceModel").DEFAULT_PREFERENCE);if(a&&d("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER!==a.wallpaper){var b=e.theme;if(!d("WAWebWallpaper").colorExistsInTheme(a.wallpaper,b)){b=b==="light"?"dark":"light";if(d("WAWebWallpaper").colorExistsInTheme(a.wallpaper,b)){b=d("WAWebWallpaper").toggleWallpaperColor(a.wallpaper,b);a.set("wallpaper",b)}}}void d("WAWebOpenNotificationsSetting").handleOpenNotificationsSettingDeeplink()},[]);w(function(){d("WAWebPageLoadLogging").endPageLoadQpl(!1)},[]);c("useWAWebOnUnmount")(function(){ca.current.cancel(),c("WAWebKeyboardManager").menuBatchRenderWith(function(){c("WAWebKeyboardManager").trigger(c("WAWebKeyboardEventConstants").Event+":"+c("WAWebKeyboardEventConstants").Events.LOGGED_OUT)}),c("WAWebURLUtils").canMuckHistory()&&window.history.back(),d("WAWebStreamModel").Stream.uiActive=!1,ra()});var ta=c("WAWebURLUtils").canMuckHistory();d("useWAWebListener").useListener(ta?window:null,"popstate",z);w(function(){ta&&z()},[]);w(function(){if(!d("WAWebBizGatingUtils").shouldFetchLinkedAccounts())return;var a=new AbortController();d("WAWebLinkedAccountsAction").getActiveLinkedAccountInfo().then(function(b){if(a.signal.aborted)return;d("WAWebActiveAccountInfoModel").setActiveAccountInfo(b);fa(b)})["catch"](function(){d("WALogger").WARN(l())});return function(){return a.abort()}},[]);d("useWAWebListener").useListener(d("WAWebConnModel").Conn,"change:tos",ma);d("useWAWebListener").useListener(d("WAWebConnModel").Conn.isSMB?d("WAWebConnModel").Conn:null,"change:smbTos",na);d("useWAWebListener").useListener(c("WAWebNoticeModel"),["change:blocking","change:noticeId"],oa);var Z=d("useWAWebChatLockSettings").useChatLockSettings(),$=function(){M.current==null?void 0:M.current(),M.current=null};d("useWAWebListener").useListener(document,["mousemove","scroll","keydown"],$);d("useWAWebListener").useListener(window,["focus","resize"],$);w(function(){void d("WAWebDeviceCapabilitiesBootstrap").bootstrapDeviceCapabilities()},[]);P=d("WAWebClassnames").classnamesConvertMeToStylexPlease(($={three:N,two:!N,"app-animating":P},$[c("WAWebMain.scss").app]=!0,$[c("WAWebMain.scss").skipGlobalPaneStyles]=D,$),(i||(i=c("stylex")))([B.app,!a&&B.appNoAnimation]));var ua,va;b("cr:593")!=null&&(b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())===!0&&(va=v.jsx(b("cr:593"),{}));d("useWAWebExternalBetaOptIn").useExternalBetaValidator();$=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2]);$=$[0];$=v.jsx(d("WAWebChatlistPanel.react").ChatlistPanel,{ref:H,showArchiveV2:$,mode:c("WAWebChatlistPanelMode").Chatlist,selectable:S,endMultiSelect:Y,multiSelectEntryPoint:S?d("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.ChatListHeaderDropdown:null,hideLockedChats:Z.hideLockedChats},S?"inMultiSelectMode":"inNonSelectableMode");Y=v.jsxs("div",babelHelpers["extends"]({className:"x10l6tqk x13vifvy x17qophe x78zum5 xh8yej3 x5yr21d x6ikm8r x10wlt62 x47corl"},{children:[v.jsx("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease(c("WAWebMain.scss").paneOne,D&&c("WAWebMain.scss").skipGlobalPaneStyles,(b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())&&c("WAWebMain.scss").skipPaneWidthStyles,i([B.paneOneDrawerWithNavBar,E&&V&&B.paneOneDrawerWithNavBarExpanded,B.pane,B.paneOne,D&&B.sidePaneMaxWidth,B.paneOneDrawer,(b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())&&[B.paneWindowsHybrid,B.paneOneWindowsHybrid,B.sidePaneWidthWindowsHybrid],B.navbarBorder])),"data-testid":void 0,children:v.jsx(d("WAWebDrawerManager.react").DrawerManagerComponent,{direction:d("WAWebDrawerManager.react").Dir.LEFT})}),v.jsx("div",babelHelpers["extends"]({},{0:{className:"x9f619 x1n2onr6 x5yr21d x6ikm8r x10wlt62 x17dzmu4 x1i1dayz x2ipvbc x1w8yi2h xyyilfv x1iyjqo2 xa1v5g2"},1:{className:"x9f619 x1n2onr6 x5yr21d x6ikm8r x10wlt62 x17dzmu4 x1i1dayz x2ipvbc x1w8yi2h xyyilfv x1iyjqo2 xa1v5g2 x178xt8z x13fuv20 x10vq5hr"}}[!!(b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())<<0],{"data-testid":void 0,children:v.jsx(d("WAWebDrawerManager.react").DrawerManagerComponent,{direction:d("WAWebDrawerManager.react").Dir.MID})}))]}));Z=function(a){d("WAWebCmd").Cmd.closeActiveChat(),U(a)};Z={headerRef:G,activeAccountInfo:T,activeNavBarItem:ga,updateActiveNavBarItem:Z};var wa=v.jsx(d("WAWebNavBar.react").NavBar,babelHelpers["extends"]({},Z));D&&(wa=v.jsx(d("WAWebExpandableNavBar.react").ExpandableNavBar,babelHelpers["extends"]({},Z,{isNavBarExpanded:V,onToggleNavBarExpansion:R})));R=v.jsxs("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((Z={},Z[c("WAWebMain.scss").paneOne]=!0,Z[c("WAWebMain.scss").skipGlobalPaneStyles]=D,Z[c("WAWebMain.scss").skipPaneWidthStyles]=(R=b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())!=null?R:!1,Z),i(B.pane,B.paneOne,D&&B.sidePaneMaxWidth,d("WAWebUISpacing").uiPadding.start1,(b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())&&B.sidePaneWidthWindowsHybrid)),children:[c("WAWebSettingsModel")&&v.jsx(c("WAWebChatlistHeaderV2.react"),{headerRef:G,mute:d("WAWebMuteCollection").MuteCollection.globalMute(),onSelectChatClick:X,isMultiSelectMode:S,activeAccountInfo:T,updateActiveNavBarItem:U}),$]});Z=v.jsx("div",babelHelpers["extends"]({className:"x9f619 x1n2onr6 xyw6214 x5yr21d x6ikm8r x10wlt62 x17dzmu4 x1i1dayz x2ipvbc x1w8yi2h xyyilfv x1iyjqo2 xy80clv x26u7qi x1ux35ld"},{children:v.jsx(c("WAWebConversation.react"),{animate:a,ref:J})}));T=v.jsx("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((X={},X[c("WAWebMain.scss").paneThree]=!0,X[c("WAWebMain.scss").skipGlobalPaneStyles]=D,X[c("WAWebMain.scss").skipPaneWidthStyles]=(S=b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())!=null?S:!1,X[c("WAWebMain.scss").paneThreeWithNavBarExpanded]=d("WAWebUIRefreshGatingUtils").expandableSideNavEnabled&&V,X),i([B.pane,B.paneBorderLeft,N&&D&&B.sidePaneMaxWidth,N&&(b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())&&B.sidePane3WidthWindowsHybrid,N&&(b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())&&d("WAWebUIRefreshGatingUtils").expandableSideNavEnabled&&V&&B.sidePane3WidthWindowsHybridWithNavBarExpanded])),ref:I,"data-testid":void 0,children:v.jsx(d("WAWebDrawerManager.react").DrawerManagerComponent,{direction:d("WAWebDrawerManager.react").Dir.RIGHT,onDrawerIn:W,onDrawerOut:ja,onDrawerAnimationComplete:ka})});$=b("cr:13156")?v.jsx(b("cr:13156"),{}):null;return v.jsx(d("WAWebAppContext.react").AppContextProvider,{rightDrawerOpen:N,activeNavBarItem:ga,children:v.jsxs("div",babelHelpers["extends"]({className:"x78zum5 xdt5ytf x5yr21d"},{children:[va,v.jsx(d("WAWebUimUie.react").UIE,{uimState:d("WAWebUim").UIMState.INACTIVE,displayName:"Main",children:v.jsxs(c("WAWebKeyboardTopLevelHotKeys.react"),{className:P,onBlur:j,ref:F,onShowKeyboardShortcuts:pa,skipNode:la,children:[v.jsx(c("WAWebNotificationManager.react"),{}),$,v.jsx(c("WAWebActionListener"),{}),v.jsx(d("WAWebPipManager.react").PiPManager,{}),v.jsx(c("WAWebWamTimeSpentLogger"),{}),v.jsx(c("WAWebInternDogfoodingModal.react"),{}),ua,wa,Y,R,Z,T,!c("gkx")("26258")&&d("WAWebClientFeatureFlags").isFeatureEnabled("a11y_block")&&b("cr:6018")&&v.jsx(b("cr:6018"),{})]})})]}))},ia)}e.displayName=e.name+" [from "+f.id+"]";g.hasPendingActions=a;g.MainComponent=e}),226); __d("WAWebPrefetchLoadables",["Promise","WALogger","WAWebAddContactToGroupFlowLoadable","WAWebArchivedFlowLoadable","WAWebAttachMediaFlowLoadable","WAWebAttachProductModalLoadable","WAWebAttachVcardsFlowLoadable","WAWebBizCtwaPreviewFlowLoadable","WAWebCaptureMediaDrawerLoadable","WAWebCartFlowLoadable","WAWebCommunityAdminPromotionNotificationFlowLoadable","WAWebCommunityFlowLoadable","WAWebCommunityGatingUtils","WAWebContactMsgInfoFlowLoadable","WAWebContextualBannerWrapperLoadable","WAWebEditCaptureFlowLoadable","WAWebForwardMessageModalLoadable","WAWebGroupInviteLinkDrawerLoadable","WAWebGroupMsgInfoFlowLoadable","WAWebGroupsV4InviteFlowLoadable","WAWebInfoFlowLoadable","WAWebLabelFlowLoadable","WAWebLottieAnimationLoadable","WAWebManageCommunityGroupsFlowLoadable","WAWebManageLabelFlowLoadable","WAWebMediaViewerFlowLoadable","WAWebNewChatFlowLoadable","WAWebNewGroupFlowLoadable","WAWebPhotoPickerLoadable.react","WAWebProductDetailsFlowLoadable","WAWebProfileDrawerLoadable","WAWebSendGroupInviteFlowLoadable","WAWebSendLogsPopupLoadable","WAWebSendMsgMultiModalLoadable","WAWebSendProductModalLoadable","WAWebSettingsFlowLoadable","WAWebStarredDrawerLoadable","WAWebStatusFlowLoadable","WAWebStatusQuotedFlowLoadable","asyncToGeneratorRuntime","cr:6003","cr:6004","gkx"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["Error prefetching loadables: ",""]);i=function(){return a};return a}function a(){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{var a=[d("WAWebMediaViewerFlowLoadable").requireBundle(),d("WAWebInfoFlowLoadable").requireBundle()];yield (h||(h=b("Promise"))).all(a);a=[d("WAWebProfileDrawerLoadable").requireBundle(),d("WAWebPhotoPickerLoadable.react").requireBundle(),d("WAWebStarredDrawerLoadable").requireBundle(),d("WAWebAttachMediaFlowLoadable").requireBundle(),d("WAWebCaptureMediaDrawerLoadable").requireBundle(),d("WAWebEditCaptureFlowLoadable").requireBundle(),d("WAWebGroupMsgInfoFlowLoadable").requireBundle(),d("WAWebNewChatFlowLoadable").requireBundle(),d("WAWebNewGroupFlowLoadable").requireBundle(),d("WAWebSendProductModalLoadable").requireBundle(),d("WAWebAttachProductModalLoadable").requireBundle(),d("WAWebSendGroupInviteFlowLoadable").requireBundle(),d("WAWebSendMsgMultiModalLoadable").requireBundle(),d("WAWebForwardMessageModalLoadable").requireBundle(),d("WAWebAttachVcardsFlowLoadable").requireBundle(),d("WAWebProductDetailsFlowLoadable").requireBundle(),d("WAWebCartFlowLoadable").requireBundle(),d("WAWebLabelFlowLoadable").requireBundle(),d("WAWebManageLabelFlowLoadable").requireBundle(),d("WAWebAddContactToGroupFlowLoadable").requireBundle(),d("WAWebSettingsFlowLoadable").requireBundle(),d("WAWebGroupInviteLinkDrawerLoadable").requireBundle(),d("WAWebStatusFlowLoadable").requireBundle(),d("WAWebStatusQuotedFlowLoadable").requireBundle(),d("WAWebContactMsgInfoFlowLoadable").requireBundle(),d("WAWebSendLogsPopupLoadable").requireBundle(),d("WAWebGroupsV4InviteFlowLoadable").requireBundle(),d("WAWebArchivedFlowLoadable").requireBundle(),d("WAWebLottieAnimationLoadable").requireBundle(),d("WAWebContextualBannerWrapperLoadable").requireBundle(),d("WAWebBizCtwaPreviewFlowLoadable").requireBundle()];c("gkx")("26258")||a.push(b("cr:6004")==null?void 0:b("cr:6004").requireBundle(),b("cr:6003")==null?void 0:b("cr:6003").requireBundle());a.push(d("WAWebManageCommunityGroupsFlowLoadable").requireBundle(),d("WAWebCommunityFlowLoadable").requireBundle());d("WAWebCommunityGatingUtils").communityAdminPromotionOneTimePromptEnabled()&&a.push(d("WAWebCommunityAdminPromotionNotificationFlowLoadable").requireBundle());yield h.all(a)}catch(a){d("WALogger").WARN(i(),a.stack)}});return j.apply(this,arguments)}g["default"]=a}),98); __d("WAWebWebcLoginWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({WebcLogin:[1664,{webcBrowserNetworkType:[14,a.TYPES.STRING],webcBrowserStorageQuotaBytes:[15,a.TYPES.INTEGER],webcBrowserStorageQuotaUsedBytes:[16,a.TYPES.INTEGER],webcLoginT:[3,a.TYPES.TIMER],webcPersistentLoginEnabled:[17,a.TYPES.BOOLEAN],webcQrCodes:[1,a.TYPES.INTEGER],webcQrLoadT:[2,a.TYPES.TIMER],webcSyncChatCount:[8,a.TYPES.INTEGER],webcSyncChatSize:[10,a.TYPES.INTEGER],webcSyncChatT:[9,a.TYPES.TIMER],webcSyncContactCount:[11,a.TYPES.INTEGER],webcSyncContactSize:[13,a.TYPES.INTEGER],webcSyncContactT:[12,a.TYPES.TIMER],webcSyncMessageCount:[5,a.TYPES.INTEGER],webcSyncMessageSize:[7,a.TYPES.INTEGER],webcSyncMessageT:[6,a.TYPES.TIMER],webcSyncT:[4,a.TYPES.TIMER]},[1,1,1],"regular"]},{WebcLogin:[]});g.WebcLoginWamEvent=b}),98); __d("WAWebWamLoginReporter",["WALogger","WAStorageEstimator","WAWebChatCollection","WAWebCmd","WAWebCollectionConstants","WAWebContactCollection","WAWebEventEmitter","WAWebMsgCollection","WAWebNetworkType","WAWebStreamModel","WAWebWamQrCodeCount","WAWebWebcLoginWamEvent"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["One or more of the login timings was not logged: "]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[wam] Error committing login event"]);i=function(){return a};return a}function j(){return Math.floor(window.performance.now())}var k=function(b){babelHelpers.inheritsLoose(a,b);function a(){var a,c;c=b.call(this)||this;c.timings={chatSync:void 0,contactSync:void 0,endSync:void 0,msgSync:void 0,startSync:void 0};c.data={webcPersistentLoginEnabled:!1,webcQrCodes:0,webcSyncMessageCount:0,webcSyncMessageSize:0};if(!((a=window.performance)==null?void 0:a.now))return babelHelpers.assertThisInitialized(c);c.init();return c}var e=a.prototype;e.init=function(){this.timings.startSync=d("WAWebStreamModel").Stream.lastSyncStart,this.listenTo(d("WAWebStreamModel").Stream,"change:mode",this.changeStreamMode),this.listenTo(d("WAWebChatCollection").ChatCollection,d("WAWebCollectionConstants").COLLECTION_HAS_SYNCED,this._handleChatSync),this.listenTo(d("WAWebContactCollection").ContactCollection,d("WAWebCollectionConstants").COLLECTION_HAS_SYNCED,this._handleContactSync),this.listenTo(d("WAWebMsgCollection").MsgCollection,d("WAWebCollectionConstants").COLLECTION_HAS_SYNCED,this._handleMsgSync),this.listenTo(d("WAWebMsgCollection").MsgCollection,"handle:msg_history",this._handleMsgHistory)};e.changeStreamMode=function(){d("WAWebStreamModel").Stream.mode===d("WAWebStreamModel").StreamMode.SYNCING&&(this.timings.startSync=j(),this.data.webcPersistentLoginEnabled=!0),d("WAWebStreamModel").Stream.mode===d("WAWebStreamModel").StreamMode.MAIN&&(this.timings.endSync=j(),this.maybeLogToWam())};e._handleChatSync=function(a){a.timing!=null?this.data.webcSyncChatT=a.timing:this.timings.chatSync=j(),this.data.webcSyncChatCount=a.count,this.data.webcSyncChatSize=10,this.maybeLogToWam()};e._handleMsgSync=function(a){a&&(this.timings.msgSync=j(),this.data.webcSyncMessageCount+=a.count),this.maybeLogToWam()};e._handleContactSync=function(a){a.timing!=null?this.data.webcSyncContactT=a.timing:this.timings.contactSync=j(),this.data.webcSyncContactCount=a.count,this.maybeLogToWam()};e._handleMsgHistory=function(a){this.data.webcSyncMessageSize+=a.binarySize,this.data.webcSyncMessageCount+=a.count,this.timings.msgSync!=null&&(this.timings.msgSync=j())};e.maybeLogToWam=function(){var a=this,b=this.timings,c=b.contactSync,e=b.msgSync;b=b.chatSync;b=b!=null&&Number.isFinite(b||this.data.webcSyncChatT);c=c!=null&&Number.isFinite(c||this.data.webcSyncContactT);e=Number.isFinite(e);if(!b||!c||!e)return;else if(this._commitPromise)return;this._commitPromise=d("WAStorageEstimator").estimateStorage().then(function(b){b.success?a._commitEvent(b.value):d("WALogger").WARN(i()).devConsole(b.error,a.data)}).then(function(){return a.reset()})};e._commitEvent=function(a){var b=this.timings,e=b.startSync,f=b.endSync,g=b.contactSync,i=b.msgSync;b=b.chatSync;var j=c("WAWebWamQrCodeCount").initialDisplayDate;if(j!=null&&j!==0&&e!=null&&f!=null&&i!=null&&b!=null&&g!=null&&Number.isFinite(j)&&Number.isFinite(e)&&Number.isFinite(f)){this.data.webcQrLoadT=j;this.data.webcQrCodes=c("WAWebWamQrCodeCount").get();this.data.webcLoginT=e-j;this.data.webcSyncT=f-e;this.data.webcSyncMessageT=i-e;this.data.webcSyncChatT||(this.data.webcSyncChatT=b-e);this.data.webcSyncContactT||(this.data.webcSyncContactT=g-e);this.data.webcBrowserNetworkType=d("WAWebNetworkType").getEffectiveNetworkType();a&&(this.data.webcBrowserStorageQuotaBytes=a.quota,this.data.webcBrowserStorageQuotaUsedBytes=a.usage);j=new(d("WAWebWebcLoginWamEvent").WebcLoginWamEvent)(this.data);j.commit()}else d("WALogger").WARN(h()).devConsole(this.timings)};e.reset=function(){this.stopListening(),this.data={webcPersistentLoginEnabled:!1,webcQrCodes:0,webcSyncMessageCount:0,webcSyncMessageSize:0},this.timings={chatSync:void 0,contactSync:void 0,endSync:void 0,msgSync:void 0,startSync:void 0},this._commitPromise=void 0,this.listenToOnce(d("WAWebCmd").Cmd,"logout",this.init)};return a}(c("WAWebEventEmitter"));a=function(){return new k()};g.initialize=a}),98); __d("WAWebMainWrapper",["WALogger","WAWebEmojiAssetLoader","WAWebEmojiSetup","WAWebExecApiCmd","WAWebFeatureDetectionSwSupport","WAWebMain.react","WAWebNoop","WAWebNotificationBackend","WAWebPrefetchLoadables","WAWebProfilePicThumbCollection","WAWebSWBus","WAWebSWBusActions","WAWebUserPrefsGeneral","WAWebWamLoginReporter","cr:2015","cr:8752","cr:8753","gkx"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["Failed to initialize WAWebDebug"]);h=function(){return a};return a}function a(a){if(!c("gkx")("26258")){window.Store=b("cr:8753");try{window.Debug=Object.assign(b("cr:8752"),window.Debug),b("cr:8752")==null?void 0:b("cr:8752").initialize()}catch(a){d("WALogger").ERROR(h()).devConsole(a)}b("cr:2015")==null?void 0:b("cr:2015").init()}d("WAWebWamLoginReporter").initialize();c("WAWebFeatureDetectionSwSupport").supported&&d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.on("change:tag",function(a){var b=navigator.serviceWorker;(b==null?void 0:b.controller)&&!a.tag&&c("WAWebSWBus").request(b.controller,c("WAWebSWBusActions").REMOVE_PP,a.id)["catch"](c("WAWebNoop"))});d("WAWebUserPrefsGeneral").initDailyStatsStartTime();c("WAWebEmojiSetup")(d("WAWebEmojiAssetLoader").getEmojiTypeFromPlatform(a));void c("WAWebPrefetchLoadables")();a=b("WAWebMain.react");return{MainComponent:a.MainComponent,hasPendingActions:a.hasPendingActions,notificationBackend:b("WAWebNotificationBackend"),execApiCmd:c("WAWebExecApiCmd")}}g["default"]=a}),98); __d("WAWebMemoryInfoBridgeApi",["WAWebChatCollection","WAWebContactCollection","WAWebMsgCollection"],(function(a,b,c,d,e,f,g){a={getCollectionSizes:function(){return{chat:d("WAWebChatCollection").ChatCollection.length,contact:d("WAWebContactCollection").ContactCollection.length,message:d("WAWebMsgCollection").MsgCollection.length}}};g.MemoryInfoBridgeApi=a}),98); __d("WAWebUpdateEditedMessagesAction",["WALogger","WATimeUtils","WAWebBotFrontendUtils","WAWebBotGating","WAWebBotTypes","WAWebChatMessageSearch","WAWebDBProcessEditProtocolMsgs","WAWebFrontendMsgGetters","WAWebGroupUnreadMessageType","WAWebMessageEditGatingUtils","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgInfoCollection","WAWebMsgType","WAWebMuteGetters","WAWebNotificationController","WAWebNotificationsMsgNotification","WAWebUnreadMentionModel"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[message-edit] updated Msg model"]);h=function(){return a};return a}function a(a){for(var b of a){var c=b.parentMsg,e=b.editedMsgData,f=b.protocolMsg,g=b.mentionOfMe;c=d("WAWebMsgCollection").MsgCollection.get(c.id);if(!c)return;var k=e.mediaKey!==c.mediaKey;k&&(c.thumbnailHQ="");(d("WAWebBotGating").shouldAnimateAsBotStream(c)||c.botEditType!=null)&&(e.lastBotEditBodyLength=d("WAWebBotFrontendUtils").getBotMsgBodyLength(c));k=new(d("WAWebNotificationsMsgNotification").WAMsgNotification)({msg:c}).buildKey();c.set(e);d("WAWebChatMessageSearch").clearFtsCache(d("WAWebFrontendMsgGetters").getChat(c));i(c,k,g);d("WAWebMsgGetters").getIsSentByMe(f)||(d("WAWebFrontendMsgGetters").getChat(c).unreadEditTimestampMs=d("WATimeUtils").unixTimeMs());g&&j(c,g);c.clearRawLinks();c.clearRawPhoneNumbers();e=d("WAWebMsgCollection").MsgCollection.get(f.id);e&&e.type===d("WAWebMsgType").MSG_TYPE.CIPHERTEXT&&e["delete"]();d("WAWebMsgInfoCollection").MsgInfoCollection.remove(c.id);d("WALogger").DEV(h()).devConsole({msg:c})}d("WAWebMsgCollection").MsgCollection.processEditedMessages(a.map(function(a){a=a.parentMsg;return d("WAWebMsgCollection").MsgCollection.get(a.id)}))}function i(a,b,c){b=d("WAWebNotificationController").WANotificationController.getNotification(b);var e=new(d("WAWebNotificationsMsgNotification").WAMsgNotification)({msg:a});if(d("WAWebBotGating").isBotReceiveEnabled()&&b&&d("WAWebMsgGetters").getIsMetaBotResponse(a)){a.botEditType===d("WAWebBotTypes").BotMsgEditType.LAST&&void d("WAWebNotificationController").WANotificationController.triggerNotification(e);return}b&&d("WAWebNotificationController").WANotificationController.triggerNotification(e);var f=d("WAWebFrontendMsgGetters").getChat(a);if(d("WAWebMuteGetters").getIsMuted(f.mute)&&c)switch(c){case d("WAWebDBProcessEditProtocolMsgs").EditedMentionOfMe.Added:f.isUnreadMsg(a)&&d("WAWebNotificationController").WANotificationController.triggerNotification(e);break;case d("WAWebDBProcessEditProtocolMsgs").EditedMentionOfMe.Removed:b==null?void 0:b.closeBanner();break}}function j(a,b){if(!d("WAWebMessageEditGatingUtils").receiveCaptionEditEnabled())return;var e=d("WAWebFrontendMsgGetters").getChat(a);switch(b){case d("WAWebDBProcessEditProtocolMsgs").EditedMentionOfMe.Added:if(e.isUnreadMsg(a)){var f;b=new(c("WAWebUnreadMentionModel"))({id:a.id,timestamp:a.latestEditSenderTimestampMs});(f=e.groupMetadata)==null?void 0:f.unreadMentionMetadata.addUnreadMentions([b],d("WAWebGroupUnreadMessageType").UnreadMessageType.NEW_MESSAGE)}break;case d("WAWebDBProcessEditProtocolMsgs").EditedMentionOfMe.Removed:(f=e.groupMetadata)==null?void 0:f.unreadMentionMetadata.removeUnreadMentions(a.id.toString());break}}g.updateEditedMessagesAction=a}),98); __d("WAWebUpdateMsgAcksAction",["Promise","WALogger","WAWebAckMsgAction","WAWebHandleMsgReceiptCommon","WAWebMsgCollection","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["updateMsgPeerAcks: no message found for incoming ack, with msgKey: ",""]);i=function(){return a};return a}function a(a,b,c){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e){var f=[];a.forEach(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=(yield l(a));b&&f.push(d("WAWebAckMsgAction").updateMsgAck(a,b,{from:b.from,to:b.to,ack:c,t:e}))});return function(b){return a.apply(this,arguments)}}());yield (h||(h=b("Promise"))).all(f)});return j.apply(this,arguments)}function c(a,b,c){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e){var f=[],g=[];a.forEach(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=(yield l(a));b?g.push(d("WAWebAckMsgAction").updateMsgAck(a,b,{from:b.from,to:b.to,ack:c,t:e})):(d("WALogger").LOG(i(),a),a.fromMe||f.push(a))});return function(b){return a.apply(this,arguments)}}());f.length>0&&d("WAWebHandleMsgReceiptCommon").updateOrphanPeerReceipt(f,c,e);yield (h||(h=b("Promise"))).all(g)});return k.apply(this,arguments)}function l(a){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b;return(b=d("WAWebMsgCollection").MsgCollection.get(a))!=null?b:d("WAWebMsgCollection").MsgCollection.getByEditMsgKey(a)});return m.apply(this,arguments)}g.updateMsgOtherAcks=a;g.updateMsgPeerAcks=c}),98); __d("WAWebUpdateReactionMessageUIAction",["Promise","WALogger","WAWebAck","WAWebDBGetReactions","WAWebFlattenedReactionCollection","WAWebReactionDataUtils","WAWebReactionGatingUtils","WAWebReactionTypeConversion","WAWebReactionsCollection","WAWebReactionsMsgAction","WAWebReactionsUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["processReactionMsg: ",""]);i=function(){return a};return a}function a(a,b){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var c=(yield d("WAWebReactionsUtils").createReactionsRow(a));if(c==null)return;b=!b;a="reaction "+String(a.id)+" received to: "+String(a.reactionParentKey);d("WALogger").DEV(i(),a).tags("messaging");a=(yield d("WAWebDBGetReactions").existsReactionAddressingModeInsensitive({parentMsgKey:c.parentMsgKey,senderUserJid:c.senderUserJid}));if(a&&a.msgKey===c.msgKey){c=a;yield d("WAWebReactionsMsgAction").addOrUpdateReactionsModelCollection(c,{allowNotify:b})}});return j.apply(this,arguments)}function k(a){if(d("WAWebReactionGatingUtils").isFlattenedReactionsEnabled()){d("WAWebFlattenedReactionCollection").FlattenedReactionsCollection.remove(a);return}a=new Set(a);for(var b of d("WAWebReactionsCollection").ReactionsCollection.toArray())for(var c of b.reactions.toArray())for(var e of a){var f=c.senders.get(e);if(f!=null){c.senders.remove(e);a["delete"](e);if(a.size===0)return}}}function c(a,b,c){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e){yield (h||(h=b("Promise"))).all(a.map(function(a){return d("WAWebReactionsMsgAction").addOrUpdateReactionsModelCollection(d("WAWebReactionDataUtils").reactionMsgDataToReactionRow(a),e)})),c.length>0&&k(c)});return l.apply(this,arguments)}function e(a){var b=[];for(var c of a.add)b.push(d("WAWebReactionTypeConversion").convertReactionRowToFlattenedReaction(d("WAWebReactionDataUtils").reactionMsgDataToReactionRow(c),c.ack!=null&&c.ack<d("WAWebAck").ACK.CLOCK));d("WAWebFlattenedReactionCollection").FlattenedReactionsCollection.addOrUpdateReaction(b);k(a.remove)}g.updateReactionUI=a;g.updateReactionCollection=c;g.updateFlattenedReactionCollection=e}),98); __d("WAWebUpdateReplyApi",["WAWebMsgCollection","WAWebMsgKey","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){for(a of a.entries()){var b=a[0],e=a[1];b=d("WAWebMsgCollection").MsgCollection.get(c("WAWebMsgKey").fromString(b));b!=null&&(b.replyCount=b.replyCount!=null?b.replyCount+e:e)}});return h.apply(this,arguments)}g.updateReplyCount=a}),98); __d("WAWebMsgBridgeApi",["WAWebAckMsgAction","WAWebBizAgentAction","WAWebEphemeralSyncResponse","WAWebExternalBetaEvents","WAWebHandleDeferredMessages","WAWebHistorySyncOnDemandAction","WAWebKeepInChatMsgAction","WAWebLinkDeviceAction","WAWebMsgCollection","WAWebUpdateEditedMessagesAction","WAWebUpdateMessageUIAction","WAWebUpdateMsgAcksAction","WAWebUpdateReactionMessageUIAction","WAWebUpdateReplyApi"],(function(a,b,c,d,e,f,g){a={processMultipleMessages:function(a){var b=a.chatId,c=a.msgObjs,e=a.meta,f=a.processMessagesOrigin,g=a.chatMsgsCollection;a=a.preserveOrder;return d("WAWebMsgCollection").MsgCollection.processMultipleMessages(b,c,e,f,g,a)},addInitialBotTypingIndicatorToChat:function(a){var b=a.chatId;a=a.msgKey;return d("WAWebMsgCollection").MsgCollection.addInitialBotTypingIndicatorToChat(b,a)},msgCollectionTrigger:function(a){a=a.name;d("WAWebMsgCollection").MsgCollection.trigger(a)},processKeepInChatMessages:function(a){var b=a.keepInChatMessages;a=a.allowNotification;return d("WAWebKeepInChatMsgAction").processKeepInChatMessages(b,a)},updateUnattributedMessages:function(a){var b=a.messageInfo;a=a.messages;return d("WAWebBizAgentAction").updateUnattributedMessages(b,a)},processKeepInChatMessage:function(a){var b=a.keepInChatMessage;a=a.allowNotification;return d("WAWebKeepInChatMsgAction").processKeepInChatMessage(b,{allowNotification:a})},updateEditedMessagesAction:function(a){a=a.messageEdits;d("WAWebUpdateEditedMessagesAction").updateEditedMessagesAction(a)},updateMessageUI:function(a){var b=a.chatId,c=a.msg,e=a.messageOverwriteOption,f=a.preserveOrder;a=a.isOffline;return d("WAWebUpdateMessageUIAction").updateUI(b,c,e,f,a)},updateMsgModelAcks:function(a){a=a.updates;a.forEach(function(a){var b=d("WAWebMsgCollection").MsgCollection.get(a.id);if(b==null)return;b.ack=a.ack})},updateReactionUI:function(a){var b=a.msg;a=a.reparsing;return d("WAWebUpdateReactionMessageUIAction").updateReactionUI(b,a)},updateReactionCollection:function(a){var b=a.msgs,c=a.removeReactions;a=a.allowNotifications;return d("WAWebUpdateReactionMessageUIAction").updateReactionCollection(b,c,{allowNotify:a})},reactionUIUpdate:function(a){return d("WAWebUpdateReactionMessageUIAction").updateFlattenedReactionCollection(a)},processOrphanReadReceipts:function(a){a=a.msgIds;return d("WAWebAckMsgAction").processOrphanReadReceipts(a)},updateMsgPeerAcks:function(a){var b=a.msgKeys,c=a.ack;a=a.t;return d("WAWebUpdateMsgAcksAction").updateMsgPeerAcks(b,c,a)},updateMsgOtherAcks:function(a){var b=a.msgKeys,c=a.ack;a=a.t;return d("WAWebUpdateMsgAcksAction").updateMsgOtherAcks(b,c,a)},handleDeferredMessages:function(){return c("WAWebHandleDeferredMessages")()},processEphemeralSyncResponse:function(a){a=a.msg;return d("WAWebEphemeralSyncResponse").processEphemeralSyncResponse(a)},refreshAltLinkingCode:function(a){a=a.ref;return d("WAWebLinkDeviceAction").refreshAltLinkingCode(a)},forceManualRefresh:function(a){a=a.ref;return d("WAWebLinkDeviceAction").forceManualRefresh(a)},errorAltLinking:function(){return d("WAWebLinkDeviceAction").errorAltLinking()},primaryHelloReceivedAltLinking:function(){return d("WAWebLinkDeviceAction").primaryHelloReceivedAltLinking()},changeOptInStatusForExternalWebBeta:function(){d("WAWebExternalBetaEvents").WAWebExternalBetaEvents.triggerBetaOptInStatusChanges()},successHistorySyncOd:function(a){a=a.chatId;return d("WAWebHistorySyncOnDemandAction").successHistorySyncOd(a)},errorHistorySyncOd:function(a){a=a.chatId;return d("WAWebHistorySyncOnDemandAction").errorHistorySyncOd(a)},hasMsgsInCollection:function(a){a=a.msgKeys;return a.map(function(a){return Boolean(d("WAWebMsgCollection").MsgCollection.get(a))})},deleteAssociatedBotCarouselMsgs:function(a){a=a.msgKeys;a.forEach(function(a){a=d("WAWebMsgCollection").MsgCollection.get(a);if(!a)return;a["delete"]();d("WAWebMsgCollection").MsgCollection.remove(a)})},removePlaceholder:function(a){a=a.msg;return d("WAWebUpdateMessageUIAction").removePlaceholder(a)},updateReplyCount:function(a){a=a.replyCountMap;return d("WAWebUpdateReplyApi").updateReplyCount(a)},updateMsgModelHostedBizEncStateMismatchFlagToTrue:function(a){a=a.msgId;a=d("WAWebMsgCollection").MsgCollection.get(a);if(a==null)return;a.hostedBizEncStateMismatch=!0},updateViewModeForMsgs:function(a){a=a.msgIdsViewModeMap;a.forEach(function(a,b){b=d("WAWebMsgCollection").MsgCollection.get(b);if(b==null)return;b.set({viewMode:a})})},detachAssociatedMsgsForever:function(a){a=a.msgIds;a.forEach(function(a){a=d("WAWebMsgCollection").MsgCollection.get(a);if(a==null)return;a.detachAssociatedMsg()})}};g.MsgBridgeApi=a}),98); __d("WAWebMsgInfoBridgeApi",["WAWebMsgCollection","WAWebMsgInfoAction","WAWebMsgInfoCollection"],(function(a,b,c,d,e,f,g){a={updateMsgInfo:function(a){a=a.updates;for(a of a){var b,c=a.msgKey,e=a.ack,f=a.participant,g=a.ts;b=(b=d("WAWebMsgCollection").MsgCollection.get(c))!=null?b:d("WAWebMsgCollection").MsgCollection.getByEditMsgKey(c);if(b==null)continue;c=d("WAWebMsgInfoCollection").MsgInfoCollection.get(b.id);if(c==null)continue;d("WAWebMsgInfoAction").updateMsgInfo(c,e,f,g)}}};g.MsgInfoBridgeApi=a}),98); __d("WAWebNoteBridgeApi",["WAWebNoteAction"],(function(a,b,c,d,e,f,g){a={updateNoteJidAction:function(a){var b=a.oldJid;a=a.newJid;void d("WAWebNoteAction").updateNoteJidAction(b,a)}};g.NoteBridgeApi=a}),98); __d("WAWebNuxBridgeApi",["WAWebNuxAction"],(function(a,b,c,d,e,f,g){a={resetNux:function(a){a=a.key;return d("WAWebNuxAction").resetNux(a)}};g.NuxBridgeApi=a}),98); __d("WAWebPaymentInfoSyncBridgeApi",["WAWebPaymentInfo"],(function(a,b,c,d,e,f,g){a={setCPIInfo:function(a){a=a.cpiInfo;d("WAWebPaymentInfo").PaymentInfo.setCPIInfo(a)}};g.PaymentInfoSyncBridgeApi=a}),98); __d("WAWebPnhCtwaDailyStatsUtils",["WALogger","WAWebChatThreadLogging","WAWebDailyAggregatedStatsCollection","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["Wam:IncrementPnhCtwaDailyCount"]);h=function(){return a};return a}function a(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=d("WAWebDailyAggregatedStatsCollection").DailyAggregatedStatsCollection.gaddForToday();d("WALogger").DEV(h()).devConsole(a);a=(yield d("WAWebChatThreadLogging").getChatThreadID(a.toJid()));if(a!=null){var c=b.pnhCtwaActions[a];b.pnhCtwaActions[a]=c!=null?c+1:1}});return i.apply(this,arguments)}g.incrementPnhCtwaDailyCount=a}),98); __d("WAWebPrimaryFeaturesBridgeApi",["WAWebPrimaryFeaturesModel"],(function(a,b,c,d,e,f,g){a={setPrimaryFeatures:function(a){a=a.primaryFeatures;d("WAWebPrimaryFeaturesModel").PrimaryFeatures.setPrimaryFeatures(a)}};g.PrimaryFeaturesBridgeApi=a}),98); __d("WAWebPrivacyBridgeApi",["WAWebUserDisclosureCollection","WAWebUserDisclosureModel"],(function(a,b,c,d,e,f,g){a={updateUserDisclosures:function(a){a=a.userDisclosures;var b=[];a.map(function(a){a=new(c("WAWebUserDisclosureModel"))({id:a.id,accepted:a.accepted,lastUpdated:new Date()});b.push(a)});void d("WAWebUserDisclosureCollection").UserDisclosureCollection.add(b,{merge:!0})}};g.PrivacyBridgeApi=a}),98); __d("WAWebProfilePicThumbBridgeApi",["WAWebProfilePicThumbCollection"],(function(a,b,c,d,e,f,g){a={removeProfilePicThumb:function(a){a=a.wid;a=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.gadd(a);a.set({tag:void 0,eurl:void 0,previewEurl:void 0,previewDirectPath:void 0,fullDirectPath:void 0,filehash:void 0})},markProfilePicStale:function(a){a=a.profilePicThumbWid;a=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.get(a);if(!a)return;a.markStale()}};g.ProfilePicThumbBridgeApi=a}),98); __d("WAWebReachoutTimelockUnrestrictedModalLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingModal.react","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebReachoutTimelockUnrestrictedModal.react").__setRef("WAWebReachoutTimelockUnrestrictedModalLoadable").load());return a.ReachoutTimelockUnrestrictedModal}),"ReachoutTimelockUnrestrictedModal");d=c("WAWebLoadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingModal.react"),{error:Boolean(a.error)})}});g.ReachoutTimelockUnrestrictedModalLoadable=d}),98); __d("WAWebReachoutTimelockBridgeApi",["WAWebCmd","WAWebModalManager","WAWebReachoutTimelockUnrestrictedModalLoadable","react"],(function(a,b,c,d,e,f,g){var h,i=h||d("react");a={reachoutTimelockEnforcementLifted:function(){d("WAWebModalManager").ModalManager.open(i.jsx(d("WAWebReachoutTimelockUnrestrictedModalLoadable").ReachoutTimelockUnrestrictedModalLoadable,{})),d("WAWebCmd").Cmd.reachoutTimelockStateChange()}};g.ReachoutTimelockBridgeApi=a}),98); __d("WAWebReactionsFrontendUtils",["WAWebFlattenedReactionCollection","WAWebReactionGatingUtils","WAWebReactionsCollection"],(function(a,b,c,d,e,f,g){function a(a){return d("WAWebReactionGatingUtils").isFlattenedReactionsEnabled()?a.map(function(a){return Boolean(d("WAWebFlattenedReactionCollection").FlattenedReactionsCollection.get(a))}):a.map(function(a){return Boolean(d("WAWebReactionsCollection").ReactionsCollection.getSenderByMsgKey(a))})}g.hasReactionsInCollection=a}),98); __d("WAWebUpdateOrphanReactionsMsgAction",["WALogger","WAWebAck","WAWebFlattenedReactionCollection","WAWebReactionGatingUtils","WAWebReactionTypeConversion","WAWebReactionsCollection"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["actions:checkUpdateForOrphanReactions Reaction Model does not exist for this parentMsg"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["actions:checkUpdateForOrphanReactions Reaction Model does not exist for this parentMsg"]);i=function(){return a};return a}function a(a){a.forEach(function(a){if(d("WAWebReactionGatingUtils").isFlattenedReactionsEnabled()){var b=d("WAWebFlattenedReactionCollection").FlattenedReactionsCollection.byParent(a.parentMsgKey).toArray();b.length>0?d("WAWebFlattenedReactionCollection").FlattenedReactionsCollection.addOrUpdateReaction([d("WAWebReactionTypeConversion").convertReactionRowToFlattenedReaction(a,a.ack!=null&&a.ack<d("WAWebAck").ACK.CLOCK)]):d("WALogger").DEV(i())}else{b=d("WAWebReactionsCollection").ReactionsCollection.get(a.parentMsgKey);b?d("WAWebReactionsCollection").ReactionsCollection.addOrUpdateReaction(a):d("WALogger").DEV(h())}})}g.checkUpdateForOrphanReactions=a}),98); __d("WAWebReactionsBridgeApi",["WAWebReactionsFrontendUtils","WAWebUpdateLastAddOnPreviewChatAction","WAWebUpdateOrphanReactionsMsgAction"],(function(a,b,c,d,e,f,g){a={checkUpdateForOrphanReactions:function(a){a=a.updatedRecords;d("WAWebUpdateOrphanReactionsMsgAction").checkUpdateForOrphanReactions(a)},deleteModelsForLastAddOnPreview:function(a){a=a.messagesIds;return d("WAWebUpdateLastAddOnPreviewChatAction").deleteModelsForLastAddOnPreview(a)},hasReactionsInCollection:function(a){a=a.msgKeys;return d("WAWebReactionsFrontendUtils").hasReactionsInCollection(a)}};g.ReactionsBridgeApi=a}),98); __d("WAWebResendGroupMsgMainThreadOnly",["WAWebCreateSendMsgRecord","WAWebGroupMsgSendUtils","WAWebOutgoingMessage","WAWebResendGroupMsg","WAWebSendMsgMetricReporter","WAWebSendMsgTypes","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function a(a,b,c,d,e,f,g,i,j){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f,g,h,i,j,k){h=h.map(function(a){return d("WAWebWidFactory").createWid(a)});a=(yield d("WAWebCreateSendMsgRecord").createMsgRecord(a,b,e));if(a==null)throw c("err")("resendUserGroupMsgJob failed to deserialize msg from db");b=(yield d("WAWebGroupMsgSendUtils").getParticipantRecord(f));e=(yield d("WAWebGroupMsgSendUtils").getGroupData(f.toString(),b,a));f=a.type===d("WAWebSendMsgTypes").SendMessageRecordType.Message?d("WAWebSendMsgMetricReporter").createMsgModelMetricReporter(a.data):d("WAWebSendMsgMetricReporter").createAddonMetricReporter(a.data);f.sendReporter=f.createSendReporter({isResend:!0,originalMessage:a.type==="message"?a.data:void 0});b=d("WAWebOutgoingMessage").createOutgoingMessageProtobuf(d("WAWebOutgoingMessage").OutgoingMessageOriginType.ChatResend,a);return d("WAWebResendGroupMsg").resendGroupMsg({isDirect:g,msgRecord:a,msgProtobuf:b,groupData:e,ackTime:j,oldList:h,phash:i,metricReporter:f,serverAddressingMode:k})});return h.apply(this,arguments)}g.resendGroupMsgMainThreadOnly=a}),98); __d("WAWebResendUserMsgMainThreadOnly",["WAWebCreateSendMsgRecord","WAWebOutgoingMessage","WAWebResendUserMsg","WAWebSendMsgMetricReporter","WAWebSendMsgTypes","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function a(a,b,c,d,e){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f,g){f=f.map(function(a){return d("WAWebWidFactory").createWid(a)});a=(yield d("WAWebCreateSendMsgRecord").createMsgRecord(a,b,e));if(a==null)throw c("err")("resendUserMsgJob failed to deserialize msg from db");b=a.type===d("WAWebSendMsgTypes").SendMessageRecordType.Message?d("WAWebSendMsgMetricReporter").createMsgModelMetricReporter(a.data):d("WAWebSendMsgMetricReporter").createAddonMetricReporter(a.data);b.sendReporter=b.createSendReporter({isResend:!0,originalMessage:a.type==="message"?a.data:void 0});e=d("WAWebOutgoingMessage").createOutgoingMessageProtobuf(d("WAWebOutgoingMessage").OutgoingMessageOriginType.ChatResend,a);return d("WAWebResendUserMsg").resendUserMsg(a,e,f,g,b)});return h.apply(this,arguments)}g.resendUserMsgMainThreadOnly=a}),98); __d("WAWebVerifiedBusinessNameCopyPnDataToLidRows",["WALogger","WAWebBizGatingUtils","WAWebLidMigrationUtils","WAWebModelStorageUtils","WAWebUserPrefsKeys","WAWebUserPrefsStore","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["copyVerifiedNamePnDataToLidRows: error ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["copyVerifiedNamePnDataToLidRows: end migration"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["copyVerifiedNamePnDataToLidRows: start migration"]);j=function(){return a};return a}function a(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(!d("WAWebBizGatingUtils").isLidMigrationForVnameEnabled()||d("WAWebUserPrefsKeys").UserPrefs.VerifiedBusinessNameLidTableMigrationComplete)return;var e=!1;yield d("WAWebModelStorageUtils").getStorage().lock(["verified-business-name"],function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){b=b[0];try{d("WALogger").LOG(j());var c=a.map(function(a){if(a==null)return null;var b=d("WAWebWidFactory").createUserWid(a==null?void 0:a.id);if(b.isLid())return null;var c=d("WAWebLidMigrationUtils").toPn(b);b=d("WAWebLidMigrationUtils").toLid(b);return b==null||(c==null?void 0:c.user)==null?null:{id:b.toString(),name:(c=a.name)!=null?c:a.name,isApi:(b=a.isApi)!=null?b:a.isApi,isSmb:(c=a.isSmb)!=null?c:a.isSmb,level:(b=a.level)!=null?b:a.level,privacyMode:(c=a.privacyMode)!=null?c:a.privacyMode,serial:(b=a.serial)!=null?b:a.serial}}).filter(Boolean);yield b.bulkCreateOrMerge(c);d("WALogger").LOG(i());e=!0}catch(a){d("WALogger").ERROR(h(),a).sendLogs("verified-business-name-lid-migration"),e=!1}});return function(a){return c.apply(this,arguments)}}());c("WAWebUserPrefsStore").set(d("WAWebUserPrefsKeys").UserPrefs.VerifiedBusinessNameLidTableMigrationComplete,e)});return k.apply(this,arguments)}g.copyVerifiedNamePnDataToLidRows=a}),98); __d("WAWebRestoreBusinessInfo",["WALogger","WAWebApiBusinessProfile","WAWebBusinessProfileCollection","WAWebBusinessProfileCopyPnDataToLidRows","WAWebBusinessProfileTypes","WAWebChatCollection","WAWebSchemaBusinessProfile","WAWebSchemaVerifiedBusinessName","WAWebVerifiedBusinessNameCopyPnDataToLidRows","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["restore-business-info: invalid wid"]);h=function(){return a};return a}function a(){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("WAWebSchemaVerifiedBusinessName").getVerifiedBusinessNameTable().all());yield d("WAWebVerifiedBusinessNameCopyPnDataToLidRows").copyVerifiedNamePnDataToLidRows(a);a.forEach(function(a){var b;try{b=d("WAWebWidFactory").createUserWid(a.id)}catch(a){d("WALogger").ERROR(h()).sendLogs("restore-business-info: invalid wid");return}var c=d("WAWebChatCollection").ChatCollection.get(b);if(c){a={isBusiness:!0,isEnterprise:a.isApi,verifiedName:a.name,verifiedLevel:j(a.level),privacyMode:a.privacyMode};c.contact.set(a)}});a=(yield d("WAWebSchemaBusinessProfile").getBusinessProfileTable().all());yield d("WAWebBusinessProfileCopyPnDataToLidRows").copyBusinessProfilePnDataToLidRows(a);a.forEach(function(a){a=d("WAWebApiBusinessProfile").businessProfileFromDbRow(a);d("WAWebBusinessProfileCollection").BusinessProfileCollection.gadd(babelHelpers["extends"]({},a,{dataSource:"db"}))})});return i.apply(this,arguments)}function j(a){switch(a){case"unknown":return d("WAWebBusinessProfileTypes").VERIFIED_LEVEL.UNKNOWN;case"low":return d("WAWebBusinessProfileTypes").VERIFIED_LEVEL.LOW;case"high":return d("WAWebBusinessProfileTypes").VERIFIED_LEVEL.HIGH}return d("WAWebBusinessProfileTypes").VERIFIED_LEVEL.UNKNOWN}g.restoreBusinessInfo=a}),98); __d("WAWebRestoreChatsAndMessages",["Promise","WAJobOrchestratorTypes","WALogger","WATimeUtils","WAWebABProps","WAWebApiChat","WAWebApiHydrateWidsUtil","WAWebBackendApi","WAWebChatCollection","WAWebChatComparator","WAWebChatGetters","WAWebChatMsgsCollection","WAWebDBAddOnProviders","WAWebDBMessageSerialization","WAWebDBMessageStoreUtils","WAWebDBMessageUtils","WAWebDbEncryptionKey","WAWebEventsWaitForOfflineDeliveryEnd","WAWebModelStorageInitialize","WAWebMsgCollection","WAWebMsgKey","WAWebNewsletterCollection","WAWebNewsletterGatingUtils","WAWebOrchestratorNonPersistedJob","WAWebPromiseQueue","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebRestoreBusinessInfo","WAWebSchemaMessage","WAWebThreadMetadata","WAWebWamOfflineResumeReporter","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["anchor id: ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["Unread anchor message does not exist in message table"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["chat: ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["unreadMsgAnchorId is not defined"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["additional data: chat ",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["processPreviewMessageInChat: restoring "," message."]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["restoreMessagesForChat: restoring last "," messages."]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["restoreChatsAndMessages: failed with error: ",""]);p=function(){return a};return a}function q(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage] complete add all chats to collection"]);q=function(){return a};return a}function r(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage] complete load all chats from storage"]);r=function(){return a};return a}function s(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage] start load all chats"]);s=function(){return a};return a}function t(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage] load DbEncKeyStore key"]);t=function(){return a};return a}function u(){var a=babelHelpers.taggedTemplateLiteralLoose(["loadLastMessagesFromDB: failed with error: ",""]);u=function(){return a};return a}function v(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage] loadLastMessagesFromDB, ","ms, load "," messages"]);v=function(){return a};return a}function w(){var a=babelHelpers.taggedTemplateLiteralLoose(["Unread anchor message is not in message collection."]);w=function(){return a};return a}function x(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage] restoreMessagesForChat, id: ",", ","ms"]);x=function(){return a};return a}function y(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreChatsAndMessagesChunked ","ms, finish load "," - ",""]);y=function(){return a};return a}function z(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage] restoreMessagesForChats: ","ms, finish chat "," - ",""]);z=function(){return a};return a}function A(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage] updateKeyMetadataForChats: ","ms, finish chat "," - ",""]);A=function(){return a};return a}function B(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreChatsAndMessagesChunked start load "," - ",""]);B=function(){return a};return a}var C=20,D=5,E=100;function F(a,b){return a.reduce(function(a,c){c=d("WAWebApiHydrateWidsUtil").hydrateWids(babelHelpers["extends"]({},c,{pendingInitialLoading:!0,isReadOnly:(c=c.isReadOnly)!=null?c:!1}));var e=b==null?void 0:b[c.id.toString({legacy:!0})];e!=null&&(c.previewT=e);c.id.isNewsletter()?a.newsletters.push(c):a.chats.push(c);return a},{chats:[],newsletters:[]})}function a(){return G.apply(this,arguments)}function G(){G=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreChatsAndMessages_start");yield d("WAWebDbEncryptionKey").DbEncKeyStore.waitForFinalDbMsgEncKey();d("WALogger").DEV(t());return d("WAWebModelStorageInitialize").initializeWithoutGKs().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a,b;(a=d("WAWebQplQuickPerformanceLoggerModule")).QPL.markerPoint((b=d("WAWebQplQuickPerformanceLoggerMarkerIds")).QuickLogMarkerId.OFFLINE_RESUME,"RestoreChats_start");d("WALogger").DEV(s());a.QPL.markerPoint(b.QuickLogMarkerId.OFFLINE_RESUME,"RCMGetChats_start");var e=(yield d("WAWebApiChat").getAllChatsDeserialized());a.QPL.markerPoint(b.QuickLogMarkerId.OFFLINE_RESUME,"RCMGetChats_end");a.QPL.markerPoint(b.QuickLogMarkerId.OFFLINE_RESUME,"RCMPopulateMatCache_start");d("WAWebApiChat").populateMatCacheBulk(e);a.QPL.markerPoint(b.QuickLogMarkerId.OFFLINE_RESUME,"RCMPopulateMatCache_end");a.QPL.markerPoint(b.QuickLogMarkerId.OFFLINE_RESUME,"RCMFilterChats_start");a=d("WAWebThreadMetadata").getOfflineThreadMetaPreview();b=F(e,a==null?void 0:a.chatTimestamp);a=b.chats;b=b.newsletters;d("WAWebWamOfflineResumeReporter").OfflineResumeReporter.logOfflineChatThreadCount(e.length);d("WALogger").DEV(r());a.sort(c("WAWebChatComparator"));d("WAWebChatCollection").ChatCollection.add(a,{merge:!0});d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RCMFilterChats_end");d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreChats_end");d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreChatsAndMessagesFirstChunk_start");e=d("WAWebABProps").getABPropConfigValue("web_init_chat_batch_size")||E;d("WAWebQplQuickPerformanceLoggerModule").QPL.markerAnnotate(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,{"int":{web_init_chat_batch_size:e}});d("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&(b.sort(c("WAWebChatComparator")),c("WAWebNewsletterCollection")==null?void 0:c("WAWebNewsletterCollection").add(b,{merge:!0}),H(b,e));d("WALogger").DEV(q());b=(yield H(a,e));d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreChatsAndMessagesFirstChunk_end");d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RCMUpdateDuplicatedLidThread_start");d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RCMUpdateDuplicatedLidThread_end");return b})).then(d("WAWebRestoreBusinessInfo").restoreBusinessInfo).then(function(){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreChatsAndMessages_end")})["catch"](function(a){d("WALogger").ERROR(p(),a);throw a})});return G.apply(this,arguments)}function H(a,e){var f=(h||(h=b("Promise"))).resolve(),g=new(d("WAWebPromiseQueue").PromiseQueue)(),i=function(h){var i=a.slice(h,h+e),j=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("WALogger").DEV(B(),h,h+e);var a=self.performance.now();h===0&&d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RCMChatMetadata_start");var b=(yield I(i));h===0&&d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RCMChatMetadata_end");d("WALogger").DEV(A(),self.performance.now()-a,h,h+e);h===0&&d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RCMRestoreMessages_start");yield J(b);h===0&&d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RCMRestoreMessages_end");d("WALogger").DEV(z(),self.performance.now()-a,h,h+e);var f=[];b.forEach(function(a){var b;a=a.chat;b=(d("WAWebNewsletterGatingUtils").isNewsletterEnabled==null?void 0:d("WAWebNewsletterGatingUtils").isNewsletterEnabled())?(b=d("WAWebChatCollection").ChatCollection.get(a.id))!=null?b:c("WAWebNewsletterCollection")==null?void 0:c("WAWebNewsletterCollection").get(a.id):d("WAWebChatCollection").ChatCollection.get(a.id);b&&(b.set({pendingInitialLoading:!1}),d("WAWebChatGetters").getIsGroup(b)&&f.push(String(a.id)))});yield d("WAWebBackendApi").frontendSendAndReceive("restoreGroupParticipantsForChats",{chatIds:f});d("WALogger").DEV(y(),self.performance.now()-a,h,h+e)});return function(){return a.apply(this,arguments)}}();h===0?f=g.enqueue(function(){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("initialChatLoad",j,{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.SKIP}).waitUntilCompleted()}):g.enqueue(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebEventsWaitForOfflineDeliveryEnd").waitForOfflineDeliveryEnd();return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("initialChatLoad",j).waitUntilCompleted()}))};for(var j=0;j<a.length;j+=e)i(j);return f}function I(a){return(h||(h=b("Promise"))).all(a.map(function(a){var b=K(a);return d("WAWebDBMessageStoreUtils").getKeyMsgsFromChatHistory(a,b).then(function(c){var d=c.anchor,e=c.previewMsg;c=c.lastReceivedKey;d=babelHelpers["extends"]({},a,{unreadMsgAnchorId:b?d:void 0});return{chat:d,previewMsg:e,lastReceivedKey:c}})}))}function J(a){a=L(a);var c=a.tasks;a=a.lastMessageKeys;c.push(S(a));return(h||(h=b("Promise"))).all(c)}function K(a){return a.t!=null&&d("WATimeUtils").happenedWithin(d("WATimeUtils").castToUnixTime(a.t),d("WATimeUtils").DAY_SECONDS)||a.pin!=null&&a.pin>0}function L(a){var b=[],e=[];a.forEach(function(a){var f=a.chat,g=a.previewMsg;a=a.lastReceivedKey;if(K(f)||g&&g.id!==a){var h=self.performance.now();b.push(M(f,g).then(function(){d("WALogger").DEV(x(),f.id,self.performance.now()-h);if(f.unreadMsgAnchorId){var a=c("WAWebMsgKey").fromString(f.unreadMsgAnchorId);a=d("WAWebMsgCollection").MsgCollection.get(a);if(!a){d("WALogger").WARN(w()).devConsole("anchor id: "+f.unreadMsgAnchorId);return}var b=d("WAWebChatCollection").ChatCollection.get(d("WAWebWidFactory").createWidFromWidLike(f.id));b&&(b.unreadMsgAnchor=a)}}))}else e.push(String(a))});return{tasks:b,lastMessageKeys:e}}function M(a,b){return N.apply(this,arguments)}function N(){N=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){if(!K(a)||a.unreadCount===0)return O(a,b);if(a.unreadCount>=C){yield O(a,b);return Q(a)}d("WALogger").LOG(o(),a.unreadCount+D);var c=[];if(b){var e=d("WAWebDBMessageSerialization").messageFromDbRow(b),f=d("WAWebDBAddOnProviders").getAddOnProviderForFutureproofMsg(e);(f==null?void 0:f.canRenderInUi(e))&&c.push(b.id.toString())}f=(yield d("WAWebDBMessageStoreUtils").queryChatVisibleMessageHelper(a.id+"_/",a.id+"_g",{reverse:!0},a.unreadCount+D,c));yield d("WAWebMsgCollection").MsgCollection.processMultipleMessages(d("WAWebWidFactory").createWidFromWidLike(a.id),f.map(function(a){return d("WAWebDBMessageSerialization").messageFromDbRow(a)}).reverse(),{pendingMsgsDone:!0,resume:!1,add:"last",isHistory:!0},"restoreMessagesForChat")});return N.apply(this,arguments)}function O(a,b){return P.apply(this,arguments)}function P(){P=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var c=[];if(b!=null&&b.internalId!=null){var e=b.internalId,f=d("WAWebDBMessageSerialization").messageFromDbRow(b),g=d("WAWebDBAddOnProviders").getAddOnProviderForFutureproofMsg(f);b&&(g==null?void 0:g.canRenderInUi(f))&&c.push(b.id.toString());g=(yield d("WAWebDBMessageStoreUtils").queryChatVisibleMessageHelper(e,a.id+"_g",{lowerInclusive:!0},void 0,c))}else{f=1;g=(yield d("WAWebDBMessageStoreUtils").queryChatVisibleMessageHelper(a.id+"_/",a.id+"_g",{reverse:!0},f))}d("WALogger").LOG(n(),g.length);d("WALogger").DEV(m(),a.id);d("WAWebMsgCollection").MsgCollection.processMultipleMessages(d("WAWebWidFactory").createWidFromWidLike(a.id),g.map(function(a){return d("WAWebDBMessageSerialization").messageFromDbRow(a,function(a){a.invis=!0})}),{pendingMsgsDone:!1,resume:!1,add:"last",isHistory:!0},"processPreviewMessageInChat")});return P.apply(this,arguments)}function Q(a){return R.apply(this,arguments)}function R(){R=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(!a.unreadMsgAnchorId){d("WALogger").WARN(l());d("WALogger").DEV(k(),a.id);return(h||(h=b("Promise"))).resolve()}yield d("WAWebSchemaMessage").getMessageTable().equals(["id"],a.unreadMsgAnchorId).then(function(e){if(e.length===0){d("WALogger").WARN(j());d("WALogger").DEV(i(),a.unreadMsgAnchorId||"");return}e=d("WAWebDBMessageUtils").getInChatMsgId(e[0].internalId||"");var f=T(a,e,D);e=U(a,e,D);f=(h||(h=b("Promise"))).all([f,e]).then(function(a){var b=a[0];a=a[1];return[].concat(b,a)});return f.then(function(b){var e=b.length-D;if(e<0)return;e=b[b.length-D].id;b=b.map(function(a){return d("WAWebDBMessageSerialization").messageFromDbRow(a,function(a){a.invis=!0})});return d("WAWebMsgCollection").MsgCollection.processMultipleMessages(d("WAWebWidFactory").createWidFromWidLike(a.id),b,{pendingMsgsDone:!0,resume:!1,add:"unread",isHistory:!0,firstUnreadKey:c("WAWebMsgKey").fromString(e)},"processUnreadMessage",new(d("WAWebChatMsgsCollection").ChatMsgsCollection)())})})});return R.apply(this,arguments)}function S(a){var c=self.performance.now();return d("WAWebSchemaMessage").getMessageTable().bulkGet(a).then(function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(e){yield (h||(h=b("Promise"))).all(e.map(function(a){if(!a)return(h||(h=b("Promise"))).resolve();a=d("WAWebDBMessageSerialization").messageFromDbRow(a,function(a){a.invis=!0});return d("WAWebMsgCollection").MsgCollection.processMultipleMessages(a.id.remote,[a],{pendingMsgsDone:!1,resume:!1,add:"last",isHistory:!0},"loadLastMessagesFromDb")})),d("WALogger").DEV(v(),self.performance.now()-c,a.length)});return function(a){return e.apply(this,arguments)}}())["catch"](function(a){d("WALogger").ERROR(u(),a);throw a})}function T(a,b,c){c={lowerInclusive:!0,upperInclusive:!1};var e=d("WAWebDBMessageUtils").beginningOfChat(d("WAWebWidFactory").createWid(a.id));a=d("WAWebDBMessageUtils").craftInternalId(a.id,b);return d("WAWebDBMessageStoreUtils").queryChatVisibleMessageHelper(e,a,babelHelpers["extends"]({},c,{reverse:!0}),D).then(function(a){return a.reverse()})}function U(a,b,c){c={lowerInclusive:!0,upperInclusive:!1};return d("WAWebDBMessageStoreUtils").queryChatVisibleMessageHelper(d("WAWebDBMessageUtils").craftInternalId(a.id,b),d("WAWebDBMessageUtils").endOfChat(d("WAWebWidFactory").createWid(a.id)),c,D)}g.restoreChatsAndMessages=a}),98); __d("WAWebRestoreGroupsAndContacts",["Promise","WALogger","WAWebApiContact","WAWebApiHydrateWidsUtil","WAWebChatCollection","WAWebContactCollection","WAWebGroupMetadataCollection","WAWebGroupQueryBridge","WAWebLidAwareContactsDB","WAWebModelStorageInitialize","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebSchemaGroupMetadata","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreGroupMetadataPromise: ","ms, restore "," groups"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreContactsPromise: ","ms, restore "," contacts"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["warming up lid/pn cache"]);k=function(){return a};return a}function a(){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreGroupsAndContacts_start");return d("WAWebModelStorageInitialize").initializeWithoutGKs().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=self.performance.now();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreContactsReadByLid_start");var e=c("WAWebLidAwareContactsDB").all().then(function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){d("WALogger").LOG(k());d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"WarmupAllLidMappings_start");yield d("WAWebApiContact").warmUpAllLidPnMappings(b);d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"WarmupAllLidMappings_end");d("WAWebContactCollection").ContactCollection.add(b.map(d("WAWebApiHydrateWidsUtil").hydrateWids),{silent:!0,merge:!0});d("WALogger").DEV(j(),self.performance.now()-a,b.length);d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreContactsReadByLid_end");return b});return function(a){return c.apply(this,arguments)}}());d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreGroups_start");var f=d("WAWebSchemaGroupMetadata").getGroupMetadataTable().all().then(function(b){c("WAWebGroupMetadataCollection").add(b.map(d("WAWebApiHydrateWidsUtil").hydrateWids),{merge:!0}),b.forEach(function(a){var b=d("WAWebWidFactory").createWidFromWidLike(a.id);a.isParentGroup===!0&&d("WAWebChatCollection").ChatCollection.gadd({id:b,isReadOnly:!1});d("WAWebGroupQueryBridge").updateSubject(b,a.subject)}),d("WALogger").DEV(i(),self.performance.now()-a,b.length),d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreGroups_end")});return(h||(h=b("Promise"))).all([e,f])})).then(function(){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreGroupsAndContacts_end")})}g.restoreGroupsAndContacts=a}),98); __d("WAWebRestoreProfilePictures",["WALogger","WAWebApiHydrateWidsUtil","WAWebProfilePicThumbCollection","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebSchemaProfilePicThumb","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[init-from-storage]: restoreProfilePics: ","ms, restore "," picture urls"]);h=function(){return a};return a}function a(){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=self.performance.now();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreProfilePictures_start");var b=(yield d("WAWebSchemaProfilePicThumb").getProfilePicThumbTable().all()),c=[],e=[];b.forEach(function(a){var b=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.get(a.id);b!=null||d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.isProfilePicRefreshNeeded(a.timestamp)?e.push(a.id):c.push(a)});e.length>0&&d("WAWebSchemaProfilePicThumb").getProfilePicThumbTable().bulkRemove(e);b=c.map(function(a){return babelHelpers["extends"]({},d("WAWebApiHydrateWidsUtil").hydrateWids(a),{stale:!1,eurlStale:!1})});d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.add(b,{silent:!0,merge:!1});d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.OFFLINE_RESUME,"RestoreProfilePictures_end");d("WALogger").DEV(h(),self.performance.now()-a,b.length)});return i.apply(this,arguments)}g.restoreProfilePictures=a}),98); __d("WAWebSocketBridgeApi",["WAWebCmd","WAWebSocketModel"],(function(a,b,c,d,e,f,g){a={socketLogout:function(a){a=a.reason;d("WAWebSocketModel").Socket.logout(a)},addStartingLogoutListener:function(a){d("WAWebCmd").Cmd.on("starting_logout",a)},removeStartingLogoutListener:function(a){d("WAWebCmd").Cmd.off("starting_logout",a)}};g.SocketBridgeApi=a}),98); __d("WAWebStatusBridgeApi",["WAWebStatusCollection"],(function(a,b,c,d,e,f,g){a={handleStatusUpdate:function(a){var b=a.rawMsg,c=a.checksum;a=a.isMsgUpdate;return d("WAWebStatusCollection").StatusCollection.handleUpdate(b,c,a)},handleReadStatus:function(a){a=a.msgKeys;for(a of a){var b=a.participant;b=b&&d("WAWebStatusCollection").StatusCollection.get(b);b&&b.handleReadStatus(a)}}};g.StatusBridgeApi=a}),98); __d("WAWebSyncdBridgeApi",["WAWebSyncdDbCallbacksApi","WAWebSyncdKeyCallbacksApi","WAWebSyncdOrphan","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){a={checkOrphanMutations:function(a){var b=a.msgIds;a=a.chatIds;return d("WAWebSyncdOrphan").checkOrphanMutations(b,a)},handleSyncdFatal:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return d("WAWebSyncdDbCallbacksApi").handleSyncdFatal()});function c(){return a.apply(this,arguments)}return c}(),getDeviceFingerprint:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return d("WAWebSyncdKeyCallbacksApi").getDeviceFingerprint()});function c(){return a.apply(this,arguments)}return c}()};g.SyncdBridgeApi=a}),98); __d("WAWebTextStatusBridgeApi",["WAWebTextStatusCollection","WAWebUserPrefsMeUser","WAWebWidFactory"],(function(a,b,c,d,e,f,g){a={setMyStatus:function(a){a=a.status;var b=d("WAWebUserPrefsMeUser").assertGetMe();d("WAWebTextStatusCollection").TextStatusCollection.assertGet(d("WAWebWidFactory").toUserWid(b)).status=(b=a)!=null?b:d("WAWebTextStatusCollection").getDefaultTextStatus()}};g.TextStatusBridgeApi=a}),98); __d("WAWebUnreadMentionMetadataBridgeApi",["WAWebChatCollection","WAWebGroupUnreadMessageType","WAWebMsgGetters","WAWebUnreadMentionModel"],(function(a,b,c,d,e,f,g){a={processAndGetUnreadMentionsInfo:function(a){a=a.filteredMsgs;var b=new Map(),c=new Map();a.forEach(function(a){if(d("WAWebMsgGetters").getIsImportantMessage(a)){var e=a.id.remote.toString(),f=0;if(!c.has(e)){var g=d("WAWebChatCollection").ChatCollection.get(e);f=(g=g==null?void 0:(g=g.groupMetadata)==null?void 0:g.unreadMentionMetadata.pendingUnreadMentionCount)!=null?g:0;c.set(e,f)}else{f=(g=c.get(e))!=null?g:0}if(f>0){c.set(e,f-1);g={id:a.id.toString(),timestamp:a.t};if(b.has(e)){(f=b.get(e))==null?void 0:f.push(g)}else b.set(e,[g])}}});return{unreadMentionsToAdd:b,pendingUnreadMentionsMap:c}},getChatIdsNeedToBeDeletedFromUnreadMentionInfo:function(a){var b=a.unreadMentionsToAdd,e=a.pendingUnreadMentionsMap,f=[];b.forEach(function(a,b){var g,h,i=d("WAWebChatCollection").ChatCollection.get(b);g=(g=e.get(b))!=null?g:0;h=i==null?void 0:(h=i.groupMetadata)==null?void 0:h.unreadMentionMetadata;if((h==null?void 0:h.pendingUnreadMentionCount)===0||(i==null?void 0:i.hasChatBeenOpened)){f.push(b);return}if(h&&h.pendingUnreadMentionCount>0){h.pendingUnreadMentionCount=g;i=a.map(function(a){return new(c("WAWebUnreadMentionModel"))({id:a.id.toString(),timestamp:a.timestamp})});h.addUnreadMentions(i,d("WAWebGroupUnreadMessageType").UnreadMessageType.HISTORYC_SYNC_CHUNK)}});return f},updateUnreadMentionMetadataByAdding:function(a){var b=a.chatId,e=a.newUnreadMentions;a=a.pendingUnreadMentionCount;b=d("WAWebChatCollection").ChatCollection.get(b);b=b==null?void 0:(b=b.groupMetadata)==null?void 0:b.unreadMentionMetadata;e=e.map(function(a){return new(c("WAWebUnreadMentionModel"))({id:a.id.toString(),timestamp:a.timestamp})});b&&b.pendingUnreadMentionCount>0&&(b.pendingUnreadMentionCount=a,b.addUnreadMentions(e,d("WAWebGroupUnreadMessageType").UnreadMessageType.HISTORYC_SYNC_CHUNK))}};g.UnreadMentionMetadataBridgeApi=a}),98); __d("WAWebVerifiedNameBridgeApi",["WAWebBizCreateBizStateChangeNotificationMsgsAction"],(function(a,b,c,d,e,f,g){a={generateAndUpdatePrivacySystemMessages:function(a){var b=a.wid,c=a.previousState,e=a.currentState;a=a.shouldRunMATonWid;return d("WAWebBizCreateBizStateChangeNotificationMsgsAction").createBizStateChangeNotificationMsgs(b,c,e,a)}};g.VerifiedNameBridgeApiType=a}),98); __d("WAWebVoipActionRequestOpenChat",["WAWebChatEntryPoint","WAWebCmd","WAWebDrawerManager","WAWebFindChatAction"],(function(a,b,c,d,e,f,g){"use strict";function a(a){d("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),void d("WAWebFindChatAction").findOrCreateLatestChat(a,"voipWindow").then(function(a){a=a.chat;return d("WAWebCmd").Cmd.openChatBottom(a,d("WAWebChatEntryPoint").ChatEntryPoint.VoipWindow)})}g.requestOpenChat=a}),98); __d("WAWebVoipActionWebHandleIncomingSignalingMessage",["WALogger","WAWebCallCollection","WAWebCallLogMsgData.flow","WAWebVoipActionWriteCallLogMessage","WAWebVoipSignalingEnums","WAWebVoipWaCallEnums"],(function(a,b,c,d,e,f,g){"use strict";function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["voip:voip_common_disabled: Received signaling msg type "," but could not find call for call ID"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(['voip:handleIncomingSignalingMsg: type: "','" msg: ']);i=function(){return a};return a}function a(a,b){var e=d("WAWebVoipSignalingEnums").TYPE_NAME[a.type];d("WALogger").LOG(i(),e).devConsole(a);e=c("WAWebCallCollection").processIncomingCall(a.call_id,a.peer_jid,{isVideo:a.isVideoCall,offerTime:a.t,isSilenced:!!a.silence_reason,offerReceivedWhileOffline:a.is_offline,groupWid:a.group_jid});if(!e){d("WALogger").WARN(h(),a.type).devConsole(a.call_id);return}switch(a.type){case d("WAWebVoipSignalingEnums").TYPE.OFFER:a.t!=null&&(e.offerTime=a.t);e.isVideo=!!a.isVideoCall;e.setState(d("WAWebVoipWaCallEnums").CallState.ReceivedCall);break;case d("WAWebVoipSignalingEnums").TYPE.TERMINATE:e.setState(d("WAWebVoipWaCallEnums").CallState.CallStateEnding);b=b.maybeAttrString("reason");var f=b==="group_call_ended";f=f?{isGroup:!0,groupJid:e.groupJid}:{isGroup:!1};var g;switch(b){case"group_call_ended":case"timeout":case void 0:case null:g=d("WAWebCallLogMsgData.flow").CallOutcome.Missed;break;case"accepted_elsewhere":g=d("WAWebCallLogMsgData.flow").CallOutcome.AcceptedElsewhere;break;case"rejected_elsewhere":g=d("WAWebCallLogMsgData.flow").CallOutcome.Rejected;break}g&&void d("WAWebVoipActionWriteCallLogMessage").generateCallLog(babelHelpers["extends"]({callCreatorWid:a.call_creator,offerTime:e.offerTime,isVideo:e.isVideo,silenceReason:a.silence_reason,callId:a.call_id,isOffline:a.is_offline,callOutcome:g},f));break}}g.handleVoipWebIncomingSignalingMessageAction=a}),98); __d("WAWebVoipWebBridgeApi",["WAWebCallCollection","WAWebCallModel","WAWebChatCollection","WAWebVoipActionRequestOpenChat","WAWebVoipActionWebHandleIncomingSignalingMessage","WAWebVoipActionWriteCallLogMessage","WAWebVoipStartCall","WAWebVoipWaCallEnums","WAWebWidFactory"],(function(a,b,c,d,e,f,g){"use strict";a={handleVoipWebIncomingSignalingMessageAction:function(a){var b=a.msg;a=a.voipNode;return d("WAWebVoipActionWebHandleIncomingSignalingMessage").handleVoipWebIncomingSignalingMessageAction(b,a)},startVoipCallByWid:function(a){var b=a.peerJid;a=a.isVideo;return d("WAWebVoipStartCall").startWAWebVoipCallByWid(b,a)},generateCallLog:function(a){a=a.props;return d("WAWebVoipActionWriteCallLogMessage").generateCallLog(a)},generateCallLogFromNativeCallEndingEvent:function(a){a=a.callEndingData;return d("WAWebVoipActionWriteCallLogMessage").generateCallLogFromNativeCallEndingEvent(a)},requestOpenChat:function(a){a=a.chatJid;a=d("WAWebWidFactory").createWid(a);return d("WAWebVoipActionRequestOpenChat").requestOpenChat(a)},getTcToken:function(a){a=a.wid;a=d("WAWebChatCollection").ChatCollection.get(a);return{tcToken:a==null?void 0:a.tcToken}},setCallState:function(a){var b;a=a.callState;c("WAWebCallCollection").activeCall==null&&c("WAWebCallCollection").setActiveCall(new(c("WAWebCallModel"))());(b=c("WAWebCallCollection").activeCall)==null?void 0:b.setState(a);(a===d("WAWebVoipWaCallEnums").CallState.CallStateEnding||a===d("WAWebVoipWaCallEnums").CallState.None)&&c("WAWebCallCollection").setActiveCall(null)}};g.VoipWebBridgeApi=a}),98); __d("WAWebWamBridgeApi",["WAWebEphemeralKeepInChatWamUtils","WAWebOTPLoggingHelper"],(function(a,b,c,d,e,f,g){a={logTieBreakIgnoredKicWam:function(a){a=a.keepInChatMessage;return d("WAWebEphemeralKeepInChatWamUtils").logTieBreakIgnoredKic(a)},logOTPMessageReceivedActions:function(a){a=a.msgData;void d("WAWebOTPLoggingHelper").logOTPMessageReceived(a)},logOTPMessageReadActions:function(a){a=a.msgRow;void d("WAWebOTPLoggingHelper").logOTPMessageRead(a)}};g.WamBridgeApi=a}),98); __d("WAWebSetFrontendHandlerApi",["WAWebAbPropsBridgeApi","WAWebAddOnsBridgeApi","WAWebBizAiBridgeApi","WAWebCTWABridgeApi","WAWebChatBridgeApi","WAWebClockBridgeApi","WAWebContactBridgeApi","WAWebCustomPaymentMethodsSyncBridgeApi","WAWebDebugBridgeApi","WAWebDeviceSwitchingBridgeApi","WAWebGroupBridgeApi","WAWebGroupMetadataBridgeApi","WAWebHistorySyncApi","WAWebIdentityBridgeApi","WAWebL10nHelpersBridgeApi","WAWebLabelsBridgeApi","WAWebMemoryInfoBridgeApi","WAWebMsgBridgeApi","WAWebMsgInfoBridgeApi","WAWebNewsletterBridgeApi","WAWebNoteBridgeApi","WAWebNuxBridgeApi","WAWebPaymentInfoSyncBridgeApi","WAWebPrimaryFeaturesBridgeApi","WAWebPrivacyBridgeApi","WAWebProfilePicThumbBridgeApi","WAWebReachoutTimelockBridgeApi","WAWebReactionsBridgeApi","WAWebSocketBridgeApi","WAWebStatusBridgeApi","WAWebSyncdBridgeApi","WAWebTextStatusBridgeApi","WAWebUnreadMentionMetadataBridgeApi","WAWebVerifiedNameBridgeApi","WAWebVoipWebBridgeApi","WAWebWamBridgeApi"],(function(a,b,c,d,e,f,g){function a(a){a.setHandlers("event",babelHelpers["extends"]({},d("WAWebMsgBridgeApi").MsgBridgeApi,d("WAWebLabelsBridgeApi").LabelsBridgeApi,d("WAWebContactBridgeApi").ContactBridgeApi,d("WAWebChatBridgeApi").ChatBridgeApi,d("WAWebClockBridgeApi").ClockBridgeApi,d("WAWebCTWABridgeApi").CTWABridgeApi,d("WAWebStatusBridgeApi").StatusBridgeApi,d("WAWebNuxBridgeApi").NuxBridgeApi,d("WAWebTextStatusBridgeApi").TextStatusBridgeApi,d("WAWebMsgInfoBridgeApi").MsgInfoBridgeApi,d("WAWebGroupBridgeApi").GroupBridgeApi,d("WAWebHistorySyncApi").HistorySyncBridgeApi,d("WAWebIdentityBridgeApi").IdentityBridgeApi,d("WAWebSocketBridgeApi").SocketBridgeApi,d("WAWebAbPropsBridgeApi").AbPropsBridgeApi,d("WAWebWamBridgeApi").WamBridgeApi,d("WAWebReactionsBridgeApi").ReactionsBridgeApi,d("WAWebAddOnsBridgeApi").AddOnsBridgeApi,d("WAWebGroupMetadataBridgeApi").GroupMetadataBridgeApi,d("WAWebNewsletterBridgeApi").NewsletterBridgeApi,d("WAWebPrimaryFeaturesBridgeApi").PrimaryFeaturesBridgeApi,d("WAWebProfilePicThumbBridgeApi").ProfilePicThumbBridgeApi,d("WAWebDeviceSwitchingBridgeApi").DeviceSwitchingBridgeApi,d("WAWebPrivacyBridgeApi").PrivacyBridgeApi,d("WAWebPaymentInfoSyncBridgeApi").PaymentInfoSyncBridgeApi,d("WAWebCustomPaymentMethodsSyncBridgeApi").CustomPaymentMethodsSyncBridgeApi,d("WAWebUnreadMentionMetadataBridgeApi").UnreadMentionMetadataBridgeApi,d("WAWebL10nHelpersBridgeApi").L10nHelpersBridgeApi,d("WAWebNoteBridgeApi").NoteBridgeApi,d("WAWebBizAiBridgeApi").BizAiBridgeApi,d("WAWebVoipWebBridgeApi").VoipWebBridgeApi,d("WAWebVerifiedNameBridgeApi").VerifiedNameBridgeApiType,d("WAWebMemoryInfoBridgeApi").MemoryInfoBridgeApi,d("WAWebSyncdBridgeApi").SyncdBridgeApi,d("WAWebDebugBridgeApi").DebugBridgeApi,d("WAWebReachoutTimelockBridgeApi").ReachoutTimelockBridgeApi))}g.setFrontendHandlers=a}),98); __d("WAWebUpdateMsgBizPrivacyStatusAction",["WALogger","WAWebPrivacyModeSystemMsg","WAWebProtobufsWeb.pb","WAWebSchemaMessage","WAWebWid","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["msg.bizPrivacyStatus exist already, we can not assign a new value anymore"]);h=function(){return a};return a}function a(a,b){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var e;if(!c("WAWebWid").isUser(a.id.remote))return;if(a.id.remote.isBot()||((e=a.invokedBotWid)==null?void 0:e.isBot()))return;e=a.privacyModeWhenSent;if(e==null&&b==null)return;if(e!=null&&b!=null&&e.privacyModeTs>=b.privacyModeTs)return;b=d("WAWebPrivacyModeSystemMsg").getReducedPrivacyMode(b);e=d("WAWebPrivacyModeSystemMsg").getReducedPrivacyMode(e);if(b===e)return;if(a.bizPrivacyStatus!=null){d("WALogger").WARN(h());return}e=j(b);a.bizPrivacyStatus=e;yield d("WAWebSchemaMessage").getMessageTable().merge(a.id.toString(),{bizPrivacyStatus:e})});return i.apply(this,arguments)}function j(a){switch(a){case d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.E2EE:return d("WAWebProtobufsWeb.pb").WebMessageInfo$BizPrivacyStatus.E2EE;case d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.BSP:return d("WAWebProtobufsWeb.pb").WebMessageInfo$BizPrivacyStatus.BSP;case d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.FB:case d("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.HOSTED_GROUP:return d("WAWebProtobufsWeb.pb").WebMessageInfo$BizPrivacyStatus.FB}}g["default"]=a}),98); __d("WAWebWorkerSafeBridgeApi",["JSResourceForInteraction","Promise","WATaskScheduler","WAWebCTWASuggestionInitFromStorage","WAWebChatCollection","WAWebContactCollection","WAWebEphemeralityResolver","WAWebFetchAdEntryPointsConfiguration","WAWebFetchQuickPromotions","WAWebFtsClient","WAWebGetOrQueryUsyncInfoContactAction","WAWebGroupCreationKeyDistribution","WAWebHandleHistorySyncNotification","WAWebJobLoadQuickPromotions","WAWebKeyManagementHandleKeyRequestApi","WAWebKeyManagementHandleKeyShareApi","WAWebKeyManagementSendKeyShareApi","WAWebMsgCollection","WAWebNonMessageDataRequestHandler","WAWebOptOutListCollection","WAWebPaymentNotificationHandler","WAWebPnhCtwaDailyStatsUtils","WAWebPrivacyMode_WORKER_INCOMPATIBLE","WAWebProfilePicThumbCollection","WAWebResendGroupMsgMainThreadOnly","WAWebResendUserMsgMainThreadOnly","WAWebRestoreChatsAndMessages","WAWebRestoreGroupsAndContacts","WAWebRestoreProfilePictures","WAWebSyncContactJob","WAWebTasksDefinitions","WAWebTosCountryGating","WAWebTosGating","WAWebUpdateMsgBizPrivacyStatusAction","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h,i=c("JSResourceForInteraction")("WAWebOptOutSyncJob").__setRef("WAWebWorkerSafeBridgeApi");a={setProfilePicThumb:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=a.wid;a=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.gadd(a);yield d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.update(a.id)});function c(b){return a.apply(this,arguments)}return c}(),getPrivacyMode:function(a){a=a.id;return d("WAWebPrivacyMode_WORKER_INCOMPATIBLE").getPrivacyModeFromModel(a)},updateBizPrivacyStatus:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var e=a.msgIds,f=a.privacyMode;yield (h||(h=b("Promise"))).all(e.map(function(a){return d("WAWebMsgCollection").MsgCollection.get(a)}).filter(Boolean).map(function(a){return c("WAWebUpdateMsgBizPrivacyStatusAction")(a,f)}))});function e(b){return a.apply(this,arguments)}return e}(),getChatPrivacyInfoOnNewMsg:function(a){a=a.chatId;var b=d("WAWebChatCollection").ChatCollection.get(a);return{verifiedLevel:b==null?void 0:b.contact.verifiedLevel,privacyMode:d("WAWebPrivacyMode_WORKER_INCOMPATIBLE").getPrivacyModeFromModel(a)}},getContactData:function(a){a=a.ids;return new Map(a.map(function(a){var b=d("WAWebContactCollection").ContactCollection.get(a),c=d("WAWebEphemeralityResolver").getEphemeralDurationForUser(b);return[a.toJid(),{ephemeralDuration:c,shouldBlockByCountry:function(){return b==null?!1:d("WAWebTosCountryGating").shouldBlockByCountry(b)},shouldBlockByTos:function(){return b==null?!1:d("WAWebTosGating").shouldBlockByTos(b)}}]}))},getBizBotData:function(a){a=a.chatIds;return new Map(a.map(function(a){var b=d("WAWebChatCollection").ChatCollection.get(a);return[a.toJid(),{bizBotSystemMsgType:b==null?void 0:b.bizBotSystemMsgType}]}))},handleHistorySyncNotification:function(a){var b=a.historySyncMetaData,c=a.from;a=a.externalId;return d("WAWebHandleHistorySyncNotification").handleHistorySyncNotification(b,c,a)},handleAppStateSyncKeyShare:function(a){var b=a.keyShare;a=a.from;return d("WAWebKeyManagementHandleKeyShareApi").handleAppStateSyncKeyShare(b,a)},sendAppStateSyncKeyShare:function(a){a=a.keyShare;return d("WAWebKeyManagementSendKeyShareApi").sendAppStateSyncKeyShare(a)},restoreChatsAndMessages:function(){return d("WAWebRestoreChatsAndMessages").restoreChatsAndMessages()},restoreGroupsAndContacts:function(){return d("WAWebRestoreGroupsAndContacts").restoreGroupsAndContacts()},restoreProfilePictures:function(){return d("WAWebRestoreProfilePictures").restoreProfilePictures()},processAllOrphanPaymentNotifications:function(){return d("WAWebPaymentNotificationHandler").processAllOrphanPaymentNotifications()},handleAppStateSyncKeyRequest:function(a){var b=a.keyRequest;a=a.from;return d("WAWebKeyManagementHandleKeyRequestApi").handleAppStateSyncKeyRequest(b,a)},handlePeerDataOperationRequestResponse:function(a){var b=a.stanzaId;a=a.response;return d("WAWebNonMessageDataRequestHandler").handlePeerDataOperationRequestResponse(b,a)},handlePeerDataOperationRequest:function(a){var b=a.stanzaId;a=a.request;return d("WAWebNonMessageDataRequestHandler").handlePeerDataOperationRequest(b,a)},getFtsClientInstance:function(){return d("WAWebFtsClient").ftsClient},getOrQueryUsyncInfo:function(a){a=a.wid;return d("WAWebGetOrQueryUsyncInfoContactAction").getOrQueryUsyncInfo(a)},maybeSendKeyDistributionMsgToNewGroup:function(a){a=a.groupId;return d("WAWebGroupCreationKeyDistribution").maybeSendKeyDistributionMsgToNewGroup(a)},incrementPnhCtwaDailyCount:function(a){a=a.chatId;return d("WAWebPnhCtwaDailyStatsUtils").incrementPnhCtwaDailyCount(a)},processOrphanPaymentNotifications:function(a){a=a.msgs;return d("WAWebPaymentNotificationHandler").processOrphanPaymentNotifications(a)},processLastMsgs:function(a){var c=a.chatId,e=a.msgObjs,f=a.meta,g=a.processMessagesOrigin,i=a.chatMsgsCollection;a=a.preserveOrder;var j=d("WAWebChatCollection").ChatCollection.get(c);return j&&j.msgs.length===0&&!j.pendingInitialLoading?d("WAWebMsgCollection").MsgCollection.processMultipleMessages(c,e,f,g,i,a):(h||(h=b("Promise"))).resolve([])},loadQuickPromotions:function(a){a=a.trigger;return d("WAWebJobLoadQuickPromotions").loadQuickPromotions(a)},fetchQuickPromotionsNow:function(){void d("WAWebFetchQuickPromotions").fetchQuickPromotions().then(function(){d("WATaskScheduler").rescheduleNow(d("WAWebTasksDefinitions").TaskType.FETCH_QUICK_PROMOTIONS)})},fetchAdEntryPointsConfiguration:function(a){a=a.trigger;return d("WAWebFetchAdEntryPointsConfiguration").fetchAdEntryPointsConfiguration(a)},restoreCTWASuggestions:function(){return d("WAWebCTWASuggestionInitFromStorage").restoreCTWASuggestions()},resendUserMsg:function(a){var b=a.msgId,c=a.msgType,e=a.msgRecordType,f=a.excludeList;a=a.ackTime;return d("WAWebResendUserMsgMainThreadOnly").resendUserMsgMainThreadOnly(b,c,e,f,a)},resendGroupMsg:function(a){var b=a.msgId,c=a.msgType,e=a.msgRecordType,f=a.groupId,g=a.isDirect,h=a.oldList,i=a.phash,j=a.ackTime;a=a.serverAddressingMode;return d("WAWebResendGroupMsgMainThreadOnly").resendGroupMsgMainThreadOnly(b,c,e,f,g,h,i,j,a)},updateOptOutList:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield i.load());a=a.updateOptOutList;return a()});function c(){return a.apply(this,arguments)}return c}(),updateOptOutListCollection:function(a){a=a.wids;d("WAWebOptOutListCollection").OptOutListCollection.replaceAllWith(a)},updateOptOutListModelInCollection:d("WAWebOptOutListCollection").OptOutListCollection.updateOptOutListInCollectionAndDb,syncContactListJob:function(a){var b=a.contactIds,c=a.shouldSyncDevice;a=a.mode;return d("WAWebSyncContactJob").syncContactListJob(b,c,a)}};g.WorkerSafeBridgeApi=a}),98); __d("WAWebSetWorkerSafeHandlerApi",["WAWebWorkerSafeBridgeApi"],(function(a,b,c,d,e,f,g){function a(a){a.setHandlers("workerSafeEvent",babelHelpers["extends"]({},d("WAWebWorkerSafeBridgeApi").WorkerSafeBridgeApi))}g.setWorkerSafeHandlers=a}),98); __d("useWAWebNoop",[],(function(a,b,c,d,e,f){"use strict";function a(){return}f["default"]=a}),66);