1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9c2d5754-e5ea-4cbc-95ce-4590fe926840",e._sentryDebugIdIdentifier="sentry-dbid-9c2d5754-e5ea-4cbc-95ce-4590fe926840")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8409],{64300:function(e,n,t){t.d(n,{r:function(){return a}});var i=t(92552),r=t(30813),o=t(67179);let s=(0,i.z)(r.Kq,{width:44,height:28,padding:2,borderRadius:20,cursor:"pointer",variants:{checked:{true:{backgroundColor:"$switchBackgroundChecked"},false:{backgroundColor:"$switchBackground"}}},defaultVariants:{checked:!1}}),d=(0,i.z)(r.Kq,{width:24,height:24,backgroundColor:"$switchThumbBackground",borderRadius:20,animation:"instantly"}),a=(0,o.r)({Frame:s,Thumb:d})},56473:function(e,n,t){t.d(n,{C:function(){return i}});let i=async()=>{}},41285:function(e,n,t){t.d(n,{H:function(){return s}});var i=t(52322),r=t(18137),o=t(11811);let s=e=>{let{onPress:n}=e,{t}=(0,r.$)("common");return(0,i.jsx)(o.z,{m:0,p:1,variant:"cancel",onPress:n,fontSize:16,children:t("cancel")})}},46043:function(e,n,t){t.d(n,{i:function(){return l}});var i=t(52322),r=t(18137),o=t(11811),s=t(87494),d=t(69807);let a=e=>{let{onPress:n,editMode:t,onSubmit:i}=e;return{pressHandler:async e=>{null==n||n(e),t===d.Gt.EDITING&&await (null==i?void 0:i())}}},l=e=>{let{t:n}=(0,r.$)("common"),{onPress:t,editMode:l=d.Gt.VIEWING,saveTitle:u=n("save"),onSubmit:c,size:p,color:x,disabled:f,isLoading:v}=e,{pressHandler:h}=a({editMode:l,onPress:t,onSubmit:c}),m=l===d.Gt.EDITING?u:n("edit"),g=v?(0,i.jsx)(s.$,{}):m;return(0,i.jsx)(o.z,{px:2,disabled:f||v,disabledStyle:{opacity:.5},variant:l===d.Gt.EDITING?"link":"cancel",size:p,onPress:h,fontSize:16,minWidth:50,...x?{color:x}:null,children:g})}},85380:function(e,n,t){t.d(n,{_:function(){return g}});var i=t(52322),r=t(76988),o=t(37288),s=t(22490),d=t(41198),a=t(69876),l=t(18137),u=t(25826),c=t(45623),p=t(64300),x=t(2784),f=t(31872),v=t(86828);let h=e=>{var n;let{type:t}=e,i=(0,c.M)(),{getExtension:r}=(0,u.M)({interactorId:i,type:t}),{editExtension:o}=(0,f.m)(),{getInteractor:s}=(0,v.S)({id:i}),d=null===(n=r.data)||void 0===n?void 0:n.extension,l=(null==d?void 0:d.status)===a.w8.Enabled,[p,h]=(0,x.useState)(l);return(0,x.useEffect)(()=>{h(l)},[l]),{checkedChangeHandler:async e=>{h(e);try{await o.request({input:{interactorId:i,type:t,status:e?a.w8.Enabled:a.w8.Disabled}}),r.refetch(),s.refetch()}catch(n){h(!e)}},isChecked:p,pressHandler:e=>e.stopPropagation()}},m=e=>{let{type:n}=e,{checkedChangeHandler:t,isChecked:r,pressHandler:o}=h({type:n});return(0,i.jsx)(p.r,{unstyled:"false",checked:r,onCheckedChange:t,onPress:o,children:(0,i.jsx)(p.r.Thumb,{})})},g=e=>{var n,t;let{type:p,Switcher:x=m,isEnabled:f,...v}=e,h=(0,s.$)(f),g=(0,c.M)(),{t:y}=(0,l.$)("extension"),{getExtension:b}=(0,u.M)({interactorId:g,type:p,shouldSkip:h}),I=(null===(t=b.data)||void 0===t?void 0:null===(n=t.extension)||void 0===n?void 0:n.status)===a.w8.Enabled,j=h?f:I;return(0,i.jsx)(r.Zb,{f:1,backgroundColor:"$cardBackgroundMuted",...v,children:(0,i.jsxs)(o.sL,{p:16,gap:12,f:1,ai:"center",children:[(0,i.jsx)(d.x,{f:1,fontWeight:"bold",color:j?void 0:"$red10",children:y(j?"enable_module.module_enabled":"enable_module.module_disabled")}),(0,i.jsx)(x,{type:p})]})})}},19928:function(e,n,t){t.d(n,{Q:function(){return I}});var i=t(52322),r=t(30813),o=t(24883),s=t(54017),d=t(41011),a=t(4700),l=t(81643),u=t(69807),c=t(46768),p=t(41285),x=t(46043),f=t(85380),v=t(92591),h=t(16821),m=t(2784),g=t(56473),y=t(36728);let b=e=>{let{action:n,customRouteBackHandler:t}=e,[i,r]=(0,m.useState)(!1),o=(0,y.c)(),s=null!=t?t:o.back,d="function"!=typeof n,a=d?g.C:n;return{isSaving:i,isCustomActionNode:d,action:d?n:void 0,cancel:()=>s(),mobileViewActionHandler:async()=>{r(!0),await a(),r(!1),s()},desktopViewActionHandler:async()=>{await a()}}},I=e=>{let{children:n,isLoading:t,title:m,description:g,extensionType:y,isActionDisabled:I,createdAt:j,lastUpdatedTime:w,showEnableSwitcher:k}=e,{backAction:G,backActionVariant:E}=e,{action:T,isSaving:A,isCustomActionNode:D,cancel:_,mobileViewActionHandler:S,desktopViewActionHandler:C}=b(e),$="cancel"===E?(0,i.jsx)(p.H,{onPress:_}):(0,i.jsx)(o.X,{});G&&($=G);let z=D?T:(0,i.jsx)(d.h,{hidden:(0,i.jsx)(x.i,{onPress:S,editMode:u.Gt.EDITING,isLoading:A}),visible:(0,i.jsx)(x.i,{onPress:C,editMode:u.Gt.EDITING,disabled:I})});return(0,i.jsx)(r.G7,{h:"100%",children:(0,i.jsxs)(c.r,{title:m,body:g,action:z,backAction:(0,i.jsx)(a.W,{shouldPreserveSpace:!0,children:$}),children:[(0,i.jsx)(s._,{isHidden:!t,children:(0,i.jsx)(v.p,{})}),(0,i.jsxs)(s._,{isHidden:t,children:[n,(0,i.jsx)(s._,{isHidden:!k,children:(0,i.jsx)(f._,{type:y,mt:l.I})}),(0,i.jsx)(s._,{isHidden:!j||!w,children:(0,i.jsx)(h.q,{lastUpdatedTime:w,createdAt:j})})]})]})})}},92591:function(e,n,t){t.d(n,{p:function(){return l}});var i=t(52322),r=t(2784),o=t(37288),s=t(30813),d=t(56778),a=t(53966);let l=()=>{let[e,n]=(0,r.useState)(!1);return((0,d.L)(()=>n(!0),500),e)?(0,i.jsx)(o.FA,{gap:16,children:(0,i.jsx)(s.G7,{padding:16,paddingHorizontal:16,bg:"$cardBackgroun
1d",borderWidth:0,borderRadius:8,children:(0,i.jsxs)(o.FA,{gap:6,children:[(0,i.jsx)(a.P,{w:"15%",h:25,bg:"$backgroundPlaceholder"}),(0,i.jsx)(a.P,{w:"40%",bg:"$backgroundPlaceholder"})]})})}):null}},3884:function(e,n,t){t.d(n,{M:function(){return a}});var i=t(52322),r=t(30813),o=t(92552),s=t(41198);let d=(0,o.z)(s.x,{color:"$textMuted",fontSize:14}),a=e=>{let{text:n,rightElement:t,textProps:o,...s}=e;return(0,i.jsxs)(r.G7,{fd:"row",jc:"space-between",ai:"center",ml:10,...s,children:[(0,i.jsx)(d,{textTransform:"uppercase",...o,children:n}),t]})}},16821:function(e,n,t){t.d(n,{q:function(){return u}});var i=t(52322),r=t(2784),o=t(30813),s=t(18137),d=t(54017),a=t(41198),l=t(83522);let u=e=>{let{lastUpdatedTime:n,createdAt:t}=e,[u,c]=(0,r.useState)(!0),{convertDateToLabel:p}=(0,l.X)(),x=new Date(null!=n?n:0),f=new Date(null!=t?t:0),v=p(x),{t:h}=(0,s.$)("common");return(0,r.useEffect)(()=>{n&&c(f.getTime()===x.getTime())},[n,t]),(0,i.jsx)(o.G7,{jc:"center",ai:"center",w:"100%",my:10,children:(0,i.jsx)(d._,{isHidden:!n||u,children:(0,i.jsxs)(a.x,{opacity:.6,color:"$textMutedContrast",fontSize:14,children:[h("updated")," ",v]})})})}},81643:function(e,n,t){t.d(n,{I:function(){return i}});let i=35},31872:function(e,n,t){t.d(n,{m:function(){return x}});var i=t(47298),r=t(25906);let o="temp item id",s="temp content",d="temp status",a="temp is included",l=[{id:o,title:"temporary",content:"temporary",createdAt:"temporary",order:"temporary",extensionId:"temporary",updatedAt:"temporary",shortDescription:"temporary",medias:[{title:"temporary",id:"temporary",shortDescription:"temporary",url:"temporary"}]}];var u=t(96495);let{createEditExtensionMutation:c}=(0,t(94241).e)("mutation","editExtension"),p=c({extension:{id:!0,content:!0,status:!0,isIncludedToGreeting:!0,shouldExcludeCoverImageFromAssociatedImages:!0,extensionItems:{id:!0,title:!0,content:!0,shortDescription:!0,order:!0,updatedAt:!0,medias:{id:!0,shortDescription:!0,url:!0}}}}),x=()=>(0,i.u)("editExtension",p,{update:(e,n,t)=>{let{data:i}=n,{variables:l}=t;if(!i)return;let c={input:{interactorId:null==l?void 0:l.input.interactorId,type:null==l?void 0:l.input.type}},p=e.readQuery({query:u.Q,variables:c});if(p){var x,f,v,h,m,g,y,b,I,j;let n=i.response.extension.content!==s?i.response.extension.content:null===(x=p.response.extension)||void 0===x?void 0:x.content,t=i.response.extension.status!==d?i.response.extension.status:null===(f=p.response.extension)||void 0===f?void 0:f.status,w=i.response.extension.isIncludedToGreeting!==a?i.response.extension.isIncludedToGreeting:null===(v=p.response.extension)||void 0===v?void 0:v.isIncludedToGreeting,k=(null===(h=p.response.extension)||void 0===h?void 0:h.extensionItems)?null===(m=p.response.extension)||void 0===m?void 0:m.extensionItems:[],G=(null==i?void 0:null===(y=i.response)||void 0===y?void 0:null===(g=y.extension)||void 0===g?void 0:g.extensionItems)&&(null==i?void 0:null===(j=i.response)||void 0===j?void 0:null===(I=j.extension)||void 0===I?void 0:null===(b=I.extensionItems[0])||void 0===b?void 0:b.id)===o?k:i.response.extension.extensionItems;e.writeQuery({query:u.Q,variables:c,data:{response:{...p.response,extension:{...p.response.extension,content:n,status:t,isIncludedToGreeting:w,extensionItems:G}}}}),(null==l?void 0:l.input.interactorId)&&(null==l?void 0:l.input.type)&&(0,r.I)({cache:e,input:{interactorId:null==l?void 0:l.input.interactorId,limit:0},type:l.input.type})}},optimisticResponse:e=>{var n,t,i,r;let{input:o}=e;return{response:{extension:{id:"temp id",isIncludedToGreeting:null!==(n=o.isIncludedToGreeting)&&void 0!==n?n:a,status:null!==(t=o.status)&&void 0!==t?t:d,content:null!==(i=o.content)&&void 0!==i?i:s,extensionItems:l,shouldExcludeCoverImageFromAssociatedImages:null!==(r=o.shouldExcludeCoverImageFromAssociatedImages)&&void 0!==r&&r,__typename:"ExtensionObject"}}}}})},25826:function(e,n,t){t.d(n,{M:function(){return s}});var i=t(74609),r=t(96495);let o=(0,i.g)(r.B,r.Q),s=e=>{let{shouldSkip:n,...t}=e;return o({variables:{input:t},skip:n,fetchPolicy:"cache-and-network"})}},96495:function(e,n,t){t.d(n,{B:function(){return o},Q:function(){return r}});let{createExtensionQuery:i}=(0,t(94241).e)("query","extension"),r=i({extension:{id:!0,content:!0,instructions:!0,interactorId:!0,type:!0,status:!0,isIncludedToGreeting:!0,isFulfilled:!0,shouldExcludeCoverImageFromAssociatedImages:!0,isSecondaryActionEnabled:!0,updatedAt:!0,createdAt:!0,extensionItems:{id:!0,title:!0,content:!0,shortDescription:!0,order:!0,updatedAt:!0,medias:{id:!0,shortDescription:!0,url:!0,order:!0}}}}),o="extension"},25906:function(e,n,t){t.d(n,{I:function(){return r}});var i=t(78885);let r=e=>{let{cache:n,input:t,type:r}=e;n.updateQuery({query:i.Q,variables:{input:t}},e=>(null==e?void 0:e.response.edges)?{response:{...e.response,edges:e.response.edges.map(e=>
1e.node.type===r?{...e,node:{...e.node,updatedAt:new Date().toISOString()}}:e)}}:e)}},8458:function(e,n,t){t.d(n,{S:function(){return s}});var i=t(74609),r=t(93991);let o=(0,i.g)(r.B,r.$),s=e=>{let{pollIntervalOnWsDisconnected:n,shouldSkip:t,...i}=e;return o({variables:{input:i},fetchPolicy:"cache-and-network",pollIntervalOnWsDisconnected:n,skip:t})}},86828:function(e,n,t){t.d(n,{S:function(){return i.S}});var i=t(8458)},93991:function(e,n,t){t.d(n,{$:function(){return i},B:function(){return r}});let i=(0,t(75966).T)({interactor:{id:!0,reference:!0,name:!0,avatarUrl:!0,headerImageUrl:!0,isAvatarResized:!0,generatedSeoDescription:!0,anonymousVisitMode:!0,initializingGreetedAt:!0,initializingGreetingType:!0,isClaimed:!0,ownInteractor:!0,state:!0,createdAt:!0,theme:!0,shortDescription:!0,menu:{id:!0,title:!0,prompt:!0,order:!0}}}),r="interactor"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.