PageSourceSearch

https://www.goafricaonline.com/legacy/assets/CompanyMenu-CW6tTX2K.js

js goafricaonline.com collected 2026-09-24 09:59:45 UTC 6,091 bytes, 2 lines download raw bytes

1import{n as A,v as D,c as G,e as T,d as V}from"./index-D6d4kZkX.js";import{g as R,b as z,e as H,t as J}from"./ContainerContext-BavehaTw.js";import{S as K,i as Q,d as l,a as W,b as C,p as h,t as _,c as w,q as b,g as I,r as $,h as y}from"./index-BVmDeBsl.js";import{c as q}from"./cx-C6c7kUCj.js";import{B,M as E}from"./ButtonMenu-C0dUvSf2.js";import{c as U}from"./Modal-DbrsQD6j.js";import{M as L,c as j,p as g}from"./ModalGoafricaContact-Bw7QCDJa.js";import{u as d}from"./ParticipantRef-BX-dYjX4.js";import"./spread-CgU5AtxT.js";import"./Spinner-oAC9Iisp.js";import"./transition-3SI18fX_.js";import"./SvelteApollo-D3OG7ev6.js";import"./isArrayLike-Bcy-_sts.js";import"./shared-Bp9SGWxR.js";import"./index-jHtbw_iu.js";import"./create-DhHzJOlc.js";import"./CalendarDate-iNjl934J.js";import"./index-CJu818Os.js";import"./create-Ur6gLvRH.js";import"./typeahead-DbcXf7cO.js";import"./pointer-CNUJI4f1.js";import"./create-C1Z9ocpj.js";import"./create-CnK43xuh.js";import"./StackZIndex-CV2feX4o.js";import"./logo-DLbKnZrF.js";import"./logo-CGvrh_Ll.js";import"./Picture-hqimcuPS.js";import"./FormErrors-CUzrYaJ6.js";import"./zod-generated-CNpaoo-C.js";import"./BBCode-BdNtNRDM.js";import"./MediaImage-D5IK8F4s.js";import"./fragment-masking-CMs6SO9L.js";import"./SearchHeaderFormData-Zih4tp88.js";import"./_createSet-BC01BMsk.js";import"./HtmlForm-BuPa8gRm.js";import"./SubmitButton-B5Mig_uk.js";import"./pipe-DolA5Ihc.js";import"./temporizePromise-BPnl2Y8V.js";import"./email-CvYYxvUp.js";import"./required-BkSB_lRc.js";import"./isBetween-CmybpuoX.js";import"./Input-C5jzUxxu.js";import"./Textarea-DJKW9jRk.js";import"./resizeObserver-CjI-ufp5.js";import"./Select-DO2x_WwQ.js";import"./globals-D0QH3NT1.js";import"./constructFrom-rJN6zrQ_.js";const X="src/lib/components/CompanyMenu/CompanyMenu.svelte";function P(e){let t;const r={c:function(){t=H("i"),y(t,"slot","button"),y(t,"class","fa fa-ellipsis-v"),y(t,"aria-hidden",!0),V(t,X,67,4,1632)},m:function(i,c){I(i,t,c)},p:T,d:function(i){i&&C(t)}};return l("SvelteRegisterBlock",{block:r,id:P.name,type:"slot",source:"(59:4) ",ctx:e}),r}function N(e){let t;const r={c:function(){t=J("Signaler la société")},m:function(i,c){I(i,t,c)},d:function(i){i&&C(t)}};return l("SvelteRegisterBlock",{block:r,id:N.name,type:"slot",source:'(62:8) <MenuLink icon=\\"fa fa-exclamation-triangle mr-3\\" key=\\"edit\\">',ctx:e}),r}function F(e){let t,r;t=new E({props:{icon:"fa fa-exclamation-triangle mr-3",key:"edit",$$slots:{default:[N]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){$(t.$$.fragment)},m:function(c,a){b(t,c,a),r=!0},p:function(c,a){const n={};a&1024&&(n.$$scope={dirty:a,ctx:c}),t.$set(n)},i:function(c){r||(w(t.$$.fragment,c),r=!0)},o:function(c){_(t.$$.fragment,c),r=!1},d:function(c){h(t,c)}};return l("SvelteRegisterBlock",{block:o,id:F.name,type:"slot",source:'(61:4) <svelte:fragment slot=\\"menu\\">',ctx:e}),o}function v(e){let t,r,o,i;t=new B({props:{class:q("w-full h-full text-14 bg-white hover:bg-gray-100 px-12"),ariaLabel:"Autres actions",actions:e[4],$$slots:{menu:[F],button:[P]},$$scope:{ctx:e}},$$inline:!0}),o=new L({props:{form:e[5],fields:e[6],modal:e[3],prefixId:`${d(`goafrica-contact-${e[0]}`)}`,currentUser:e[1],messageLabel:"Raison du signalement",modalTitle:"Signaler une société",withCompanyNameRequired:!1,withPhoneRequired:!1,onSuccess:e[7]},$$inline:!0});const c={c:function(){$(t.$$.fragment),r=z(),$(o.$$.fragment)},l:function(n){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(n,m){b(t,n,m),I(n,r,m),b(o,n,m),i=!0},p:function(n,[m]){const u={};m&1024&&(u.$$scope={dirty:m,ctx:n}),t.$set(u);const p={};m&1&&(p.prefixId=`${d(`goafrica-contact-${n[0]}`)}`),m&2&&(p.currentUser=n[1]),o.$set(p)},i:function(n){i||(w(t.$$.fragment,n),w(o.$$.fragment,n),i=!0)},o:function(n){_(t.$$.fragment,n),_(o.$$.fragment,n),i=!1},d:function(n){n&&C(r),h(t,n),h(o,n)}};return l("SvelteRegisterBlock",{block:c,id:v.name,type:"component",source:"",ctx:e}),c}function Y(e,t,r){let o,{$$slots:i={},$$scope:c}=t;W("CompanyMenu",i,[]);let{companyId:a}=t;const{currentUserStore:n}=R();let m=n().currentUser();D(m,"currentUser"),G(e,m,s=>r(1,o=s));const u=U({});let p={edit:{type:"async",action:async()=>(u.states.open.set(!0),{type:"success"})}};const[f,M]=j(`${d(`goafrica-contact-${a}`)}`,{subject:"report_company",to:"administration",relatedCompanyId:a,...g(o)},{withCompanyNameRequired:!1,withPhoneRequired:!1,withSubject:!1});function k(s){s!=null&&f.dispatch(S=>f.actions().changeValues({...S.values,...g(s)},[])(S))}e.$$.on_mount.push(function(){a===void 0&&!("companyId"in t||e.$$.bound[e.$$.props.companyId])&&console.warn("<CompanyMenu> was created without expected prop 'companyId'")});const O=["companyId"];Object.keys(t).forEach(s=>{!~O.indexOf(s)&&s.slice(0,2)!=="$$"&&s!=="slot"&&console.warn(`<CompanyMenu> was created with unknown prop '${s}'`)});const x=()=>{u.states.open.set(!1)};return e.$$set=s=>{"companyId"in s&&r(0,a=s.companyId)},e.$capture_state=()=>({cx:q,MenuLink:E,ButtonMenu:B,createModal:U,ModalGoafricaContact:L,createForm:j,partialFromCurrentUser:g,uniqueId:d,getContainer:R,companyId:a,currentUserStore:n,currentUser:m,modal:u,actions:p,form:f,fields:M,syncCurrentUser:k,$currentUser:o}),e.$inject_state=s=>{"companyId"in s&&r(0,a=s.companyId),"currentUser"in s&&r(2,m=s.currentUser),"actions"in s&&r(4,p=s.actions)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{e.$$.dirty&2&&k(o)},[a,o,m,u,p,f,M,x]}class Ht extends K{constructor(t){super(t),Q(this,t,Y,v,A,{companyId:0}),l("SvelteRegisterComponent",{component:this,tagName:"CompanyMenu",options:t,id:v.name})}get companyId(){throw new Error("<CompanyMenu>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set companyId(t){throw new Error("<CompanyMenu>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}export{Ht as default};
2//# sourceMappingURL=CompanyMenu-CW6tTX2K.js.map

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.