PageSourceSearch

https://kiku.listen.org/1580.6c12bdab3d4a9f2b.bundle.js

js listen.org collected 2026-09-24 20:15:53 UTC 6,547 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkclient"]=self["webpackChunkclient"]||[]).push([[1580],{38621:function(e,t,i){i.d(t,{A:function(){return $}});var a=i(20641),s=i(90033);const n={class:"item-view-page"},o={key:0,class:"item-view-page-desktop"},l={class:"header-left"},r={class:"icon is-small"},c={class:"is-hidden-touch"},d={class:"header-center"},h={key:0,class:"item-view-page-title"},u={class:"header-right"},m={class:"header-actions-group"},p={class:"item-view-page-body"},k={key:1,class:"item-view-page-mobile"},f={class:"item-view-page-mobile-body"};function g(e,t,i,g,v,b){const w=(0,a.g2)("font-awesome-icon"),C=(0,a.g2)("MobileViewHeader");return(0,a.uX)(),(0,a.CE)("div",n,[e.$isMobile()?((0,a.uX)(),(0,a.CE)("div",k,[(0,a.bF)(C,{title:i.title,"is-item-view-page":!0,"show-back-button":null!==i.showBackButton?i.showBackButton:!!i.backRoute,"back-route":i.backRoute,"emit-only":!0,onBack:b.handleBack},{actions:(0,a.k6)(()=>[(0,a.RG)(e.$slots,"actions",{},void 0,!0)]),dropdown:(0,a.k6)(()=>[(0,a.RG)(e.$slots,"dropdown",{},void 0,!0)]),_:3},8,["title","show-back-button","back-route","onBack"]),(0,a.Lk)("div",f,[(0,a.RG)(e.$slots,"default",{},void 0,!0)])])):((0,a.uX)(),(0,a.CE)("div",o,[i.showHeader?((0,a.uX)(),(0,a.CE)("div",{key:0,class:(0,s.C4)(["item-view-page-header",{"is-sticky":i.stickyHeader,"has-divider":i.dividerBelowHeader}])},[(0,a.Lk)("div",l,[i.backRoute?((0,a.uX)(),(0,a.CE)("button",{key:0,class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=(...e)=>b.handleBack&&b.handleBack(...e))},[(0,a.Lk)("span",r,[(0,a.bF)(w,{icon:"fa-light fa-arrow-left"})]),(0,a.Lk)("span",c,(0,s.v_)(e.$t("Back")),1)])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",d,[i.title?((0,a.uX)(),(0,a.CE)("h2",h,[(0,a.RG)(e.$slots,"title",{},()=>[(0,a.eW)((0,s.v_)(i.title),1)],!0)])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",u,[(0,a.Lk)("div",m,[(0,a.RG)(e.$slots,"actions",{},void 0,!0)])])],2)):(0,a.Q3)("",!0),(0,a.Lk)("div",p,[(0,a.RG)(e.$slots,"default",{},void 0,!0)])]))])}i(44114);var v=i(81084),b={name:"ItemViewPage",components:{MobileViewHeader:v.A},props:{title:{type:String,default:""},backRoute:{type:[String,Object],default:null},showHeader:{type:Boolean,default:!1},showBackButton:{type:Boolean,default:null},stickyHeader:{type:Boolean,default:!1},dividerBelowHeader:{type:Boolean,default:!1}},emits:["back"],methods:{handleBack(){window.history.length>1?this.$router.go(-1):this.backRoute&&this.$router.push(this.backRoute),this.$emit("back")}}},w=i(66262);const C=(0,w.A)(b,[["render",g],["__scopeId","data-v-590cea4e"]]);var $=C},41580:function(e,t,i){i.r(t),i.d(t,{default:function(){return y}});var a=i(20641),s=i(90033);const n={class:"button is-small is-light is-rounded"},o={class:"icon is-small"},l={class:"icon-text"},r={class:"icon is-small"},c={class:"icon-text"},d={class:"icon is-small"},h={class:"icon-text"},u={class:"icon is-small"},m={class:"icon-text"},p={class:"icon is-small"};function k(e,t,i,k,f,g){const v=(0,a.g2)("font-awesome-icon"),b=(0,a.g2)("b-dropdown-item"),w=(0,a.g2)("b-dropdown"),C=(0,a.g2)("ShowContent"),$=(0,a.g2)("ItemViewPage");return(0,a.uX)(),(0,a.Wv)($,{title:f.item?f.item.name:"","back-route":{name:"ContactList"}},{actions:(0,a.k6)(()=>[(0,a.bF)(w,{"aria-role":"list",position:"is-bottom-left","append-to-body":""},{trigger:(0,a.k6)(()=>[(0,a.Lk)("button",n,[(0,a.Lk)("span",o,[(0,a.bF)(v,{icon:"fa-light fa-ellipsis-vertical"})])])]),default:(0,a.k6)(()=>[g.canSendEmail?((0,a.uX)(),(0,a.Wv)(b,{key:0,"aria-role":"listitem",onClick:g.triggerSendEmail},{default:(0,a.k6)(()=>[(0,a.Lk)("span",l,[(0,a.Lk)("span",r,[(0,a.bF)(v,{icon:"fa-light fa-envelope"})]),(0,a.Lk)("span",null,(0,s.v_)(e.$t("Send an email")),1)])]),_:1},8,["onClick"])):(0,a.Q3)("",!0),f.item?((0,a.uX)(),(0,a.Wv)(b,{key:1,"aria-role":"listitem",onClick:g.triggerCreateUserAccount},{default:(0,a.k6)(()=>[(0,a.Lk)("span",c,[(0,a.Lk)("span",d,[(0,a.bF)(v,{icon:"fa-light fa-user-plus"})]),(0,a.Lk)("span",null,(0,s.v_)(e.$t("Create user account")),1)])]),_:1},8,["onClick"])):(0,a.Q3)("",!0),f.item&&f.item.stripeCustomerId?((0,a.uX)(),(0,a.Wv)(b,{key:2,"aria-role":"listitem",onClick:g.triggerOpenStripe},{default:(0,a.k6)(()=>[(0,a.Lk)("span",h,[(0,a.Lk)("span",u,[(0,a.bF)(v,{icon:"fa-light fa-arrow-up-right"})]),(0,a.Lk)("span",null,(0,s.v_)(e.$t("Open in Stripe")),1)])]),_:1},8,["onClick"])):(0,a.Q3)("",!0),f.item?((0,a.uX)(),(0,a.Wv)(b,{key:3,"aria-role":"listitem",onClick:g.confirmDelete},{default:(0,a.k6)(()=>[(0,a.Lk)("span",m,[(0,a.Lk)("span",p,[(0,a.bF)(v,{icon:"fa-light fa-trash"})]),(0,a.Lk)("span",null,(0,s.v_)(e.$t("Delete contact")),1)])]),_:1},8,["onClick"])):(0,a.Q3)("",!0)]),_:1})]),default:(0,a.k6)(()=>[f.itemId?((0,a.uX)(),(0,a.Wv)(C,{key:0,ref:"showContent","contact-id":f.itemId,"inline-edit-actions":!0,onRefresh:g.handleRefresh,onDeleted:g.handleDeleted,onUserCreated:g.handleUserCreated,onOpenStripe:g.handleOpenStripe},null,8,["contact-id","onRefresh","onDeleted","onUserCreated","onOpenStripe"])):(0,a.Q3)("",!0)]),_:1},8,["title"])}i(44114);var f=i(38621),g=i(52959),v=i(72554),b=i(40834),w={components:{ItemViewPage:f.A,ShowContent:g["default"]},data(){return{itemId:this.$route.params.item,item:null}},computed:{...(0,b.L8)(["tenant","isGranted"]),canSendEmail(){return(0,v.y)(this.item,this.isGranted)}},watch:{"$route.params.item":{immediate:!0,handler(e){this.itemId=e,e&&this.loadItem()}}},methods:{loadItem(){this.$http.plain.get("/contacts/"+this.itemId).then(e=>{this.item=e.data}).catch(e=>{console.error(e)})},handleRefresh(){this.loadItem()},handleDeleted(){this.$router.push({name:"ContactList"})},handleUserCreated(e){this.$router.push({name:"UserShow",params:{item:e}})},handleOpenStripe(e){window.open(`https://dashboard.stripe.com/${this.tenant.stripeAccount}/customers/${e}`,"_blank")},triggerSendEmail(){const e=this.$refs.showContent;
1e&&e.openSendEmail&&e.openSendEmail()},triggerCreateUserAccount(){const e=this.$refs.showContent;e&&e.createUserAccount&&e.createUserAccount()},triggerOpenStripe(){const e=this.$refs.showContent;e&&e.openStripeCustomer&&e.openStripeCustomer()},confirmDelete(){this.item&&this.$buefy.dialog.confirm({title:this.$t("deleting"),message:this.$t("confirmDelete")+" "+this.item.name+"? "+this.$t("confirmDeleteLast"),confirmText:this.$t("delete"),type:"is-danger",onConfirm:()=>this.delete()})},delete(){this.$http.plain.delete("/contacts/"+this.itemId).then(()=>{this.$buefy.toast.open(this.$t("deleted")),this.$router.push({name:"ContactList"})}).catch(e=>{console.error(e)})}}},C=i(66262);const $=(0,C.A)(w,[["render",k]]);var y=$}}]);

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.