PageSourceSearch

https://behkhaan.ir/chunk-5WFVT7O4.js

js behkhaan.ir collected 2026-10-02 20:10:34 UTC 37,001 bytes, 5 lines download raw bytes

1
2!function(){try{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]="70542d22-ab0b-5fc0-b84a-b8ad9873eec4")}catch(e){}}();
3import{a as Lt}from"./chunk-WKL46VK7.js";import{d as de}from"./chunk-TGBHVULN.js";import{a as ce}from"./chunk-UT4YQEY7.js";import{a as Pt}from"./chunk-TFXLTXOY.js";import{b as le}from"./chunk-WD62MO6E.js";import{a as At,b as Dt}from"./chunk-CB7EUAPR.js";import{a as Nt}from"./chunk-OR5YWNWT.js";import"./chunk-5UI2PGKH.js";import{a as Mt}from"./chunk-QEBIPDQJ.js";import{a as Vt}from"./chunk-OJEPEFC3.js";import{c as It}from"./chunk-YY2RRGAR.js";import"./chunk-FPQZ56PN.js";import{a as ht,b as _t}from"./chunk-IUVJ2V4L.js";import{a as Tt}from"./chunk-6STJCLY3.js";import"./chunk-2GWIPHCY.js";import{a as ue}from"./chunk-5U2LHHID.js";import{d as Z}from"./chunk-EEUGU5BE.js";import"./chunk-TTP26DWK.js";import{a as qt}from"./chunk-Q36GM543.js";import{a as Rt}from"./chunk-S4GODLZY.js";import"./chunk-UVFLYTQL.js";import{f as Et}from"./chunk-36J4VNYX.js";import"./chunk-5KW5LLEO.js";import{a as Bt}from"./chunk-6LR6GEL3.js";import{a as Qt}from"./chunk-KIP2LOP4.js";import{a as vt}from"./chunk-VURTDJFK.js";import{a as ie}from"./chunk-36FOKMIU.js";import{a as kt}from"./chunk-QAHDJRZN.js";import"./chunk-XI6AL42F.js";import"./chunk-Q7W3KTVA.js";import"./chunk-R6PLWBMX.js";import"./chunk-MULDP6DY.js";import"./chunk-GLRT253R.js";import{a as wt}from"./chunk-RGU4C5LD.js";import"./chunk-LXVW4ISU.js";import{a as gt}from"./chunk-TBICCHSJ.js";import"./chunk-KBQMZSAB.js";import"./chunk-ZQ3UACEX.js";import"./chunk-ZV4HIMXA.js";import"./chunk-R62SIVBY.js";import"./chunk-25BL5HKZ.js";import{b as xt,d as yt}from"./chunk-4FC5T6ZK.js";import{b as St}from"./chunk-E57IMVFK.js";import"./chunk-Y4ZE2WQQ.js";import{d as Ft}from"./chunk-ZPSQYJWN.js";import{a as bt,b as Ct}from"./chunk-KAAT6SRE.js";import"./chunk-THBDF75G.js";import"./chunk-RJ2UG3RJ.js";import"./chunk-AB3LHRRD.js";import"./chunk-CI2HCF2F.js";import{a as lt,h as te}from"./chunk-GXYF7J3H.js";import{c as tt,e as q,h as it,i as ot,j as rt,l as A,n as nt,p as at,q as st,t as ut}from"./chunk-JHTWTYPN.js";import{a as se}from"./chunk-J72HKFXQ.js";import{a as ft}from"./chunk-B3Z3NAS4.js";import{m as Xe}from"./chunk-TGFFJGSM.js";import{b as L,e as et,g as pt}from"./chunk-FPZ453VA.js";import{d as He}from"./chunk-EL6WFV23.js";import{b as dt,c as W}from"./chunk-JSRFQSGR.js";import"./chunk-3EP7OHNH.js";import"./chunk-LWW7BOTF.js";import{g as Ye}from"./chunk-ERBHIP22.js";import"./chunk-LHPA4E6N.js";import{a as R}from"./chunk-3Y7FMX6W.js";import{a as Oe,ka as ct,ra as mt}from"./chunk-BBW6WW7Z.js";import{b as Ke}from"./chunk-WLEWPZ6N.js";import{p as We,s as Ze,w as Je}from"./chunk-OFQRR3BE.js";import{a as $e,i as je,r as ze}from"./chunk-NWCZTZ2F.js";import{i as ee,l as Ue}from"./chunk-3BAKG5RY.js";import{Aa as w,Bc as g,Fc as Me,Gc as Ae,Hc as De,Lc as z,M as Re,Nb as Y,Pc as k,Rb as Ve,Rc as H,Sb as F,Sc as Ne,T as G,Xc as oe,Yc as re,Zc as ne,bd as M,cd as P,da as N,dd as ae,ec as Q,ed as Pe,f as qe,fa as v,gc as V,hc as O,jc as $,kc as j,lc as l,ld as Le,mc as c,md as Ge,nc as p,ob as U,oc as _,p as D,rd as K,sc as T,tb as s,tc as B,ua as x,vc as E,yb as Qe,za as S,zc as I}from"./chunk-5U7LGHIW.js";import"./chunk-ALSDDZFP.js";import{j as r}from"./chunk-EKFLB6J2.js";var J=class{constructor(){r(this,"body");r(this,"bookId");r(this,"pageNum");r(this,"mediaId");r(this,"mediaRatio");r(this,"mediaExtension");r(this,"backgroundId");r(this,"isSilent",!1)}};var $t=t=>[t];function jt(t,a){t&1&&_(0,"img",2)}function zt(t,a){t&1&&_(0,"div",18)(1,"span",19)}function Ht(t,a){if(t&1){let i=E();c(0,"div",16),I("click",function(){let e=S(i).$implicit,o=g();return w(o.selectBackground(e))}),_(1,"img",17),Q(2,zt,2,0),p()}if(t&2){let i=a.$implicit,u=a.$index,e=g();s(),l("src",i.src,U)("ngClass",P(3,$t,i.id===e.selectedBg.id?"border-[1.7px] border-green-500":"border-[1.7px] border-gray-200 dark:border-gray-700")),s(),V(u>0&&!e.isProUser?2:-1)}}var Gt=(()=>{let a=class a{constructor(){r(this,"form");r(this,"backgroundSelected",new Qe);r(this,"isProUser",!1);r(this,"subscriptionHandlerService",x(wt));r(this,"cookieService",x($e));r(this,"imageType",W);
3r(this,"quoteBackgroundIds",qt);r(this,"backgrounds",[]);r(this,"selectedBg")}ngOnInit(){this.buildBackgrounds(),this.selectedBg=this.backgrounds[0],this.initializeBg()}buildBackgrounds(){let u=this.cookieService.get(je)==="dark";this.backgrounds=[{id:"",src:u?"https://storage.behkhaan.ir/assets/images/default/default_quote_dark.svg":"https://storage.behkhaan.ir/assets/images/default/default_quote.svg"}],this.backgrounds.push(...this.quoteBackgroundIds.map(e=>({id:e,src:this.getQuoteBackgroundUrl(e)})))}initializeBg(){var e,o;let u=(o=(e=this.form)==null?void 0:e.get("backgroundId"))==null?void 0:o.value;if(u){let n=this.backgrounds.find(d=>d.id===u);n?this.selectedBg=n:this.selectedBg=this.backgrounds[0]}else this.selectedBg=this.backgrounds[0]}selectBackground(u){let e=u.id==="";this.isProUser||e?(this.backgroundSelected.emit(u.id),this.selectedBg=u):this.openProIntroDialog().subscribe()}openProIntroDialog(){return this.subscriptionHandlerService.preProcessProFeature()}getQuoteBackgroundUrl(u){return"".concat(Oe.ImageUrl,"/quotebackgrounds/").concat(u,".jpg")}};r(a,"\u0275fac",function(e){return new(e||a)}),r(a,"\u0275cmp",Y({type:a,selectors:[["quote-background-selector"]],inputs:{form:"form",isProUser:"isProUser"},outputs:{backgroundSelected:"backgroundSelected"},decls:21,vars:4,consts:[[1,"w-full","mt-4","pb-9"],[1,"flex","items-center","justify-start","mb-2","gap-1"],["src","../../../../../../../assets/images/pro/pro-icon.svg","alt","pro",1,"h-5","w-5","ml-2"],[1,"text-xs","md:text-sm","text-gray-900"],[1,"w-full","py-4","flex","flex-nowrap","overflow-x-auto","overflow-y-visible","scrollbar-hidden"],[1,"relative","w-[100px]","min-w-[100px]","h-[50px]","ml-1"],[1,"relative","w-full","aspect-[2/1]","rounded-xl","overflow-hidden","shadow","mt-4"],["alt","preview background",1,"w-full","h-full","object-cover",3,"src"],[1,"absolute","inset-0","flex","flex-col","justify-between","p-2","md:p-4"],[1,"flex","justify-start"],[1,"flex","justify-center","items-center","h-6","w-6","md:h-8","md:w-8","bg-white/70","dark:bg-black/40","rounded-full"],[1,"text-quote-regular","icon","text-xl","md:text-2xl","text-pink-500"],[1,"bg-white/70","dark:bg-black/40","flex","justify-center","items-center","rounded-lg","p-2"],[1,"line-clamp-3","text-gray-600","text-xs","md:text-sm","leading-[1.5rem]","md:!leading-8","p-1","text-center","whitespace-pre-wrap"],[1,"flex","justify-end"],[1,"bg-white/70","dark:bg-black/40","text-[11px]","md:text-sm","px-1","md:py-[2px]","rounded-lg","text-gray-600"],[1,"relative","w-[100px]","min-w-[100px]","h-[50px]","ml-1",3,"click"],["alt","background",1,"w-full","h-full","object-cover","rounded-lg","cursor-pointer",3,"src","ngClass"],[1,"absolute","inset-0","bg-black/40","rounded-lg","cursor-pointer"],[1,"absolute","inset-0","flex","items-center","justify-center","icon","lock-closed-regular","text-xl","text-white","cursor-pointer"]],template:function(e,o){if(e&1&&(c(0,"div",0)(1,"div",1),Q(2,jt,1,0,"img",2),c(3,"span",3),k(4,"\u067E\u0633\u200C\u0632\u0645\u06CC\u0646\u0647\u0654 \u0628\u0631\u06CC\u062F\u0647\u0654 \u062E\u0648\u062F \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F."),p(),_(5,"beh-new-badge"),p(),c(6,"div",4),$(7,Ht,3,5,"div",5,O),p(),c(9,"div",6),_(10,"img",7),c(11,"div",8)(12,"div",9)(13,"div",10),_(14,"span",11),p()(),c(15,"div",12)(16,"p",13),k(17),p()(),c(18,"div",14)(19,"p",15),k(20),p()()()()()),e&2){let n,d;s(2),V(o.isProUser?-1:2),s(5),j(o.backgrounds),s(3),l("src",o.selectedBg.src,U),s(7),H(" ",(o.form==null||(n=o.form.get("body"))==null?null:n.value)||"..."," "),s(3),H("\u0635\u0641\u062D\u0647 ",(o.form==null||(d=o.form.get("pageNum"))==null?null:d.value)||"\u06F0")}},dependencies:[ee,te,kt],styles:[".scrollbar-hidden[_ngcontent-%COMP%]{overflow-x:auto;scrollbar-width:thin;scrollbar-color:rgb(236,230,230) transparent}.scrollbar-hidden[_ngcontent-%COMP%]::-webkit-scrollbar{width:1px;height:1px}.scrollbar-hidden[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.scrollbar-hidden[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:transparent}"]}));let t=a;return t})();var Kt=(t,a)=>[t,a],Wt=(t,a)=>({"text-green-500":t,"text-red-700 dark:text-red-600":a}),Zt=(t,a,i)=>({"aspect-square":t,"aspect-2/1":a,"aspect-4/5":i}),Jt=t=>({"left-0":t}),Xt=t=>[t],Yt=t=>({bookId:t}),ei=()=>({width:"64px",height:"96px"}),ti=()=>({height:"16px",width:"120px"}),ii=()=>({height:"16px",width:"80px"}),oi=()=>({height:"16px",width:"60px"}),Ut=()=>({height:"16px",width:"50%"}),ri=()=>
3({height:"150px",width:"100%"}),ni=()=>({height:"20px",width:"20%"});function ai(t,a){if(t&1&&(c(0,"div",9),_(1,"beh-book-restriction-warning",11),p()),t&2){let i=g(2);s(),l("hasInfoButton",!0)("infoButtonIconOnly",!0)("message",i.restrictionMessage)("infoConfig",i.restrictionInfoConfig)}}function si(t,a){if(t&1){let i=E();T(0),c(1,"app-select-book-page",12),I("changeValue",function(e){S(i);let o=g(2);return w(o.selectPage(e==null?null:e.steps))}),p(),B()}if(t&2){let i=g(2);s(),l("editable",!1)("book",i.book)("selectedBookPage",i.selectedPage)}}function ui(t,a){t&1&&_(0,"beh-hide-activity-checkbox",23)}function li(t,a){if(t&1){let i=E();T(0),c(1,"div",18)(2,"label",19)(3,"span",20),k(4," \u0628\u0631\u06CC\u062F\u06C0 \u06A9\u062A\u0627\u0628 \u062E\u0648\u062F \u0631\u0627 \u0628\u0646\u0648\u06CC\u0633\u06CC\u062F. "),c(5,"span",21),k(6),p()()(),_(7,"textarea",22),p(),Q(8,ui,1,0,"beh-hide-activity-checkbox",23),c(9,"quote-background-selector",24),I("backgroundSelected",function(e){S(i);let o=g(3);return w(o.selectBackground(e))}),p(),B()}if(t&2){let i=g(3),u=ne(0);s(5),l("ngClass",ae(6,Wt,i.isBodyValid,!i.isBodyValid)),s(),Ne(" (",i.maxCommentCharacter,"/",i.currentLength,") "),s(2),V(i.editMode?-1:8),s(),l("form",i.quoteFormGroup)("isProUser",u)}}function ci(t,a){t&1&&_(0,"beh-hide-activity-checkbox",23)}function di(t,a){if(t&1){let i=E();T(0),c(1,"div",25)(2,"div",26)(3,"p",27),_(4,"span",28),c(5,"span",29),k(6,"\u062A\u0635\u0648\u06CC\u0631 \u0628\u0631\u06CC\u062F\u06C0 \u06A9\u062A\u0627\u0628"),p()(),c(7,"div",30)(8,"button",31),I("click",function(){S(i);let e=g(3);return w(e.openCropperDialog())}),k(9),p()()(),c(10,"div",32),_(11,"img",33),p()(),Q(12,ci,1,0,"beh-hide-activity-checkbox",23),B()}if(t&2){let i=g(3);s(9),H(" ",i.imageField!=null&&i.imageField.value?"\u062A\u063A\u06CC\u06CC\u0631 \u062A\u0635\u0648\u06CC\u0631":"\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u062A\u0635\u0648\u06CC\u0631"," "),s(2),l("src",i.imageField==null?null:i.imageField.value,U)("ngClass",Pe(4,Zt,i.aspectRatio===1/1,i.aspectRatio===2/1,i.aspectRatio===4/5)),s(),V(i.editMode?-1:12)}}function mi(t,a){if(t&1){let i=E();T(0),c(1,"div",13)(2,"div",14)(3,"button",15),I("click",function(){S(i);let e=g(2);return w(e.checkQuoteSelector(e.quoteTypEnum.Text))}),k(4," \u0645\u062A\u0646\u06CC "),p(),c(5,"button",16),I("click",function(){S(i);let e=g(2);return w(e.checkQuoteSelector(e.quoteTypEnum.Image))}),k(6," \u062A\u0635\u0648\u06CC\u0631\u06CC "),p()()(),c(7,"form",17),F(8,li,10,9,"ng-container",10)(9,di,13,8,"ng-container",10),p(),B()}if(t&2){let i=g(2);s(3),l("ngClass",i.quoteType==="text"?"text-green-500 border border-green-500":" text-gray-700 border border-gray-200 border-l-0"),s(2),l("ngClass",i.quoteType==="image"?"text-green-500 border border-green-500":"text-gray-700 border border-gray-200 border-r-0"),s(2),l("formGroup",i.quoteFormGroup),s(),l("ngIf",i.quoteType==="text"),s(),l("ngIf",i.quoteType==="image")}}function pi(t,a){if(t&1&&(T(0),Q(1,ai,2,4,"div",9),c(2,"div",5),F(3,si,2,3,"ng-container",7),p(),F(4,mi,10,5,"ng-container",10),B()),t&2){let i=g(),u=z(9),e=ne(2);s(),V(!i.searchMode&&e?1:-1),s(2),l("ngIf",!i.searchMode&&(i.book==null?null:i.book.id))("ngIfElse",u),s(),l("ngIf",i.book&&(i.book==null?null:i.book.id))}}function gi(t,a){if(t&1){let i=E();c(0,"div",8)(1,"button",34),I("click",function(){S(i);let e=g();return w(e.submit())}),k(2," \u0627\u0646\u062A\u0634\u0627\u0631 "),p()()}if(t&2){let i=g();s(),l("appButtonLoader",i.publishLoading)("disabled",i.publishButtonDisabled||i.publishLoading)}}function hi(t,a){if(t&1){let i=E();c(0,"button",42),I("click",function(){S(i);let e=g(2);return w(e.clearSearch())}),_(1,"span",43),p()}if(t&2){let i=g(2);l("ngClass",P(1,Jt,!i.displayBarcode))}}function _i(t,a){if(t&1&&(c(0,"div",46),_(1,"app-behkhaan-book-card",47),p()),t&2){let i=a.$implicit,u=a.$index,e=g(5);l("ngClass",(u+1)%4===0?"border-l-0":"md:border-l"),s(),l("_book",i)("_link",P(4,Xt,e.Routes.quote_create))("_queryParams",P(6,Yt,i.id))}}function fi(t,a){if(t&1){let i=E();T(0),c(1,"div",48)(2,"button",49),I("click",function(){S(i);let e=g(5);return w(e.loadMore())}),k(3,"\u0628\u06CC\u0634\u062A\u0631"),p()(),B()}if(t&2){let i=g(5);s(2),l("appButtonLoader",i.loadingMore)}}function bi(t,a){if(t&1&&(T(0),c(1,"div",44)(2,"p",45),k(3,"\u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC \u062F\u0631 \u062D\u0627\u0644 \u062E\u0648\u0627\u0646\u062F\u0646"),p()(),$(4,_i,2,8,"div",46,O),F(6,fi,4,1,"ng-container",10),B()),t&2){let i=g(4);s(4),j(i.currentlyReadingBooks),s(2),l("ngIf",i.hasMoreCurrentlyReadingBooks)}}function Ci(t,a){if(t&1&&F(0,bi,7,1,"ng-container",7),t&2){g(2);let i=z(11),u=g();l("ngIf",u.currentlyReadingBooks&&(u.currentlyReadingBooks==null?null:u.currentlyReadingBooks.length)>0)("ngIfElse",i)}}function ki(t,a){t&1&&_(0,"app-skeleton-behkhaan-book-card",32)}function xi(t,a){if(t&1&&(T(0),Q(1,Ci,1,2,"ng-container")(2,ki,1,0,"app-skeleton-behkhaan-book-card",32),B()),t&2){let i=g(2);s(),V(i.readingBooksLoading?2:1)}}function yi(t,a){t&1&&(c(0,"div",50)(1,"p",45),k(2,"\u06A9\u062A\u0627\u0628 \u062F\u0631 \u062D\u0627\u0644 \u062E\u0648\u0627\u0646\u062F\u0646\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F."),p()())}function vi(t,a){t&1&&(T(0),_(1,"app-skeleton-behkhaan-book-card",32),B())}function Si(t,a){if(t&1){let i=E();c(0,"div",46)(1,"app-behkhaan-book-card",51),I("click",function(){let e=S(i).$implicit,o=g(4);return w(o.confirmSelectedBook(e))}),p()()}if(t&2){let i=a.$implicit,u=a.$index;l("ngClass",(u+1)%4===0?"border-l-0":"md:border-l"),s(),l("_book",i)("_link",!1)("_linkDisabled",!0)}}function wi(t,a){if(t&1&&$(0,Si,2,4,"div",46,O),t&2){let i=g(3);j(i.bookSuggestionResult)}}function Ii(t,a){if(t&1&&(T(0),c(1,"div",44)(2,"p",45),k(3,"\u0646\u062A\u06CC\u062C\u06C0 \u062C\u0633\u062A\u200C\u0648\u200C\u062C\u0648"),p()(),F(4,vi,2,0,"ng-container",7)(5,wi,2,0,"ng-template",null,4,K),B()),t&2){let i=z(6),u=g(2);s(4),l("ngIf",u.suggestionLoading&&u.searching)("ngIfElse",i)}}function Fi(t,a){if(t&1&&(c(0,"div",35)(1,"div",36)(2,"p",37),k(3,"\u0628\u0631\u0627\u06CC \u0627\u0641\u0632\u0648\u062F\u0646 \u0628\u0631\u06CC\u062F\u06C0 \u06A9\u062A\u0627\u0628\u060C \u0627\u0628\u062A\u062F\u0627 \u06A9\u062A\u0627\u0628 \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F."),p()(),c(4,"div",38),_(5,"input",39,2),F(7,hi,2,3,"button",40),p(),c(8,"div",41),F(9,xi,3,1,"ng-container",10)(10,yi,3,0,"ng-template",null,3,K)(12,Ii,7,2,"ng-container",10),p()()),t&2){let i=g();s(5),l("formControl",i.searchBookField),s(2),l("ngIf",(i.suggestBookName==null?null:i.suggestBookName.length)>0),s(2),l("ngIf",i.showCurrentlyReading),s(3),l("ngIf",!i.showCurrentlyReading)}}function Ti(t,a){t&1&&(c(0,"div",5)(1,"div",52),_(2,"ngx-skeleton-loader",53),c(3,"div",54),_(4,"
3ngx-skeleton-loader",55)(5,"ngx-skeleton-loader",56)(6,"ngx-skeleton-loader",57),p()(),_(7,"ngx-skeleton-loader",58)(8,"ngx-skeleton-loader",58)(9,"ngx-skeleton-loader",58)(10,"ngx-skeleton-loader",58),p()),t&2&&(s(2),l("theme",M(8,ei)),s(2),l("theme",M(9,ti)),s(),l("theme",M(10,ii)),s(),l("theme",M(11,oi)),s(),l("theme",M(12,Ut)),s(),l("theme",M(13,ri)),s(),l("theme",M(14,Ut)),s(),l("theme",M(15,ni)))}var y=(function(t){return t.Text="text",t.Image="image",t})(y||{}),Ho=(()=>{let a=class a extends At{constructor(){let e=x(ze),o=x(et),n=x(Ye);super(e);r(this,"router",x(Ze));r(this,"activatedRoute",x(We));r(this,"quoteService",x(Lt));r(this,"searchService",x(ht));r(this,"bookAggrigatorService",x(Qt));r(this,"quoteAggrigatorService",x(vt));r(this,"fileService",x(He));r(this,"imagePipe",x(dt));r(this,"_localRepository");r(this,"shelvesAggrigatorService",x(gt));r(this,"Routes",Ke);r(this,"headerConfig",{title:"\u0628\u0631\u06CC\u062F\u06C0 \u06A9\u062A\u0627\u0628",actionButton:!1});r(this,"publishButtonDisabled",!1);r(this,"publishLoading",!1);r(this,"maxCommentCharacter",1e3);r(this,"bodyValidators",[q.required,q.minLength(5),q.maxLength(this.maxCommentCharacter)]);r(this,"quoteFormGroup",new rt({pageNum:new A(0,[q.required,q.minLength(1)]),body:new A(""),image:new A(""),backgroundId:new A(""),isSilent:new A(!1)}));r(this,"searchBookField",new A(""));r(this,"pageSelectTouched",!1);r(this,"loadingMore");r(this,"currentlyReadingBooks",[]);r(this,"hasMoreCurrentlyReadingBooks",!1);r(this,"readingBooksLoading",!0);r(this,"showCurrentlyReading",!0);r(this,"searchFilterModel",new xt);r(this,"bookId");r(this,"quoteId");r(this,"pageNum");r(this,"book",new Z);r(this,"bookTotalPages",[]);r(this,"selectedPage",0);r(this,"selectBookPage");r(this,"userQuote",new ie);r(this,"createQuote",new J);r(this,"quoteType",y.Text);r(this,"quoteTypEnum",y);r(this,"quoteBase64Image");r(this,"aspectRatio");r(this,"imageToDelete");r(this,"loading",!0);r(this,"suggestionLoading");r(this,"removingImage",!1);r(this,"displayBarcode",!1);r(this,"editMode");r(this,"searchTerms",new qe);r(this,"searching",!1);r(this,"searchMode",!1);r(this,"suggestionTermFilter",new ft);r(this,"suggestBookName");r(this,"bookSuggestionResult",[]);r(this,"PERMS",Xe);r(this,"imageType",W);r(this,"restrictionMessage","\u0645\u062D\u062F\u0648\u062F\u06CC\u062A \u0646\u0645\u0627\u06CC\u0634 \u0628\u0647 \u062F\u06CC\u06AF\u0631\u0627\u0646");r(this,"restrictionInfoConfig",{type:pt.Confirm,icon:"info-regular",title:"\u0627\u0637\u0644\u0627\u0639\u0627\u062A \u0628\u06CC\u0634\u062A\u0631",message:"\u0627\u0646\u062A\u0634\u0627\u0631 \u0645\u062D\u062A\u0648\u0627 \u0631\u0648\u06CC \u0627\u06CC\u0646 \u06A9\u062A\u0627\u0628 \u0645\u0627\u0646\u0646\u062F \u06CC\u0627\u062F\u062F\u0627\u0634\u062A\u060C \u0628\u0631\u06CC\u062F\u0647\u060C \u06AF\u0632\u0627\u0631\u0634 \u0645\u0637\u0627\u0644\u0639\u0647 \u0648... \u0641\u0642\u0637 \u0628\u0631\u0627\u06CC \u062E\u0648\u062F\u062A\u0627\u0646 \u0642\u0627\u0628\u0644 \u0645\u0634\u0627\u0647\u062F\u0647 \u0627\u0633\u062A.",confirmText:"\u0645\u062A\u0648\u062C\u0647 \u0634\u062F\u0645",doubleButton:!1});this._localRepository=e,this._dialog=o,this._bottomSheet=n,this.displayBarcode=this.utilFunctions.getAndroid,this.searchFilterModel.pgNumber=0,this.searchFilterModel.pgSize=15,this.searchFilterModel.orderFilters=[{propertyName:"CreatedAt",direction:yt.Descending}]}get bodyField(){return this.quoteFormGroup.get("body")}get imageField(){return this.quoteFormGroup.get("image")}get pageNumField(){return this.quoteFormGroup.get("pageNum")}get backgroundId(){return this.quoteFormGroup.get("backgroundId")}ngOnInit(){this.activatedRoute.queryParams.pipe(N(e=>(this.clearOldData(),this.bookId=e==null?void 0:e.bookId,this.quoteId=e==null?void 0:e.quoteId,this.quoteId&&(this.editMode=!0),this.searchMode=!this.bookId&&!this.quoteId,this.quoteId?this.quoteAggrigatorService.getById(this.quoteId):(this.getCurrentlyReading(),this.publishButtonDisabled=!0,D(new L(new ie,"",null,!0,""))))),N(e=>{var o,n,d,f,m,h,b,C,X,me,pe,ge,he,_e,fe,be,Ce,ke,xe,ye,ve,Se,we,Ie,Fe,Te,Be,Ee;return(n=(o=e==null?void 0:e.result)==null?void 0:o.actor)!=null&&n.id&&((f=(d=e==null?void 0:e.result)==null?void 0:d.actor)==null?void 0:f.id)!=((m=this.currentUser)==null?void 0:m.id)&&this.router.navigate([this.Routes.quote+this.quoteId]),this.userQuote=e.result,this.book=(h=this.userQuote)==null?void 0:h.book,this.searchMode=!1,this.selectPage((b=e==null?void 0:e.result)==null?void 0:b.pageNum),this.quoteType=(C=this.userQuote)!=null&&C.hasPhoto?y.Image:y.Text,this.quoteType==y.Text?((X=this.imageField)==null||X.removeValidators(q.required),(me=this.bodyField)==null||me.addValidators(this.bodyValidators),(pe=this.imageField)==null||pe.setValue(null),(_e=this.bodyField)==null||_e.setValue((he=(ge=this.userQuote)==null?void 0:ge.body)==null?void 0:he.trim()),(Ce=this.backgroundId)==null||Ce.setValue((be=(fe=this.userQuote)==null?void 0:fe.backgroundId)!=null?be:null)):((ke=this.bodyField)==null||ke.clearValidators(),(xe=this.bodyField)==null||xe.updateValueAndValidity(),(ye=this.imageField)==null||ye.addValidators(q.required),(ve=this.bodyField)==null||ve.setValue(null),(Se=this.backgroundId)==null||Se.setValue(null),(Fe=this.imageField)==null||Fe.setValue(this.imagePipe.transform((we=this.userQuote)==null?void 0:we.mediaId,W.quote,(Ie=this.userQuote)==null?void 0:Ie.hasPhoto))),(Te=e==null?void 0:e.result)!=null&&Te.bookId?this.bookAggrigatorService.getBookById((Be=e==null?void 0:e.result)==null?void 0:Be.bookId):this.bookId&&((Ee=this.bookId)==null?void 0:Ee.length)>0?this.bookAggrigatorService.getBookById(this.bookId):D(new L(new Z,"BOOKID_NOT_FOUND",null,!0,""))}),v(this.unsubscribe$)).subscribe(e=>{var o,n,d,f,m,h,b;if(!e.hasError&&e.result){if(this.book=e.result,!this.quoteId){this.onLoad({draftKey:"quote"},this.bookId);let C=(d=(n=(o=this.draftData)==null?void 0:o.quote)==null?void 0:n.data)==null?void 0:d.find(X=>X.bookId===this.bookId);C&&((f=this.bodyField)==null||f.setValue(C.body),(h=this.backgroundId)==null||h.setValue((m=C.backgroundId)!=null?m:null),(b=this.pageNumField)==null||b.setValue(C.pageNumber),this.quoteType=C.imageSelected?y.Image:y.Text,this.onRemove({draftKey:"quote"},this.bookId))}if(this.book.pageCount)for(let C=1;C<this.book.pageCount+1;C++)this.bookTotalPages.push(C)}this.loading=!1}),this.quoteFormGroup.valueChanges.pipe(v(this.unsubscribe$)).subscribe(()=>{var o,n,d,f,m,h;let e=((d=(n=(o=this.bodyField)==null?void 0:o.value)==null?void 0:n.trim())==null?void 0:d.length)<=4||((h=(m=(f=this.bodyField)==null?void 0:f.value)==null?void 0:m.trim())==null?void 0:h.length)>this.maxCommentCharacter;this.publishButtonDisabled=this.quoteFormGroup.invalid||this.quoteType==y.Text&&e}),this.searchBookField.valueChanges.pipe(v(this.unsubscribe$)).subscribe(e=>{e?this.showCurrentlyReading=!1:this.showCurrentlyReading=!0,this.suggestionTitle(e)}
3),this.searchTerms.pipe(v(this.unsubscribe$),Re(500),N(()=>(this.searching=!0,this.searchService.isNullOrWhiteSpace(this.suggestionTermFilter.searchTerm)?D(new L(new Vt,"",null,!0,"")):(this.suggestionTermFilter.pgSize=15,this.searchService.searchSuggesstion(this.suggestionTermFilter,_t.Book))))).subscribe(e=>{var o,n;if(this.suggestionLoading=!1,e.hasError){this.bookSuggestionResult=[];return}this.searchTermNotEmpty()&&(this.bookSuggestionResult=(n=(o=e.result)==null?void 0:o.books)==null?void 0:n.items,this.searching=!1)})}dialogCmp(){return Dt}get currentLength(){var e,o,n;return((n=(o=(e=this.bodyField)==null?void 0:e.value)==null?void 0:o.trim())==null?void 0:n.length)||0}get isBodyValid(){return this.currentLength>4&&this.currentLength<=this.maxCommentCharacter}getCurrentlyReading(){var e;this.shelvesAggrigatorService.getGuestLibWithFilter((e=this.currentUser)==null?void 0:e.id,ue.currentlyReading,"",this.searchFilterModel).subscribe(o=>{var n,d;!o.hasError&&o.result&&(this.currentlyReadingBooks=(n=o==null?void 0:o.result)==null?void 0:n.items,this.hasMoreCurrentlyReadingBooks=(d=o.result)==null?void 0:d.hasNextPage),this.readingBooksLoading=!1})}selectPage(e){var o;if(this.selectedPage=e,this.selectedPage<1){this.publishButtonDisabled=!0,this.warnOnZeroPage();return}(o=this.pageNumField)==null||o.setValue(e)}warnOnZeroPage(){var o,n,d;"".concat((d=(n=(o=this.selectBookPage)==null?void 0:o.progressControl)==null?void 0:n.value)!=null?d:"").trim()&&this.snackbarService.openSnackbar(R.error,"\u0634\u0645\u0627\u0631\u0647 \u0635\u0641\u062D\u0647 0 \u0642\u0627\u0628\u0644 \u0642\u0628\u0648\u0644 \u0646\u06CC\u0633\u062A")}openStepsMenu(){this._localRepository.IsInBrowser&&setTimeout(()=>{let e=this._localRepository.getDocument.getElementById((this.selectedPage-1).toString());e&&e.scrollIntoView()},300)}submit(){this.publishLoading=!0,this.quoteId?this.updateQuote():this.createNewQuote()}updateQuote(){var e,o,n,d;if((e=this.imageField)!=null&&e.value&&this.quoteType===y.Image?(this.userQuote.mediaExtension=de.jpg,this.userQuote.body=void 0):(this.userQuote.mediaExtension=void 0,this.imageToDelete=this.userQuote.mediaId,this.userQuote.mediaId=null,this.userQuote.body=(n=(o=this.bodyField)==null?void 0:o.value)==null?void 0:n.trim(),this.userQuote.backgroundId=(d=this.backgroundId)==null?void 0:d.value),this.userQuote.bookId=this.bookId,this.userQuote.pageNum=this.selectedPage,this.userQuote.mediaRatio=this.aspectRatio==1?"1:1":this.aspectRatio=="2"?"2:1":"4:5",this.quoteType===y.Image&&this.quoteBase64Image){this.fileService.uploadQuoteImage(this.quoteBase64Image,"quotes",se()).pipe(v(this.unsubscribe$),N(f=>{var h;if(f.hasError)return this.snackbarService.openSnackbar(R.error,"\u062E\u0637\u0627 \u062F\u0631 \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u062A\u0635\u0648\u06CC\u0631"),D(new L("","Image_Not_Uploaded",null,!0,""));this.userQuote.mediaId=f.result[0];let m=new J;return m.backgroundId=this.userQuote.backgroundId,m.body=this.userQuote.body,m.bookId=this.userQuote.bookId,m.isSilent=(h=this.quoteFormGroup.get("isSilent"))==null?void 0:h.value,m.mediaExtension=this.userQuote.mediaExtension,m.mediaRatio=this.userQuote.mediaRatio,m.mediaId=this.userQuote.mediaId,m.pageNum=this.userQuote.pageNum,this.quoteService.updateQuote(m,this.quoteId)}),G(()=>{this.publishLoading=!1})).subscribe(f=>{var m,h,b;if(f.hasError){this.snackbarService.openSnackbar(R.error,"\u062E\u0637\u0627 \u062F\u0631 \u0648\u06CC\u0631\u0627\u06CC\u0634 \u0628\u0631\u06CC\u062F\u06C0 \u06A9\u062A\u0627\u0628");return}this.quoteFormGroup.reset(),(h=(m=this.quoteFormGroup)==null?void 0:m.controls.pageNum)==null||h.setValue(0),(b=this.imageField)==null||b.setValue(null),this.editSuccessful(),this.onRemove({draftKey:"quote"},this.bookId)});return}this.quoteService.updateQuote(this.userQuote,this.quoteId).pipe(v(this.unsubscribe$),G(()=>{this.publishLoading=!1})).subscribe(f=>{var m,h,b;if(f.hasError){this.snackbarService.openSnackbar(R.error,"\u062E\u0637\u0627 \u062F\u0631 \u0648\u06CC\u0631\u0627\u06CC\u0634 \u0628\u0631\u06CC\u062F\u06C0 \u06A9\u062A\u0627\u0628");return}this.removeImage(),this.quoteFormGroup.reset(),(h=(m=this.quoteFormGroup)==null?void 0:m.controls.pageNum)==null||h.setValue(0),(b=this.imageField)==null||b.setValue(null),this.editSuccessful()})}suggestionTitle(e){this.suggestionLoading=!0,!(!e||(e==null?void 0:e.length)<=1||e=="")&&(e=this.utilFunctions.replaceFaNumbers(e),!this.searchService.isNullOrWhiteSpace(e)&&(this.suggestionLoading=!0,this.suggestionTermFilter.searchTerm=e,this.searchTerms.next(e)))}confirmSelectedBook(e){if(!this._localRepository.IsInBrowser)return;if(this._localRepository.IsInMobile){this._bottomSheet.open(ce,{data:{originalBook:e}}).afterDismissed().pipe(v(this.unsubscribe$)).subscribe(d=>{d&&this.router.navigate([this.Routes.quote_create],{queryParams:{bookId:d.id}})});return}this._dialog.open(ce,{data:{originalBook:e},panelClass:"select-version-dialog",width:"625px"}).afterClosed().pipe(v(this.unsubscribe$)).subscribe(n=>{n&&this.router.navigate([this.Routes.quote_create],{queryParams:{bookId:n.id}})})}clearSearch(){this.suggestBookName="",this.bookSuggestionResult=[],this.showCurrentlyReading=!0}clearOldData(){this.bookId="",this.quoteId="",this.book=new Z,this.editMode=!1,this.searchMode=!1}removeBook(e){e&&(this.bookTotalPages=[],this.book=new Z,this.router.navigate([this.Routes.quote_create]))}openCropperDialog(){if(!this._localRepository.IsInBrowser)return;this._dialog.open(Ct,{panelClass:"cropper-container",data:{aspect_ratio:bt.rectangle_350,fromQuote:!0}}).afterClosed().pipe(v(this.unsubscribe$)).subscribe(o=>{var n;o&&(this.publishButtonDisabled=!1,(n=this.imageField)==null||n.setValue(o.croppedImageData),this.quoteBase64Image=o.base64,this.aspectRatio=o.ratio)})}removeImage(){this.imageToDelete&&(this.removingImage=!0,this.subscriptions.push(this.fileService.deleteQuoteImages("quotes",this.imageToDelete).subscribe(e=>{var o;if(this.removingImage=!1,e.hasError){this.snackbarService.openSnackbar(R.error,"\u062E\u0637\u0627\u06CC\u06CC \u067E\u06CC\u0634 \u0622\u0645\u062F\u0647!");return}this.imageToDelete="",(o=this.imageField)==null||o.setValue(null)})))}checkQuoteSelector(e){var o,n,d,f,m,h,b;if(this.quoteType=e,this.userQuote=new ie,e===y.Image){this.quoteType=y.Image,(o=this.bodyField)==null||o.clearValidators(),(n=this.bodyField)==null||n.updateV
3alueAndValidity(),(d=this.imageField)==null||d.addValidators(q.required);return}else{this.quoteType=y.Text,this.userQuote.body=(f=this.bodyField)==null?void 0:f.value,this.userQuote.backgroundId=(m=this.backgroundId)==null?void 0:m.value,(h=this.bodyField)==null||h.addValidators(this.bodyValidators),(b=this.imageField)==null||b.removeValidators(q.required);return}}createNewQuote(){var e,o,n,d,f;if((e=this.imageField)!=null&&e.value&&this.quoteType===y.Image?(this.createQuote.mediaExtension=de.jpg,this.createQuote.mediaRatio=this.utilFunctions.AspectRationToString(this.aspectRatio)):(this.createQuote.body=(n=(o=this.bodyField)==null?void 0:o.value)==null?void 0:n.trim(),this.createQuote.backgroundId=(d=this.backgroundId)==null?void 0:d.value),this.createQuote.isSilent=(f=this.quoteFormGroup.get("isSilent"))==null?void 0:f.value,this.createQuote.bookId=this.bookId,this.createQuote.pageNum=this.selectedPage,this.quoteType==y.Text){this.quoteService.createQuote(this.createQuote).pipe(v(this.unsubscribe$),G(()=>{this.publishLoading=!1})).subscribe(m=>{var h,b,C;if(m.hasError){this.snackbarService.openSnackbar(R.error,"\u062E\u0637\u0627 \u062F\u0631 \u0630\u062E\u06CC\u0631\u0647 \u0628\u0631\u06CC\u062F\u06C0 \u06A9\u062A\u0627\u0628");return}this.quoteFormGroup.reset(),(b=(h=this.quoteFormGroup)==null?void 0:h.controls.pageNum)==null||b.setValue(0),(C=this.imageField)==null||C.setValue(null),this.createSuccessful(m.result)});return}this.fileService.uploadQuoteImage(this.quoteBase64Image,"quotes",se()).pipe(v(this.unsubscribe$),N(m=>m.hasError?(this.snackbarService.openSnackbar(R.error,"\u062E\u0637\u0627 \u062F\u0631 \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u062A\u0635\u0648\u06CC\u0631"),D(new L("","Image_Not_Uploaded",null,!0,""))):(this.createQuote.mediaId=m.result[0],this.createQuote.mediaRatio=this.aspectRatio==1?"1:1":this.aspectRatio=="2"?"2:1":"4:5",this.quoteService.createQuote(this.createQuote))),G(()=>{this.publishLoading=!1})).subscribe(m=>{var h,b,C;if(m.hasError){this.snackbarService.openSnackbar(R.error,"\u062E\u0637\u0627 \u062F\u0631 \u0630\u062E\u06CC\u0631\u0647 \u0628\u0631\u06CC\u062F\u06C0 \u06A9\u062A\u0627\u0628");return}this.quoteFormGroup.reset(),(b=(h=this.quoteFormGroup)==null?void 0:h.controls.pageNum)==null||b.setValue(0),(C=this.imageField)==null||C.setValue(null),this.createSuccessful(m.result),this.onRemove({draftKey:"quote"},this.bookId)})}editSuccessful(){this.snackbarService.openSnackbar(R.success,"\u0628\u0631\u06CC\u062F\u06C0 \u06A9\u062A\u0627\u0628 \u0628\u0627 \u0645\u0648\u0641\u0642\u06CC\u062A \u0648\u06CC\u0631\u0627\u06CC\u0634 \u0634\u062F."),this.backToBookDetail()}createSuccessful(e){this.clearSearch(),this.quoteId=e,this.backToBookDetail()}searchTermNotEmpty(){var e;return this.suggestionTermFilter.searchTerm&&this.suggestionTermFilter.searchTerm!=""&&((e=this.suggestionTermFilter.searchTerm)==null?void 0:e.length)>1}setPageSelectTouched(){this.pageSelectTouched=!0}backToBookDetail(){this.router.navigate([this.Routes.quote,this.quoteId])}loadMore(){var e;this.hasMoreCurrentlyReadingBooks&&(this.loadingMore=!0,this.searchFilterModel.pgNumber++,this.shelvesAggrigatorService.getGuestLibWithFilter((e=this.currentUser)==null?void 0:e.id,ue.currentlyReading,"",this.searchFilterModel).subscribe(o=>{o.hasError||(o.result.items.forEach(n=>{this.currentlyReadingBooks.push(n)}),this.hasMoreCurrentlyReadingBooks=o.result.hasNextPage),this.loadingMore=!1}))}selectBackground(e){var o;(o=this.backgroundId)==null||o.setValue(e),this.userQuote.backgroundId=e}};r(a,"\u0275fac",function(o){return new(o||a)}),r(a,"\u0275cmp",Y({type:a,selectors:[["app-create-quote"]],viewQuery:function(o,n){if(o&1&&Me(le,5),o&2){let d;Ae(d=De())&&(n.selectBookPage=d.first)}},features:[Ve],decls:12,vars:11,consts:[["searchTemplate",""],["CreateQuoteSkeletonTemplate",""],["searchBook",""],["readingBooksEmptyTemplate",""],["booksSwiperTemplate",""],[1,"w-full","flex","flex-wrap"],[1,"sticky","top-0","z-30","bg-white","dark:bg-gray-900","shadow-sm",3,"_Config"],[4,"ngIf","ngIfElse"],[1,"sticky","bottom-0","z-40","w-full","px-4","py-3","bg-white","dark:bg-gray-900","border-t","border-gray-100","dark:border-gray-700"],[1,"w-full","px-4","mt-4"],[4,"ngIf"],[3,"hasInfoButton","infoButtonIconOnly","message","infoConfig"],[3,"changeValue","editable","book","selectedBookPage"],[1,"w-full","mt-4","flex","flex-wrap","px-4"],[1,"flex","rounded-md"],[1,"px-4","py-3","text-sm","!rounded-md","!rounded-l-none",3,"click","ngClass"],[1,"px-4","py-3","text-sm","!rounded-md","!rounded-r-none",3,"click","ngClass"],[1,"w-full","px-4",3,"formGroup"],[1,"w-full","mt-4"],["for","quoteBody",1,"flex","items-center"],[1,"text-sm","text-gray-900"],[1,"mr-1","text-sm","text-gray-700",3,"ngClass"],["
3id","quoteBody","formControlName","body",1,"w-full","bg-white","dark:bg-gray-900","p-4","!text-sm","md:!text-base","!leading-[1.7rem]","md:!leading-8","border","border-gray-300","dark:border-gray-700","text-gray-900","mt-1","resize-none","h-[150px]","overflow-auto","mb-2"],["formControlName","isSilent"],[3,"backgroundSelected","form","isProUser"],[1,"w-full","my-4","flex","flex-wrap","justify-center"],[1,"w-full","mb-4","flex","flex-wrap","items-center","justify-between"],[1,"text-gray-500","flex","items-center"],[1,"icon","image-regular","text-base"],[1,"text-sm","text-gray-900","mr-2"],[1,"flex","flex-wrap","justify-end"],[1,"btn-green-flat","w-[6.75rem]","h-10","!px-2","!text-xs",3,"click"],[1,"w-full"],["loading","lazy","onerror","this.src='https://storage.behkhaan.ir/assets/images/default/default_broken.svg'",1,"h-full","w-full","bg-transparent",3,"src","ngClass"],[1,"btn-green-flat","w-full","h-10","!font-medium",3,"click","appButtonLoader","disabled"],[1,"w-full","flex","flex-wrap","mt-4"],[1,"w-full","pr-4","flex","flex-wrap"],[1,"text-gray-500","text-xs","md:text-sm"],[1,"w-full","mt-4","flex","flex-wrap","justify-end","relative","px-4"],["width","343px","height","40px","type","text","placeholder","\u062C\u0633\u062A\u200C\u0648\u200C\u062C\u0648\u06CC \u06A9\u062A\u0627\u0628","id","searchBookInput",1,"w-full","bg-gray-100","text-gray-500",3,"formControl"],["mat-icon-button","","class","absolute left-[42px] top-[48%] -translate-x-1/2 flex",3,"ngClass","click",4,"ngIf"],[1,"w-full","flex","flex-wrap","my-4","pb-10"],["mat-icon-button","",1,"absolute","left-[42px]","top-[48%]","-translate-x-1/2","flex",3,"click","ngClass"],[1,"icon","dismiss-regular","text-base","cursor-pointer"],[1,"w-full","px-4","my-4"],[1,"text-gray-500","text-base","md:text-lg"],[1,"w-full","p-2","sm:w-4/12","md:w-3/12","border-b","border-gray-100","dark:border-gray-700","hover:shadow-sm",3,"ngClass"],[3,"_book","_link","_queryParams"],[1,"w-full","flex","items-center","justify-center","mt-4","mx-4"],[1,"btn-blue-outline",3,"click","appButtonLoader"],[1,"w-full","px-4","my-4","flex","flex-wrap","items-center","justify-center"],[1,"w-full",3,"click","_book","_link","_linkDisabled"],[1,"w-full","flex","mt-4"],[3,"theme"],[1,"pr-4"],[1,"w-full",3,"theme"],[1,"w-full","flex",3,"theme"],[1,"w-full","flex","mt-4",3,"theme"],[1,"w-full","mt-4","flex",3,"theme"]],template:function(o,n){if(o&1&&(oe(0),Le(1,"isAllowed"),oe(2),c(3,"section",5)(4,"article",5),_(5,"app-header",6),F(6,pi,5,4,"ng-container",7),p(),Q(7,gi,3,2,"div",8),p(),F(8,Fi,13,4,"ng-template",null,0,K)(10,Ti,11,16,"ng-template",null,1,K)),o&2){let d=z(11);re(Ge(1,4,ae(8,Kt,n.PERMS.QUOTE_UPDATE_BG,n.PERMS.QUOTE_CREATE_BG))),s(2),re((n.book==null?null:n.book.id)&&(n.book==null?null:n.book.isRestricted)===!0),s(3),l("_Config",n.headerConfig),s(),l("ngIf",!n.loading)("ngIfElse",d),s(),V(!n.searchMode&&(n.book!=null&&n.book.id)&&!n.loading?7:-1)}},dependencies:[te,nt,tt,it,ot,ee,Ue,at,st,ut,mt,lt,ct,Je,Ft,Mt,Rt,It,le,Et,Bt,Pt,Gt,St,Nt,Tt],encapsulation:2}));let t=a;return t})();export{Ho as CreateQuoteComponent};
4
5//# debugId=70542d22-ab0b-5fc0-b84a-b8ad9873eec4

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.