BizWebCometOmniAiSettingsColorPicker.react",["fbt","AdsPlacementEditorColorPickerV2.react","BizWebCometOmniAiSettingsConsts","GeoButton.react","GeoFlexbox.react","GeoModalFooter.react","GeoModalHeader.react","GeoModal_DEPRECATED.react","react","react-compiler-runtime","useBizWebCometOmniAiSettingsUpdateInstanceMutation.react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e.useState,d={colorPicker:{paddingLeft:"x1igx7t4",paddingRight:"x172e5tb",paddingInlineStart:null,paddingInlineEnd:null,$$css:!0},colorPickerModal:{height:"xjrrmdf",width:"xxsgkw5",$$css:!0}};function m(e){var t=o("react-compiler-runtime").c(18),n=e.hideColorPickerModal,a=e.instanceID,i=e.isColorPickerModalShown,l=e.themeColorCandidates,m=c("#000001"),p=m[0],_=m[1],f=r("useBizWebCometOmniAiSettingsUpdateInstanceMutation.react")(),g=f.isMutationInFlight,h=f.onSaveCustomColor,y;t[0]!==p||t[1]!==n||t[2]!==a||t[3]!==h||t[4]!==l?(y=function(){var e=Array.from(new Set([].concat(l,[p]))),t=function(){n()};h(a,p,e,t)},t[0]=p,t[1]=n,t[2]=a,t[3]=h,t[4]=l,t[5]=y):y=t[5];var C=y,b;t[6]===Symbol.for("react.memo_cache_sentinel")?(b=s._(/*BTDS*/"Save"),t[6]=b):b=t[6];var v;t[7]!==g||t[8]!==C?(v=u.jsx(r("GeoModalFooter.react"),{primaryButton:u.jsx(r("GeoButton.react"),{grow:"fill",isLoading:g,label:b,onClick:C,variant:"primary"})}),t[7]=g,t[8]=C,t[9]=v):v=t[9];var S;t[10]===Symbol.for("react.memo_cache_sentinel")?(S=u.jsx(r("GeoModalHeader.react"),{heading:o("BizWebCometOmniAiSettingsConsts").COLOR_PICKER_MODAL_HEADING}),t[10]=S):S=t[10];var R;t[11]!==p?(R=u.jsx(r("GeoFlexbox.react"),{xstyle:d.colorPicker,children:u.jsx(r("AdsPlacementEditorColorPickerV2.react"),{onChange:_,value:p})}),t[11]=p,t[12]=R):R=t[12];var L;return t[13]!==n||t[14]!==i||t[15]!==v||t[16]!==R?(L=u.jsx(r("GeoModal_DEPRECATED.react"),{footer:v,header:S,isShown:i,onHide:n,xstyle:d.colorPickerModal,children:R}),t[13]=n,t[14]=i,t[15]=v,t[16]=R,t[17]=L):L=t[17],L}l.default=m}),226);
-----
BizWebCometOmniAiSettingsColorContainer.react",["BizAIWebAgentColorUtils","BizWebCometOmniAiSettingsConsts","BizWebCometOmniAiSettingsUtils","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoMediaItem.react","GeoSelector.react","GeoSelectorFooter.react","GeoSelectorItem.react","GeoTextPairing.react","GeoVStack.react","deferredLoadComponent","geoMargin","meta-brand-plus-filled-16","react","react-compiler-runtime","requireDeferredForDisplay","useBizWebCometOmniAiSettingsUpdateInstanceMutation.react","useBoolean","useGeoTheme"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=r("deferredLoadComponent")(r("requireDeferredForDisplay")("BizWebCometOmniAiSettingsColorPicker.react").__setRef("BizWebCometOmniAiSettingsColorContainer.react"));function c(e){var t=o("react-compiler-runtime").c(9),n=e.backgroundColor,r="white";try{var a;if(t[0]!==n){var i=o("BizAIWebAgentColorUtils").parseColorToRgba(n);a=o("BizAIWebAgentColorUtils").getFontColorBasedOnContrast(i),t[0]=n,t[1]=a}else a=t[1];r=a}catch(e){}var l;t[2]!==n?(l={backgroundColor:n,borderRadius:"20px",height:"18px",marginTop:"5px",maxWidth:"170px",padding:"10px"},t[2]=n,t[3]=l):l=t[3];var u;t[4]!==r?(u=s.jsx("span",{style:{color:r,fontSize:"13px"},children:o("BizWebCometOmniAiSettingsConsts").BUBBLE_EXAMPLE_MESSAGE}),t[4]=r,t[5]=u):u=t[5];var c;return t[6]!==l||t[7]!==u?(c=s.jsx("div",{style:l,children:u}),t[6]=l,t[7]=u,t[8]=c):c=t[8],c}function d(e){var t=o("react-compiler-runtime").c(11),n=e.color,a=r("useGeoTheme")(),i=a.selectStaticBackgroundColor,l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={height:"88px"},t[0]=l):l=t[0];var u;t[1]!==i?(u=i({surface:"wash"}),t[1]=i,t[2]=u):u=t[2];var d;t[3]!==u?(d=[u,r("geoMargin").bottom4],t[3]=u,t[4]=d):d=t[4];var m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(r("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",children:o("BizWebCometOmniAiSettingsConsts").BUBBLE_EXAMPLE_MESSAGE_HEADING}),t[5]=m):m=t[5];var p;t[6]!==n?(p=s.jsxs(r("GeoFlexbox.react"),{alignItems:"center",direction:"column",rowGap:4,xstyle:r("geoMargin").bottom4,children:[m,s.jsx(c,{backgroundColor:n})]}),t[6]=n,t[7]=p):p=t[7];var _;return t[8]!==d||t[9]!==p?(_=s.jsx(r("GeoFlexbox.react"),{alignItems:"center",direction:"row",justifyContent:"center",style:l,xstyle:d,children:p}),t[8]=d,t[9]=p,t[10]=_):_=t[10],_}function m(e){var t=o("react-compiler-runtime").c(2),n=e.color,a;return t[0]!==n?(a=s.jsx(r("GeoMediaItem.react"),{fit:"cover",media:s.jsx("div",{style:{backgroundColor:n,borderRadius:"100%",height:23,width:23}}),ratio:"circle",size:64}),t[0]=n,t[1]=a):a=t[1],a}function p(e){var t=o("react-compiler-runtime").c(15),n=e.instanceID,a=e.onUpdateThemeColor,i=e.selectedThemeColor,l=e.showColorPickerModal,u=e.themeColorCandidates,c;t[0]!==l?(c=s.jsx(r("GeoSelectorFooter.react"),{startContent:s.jsx(r("GeoButton.react"),{grow:"fill",icon:o("meta-brand-plus-filled-16").metaBrandPlusPlusFilled16,label:o("BizWebCometOmniAiSettingsConsts").ADD_COLOR_BUTTON_LABEL,onClick:l})}),t[0]=l,t[1]=c):c=t[1];var d;t[2]!==i?(d=s.jsx(m,{color:i}),t[2]=i,t[3]=d):d=t[3];var p;t[4]!==n||t[5]!==a?(p=function(t){return a(n,t)},t[4]=n,t[5]=a,t[6]=p):p=t[6];var f;t[7]!==u?(f=u.map(_),t[7]=u,t[8]=f):f=t[8];var g;return t[9]!==i||t[10]!==c||t[11]!==d||t[12]!==p||t[13]!==f?(g=s.jsx(r("GeoSelector.react"),{"data-testid":void 0,footer:c,isLabelHidden:!0,label:o("BizWebCometOmniAiSettingsConsts").HIDDEN_LABEL,media:d,onChange:p,value:i,children:f}),t[9]=i,t[10]=c,t[11]=d,t[12]=p,t[13]=f,t[14]=g):g=t[14],g}function _(e,t){return s.jsx(r("GeoSelectorItem.react"),{label:e,media:s.jsx(m,{color:e}),value:e},t)}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t=o("react-compiler-runtime").c(25),n=e.instanceID,a=e.savedCustomThemeColors,i=e.themeColor,l;t[0]!==i?(l=o("BizWebCometOmniAiSettingsUtils").convertEntFieldValueToHexCode(i),t[0]=i,t[1]=l):l=t[1];var c=l,m;if(t[2]!==a||t[3]!==c){var _=[c].concat(a.map(g)),f;t[5]!==_?(f=new Set(_),t[5]=_,t[6]=f):f=t[6],m=Array.from(f),t[2]=a,t[3]=c,t[4]=m}else m=t[4];var h=m,y=r("useBizWebCometOmniAiSettingsUpdateInstanceMutation.react")(),C=y.onUpdateThemeColor,b=r("useBoolean")(!1),v=b.setFalse,S=b.setTrue,R=b.value,L;t[7]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(r("GeoTextPairing.react"),{description:o("BizWebCometOmniAiSettingsConsts").BUBBLE_COLOR_DESCRIPTION,heading:o("BizWebCometOmniAiSettingsConsts").BUBBLE_COLOR_HEADING,size:"header4"}),t[7]=L):L=t[7];var E;t[8]!==c?(E=s.jsx(d,{color:c}),t[8]=c,t[9]=E):E=t[9];var k;t[10]!==n||t[11]!==C||t[12]!==c||t[13]!==S||t[14]!==h?(k=s.jsx(p,{instanceID:n,onUpdateThemeColor:C,selectedThemeColor:c,showColorPickerModal:S,themeColorCandidates:h}),t[10]=n,t[11]=C,t[12]=c,t[13]=S,t[14]=h,t[15]=k):k=t[15];var I;t[16]!==v||t[17]!==n||t[18]!==R||t[19]!==h?(I=s.jsx(u,{hideColorPickerModal:v,instanceID:n,isColorPickerModalShown:R,themeColorCandidates:h}),t[16]=v,t[17]=n,t[18]=R,t[19]=h,t[20]=I):I=t[20];var T;return t[21]!==E||t[22]!==k||t[23]!==I?(T=s.jsxs(r("GeoVStack.react"),{"data-testid":void 0,children:[L,E,k,I]}),t[21]=E,t[22]=k,t[23]=I,t[24]=T):T=t[24],T}function g(e){return o("BizWebCometOmniAiSettingsUtils").convertEntFieldValueToHexCode(e)}l.default=f}),98);
-----
BizWebCometOmniAiSettingsPositionContainerV2.react",["BizGenAIGatingContext","BizWebCometOmniAiSettingsConsts","BizWebCometOmniAiSettingsHorizontalPaddingInput.react","BizWebCometOmniAiSettingsVerticalPaddingInput.react","BizWebCometOmniAiSettingsZIndexPaddingInput.react","BizWebCometOmniAiSettingsZIndexPaddingInputV2.react","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoHStack.react","GeoIcon.react","GeoLink.react","GeoSelector.react","GeoSelectorItem.react","GeoTextPairing.react","GeoVStack.react","geoMargin","meta-brand-arrow-up-diagonal-right-square-outline-16","meta-brand-triangle-down-filled-12","meta-brand-triangle-up-filled-12","react","react-compiler-runtime","useBizWebCometOmniAiSettingsUpdateInstanceMutation.react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e,c=u.useContext,d=u.useState,m=new Map([["699815439890191","https://s1ja0j-73.myshopify.com/pages/MWPDiyue2/?v=3&voice=false"],["750136001512683","https://s1ja0j-73.myshopify.com/pages/MWPdiyue1/?v=3&voice=false"],["763487440171752","https://s1ja0j-73.myshopify.com/pages/mwpdiyue/?v=3&voice=false"],["779909778529828","https://s1ja0j-73.myshopify.com/pages/mwpdiyue3/?v=3&voice=false"]]),p={icon:{marginInlineStart:"xwklpps",marginTop:"x1ok221b",$$css:!0}};function _(e){var t=o("react-compiler-runtime").c(9),n=e.instanceID,a=e.onUpdatePosition,i=e.positioningConfig,l=i==null?void 0:i.base_alignment,u;t[0]!==n||t[1]!==a||t[2]!==i?(u=function(t){var e=babelHelpers.extends({},i,{base_alignment:t});a(n,e,i)},t[0]=n,t[1]=a,t[2]=i,t[3]=u):u=t[3];var c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(r("GeoSelectorItem.react"),{label:o("BizWebCometOmniAiSettingsConsts").POSITION_BASE_ALIGNMENT_LABEL("BOTTOM_LEFT"),value:"BOTTOM_LEFT"},0),t[4]=c):c=t[4];var d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(r("GeoSelectorItem.react"),{label:o("BizWebCometOmniAiSettingsConsts").POSITION_BASE_ALIGNMENT_LABEL("BOTTOM_RIGHT"),value:"BOTTOM_RIGHT"},1),t[5]=d):d=t[5];var m;return t[6]!==l||t[7]!==u?(m=s.jsxs(r("GeoSelector.react"),{isLabelHidden:!0,label:o("BizWebCometOmniAiSettingsConsts").HIDDEN_LABEL,onChange:u,value:l,children:[c,d]}),t[6]=l,t[7]=u,t[8]=m):m=t[8],m}function f(e){var t=o("react-compiler-runtime").c(5),n=e.isCollapsed,a=e.onToggle,i=n?o("meta-brand-triangle-down-filled-12").metaBrandTriangleDownTriangleDownFilled12:o("meta-brand-triangle-up-filled-12").metaBrandTriangleUpTriangleUpFilled12,l;t[0]!==i?(l=s.jsxs(r("GeoHStack.react"),{children:[o("BizWebCometOmniAiSettingsConsts").POSITION_ADVANCED_SETTINGS_BUTTON_LABEL,s.jsx(r("GeoIcon.react"),{color:"inherit",icon:i,xstyle:p.icon})]}),t[0]=i,t[1]=l):l=t[1];var u;return t[2]!==a||t[3]!==l?(u=s.jsx(r("GeoFlexbox.react"),{alignContent:"center",xstyle:r("geoMargin").top4,children:s.jsx(r("GeoLink.react"),{display:"inline",onClick:a,children:l})}),t[2]=a,t[3]=l,t[4]=u):u=t[4],u}function g(e){var t=o("react-compiler-runtime").c(27),n=e.instanceID,a=e.isMobile,i=e.onUpdatePosition,l=e.pageID,u=e.positioningConfig,c=e.shopUrl,p=c;if(m.has(l)){var g;if(t[0]!==l){var y;g=(y=m.get(l))!=null?y:"",t[0]=l,t[1]=g}else g=t[1];p=g}var C=d(!0),b=C[0],v=C[1],S;t[2]!==n||t[3]!==i||t[4]!==u?(S=s.jsx(_,{instanceID:n,onUpdatePosition:i,positioningConfig:u}),t[2]=n,t[3]=i,t[4]=u,t[5]=S):S=t[5];var R;t[6]!==a||t[7]!==p?(R=!a&&s.jsx(r("GeoButton.react"),{href:p,icon:o("meta-brand-arrow-up-diagonal-right-square-outline-16").metaBrandArrowUpDiagonalRightSquareShareExternalOutline16,label:o("BizWebCometOmniAiSettingsConsts").VIEW_MERCHAT_WEBSITE_LABEL,target:"_blank",tooltip:p}),t[6]=a,t[7]=p,t[8]=R):R=t[8];var L;t[9]!==S||t[10]!==R?(L=s.jsxs(r("GeoHStack.react"),{children:[S,R]}),t[9]=S,t[10]=R,t[11]=L):L=t[11];var E;t[12]!==b?(E=function(){return v(!b)},t[12]=b,t[13]=E):E=t[13];var k;t[14]!==b||t[15]!==E?(k=s.jsx(f,{isCollapsed:b,onToggle:E}),t[14]=b,t[15]=E,t[16]=k):k=t[16];var I;t[17]!==n||t[18]!==b||t[19]!==a||t[20]!==i||t[21]!==u?(I=!b&&s.jsx(h,{instanceID:n,isMobile:a,onUpdatePosition:i,positioningConfig:u}),t[17]=n,t[18]=b,t[19]=a,t[20]=i,t[21]=u,t[22]=I):I=t[22];var T;return t[23]!==L||t[24]!==k||t[25]!==I?(T=s.jsxs(s.Fragment,{children:[L,k,I]}),t[23]=L,t[24]=k,t[25]=I,t[26]=T):T=t[26],T}function h(e){var t=o("react-compiler-runtime").c(14),n=e.instanceID,a=e.isMobile,i=e.onUpdatePosition,l=e.positioningConfig,u=c(r("BizGenAIGatingContext")),d=u.isBetaBuild,m;t[0]!==n||t[1]!==a||t[2]!==i||t[3]!==l?(m=s.jsxs(r("GeoFlexbox.react"),{direction:"row",gap:16,children:[s.jsx(r("BizWebCometOmniAiSettingsHorizontalPaddingInput.react"),{instanceID:n,isMobile:a,onUpdatePosition:i,positioningConfig:l}),s.jsx(r("BizWebCometOmniAiSettingsVerticalPaddingInput.react"),{instanceID:n,isMobile:a,onUpdatePosition:i,positioningConfig:l})]}),t[0]=n,t[1]=a,t[2]=i,t[3]=l,t[4]=m):m=t[4];var p;t[5]!==n||t[6]!==d||t[7]!==a||t[8]!==i||t[9]!==l?(p=d?s.jsx(r("BizWebCometOmniAiSettingsZIndexPaddingInputV2.react"),{instanceID:n,isMobile:a,onUpdatePosition:i,positioningConfig:l}):s.jsx(r("BizWebCometOmniAiSettingsZIndexPaddingInput.react"),{instanceID:n,isMobile:a,onUpdatePosition:i,positioningConfig:l}),t[5]=n,t[6]=d,t[7]=a,t[8]=i,t[9]=l,t[10]=p):p=t[10];var _;return t[11]!==m||t[12]!==p?(_=s.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:16,children:[m,p]}),t[11]=m,t[12]=p,t[13]=_):_=t[13],_}function y(e){var t=o("react-compiler-runtime").c(21),n=e.desktopPositioningConfig,a=e.instanceID,i=e.mobilePositioningConfig,l=e.pageID,u=e.ref,c=e.shopUrl,d=r("useBizWebCometOmniAiSettingsUpdateInstanceMutation.react")(),m=d.onUpdateDesktopPosition,p=d.onUpdateMobilePosition,_;t[0]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(r("GeoTextPairing.react"),{description:o("BizWebCometOmniAiSettingsConsts").POSITION_DESCRIPTION,heading:o("BizWebCometOmniAiSettingsConsts").POSITION_HEADING,size:"header3"}),t[0]=_):_=t[0];var f;t[1]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(r("GeoBaseText.react"),{color:"valueLabel",size:"value",weight:"bold",children:o("BizWebCometOmniAiSettingsConsts").DESKTOP_POSITION_LABEL}),t[1]=f):f=t[1];var h;t[2]!==n||t[3]!==a||t[4]!==m||t[5]!==l||t[6]!==c?(h=s.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:4,children:[f,s.jsx(g,{instanceID:a,isMobile:!1,onUpdatePosition:m,pageID:l,positioningConfig:n,shopUrl:c})]}),t[2]=n,t[3]=a,t[4]=m,t[5]=l,t[6]=c,t[7]=h):h=t[7];var y;t[8]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(r("GeoBaseText.react"),{color:"valueLabel",size:"value",weight:"bold",children:o("BizWebCometOmniAiSettingsConsts").MOBILE_POSITION_LABEL}),t[8]=y):y=t[8];var C;t[9]!==a||t[10]!==i||t[11]!==p||t[12]!==l||t[13]!==c?(C=s.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:4,children:[y,s.jsx(g,{instanceID:a,isMobile:!0,onUpdatePosition:p,pageID:l,positioningConfig:i,shopUrl:c})]}),t[9]=a,t[10]=i,t[11]=p,t[12]=l,t[13]=c,t[14]=C):C=t[14];var b;t[15]!==h||t[16]!==C?(b=s.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:12,children:[h,C]}),t[15]=h,t[16]=C,t[17]=b):b=t[17];var v;return t[18]!==u||t[19]!==b?(v=s.jsxs(r("GeoVStack.react"),{containerRef:u,"data-testid":void 0,children:[_,b]}),t[18]=u,t[19]=b,t[20]=v):v=t[20],v}l.default=y}),98);
-----
BizWebCometOmniAiSettingsWelcomeMsgContainer.react",["BizWebCometOmniAiSettingsConsts","GeoTextArea.react","GeoTextPairing.react","GeoVStack.react","MessagingAIOnboardingFlowLoggingUtils","react","react-compiler-runtime","useBizKitBusinessID","useBizKitPageNullable","useBizWebCometOmniAiSettingsUpdateInstanceMutation.react","useDebouncedOnChange"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e,c=u.useCallback,d=u.useState,m=1e3;function p(e){var t=o("react-compiler-runtime").c(14),n=e.initWelcomeMsg,a=e.instanceID,i=r("useBizKitPageNullable")(),l=r("useBizKitBusinessID")(),u=d(n),c=u[0],p=u[1],_=r("useBizWebCometOmniAiSettingsUpdateInstanceMutation.react")(),f=_.onUpdateWelcomeMsg,g=d(!1),h=g[0],y=g[1],C;t[0]!==l||t[1]!==h||t[2]!==n||t[3]!==a||t[4]!==f||t[5]!==i?(C=function(t){o("MessagingAIOnboardingFlowLoggingUtils").logEvents("biz_ai_settings_update_welcome_message",i,l,null,null,{action:"user_update_welcome_message",hasChanged:h.toString(),initWelcomeMsg:n!=null?n:"",instanceID:a!=null?a:"",value:t!=null?t:""}),h!==!1&&t!==n&&f(a,t!=null?t:"")},t[0]=l,t[1]=h,t[2]=n,t[3]=a,t[4]=f,t[5]=i,t[6]=C):C=t[6];var b=C,v=r("useDebouncedOnChange")(n,b,m),S=v[1],R=v[2],L;t[7]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(r("GeoTextPairing.react"),{description:o("BizWebCometOmniAiSettingsConsts").WELCOME_MSG_DESCRIPTION,heading:o("BizWebCometOmniAiSettingsConsts").WELCOME_MSG_HEADING,size:"header4"}),t[7]=L):L=t[7];var E;t[8]!==S?(E=function(t){y(!0),p(t),S(t)},t[8]=S,t[9]=E):E=t[9];var k;return t[10]!==R||t[11]!==E||t[12]!==c?(k=s.jsxs(r("GeoVStack.react"),{"data-testid":void 0,children:[L,s.jsx(r("GeoTextArea.react"),{"data-testid":void 0,isLabelHidden:!0,label:"Label",maxLength:o("BizWebCometOmniAiSettingsConsts").WELCOME_MSG_MAX_LENGTH,onBlur:R,onChange:E,placeholder:o("BizWebCometOmniAiSettingsConsts").WELCOME_MSG_PLACEHOLDER,value:c})]}),t[10]=R,t[11]=E,t[12]=c,t[13]=k):k=t[13],k}l.default=p}),98);
-----
BizWebCometOmniAiSettingsBlockedUrlsContainer.react",["BizWebCometOmniAiSettingsConsts","BizWebCometOmniAiSettingsEditableList.react","GeoTextPairing.react","GeoVStack.react","react","react-compiler-runtime","useBizWebCometOmniAiSettingsUpdateInstanceMutation.react","useDebouncedComet"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e,c=u.useCallback,d=u.useEffect,m=u.useState;function p(e){var t=o("react-compiler-runtime").c(18),n=e.initBlockedUrls,a=e.instanceID,i=e.shopUrl,l;t[0]!==n?(l=[].concat(n),t[0]=n,t[1]=l):l=t[1];var u=m(l),c=u[0],p=u[1],f=m(!1),g=f[0],h=f[1],y=r("useBizWebCometOmniAiSettingsUpdateInstanceMutation.react")(),C=y.onUpdateBlockedUrls,b;t[2]!==c||t[3]!==g||t[4]!==n||t[5]!==a||t[6]!==C?(b=function(){if(g!==!1){var e=c.filter(_);JSON.stringify(n)!==JSON.stringify(e)&&C(a,e)}},t[2]=c,t[3]=g,t[4]=n,t[5]=a,t[6]=C,t[7]=b):b=t[7];var v=b,S;t[8]===Symbol.for("react.memo_cache_sentinel")?(S={wait:1e3},t[8]=S):S=t[8];var R=r("useDebouncedComet")(v,S),L;t[9]!==R?(L=function(){R()},t[9]=R,t[10]=L):L=t[10];var E;t[11]!==c||t[12]!==R?(E=[c,R],t[11]=c,t[12]=R,t[13]=E):E=t[13],d(L,E);var k;t[14]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(r("GeoTextPairing.react"),{description:o("BizWebCometOmniAiSettingsConsts").BLOCKED_URL_DESCRIPTION,heading:o("BizWebCometOmniAiSettingsConsts").BLOCKED_URL_HEADING,size:"header4"}),t[14]=k):k=t[14];var I;return t[15]!==c||t[16]!==i?(I=s.jsxs(r("GeoVStack.react"),{"data-testid":void 0,children:[k,s.jsx(r("BizWebCometOmniAiSettingsEditableList.react"),{addButtonLabel:o("BizWebCometOmniAiSettingsConsts").ADD_BLOCKED_URL_BUTTON_LABLE,listElements:c,placeholderLabel:o("BizWebCometOmniAiSettingsConsts").ADD_BLOCKED_URL_INPUT_PLACEHOLDER,setHasChanged:h,setListElements:p,shopUrl:i})]}),t[15]=c,t[16]=i,t[17]=I):I=t[17],I}function _(e){return e.trim()!==""}l.default=p}),98);
-----
BizWebCometOmniAiSettingsContactInfoContainer.react",["BizWebCometBizAiHandoffReplyMsgInputs.react","BizWebCometBizAiHandoffReplyMsgUtils","BizWebCometOmniAiSettingsConsts","GeoTextPairing.react","GeoVStack.react","MessagingAIOnboardingFlowLoggingUtils","react","react-compiler-runtime","useBizKitPageNullable","useBizWebCometOmniAiSettingsUpdateInstanceMutation.react","useDebouncedComet","useDebouncedOnChange"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e,c=u.useCallback,d=u.useEffect,m=u.useMemo,p=u.useState;function _(e){var t,n=o("react-compiler-runtime").c(35),a=e.initHandoffReplyMsg,i=e.instanceID,l=(t=r("useBizKitPageNullable")())!=null?t:"",u;n[0]!==a||n[1]!==i||n[2]!==l?(u=o("BizWebCometBizAiHandoffReplyMsgUtils").extractCustomerSupportInfo(a),o("MessagingAIOnboardingFlowLoggingUtils").logEvents("biz_ai_settings_process_handoff_reply_message",l,null,null,null,{action:"extract_contact_info",extractedChatLink:u.chatLink,extractedEmail:u.email,initHandoffReplyMsg:a,instanceID:i}),n[0]=a,n[1]=i,n[2]=l,n[3]=u):u=n[3];var c=u,m=c.chatLink,_=c.email,f=p(!1),g=f[0],h=f[1],y=p(_),C=y[0],b=y[1],v=r("useDebouncedOnChange")(C,b),S=v[0],R=v[1],L=v[2],E=p(m),k=E[0],I=E[1],T=r("useDebouncedOnChange")(k,I),D=T[0],x=T[1],$=T[2],P;n[4]!==D||n[5]!==S?(P=o("BizWebCometBizAiHandoffReplyMsgUtils").generateHandoffReplyMsg(S,D),n[4]=D,n[5]=S,n[6]=P):P=n[6];var N=P,M=r("useBizWebCometOmniAiSettingsUpdateInstanceMutation.react")(),w=M.onUpdateHandoffReplyMsg,A;n[7]!==N||n[8]!==g||n[9]!==a||n[10]!==i||n[11]!==w?(A=function(){g&&a!==N&&w(i,N,a)},n[7]=N,n[8]=g,n[9]=a,n[10]=i,n[11]=w,n[12]=A):A=n[12];var F=A,O;n[13]===Symbol.for("react.memo_cache_sentinel")?(O={wait:1e3},n[13]=O):O=n[13];var B=r("useDebouncedComet")(F,O),W;n[14]!==B?(W=function(){B()},n[14]=B,n[15]=W):W=n[15];var q;n[16]!==B||n[17]!==N?(q=[N,B],n[16]=B,n[17]=N,n[18]=q):q=n[18],d(W,q);var U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(r("GeoTextPairing.react"),{description:o("BizWebCometOmniAiSettingsConsts").SUPPORT_CONTACT_DESCRIPTION,heading:o("BizWebCometOmniAiSettingsConsts").SUPPORT_CONTACT_HEADING,size:"header4"}),n[19]=U):U=n[19];var V;n[20]!==$?(V=function(){$(),h(!0)},n[20]=$,n[21]=V):V=n[21];var H;n[22]!==L?(H=function(){L(),h(!0)},n[22]=L,n[23]=H):H=n[23];var G;n[24]!==x?(G=function(t){x(t),h(!0)},n[24]=x,n[25]=G):G=n[25];var z;n[26]!==R?(z=function(t){R(t),h(!0)},n[26]=R,n[27]=z):z=n[27];var j;return n[28]!==D||n[29]!==S||n[30]!==z||n[31]!==V||n[32]!==H||n[33]!==G?(j=s.jsxs(r("GeoVStack.react"),{"data-testid":void 0,children:[U,s.jsx(r("BizWebCometBizAiHandoffReplyMsgInputs.react"),{chatLink:D,email:S,onBlurForChatLink:V,onBlurForEmail:H,setChatLink:G,setEmail:z})]}),n[28]=D,n[29]=S,n[30]=z,n[31]=V,n[32]=H,n[33]=G,n[34]=j):j=n[34],j}l.default=_}),98);
-----
useBizWebCometOmniAiSettingsUpdateInstanceMutation.react",["BizWebCometOmniAiSettingsConsts","BizWebCometOmniAiSettingsUtils","MessagingAIOnboardingFlowLoggingUtils","RelayHooks","react-compiler-runtime","useBizKitPageNullable","useBizWebCometOmniAiCustomToast.react","useBizWebCometOmniAiSettingsUpdateInstanceMutation.graphql"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e!==void 0?e:e=n("useBizWebCometOmniAiSettingsUpdateInstanceMutation.graphql");function u(){var e,t=o("react-compiler-runtime").c(28),n=(e=r("useBizKitPageNullable")())!=null?e:"",a=r("useBizWebCometOmniAiCustomToast.react")(),i=a.addFailureToast,l=a.addSuccessToast,u=o("RelayHooks").useMutation(s),_=u[0],f=u[1],g;t[0]!==i||t[1]!==l||t[2]!==_||t[3]!==n?(g=function(t,r,a,s,u,c){_({onCompleted:function(){l(a),u&&u(),o("MessagingAIOnboardingFlowLoggingUtils").logEvents(s,n,null,null,null,babelHelpers.extends({instanceID:t,isMutation:"true",params:JSON.stringify(r)},c))},onError:function(t){i(t.message),u&&u(),o("MessagingAIOnboardingFlowLoggingUtils").logExceptions(s,n,null,null,null,t)},variables:{input:{ai_chat_plugin_instance_id:t,blocked_url_paths:r.blockedUrlPaths,custom_theme_colors:r.customThemeColors,desktop_positioning_config:r.desktopPositioningConfig,handoff_reply:r.handoffReply,in_thread_welcome_message:r.welcomeMsg,mobile_positioning_config:r.mobilePositioningConfig,theme_color:r.themeColor}}})},t[0]=i,t[1]=l,t[2]=_,t[3]=n,t[4]=g):g=t[4];var h=g,y;t[5]!==h?(y=function(t,n){h(t,{welcomeMsg:n},o("BizWebCometOmniAiSettingsConsts").CHANGE_WELCOME_MSG_TOAST_SUCCEED_MSG,"biz_ai_settings_update_welcome_message")},t[5]=h,t[6]=y):y=t[6];var C=y,b;t[7]!==h?(b=function(t,n){h(t,{blockedUrlPaths:n},o("BizWebCometOmniAiSettingsConsts").CHANGE_BLOCKED_URLS_TOAST_SUCCEED_MSG,"biz_ai_settings_update_blocked_webpages")},t[7]=h,t[8]=b):b=t[8];var v=b,S;t[9]!==h?(S=function(t,n){h(t,{themeColor:o("BizWebCometOmniAiSettingsUtils").convertHexCodeToEntFieldValue(n)},o("BizWebCometOmniAiSettingsConsts").CHANGE_COLOR_TOAST_SUCCEED_MSG,"biz_ai_settings_update_color")},t[9]=h,t[10]=S):S=t[10];var R=S,L;t[11]!==h?(L=function(t,n,r,a){var e=r.map(p);h(t,{customThemeColors:e,themeColor:o("BizWebCometOmniAiSettingsUtils").convertHexCodeToEntFieldValue(n)},o("BizWebCometOmniAiSettingsConsts").SAVE_CUSTOM_COLOR_TOAST_SUCCEED_MSG,"biz_ai_settings_add_custom_color",a)},t[11]=h,t[12]=L):L=t[12];var E=L,k;t[13]!==h?(k=function(t,n,r){h(t,{handoffReply:n},o("BizWebCometOmniAiSettingsConsts").CHANGE_HANDOFF_REPLY_TOAST_SUCCEED_MSG,"biz_ai_settings_update_handoff_reply_message",m,{initValue:r})},t[13]=h,t[14]=k):k=t[14];var I=k,T;t[15]!==h?(T=function(t,n,r){h(t,{desktopPositioningConfig:babelHelpers.extends({},n,{positioning_source:"BUSINESS"})},o("BizWebCometOmniAiSettingsConsts").CHANGE_DESKTOP_POSITION_TOAST_SUCCEED_MSG,"biz_ai_settings_update_desktop_position",d,{initValue:JSON.stringify(r)})},t[15]=h,t[16]=T):T=t[16];var D=T,x;t[17]!==h?(x=function(t,n,r){h(t,{mobilePositioningConfig:babelHelpers.extends({},n,{positioning_source:"BUSINESS"})},o("BizWebCometOmniAiSettingsConsts").CHANGE_MOBILE_POSITION_TOAST_SUCCEED_MSG,"biz_ai_settings_update_mobile_position",c,{initValue:JSON.stringify(r)})},t[17]=h,t[18]=x):x=t[18];var $=x,P;return t[19]!==f||t[20]!==E||t[21]!==v||t[22]!==D||t[23]!==I||t[24]!==$||t[25]!==R||t[26]!==C?(P={isMutationInFlight:f,onSaveCustomColor:E,onUpdateBlockedUrls:v,onUpdateDesktopPosition:D,onUpdateHandoffReplyMsg:I,onUpdateMobilePosition:$,onUpdateThemeColor:R,onUpdateWelcomeMsg:C},t[19]=f,t[20]=E,t[21]=v,t[22]=D,t[23]=I,t[24]=$,t[25]=R,t[26]=C,t[27]=P):P=t[27],P}function c(){}function d(){}function m(){}function p(e){return o("BizWebCometOmniAiSettingsUtils").convertHexCodeToEntFieldValue(e)}l.default=u}),98);
-----
useBizWebCometOmniAiSettingsUpdateInstanceMutation.graphql",["useBizWebCometOmniAiSettingsUpdateInstanceMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{kind:"Variable",name:"data",variableName:"input"}],r={alias:null,args:null,kind:"ScalarField",name:"base_alignment",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"vertical_offset_pixels",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"horizontal_offset_pixels",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"z_index",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"prioritize_plugin_z",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"useBizWebCometOmniAiSettingsUpdateInstanceMutation",selections:[{alias:null,args:t,concreteType:"XFBUpdateAiChatPluginInstanceResponsePayload",kind:"LinkedField",name:"xfb_update_ai_chat_plugin_instance",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBAIChatPluginInstance",kind:"LinkedField",name:"ai_chat_plugin_instance",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BizWebCometOmniAiSettingsBrandIdentityFragment"},{args:null,kind:"FragmentSpread",name:"BizWebCometOmniAiSettingsCustomerSupportFragment"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"useBizWebCometOmniAiSettingsUpdateInstanceMutation",selections:[{alias:null,args:t,concreteType:"XFBUpdateAiChatPluginInstanceResponsePayload",kind:"LinkedField",name:"xfb_update_ai_chat_plugin_instance",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBAIChatPluginInstance",kind:"LinkedField",name:"ai_chat_plugin_instance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"theme_color",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"custom_theme_colors",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"agent_profile_picture_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"in_thread_welcome_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"blocked_url_paths",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"allow_list_domains",storageKey:null},{alias:null,args:null,concreteType:"XFBBizAIWebAgentPositioningConfigType",kind:"LinkedField",name:"desktop_positioning_config",plural:!1,selections:[r,o,a,i,l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"chat_enabled",storageKey:null},{alias:null,args:null,concreteType:"XFBBizAIWebAgentPositioningConfigType",kind:"LinkedField",name:"mobile_positioning_config",plural:!1,selections:[r,a,o,i,l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"handoff_reply",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:n("useBizWebCometOmniAiSettingsUpdateInstanceMutation_facebookRelayOperation"),metadata:{},name:"useBizWebCometOmniAiSettingsUpdateInstanceMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
useBizWebCometOmniAiSettingsUpdateInstanceMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="25447396764928033"}),null);
-----