PageSourceSearch

https://influencing.com/app/365.e300d5c2.js

js influencing.com collected 2026-09-24 23:39:16 UTC 6,267 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f38dd5f3-929a-41c7-9da9-df79813af088",e._sentryDebugIdIdentifier="sentry-dbid-f38dd5f3-929a-41c7-9da9-df79813af088")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"prod"};(self.webpackChunknew_influencing=self.webpackChunknew_influencing||[]).push([[365],{81174:function(){},82746:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return H}});var s=n(20641),i=n(50953),l=n(90033),o=n(91931),a=n(32158),d=n(60994),u=n(67485),r=n(56141),c=n(76074),m=n(21827),p=n(81660),f=n(74589),R=n(82389),v=n(9372),b=n(66127),h=n(40575),y=n(40393),g=n(32383),A=n(98981),k=n(25994),T=n(13050),w=n(32511),E=n(42049),C=n(24384),U=n(89727),_=n(59271),x=n(50675),I=n(75220),V=n(82124),L=n(12664);const P={class:"statement-post-modal-edit"},S={class:"d-flex jc-space-between p-16 b-top"},W={class:"d-flex ai-center jc-end gap-8"};var j=(0,s.pM)({__name:"StatementModalEdit",props:{post:{}},emits:["submit","changeType","close"],setup(e,{emit:t}){const j=t,F=e,Y=(0,V.Pj)(),D=(0,I.lq)(),M=(0,h.E4)((()=>Promise.all([n.e(8950),n.e(5865),n.e(7892),n.e(8096),n.e(8242),n.e(4653)]).then(n.bind(n,64653)))),O=(0,i.KR)(),X=(0,s.EW)((()=>(0,i.R1)(Y.state.currentUser.communities).filter((e=>e.isJoined)))),q=(0,s.EW)((()=>(0,i.R1)((0,i.R1)(O)?.characters)||0)),[N,Q]=(0,_.eY)(!1),{meta:J,errors:K,validate:$,data:{text:z,communities:B,userTypes:G,video:H,url:Z}}=(0,A.o)((0,L.Ik)({text:(0,L.Yj)().label("Post text").test("characters length",(()=>"The number of characters exceeds the allowed limit by "+((0,i.R1)(q)-b.Ae)),(()=>(0,i.R1)(q)<=b.Ae)),communities:(0,L.YO)().min(1),userTypes:(0,L.YO)().min(1),video:(0,L.Ik)().required(),url:(0,L.Yj)().label("URL").required().matches(g._t,{message:"URL must be valid",excludeEmptyString:!0})}),{initialParams:{text:F.post?.content??"",communities:F.post?.communityIds??function(){if(D.name==U.K.COMMUNITY.name&&D.params.slug)return(0,i.R1)(X).filter((e=>e.slug==D.params.slug)).map((e=>e.id));return(0,i.R1)(X).map((e=>e.id))}(),userTypes:F.post?.userTypes??C.rV.map((e=>e.value)),video:F?.post?.video??void 0,url:F?.post?.url??""}}),{saveAsOptions:ee,activeAuthor:te,saveAs:ne,isLoadingAuthor:se,isSwitchDisabled:ie,disableReason:le,saveAsForApi:oe,onSaveAsChanged:ae}=(0,d.I)(F.post);function de(e){(0,i.R1)(B).includes(e.id)?1!==(0,i.R1)(B).length&&(B.value=(0,i.R1)(B).filter((t=>t!=e.id))):B.value=[...(0,i.R1)(B),e.id]}function ue(e){(0,i.R1)(G).includes(e.value)?1!==(0,i.R1)(G).length&&(G.value=(0,i.R1)(G).filter((t=>t!=e.value))):G.value=[...(0,i.R1)(G),e.value]}function re(e){H.value=e?(0,x.bj)(k.k,{url:e}):void 0}async function ce(){Q(!0);const{valid:e}=await $();if(!e)return Promise.reject();let t=(0,i.R1)(Z);if(t)try{t=(0,g.R6)(t)}catch(e){return console.error(e),void(0,v.l)("error","Url is not valid")}const n=(0,x.bj)(E.m,{id:F.post?.id,content:(0,g.a6)("<p>&nbsp;</p>",(0,i.R1)(z)),video:(0,i.R1)(H),communityIds:(0,i.R1)(B),userTypes:(0,i.R1)(G),saveAs:(0,i.R1)(oe),url:t}),s=n.id?o.o.update:o.o.create;await s(n).then((e=>{return t=e,(0,v.l)("success",`Post has been successfully ${F.post?"updated":"published"} in ${(0,i.R1)(B).length}`+(1===(0,i.R1)(B).length?" Community":" Communities")),j("submit",t),void j("close");var t})).catch((e=>(0,y.dk)(e))).finally((()=>Q(!1)))}return(e,t)=>{const n=(0,s.g2)("IBtn");return(0,s.uX)(),(0,s.CE)("div",P,[(0,s.bF)(u.A,{activeAuthor:(0,i.R1)(te),activeCommunities:(0,i.R1)(B),activeUserTypes:(0,i.R1)(G),author:e.post?.author,communities:X.value,isLoadingAuthor:(0,i.R1)(se),text:(0,i.R1)(z),onChangeActiveCommunities:de,onChangeActiveUserTypes:ue},null,8,["activeAuthor","activeCommunities","activeUserTypes","author","communities","isLoadingAuthor","text"]),e.post?(0,s.Q3)("",!0):((0,s.uX)(),(0,s.Wv)(r.A,{key:0,labelText:"Record the statement to supp
1ort your opinion and position concerning vital issues.",type:(0,i.R1)(w.pJ).STATEMENT,onChange:t[0]||(t[0]=e=>j("changeType",e))},null,8,["type"])),(0,s.bF)((0,i.R1)(M),{ref_key:"contentEditorRef",ref:O,modelValue:(0,i.R1)(z),"onUpdate:modelValue":t[1]||(t[1]=e=>(0,i.i9)(z)?z.value=e:null),class:"modal-content-editor",name:"modal-content-editor",placeholder:"Write an update",limit:(0,i.R1)(b.Ae)},{default:(0,s.k6)((()=>[(0,i.R1)(K).text&&(0,i.R1)(z)?((0,s.uX)(),(0,s.Wv)(R.A,{key:0,error:(0,i.R1)(K).text},null,8,["error"])):(0,s.Q3)("",!0)])),_:1},8,["modelValue","limit"]),e.post&&e.post?.video?.status!=(0,i.R1)(T.O).PROCESSED?((0,s.uX)(),(0,s.Wv)(a.A,{key:2,class:"statement-post-modal-edit-video-stub"})):((0,s.uX)(),(0,s.Wv)(c.A,{key:1,class:"m-16",src:(0,i.R1)(H)?.url,"onUpdate:src":re},null,8,["src"])),(0,s.bF)(p.A,{class:"p-16",label:"URL this reaction will link to:"},{default:(0,s.k6)((()=>[(0,s.bF)(R.A,{error:(0,i.R1)(K).url},{default:(0,s.k6)((()=>[(0,s.bF)(m.A,{modelValue:(0,i.R1)(Z),"onUpdate:modelValue":t[2]||(t[2]=e=>(0,i.i9)(Z)?Z.value=e:null),placeholder:"https://"},null,8,["modelValue"])])),_:1},8,["error"])])),_:1}),(0,s.Lk)("div",S,[t[4]||(t[4]=(0,s.Lk)("div",null,null,-1)),(0,s.Lk)("div",W,[(0,i.R1)(Y).getters["currentUser/isPlatformAdmin"]?((0,s.uX)(),(0,s.Wv)(f.A,{key:0,disableReason:(0,i.R1)(le),disabled:(0,i.R1)(ie),modelValue:(0,i.R1)(ne),options:(0,i.R1)(ee),"onUpdate:modelValue":(0,i.R1)(ae)},null,8,["disableReason","disabled","modelValue","options","onUpdate:modelValue"])):(0,s.Q3)("",!0),(0,s.bF)(n,{size:"medium",disabled:!(0,i.R1)(J).valid,loading:(0,i.R1)(N),title:(0,i.R1)(J).valid?"":"Check for errors",onClick:ce,onMouseover:t[3]||(t[3]=e=>(0,i.R1)($)())},{default:(0,s.k6)((()=>[(0,s.eW)((0,l.v_)(e.post?"Update":"Publish"),1)])),_:1},8,["disabled","loading","title"])])])])}}}),F=n(85072),Y=n.n(F),D=n(97825),M=n.n(D),O=n(77659),X=n.n(O),q=n(55056),N=n.n(q),Q=n(10540),J=n.n(Q),K=n(41113),$=n.n(K),z=n(81174),B=n.n(z),G={};G.styleTagTransform=$(),G.setAttributes=N(),G.insert=X().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=J();Y()(B(),G),B()&&B().locals&&B().locals;var H=j}}]);

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.