PageSourceSearch

https://www.pixartprinting.fr/js/featureSelect.42367e238a1313bf4532.js

js pixartprinting.fr collected 2026-10-01 12:17:42 UTC 5,928 bytes, 1 lines download raw bytes

1export const __webpack_esm_id__=5215;export const __webpack_esm_ids__=[5215];export const __webpack_esm_modules__={67020(e,t,o){o.d(t,{A:()=>n});o(69479),o(98992),o(81454);var s=o(41003);const n=(e,t)=>{let o={};const n=t?.customSelections?.dictionaryTranslations?.info??{};if(Object.keys(n).length>0&&(0,s.A)(n,["description","gallery","videos"])){n?.title||(n.title=t?.customSelections?.dictionaryTranslations?.voice??""),o=n;const e=t?.customSelections?.flagName??[];o.flags=Object.keys(e).map(t=>e[t].voice)}return o}},79555(e,t,o){o.d(t,{A:()=>d});o(98992),o(54520),o(81454);var s=o(3486),n=o(52570),i=o(34499),l=o(32515),a=o(18356),c=o(92610);const d={name:"FeatureCommon",methods:{isHidden:s.A,getValueFromOption:n.A,getSortedKeysByValue:i.A,getOptionLabel:l.A,getFeatureLabel:a.A,isDisabled(e){return-1===this.enabledOptions.indexOf(e.key)},optionDisplayLabel(e){return this.getOptionLabel(e)},isSelected(e){return this.selectedOption===e.label.en},onFeatureChangedFromModal(e){this.$emit("featureChanged",this.label,e)}},computed:{selections(){return this.option.value.value},validSelections(){return this.getSortedKeysByValue(this.selections,["customSelections","sortIndex"]).filter(e=>!1===this.isHidden(this.selections[e])&&!1===this.isDisabled(this.selections[e])).map(e=>this.selections[e])},isFeatureToHide(){return 1===this.enabledOptions.length&&(0,c.A)(this.option)}}}},85328(e,t,o){o.d(t,{default:()=>O}),o.r(t);var s=o(41425);const n={key:0},i={class:"expand-container"},l={class:"row"},a={class:"col-md-6 outer"},c={class:"inner"},d={key:0,class:"input-group input-group-disabled"},r=["id","aria-describedby"],u={key:1,class:"select-container"},p=["id","aria-describedby","disabled"],h=["value"],g={key:0};o(98992),o(54520);var m=o(32574),b=o(31393),f=o(79555),y=o(54851),v=o(41003),C=o(52570),k=o(67020),F=o(25760);const S={name:"FeatureSelect",props:["option","value","enabledOptions","label","canCollapse"],mixins:[f.A],components:{TransitionExpand:m.A,InfoBox:b.A,FeatureHeader:y.A},data(){return{selectedOption:this.value,isInfoOpen:!1,shouldCollapse:!1}},setup(){const e=(0,F.z)(),t=(0,F.n)();return{headerClasses:(0,s.EW)(()=>[e.customStyle,...t]),uiSettings:e}},computed:{displayLabel(){return this.getFeatureLabel(this.option)},inputDisplay(){const e=this.validSelections[0];return this.getOptionLabel(e)},optionInfo(){let e=null;const t=this.getValueFromOption(this.option);if(""!==t){const o=this.validSelections.filter(e=>e.key===t);o[0]&&([e]=o)}return this.getInfoFromSelection(this.option,e)},shouldShowInfo(){const e=this.contentExistsForFields(this.optionInfo,["description","gallery","videos"]),t=this.uiSettings.hideMoreOptionsInFeatureComponents;return e&&!t},isCollapsed(){return this.shouldCollapse&&this.canCollapse&&("start-collapsed"===this.option?.customSelections?.collapseMode||"start-expanded"===this.option?.customSelections?.collapseMode)},layoutClass(){return this.uiSettings.customStyle},hasLayoutPackaging(){return"layout-packaging"===this.layoutClass}},methods:{contentExistsForFields:v.A,getValueFromOption:C.A,getInfoFromSelection:k.A,toggleInfo(){this.isInfoOpen=!this.isInfoOpen},onInfoCloseClick(){this.isInfoOpen=!1},onToggleFeature(e){this.shouldCollapse=e}},watch:{value(e,t){e!==t&&(this.selectedOption=e)},selectedOption(){this.$emit("featureChanged",this.label,this.selectedOption)}},created(){"start-collapsed"===this.option?.customSelections?.collapseMode&&(this.shouldCollapse=!0)}};const O=(0,o(66262).A)(S,[["render",function(e,t,o,m,b,f){const y=(0,s.g2)("feature-header"),v=(0,s.g2)("transition-expand"),C=(0,s.g2)("info-box");return(0,s.uX)(),(0,s.CE)("div",{class:(0,s.C4)(["form-group form-group-select",[{"d-none":e.isFeatureToHide},m.headerClasses]])},[(0,s.bF)(y,{option:o.option,"current-value":o.value,"can-collapse":o.canCollapse,"valid-selections":e.validSelections,onToggleFeature:f.onToggleFeature,onFeatureChangedFromModal:e.onFeatureChangedFromModal},null,8,["option","current-value","can-collapse","valid-selections","onToggleFeature","onFeatureChangedFromModal"]),(0,s.bF)(v,null,{default:(0,s.k6)(()=>[f.isCollapsed?(0,s.Q3)("",!0):((0,s.uX)(),(0,s.CE)("div",n,[(0,s.Lk)("div",i,[(0,s.Lk)("div",l,[(0,s.Lk)("div",a,[(0,s.Lk)("div",c,[1!==e.validSelections.length||f.hasLayoutPackaging?((0,s.uX)(),(0,s.CE)("div",u,[(0,s.bo)((0,s.Lk)("select",{class:"form-control","onUpdate:modelValue":t[1]||(t[1]=e=>b.selectedOption=e),id:o.option.name,"aria-describedby":f.displayLabel,disabled:1===e.validSelections.length&&f.hasLayoutPackaging},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.validSelections,t=>((0,s.uX)(),(0,s.CE)("option",{class:"form-group",value:t.key,key:t.key},(0,s.v_)(e.optionDisplayLabel(t)),9,h))),128))],8,p),[[s.u1,b.selectedOption]])])):((0,s.uX)(),(0,s.CE)("div",d,[(0,s.bo)((0,s.Lk)("input",{type:"text",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=e=>f.inputDisplay=e),id:o.option.name,"aria-describedby":f.displayLabel,disabled:""},null,8,r),[[s.Jo,f.inputDisplay]]),t[4]||(t[4]=(0,s.Lk)("div",{class:"input-group-append"},[(0,s.Lk)("span",{class:"input-group-text"},[(0,s.Lk)("i",{class:"icon icon-padlock-close_20px"})])],-1))])),f.shouldShowInfo?((0,s.uX)(),(0,s.CE)("span",{key:2,class:"more-options-container",onClick:t[2]||(t[2]=(...e)=>f.toggleInfo&&f.toggleInfo(...e))},[...t[5]||(t[5]=[(0,s.Lk)("i",{class:"icon icon-c-info_16px"},null,-1)])])):(0,s.Q3)("",!0)])])])])]))]),_:1}),(0,s.bF)(v,null,{default:(0,s.k6)(()=>[b.isInfoOpen?((0,s.uX)(),(0,s.CE)("div",g,[(0,s.bF)(C,{content:f.optionInfo,onInfoCloseClick:t[3]||(t[3]=e=>f.onInfoCloseClick())},null,8,["content"])])):(0,s.Q3)("",!0)]),_:1})],2)}],["__scopeId","data-v-6b2d64a7"]])},92610(e,t,o){o.d(t,{A:()=>l});o(74423);var s=o(52570),n=o(50716),i=o(70203);const l=e=>{let t=!1;
1if(e?.customSelections?.hideSingleNullValue){const o=(0,s.A)(e),l=["None","No","undefined"];t=0===parseFloat(o)||l.includes(o)||(0,i.A)(o)||(0,n.A)(o)}return t}}};

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.