PageSourceSearch

https://www.tallite.com/ats/3026.c3018b35df4c5bc5.js

js tallite.com collected 2026-10-08 11:02:46 UTC 14,275 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkTallite_Frontend=self.webpackChunkTallite_Frontend||[]).push([[3026],{53026:(Y,g,l)=>{l.r(g),l.d(g,{SocialMediaManagerModule:()=>B});var p=l(36895),h=l(8988),u=l(73555),n=l(24006),m=l(51267),f=l(62299),t=l(94650),L=l(34403),b=l(65412),C=l(78667),_=l(42466),Z=l(56709),M=l(59549),A=l(44144),T=l(72649),S=l(70079),k=l(11875),v=l(54397);function y(o,r){if(1&o){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.deleteBulk())}),t._UZ(1,"i",30),t._uU(2),t.ALo(3,"translate"),t.qZA()}2&o&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"Bulk delete")," "))}function N(o,r){1&o&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ERROR.field_is_mandatory")," "))}function q(o,r){if(1&o&&(t.TgZ(0,"mat-error"),t.YNc(1,N,3,3,"ng-container",12),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.socialMediaForm.controls.title.hasError("required"))}}function F(o,r){1&o&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ERROR.field_is_mandatory")," "))}function U(o,r){if(1&o&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"ERROR.min_value_1")," ",e.socialMediaForm.controls.seqNo.errors.min.min," ")}}function I(o,r){if(1&o&&(t.TgZ(0,"mat-error"),t.YNc(1,F,3,3,"ng-container",12),t.YNc(2,U,3,4,"ng-container",12),t.qZA()),2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.socialMediaForm.controls.seqNo.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.socialMediaForm.controls.seqNo.errors&&e.socialMediaForm.controls.seqNo.errors.min)}}function J(o,r){1&o&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ERROR.field_is_mandatory")," "))}function O(o,r){if(1&o&&(t.TgZ(0,"mat-error"),t.YNc(1,J,3,3,"ng-container",12),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.socialMediaForm.controls.postURL.hasError("required"))}}const x=function(){return{standalone:!0}};function D(o,r){if(1&o){const e=t.EpF();t.TgZ(0,"tr",31)(1,"td",8)(2,"mat-checkbox",9),t.NdJ("ngModelChange",function(a){const c=t.CHM(e).$implicit;return t.KtG(c.isChecked=a)})("change",function(a){const c=t.CHM(e).index,d=t.oxw();return t.KtG(d.checkboxEvent(a,c))}),t.qZA()(),t.TgZ(3,"td",32),t._uU(4),t.qZA(),t.TgZ(5,"td",33),t._uU(6),t.qZA(),t.TgZ(7,"td",34)(8,"div",35),t.ALo(9,"DynamicPipe"),t.TgZ(10,"div",36),t._uU(11),t.ALo(12,"DynamicPipe"),t.qZA()()(),t.TgZ(13,"td",32)(14,"a",37),t._uU(15),t.qZA()(),t.TgZ(16,"td",38),t.NdJ("click",function(){const a=t.CHM(e),s=a.index,c=a.$implicit,d=t.oxw();return t.KtG(d.changeStatus(s,c.status))}),t.TgZ(17,"span",39),t._uU(18),t.qZA()(),t.TgZ(19,"td",40)(20,"button",29),t.NdJ("click",function(){const a=t.CHM(e),s=a.index,c=a.$implicit,d=t.oxw();return t.KtG(d.editSocialMedia(s,c))}),t._UZ(21,"i",41),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.TgZ(24,"button",29),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw();return t.KtG(c.deleteSocialMedia(s))}),t._UZ(25,"i",30),t._uU(26),t.ALo(27,"translate"),t.qZA()()()}if(2&o){const e=r.$implicit,i=t.oxw();t.xp6(2),t.Q6J("ngModel",e.isChecked)("ngModelOptions",t.DdM(27,x)),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Oqu(e.seqNo),t.xp6(2),t.Q6J("title",t.gM2(9,13,e.socialMediaType,i.masters,"code","title")),t.xp6(3),t.hij(" ",t.gM2(12,18,e.socialMediaType,i.masters,"code","title")," "),t.xp6(3),t.Q6J("href",e.postURL,t.LSH)("title",e.postURL),t.xp6(1),t.hij(" ",e.postURL," "),t.xp6(2),t.Q6J("title",e.postURL),t.xp6(1),t.Oqu(1===e.status?"Active":"Inactive"),t.xp6(4),t.hij(" ",t.lcZ(23,23,"BTN.edit")," "),t.xp6(4),t.hij(" ",t.lcZ(27,25,"BTN.delete")," ")}}const R=function(){return[]},w=[{path:"",children:[{path:"",component:(()=>{class o{constructor(e,i,a,s,c){this.httpFetch=e,this.dialog=i,this.activated_route=a,this.notification=s,this.translate=c,this.socialMediaList=[],this.deletedArrayList=[],this.masters=[],this.isbulkDelete=!1,this.socialMediaForm=new n.nJ({title:new n.p4(null,n.kI.required),socialMediaType:new n.p4(null,n.kI.required),postURL:new n.p4(null,n.kI.required),seqNo:new n.p4(1),status:new n.p4(1),code:new n.p4(0)}),this.multiSelect=!1}ngOnInit(){this.loadData()}loadData(){this.httpFetch.post("get_social_media_post_configuration",{code:0,status:1},null,"server").subscribe(e=>{e&&e.data&&(console.log(e),this.masters=e.data.socialmediaMaster,console.log(this.masters),e.data.list&&e.data.list.length&&(this.socialMediaList=e.data.list.map(i=>({...i,isChecked:!1})),console.log(this.socialMediaList),this.socialMediaList=(0,m.yc)(this.socialMediaList,"seqNo")))})}onsubmit(){if(this.socialMediaList.length){const e=this.socialMediaList.map(({isChecked:a,...s})=>s);console.log(e),console.log(this.deletedArrayList);const i={socialMediaList:e,deletedArray:this.deletedArrayList};console.log("Request Payload:",i),this.httpFetch.post("save_social_media_post_configuration",i,null,"server").subscribe(a=>{a&&a.data?(this.notification.success(a.message,"close",5e3),this.loadData(),this.socialMediaForm.reset(),this.socialMediaForm.controls.status.setValue(1),this.socialMediaList=[],this.deletedArrayList=[],this.isbulkDelete=!1,this.multiSelect=!1):this.notification.error(a.message,"close",5e3),console.log(a)})}else 0==this.socialMediaList.length&&this.notification.error("Please add atleast one Social Media parameter to proceed","Close",5e3)}addSocialMedia(){if(this.socialMediaForm.valid){const e={...this.socialMediaForm.value,isChecked:!1},i=e.title?.trim().toLowerCase();if(this.socialMediaList&&this.socialMediaList.length&&this.socialMediaList.find(s=>
1s.title?.trim().toLowerCase()===i))return void this.notification.error("Title already exists. Please use a different title.","Close",5e3);if(e.seqNo=+e.seqNo,this.socialMediaList&&this.socialMediaList.length){const a=this.socialMediaList.findIndex(s=>+s.seqNo===e.seqNo);if(-1!==a){this.socialMediaList.splice(a,0,e);for(let s=a+1;s<this.socialMediaList.length;s++)this.socialMediaList[s].seqNo+=1}else{const s=this.socialMediaList.findIndex(c=>+c.seqNo>e.seqNo);if(-1===s)this.socialMediaList.push(e);else{this.socialMediaList.splice(s,0,e);for(let c=s+1;c<this.socialMediaList.length;c++)this.socialMediaList[c].seqNo+=1}}}else this.socialMediaList=[e];console.log("Updated List:",this.socialMediaList),this.socialMediaForm.reset(),this.socialMediaForm.controls.status.setValue(1)}else this.socialMediaForm.invalid&&((0,m.c2)(this.socialMediaForm),(0,m.Bd)(this.socialMediaForm,this.translate,this.notification,"SOCIAL_MEDIA_MANAGER."))}editSocialMedia(e,i){this.socialMediaForm.reset(),this.socialMediaForm.patchValue(i),this.socialMediaList.splice(e,1)}deleteSocialMedia(e){this.dialog.open(f.S,{width:"30%",height:"auto",data:{title:"CONFIRMATION.confirmation",message:"CONFIRMATION.are_you_sure_to_delete"}}).afterClosed().subscribe(i=>{i&&(this.deletedArrayList.push(this.socialMediaList[e].code),console.log(this.socialMediaList[e].code),console.log(this.deletedArrayList),this.socialMediaList.splice(e,1))})}drop(e){(0,u.bA)(this.socialMediaList,e.previousIndex,e.currentIndex),this.socialMediaList=this.setSequence(this.socialMediaList,"seqNo"),this.socialMediaList=(0,m.yc)(this.socialMediaList,"seqNo"),console.log(this.socialMediaList)}setSequence(e,i){return e.forEach((a,s)=>{a[i]=s+1}),e}bulkCheckbox(e){e.checked?(this.multiSelect=!0,this.isbulkDelete=!0,this.socialMediaList.forEach(i=>{i.isChecked=!0}),console.log(this.socialMediaList)):(this.multiSelect=!1,this.isbulkDelete=!1,this.socialMediaList.forEach(i=>{i.isChecked=!1}),console.log(this.socialMediaList))}checkboxEvent(e,i){this.socialMediaList[i].isChecked=e.checked;const a=this.socialMediaList.filter(s=>s.isChecked).length;this.isbulkDelete=a>=2,this.multiSelect=a===this.socialMediaList.length,console.log("Checked count:",a),console.log("isBulkDelete:",this.isbulkDelete),console.log(this.socialMediaList)}deleteBulk(){this.dialog.open(f.S,{width:"30%",height:"auto",data:{title:"CONFIRMATION.confirmation",message:"CONFIRMATION.are_you_sure_to_delete"}}).afterClosed().subscribe(e=>{e&&(this.socialMediaList=this.socialMediaList.filter(i=>!i.isChecked||(this.deletedArrayList.push(i.code),!1)),console.log("Deleted item codes:",this.deletedArrayList),console.log("Updated List:",this.socialMediaList))})}changeStatus(e,i){this.socialMediaList[e].status=i=1===i?0:1,console.log(this.socialMediaList)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(L.n),t.Y36(b.uw),t.Y36(h.gz),t.Y36(C.g),t.Y36(_.sK))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-social-media-manager"]],decls:61,vars:48,consts:[[2,"min-height","calc(100vh - 84px) !important","display","flex","flex-direction","column"],[1,"form-heading","d-flex","justify-content-between","align-items-center","px-3","py-1"],[1,"text-left","mb-0"],["class","btn btn-sm btn-default mx-1",3,"click",4,"ngIf"],[1,"page-body"],[1,"form-group","tm-data-table"],[3,"formGroup"],[1,"table","table-striped","table-bordered","table-hover"],[1,"col-195","text-center",2,"vertical-align","middle"],[2,"font-size","12.5px",3,"ngModel","ngModelOptions","ngModelChange","change"],["floatLabel","always"],["matInput","","formControlName","title",3,"placeholder"],[4,"ngIf"],["matInput","","type","number","formControlName","seqNo","min","1",3,"placeholder"],[1,"col-90","text-center",2,"vertical-align","middle"],["form_control","socialMediaType","title_property","title","id_property","code","float_label","always",3,"options","form_group","label","data","placeholder","label_overflow","mandatory"],["matInput","","formControlName","postURL",3,"placeholder"],[3,"form_group","form_control","label","data"],[1,"btn","btn-sm","js-btn-save","mx-1",3,"click"],[1,"fa","fa-plus-square"],["cdkDropList","",1,"overflow-auto",3,"cdkDropListData","cdkDropListDropped"],["cdkDrag","",4,"ngFor","ngForOf"],[1,"form-footer",2,"position","sticky","bottom","0","background","#fff","padding","0.5rem 1rem","z-index","10"],[1,"row","m-0"],[1,"col-md-12","text-right"],["type","submit",1,"blob-btn","btn","btn-sm","mr-1","tallite-action",2,"min-width","100px",3,"click"],[1,"blob-btn__inner"],[1,"blob-btn__blobs"],[1,"blob-btn__blob"],[1,"btn","btn-sm","btn-default","mx-1",3,"click"],[1,"fa","fa-tras
1h","trash"],["cdkDrag",""],[1,"col-90"],[1,"col-90","text-right"],[1,"col-195"],[1,"with-fb",3,"title"],[1,"text"],["target","_blank",1,"text-primary","text-decoration-underline","d-inline-block","text-truncate",2,"max-width","200px",3,"href","title"],[1,"col-90",3,"click"],[1,"text-primary","text-decoration-underline",2,"cursor","pointer",3,"title"],[1,"col-195","text-center"],[1,"fa","fa-pencil","hgs-icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),t._uU(3),t.qZA(),t.YNc(4,y,4,3,"button",3),t.qZA(),t.TgZ(5,"div",4)(6,"div",5)(7,"form",6)(8,"table",7)(9,"tr")(10,"td",8)(11,"mat-checkbox",9),t.NdJ("ngModelChange",function(s){return i.multiSelect=s})("change",function(s){return i.bulkCheckbox(s)}),t.qZA()(),t.TgZ(12,"td",8)(13,"mat-form-field",10)(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",11),t.ALo(18,"translate"),t.YNc(19,q,2,1,"mat-error",12),t.qZA()(),t.TgZ(20,"td",8)(21,"mat-form-field",10)(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._UZ(25,"input",13),t.ALo(26,"translate"),t.YNc(27,I,3,2,"mat-error",12),t.qZA()(),t.TgZ(28,"td",14),t._UZ(29,"tm-select",15),t.ALo(30,"translate"),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"td",14)(33,"mat-form-field",10)(34,"mat-label"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._UZ(37,"input",16),t.ALo(38,"translate"),t.YNc(39,O,2,1,"mat-error",12),t.qZA()(),t.TgZ(40,"td",14),t._UZ(41,"tm-toggle",17),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"td",8)(44,"button",18),t.NdJ("click",function(){return i.addSocialMedia()}),t._UZ(45,"i",19),t._uU(46," Add "),t.qZA()()(),t.TgZ(47,"tbody",20),t.NdJ("cdkDropListDropped",function(s){return i.drop(s)}),t.YNc(48,D,28,28,"tr",21),t.qZA()()()()(),t.TgZ(49,"div",22)(50,"div",23)(51,"div",24)(52,"button",25),t.NdJ("click",function(){return i.onsubmit()}),t.TgZ(53,"span"),t._uU(54),t.qZA(),t.TgZ(55,"span",26)(56,"span",27),t._UZ(57,"span",28)(58,"span",28)(59,"span",28)(60,"span",28),t.qZA()()()()()()()),2&e&&(t.xp6(3),t.hij(" ","Social Media Manager"," "),t.xp6(1),t.Q6J("ngIf",i.isbulkDelete),t.xp6(3),t.Q6J("formGroup",i.socialMediaForm),t.xp6(4),t.Q6J("ngModel",i.multiSelect)("ngModelOptions",t.DdM(46,x)),t.xp6(4),t.Oqu(t.lcZ(16,28,"Title")),t.xp6(2),t.s9C("placeholder",t.lcZ(18,30,"Enter title")),t.xp6(2),t.Q6J("ngIf",i.socialMediaForm.controls.title.errors),t.xp6(4),t.Oqu(t.lcZ(24,32,"Sequence Number")),t.xp6(2),t.s9C("placeholder",t.lcZ(26,34,"Enter Sequence")),t.xp6(2),t.Q6J("ngIf",i.socialMediaForm.controls.seqNo.errors),t.xp6(2),t.Q6J("options",i.masters||t.DdM(47,R))("form_group",i.socialMediaForm)("label",t.lcZ(30,36,"Social media type"))("data",i.socialMediaForm.value.socialMediaType)("placeholder",t.lcZ(31,38,"<- - select - ->"))("label_overflow",1)("mandatory",1),t.xp6(6),t.Oqu(t.lcZ(36,40,"Post URL")),t.xp6(2),t.s9C("placeholder",t.lcZ(38,42,"Enter URL")),t.xp6(2),t.Q6J("ngIf",i.socialMediaForm.controls.postURL.errors),t.xp6(2),t.Q6J("form_group",i.socialMediaForm)("form_control","status")("label",t.lcZ(42,44,"Status"))("data",i.socialMediaForm.value.status),t.xp6(6),t.Q6J("cdkDropListData",i.socialMediaList),t.xp6(1),t.Q6J("ngForOf",i.socialMediaList),t.xp6(6),t.hij(" ","Submit"," "))},dependencies:[p.sg,p.O5,n._Y,n.Fj,n.wV,n.JJ,n.JL,n.qQ,n.sg,n.u,u.Wj,u.Zt,Z.oG,M.TO,M.KE,M.hX,A.Nt,n.On,T.V,S.E,k.t,v.BQ,_.X$],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{display:table;width:100%;background-color:#fff;box-shadow:0 5px 10px #0003;border:1px solid #ddd;border-radius:4px;padding:5px 0;margin:0}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s ease}.page-body[_ngcontent-%COMP%]{height:calc(100vh - 180px);overflow-y:auto;margin-bottom:0}"]}),o})(),pathMatch:"full"}]}];let Q=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[h.Bz.forChild(w),h.Bz]}),o})();var E=l(21881),j=l(63806);let B=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[p.ez,Q,n.UX,j.h,E.m8]}),o})()}}]);

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.